Skip to content

Commit 909aef8

Browse files
committed
docs: fix prop typo in kebab-case
1 parent 337caa7 commit 909aef8

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

docs/content/zh-Hant/guide/properties.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ version: 2
7272

7373
針對 modal 的容器(container)自訂 class。
7474

75-
## `contentClass`
75+
## `content-class`
7676

7777
- 型別: `[String, Object, Array]`
7878
- 預設: `''`
7979

8080
針對 modal 的內容(content)自訂 class。
8181

82-
## `overlayClass`
82+
## `overlay-class`
8383

8484
- 型別: `[String, Object, Array]`
8585
- 預設: `''`
@@ -93,14 +93,14 @@ version: 2
9393

9494
針對 modal 的容器(container)自訂樣式。
9595

96-
## `contentStyle`
96+
## `content-style`
9797

9898
- 型別: `[Object, Array]`
9999
- 預設: `{}`
100100

101101
針對 modal 的內容(content)自訂樣式。
102102

103-
## `overlayStyle`
103+
## `overlay-style`
104104

105105
- 型別: `[Object, Array]`
106106
- 預設: `{}`
@@ -150,7 +150,7 @@ version: 2
150150

151151
</show-code>
152152

153-
## `overlayTransition`
153+
## `overlay-transition`
154154

155155
- 型別: `[String, Object]`
156156
- 預設: `'vfm'`
@@ -193,7 +193,7 @@ version: 2
193193

194194
</show-code>
195195

196-
## `lockScroll`
196+
## `lock-scroll`
197197

198198
- 型別: `Boolean`
199199
- 預設: `true`
@@ -202,28 +202,28 @@ version: 2
202202

203203
<alert>使用了 [`body-scroll-lock`](https://github.com/willmcpo/body-scroll-lock) 來實作這個功能。 </alert>
204204

205-
## `hideOverlay`
205+
## `hide-overlay`
206206

207207
- 型別: `Boolean`
208208
- 預設: `false`
209209

210210
隱藏 modal 的外層(overlay)。
211211

212-
## `clickToClose`
212+
## `click-to-close`
213213

214214
- 型別: `Boolean`
215215
- 預設: `true`
216216

217217
當點擊 modal 的外層(overlay)時,是否關閉 modal。
218218

219-
## `escToClose`
219+
## `esc-to-close`
220220

221221
- 型別: `Boolean`
222222
- 預設: `false`
223223

224224
是否能透過按下 `esc` 鍵關閉 modal。
225225

226-
## `preventClick`
226+
## `prevent-click`
227227

228228
- 型別: `Boolean`
229229
- 預設: `false`
@@ -243,36 +243,36 @@ version: 2
243243
2. 如果設定的是字串,必須是 `querySelector` 合法參數的任何字串,例如:`'body'``'#app'`
244244
3. 如果設定的是物件,必須是有效的 `Node` 物件,例如:`this.$refs.container`
245245

246-
## `zIndexAuto`
246+
## `z-index-auto`
247247

248248
- 型別: `Boolean`
249249
- 預設: `true`
250250

251-
根據 `zIndexBase` 的值自動綁定到 `z-index` 上,並且每當往上堆疊一個 modal 就會加 `2`。如果 `zIndex` 有被設定,`zIndexAuto``zIndexBase` 則會被忽略。
251+
根據 `z-index-base` 的值自動綁定到 `z-index` 上,並且每當往上堆疊一個 modal 就會加 `2`。如果 `z-index` 有被設定,`z-index-auto``z-index-base` 則會被忽略。
252252

253253

254-
## `zIndexBase`
254+
## `z-index-base`
255255

256256
- 型別: `[String, Number]`
257257
- 預設: `1000`
258258

259-
根據 `zIndexBase` 的值自動計算 `z-index`。如果 `zIndex` 有被設定,`zIndexAuto``zIndexBase` 則會被忽略。
259+
根據 `z-index-base` 的值自動計算 `z-index`。如果 `z-index` 有被設定,`z-index-auto``z-index-base` 則會被忽略。
260260

261-
## `zIndex`
261+
## `z-index`
262262

263263
- 型別: `[String, Number]`
264264
- 預設: `false`
265265

266-
針對該 modal 指定特定的 `z-index`。如果 `zIndex` 有被設定,`zIndexAuto``zIndexBase` 則會被忽略。
266+
針對該 modal 指定特定的 `z-index`。如果 `z-index` 有被設定,`z-index-auto``z-index-base` 則會被忽略。
267267

268-
## `focusRetain`
268+
## `focus-retain`
269269

270270
- 型別: `Boolean`
271271
- 預設: `true`
272272

273273
在 modal 進到畫面後,將焦點放到 `vfm__container` 上。
274274

275-
## `focusTrap`
275+
## `focus-trap`
276276

277277
- 型別: `Boolean`
278278
- 預設: `false`
@@ -286,14 +286,14 @@ version: 2
286286

287287
啟動可拖曳的 modal。
288288

289-
## `fitParent`
289+
## `fit-parent`
290290

291291
- 型別: `Boolean`
292292
- 預設: `false`
293293

294294
拖曳不超過 `.vfm__container` 的範圍。
295295

296-
## `dragSelector`
296+
## `drag-selector`
297297

298298
- 型別: `String`
299299
- 預設: `''`
@@ -309,7 +309,7 @@ version: 2
309309

310310
只有透過 `querySelectorAll(string)` 選出的元素可點擊拖曳 modal.
311311

312-
## `keepChangedStyle`
312+
## `keep-changed-style`
313313

314314
- 型別: `Boolean`
315315
- 預設: `false`
@@ -323,35 +323,35 @@ modal 關閉後保留 `drag` 和 `resize` 更改的樣式。
323323

324324
啟動可調整大小的 modal。
325325

326-
## `resizeDirections`
326+
## `resize-directions`
327327

328328
- 型別: `Array`
329329
- 預設: `[]`
330330
- 合法值: `['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']`
331331

332332
設置可調整 modal 大小的方向。
333333

334-
## `minWidth`
334+
## `min-width`
335335

336336
- 型別: `Number`
337337
- 預設: `0`
338338

339-
限制 resizable modal 的 `minWidth`
340-
## `minHeight`
339+
限制 resizable modal 的 `min-width`
340+
## `min-height`
341341

342342
- 型別: `Number`
343343
- 預設: `0`
344344

345-
限制 resizable modal 的 `minHeight`
346-
## `maxWidth`
345+
限制 resizable modal 的 `min-height`
346+
## `max-width`
347347

348348
- 型別: `Number`
349349
- 預設: `Infinity`
350350

351-
限制 resizable modal 的 `maxWidth`
352-
## `maxHeight`
351+
限制 resizable modal 的 `max-width`
352+
## `max-height`
353353

354354
- 型別: `Number`
355355
- 預設: `Infinity`
356356

357-
限制 resizable modal 的 `maxHeight`
357+
限制 resizable modal 的 `max-height`

0 commit comments

Comments
 (0)