@@ -72,14 +72,14 @@ version: 2
72
72
73
73
針對 modal 的容器(container)自訂 class。
74
74
75
- ## ` contentClass `
75
+ ## ` content-class `
76
76
77
77
- 型別: ` [String, Object, Array] `
78
78
- 預設: ` '' `
79
79
80
80
針對 modal 的內容(content)自訂 class。
81
81
82
- ## ` overlayClass `
82
+ ## ` overlay-class `
83
83
84
84
- 型別: ` [String, Object, Array] `
85
85
- 預設: ` '' `
@@ -93,14 +93,14 @@ version: 2
93
93
94
94
針對 modal 的容器(container)自訂樣式。
95
95
96
- ## ` contentStyle `
96
+ ## ` content-style `
97
97
98
98
- 型別: ` [Object, Array] `
99
99
- 預設: ` {} `
100
100
101
101
針對 modal 的內容(content)自訂樣式。
102
102
103
- ## ` overlayStyle `
103
+ ## ` overlay-style `
104
104
105
105
- 型別: ` [Object, Array] `
106
106
- 預設: ` {} `
@@ -150,7 +150,7 @@ version: 2
150
150
151
151
</show-code >
152
152
153
- ## ` overlayTransition `
153
+ ## ` overlay-transition `
154
154
155
155
- 型別: ` [String, Object] `
156
156
- 預設: ` 'vfm' `
@@ -193,7 +193,7 @@ version: 2
193
193
194
194
</show-code >
195
195
196
- ## ` lockScroll `
196
+ ## ` lock-scroll `
197
197
198
198
- 型別: ` Boolean `
199
199
- 預設: ` true `
@@ -202,28 +202,28 @@ version: 2
202
202
203
203
<alert >使用了 [ ` body-scroll-lock ` ] ( https://github.com/willmcpo/body-scroll-lock ) 來實作這個功能。 </alert >
204
204
205
- ## ` hideOverlay `
205
+ ## ` hide-overlay `
206
206
207
207
- 型別: ` Boolean `
208
208
- 預設: ` false `
209
209
210
210
隱藏 modal 的外層(overlay)。
211
211
212
- ## ` clickToClose `
212
+ ## ` click-to-close `
213
213
214
214
- 型別: ` Boolean `
215
215
- 預設: ` true `
216
216
217
217
當點擊 modal 的外層(overlay)時,是否關閉 modal。
218
218
219
- ## ` escToClose `
219
+ ## ` esc-to-close `
220
220
221
221
- 型別: ` Boolean `
222
222
- 預設: ` false `
223
223
224
224
是否能透過按下 ` esc ` 鍵關閉 modal。
225
225
226
- ## ` preventClick `
226
+ ## ` prevent-click `
227
227
228
228
- 型別: ` Boolean `
229
229
- 預設: ` false `
@@ -243,36 +243,36 @@ version: 2
243
243
2 . 如果設定的是字串,必須是 ` querySelector ` 合法參數的任何字串,例如:` 'body' ` 、` '#app' ` 。
244
244
3 . 如果設定的是物件,必須是有效的 ` Node ` 物件,例如:` this.$refs.container ` 。
245
245
246
- ## ` zIndexAuto `
246
+ ## ` z-index-auto `
247
247
248
248
- 型別: ` Boolean `
249
249
- 預設: ` true `
250
250
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 ` 則會被忽略。
252
252
253
253
254
- ## ` zIndexBase `
254
+ ## ` z-index-base `
255
255
256
256
- 型別: ` [String, Number] `
257
257
- 預設: ` 1000 `
258
258
259
- 根據 ` zIndexBase ` 的值自動計算 ` z-index ` 。如果 ` zIndex ` 有被設定,` zIndexAuto ` 與 ` zIndexBase ` 則會被忽略。
259
+ 根據 ` z-index-base ` 的值自動計算 ` z-index ` 。如果 ` z-index ` 有被設定,` z-index-auto ` 與 ` z-index-base ` 則會被忽略。
260
260
261
- ## ` zIndex `
261
+ ## ` z-index `
262
262
263
263
- 型別: ` [String, Number] `
264
264
- 預設: ` false `
265
265
266
- 針對該 modal 指定特定的 ` z-index ` 。如果 ` zIndex ` 有被設定,` zIndexAuto ` 與 ` zIndexBase ` 則會被忽略。
266
+ 針對該 modal 指定特定的 ` z-index ` 。如果 ` z-index ` 有被設定,` z-index-auto ` 與 ` z-index-base ` 則會被忽略。
267
267
268
- ## ` focusRetain `
268
+ ## ` focus-retain `
269
269
270
270
- 型別: ` Boolean `
271
271
- 預設: ` true `
272
272
273
273
在 modal 進到畫面後,將焦點放到 ` vfm__container ` 上。
274
274
275
- ## ` focusTrap `
275
+ ## ` focus-trap `
276
276
277
277
- 型別: ` Boolean `
278
278
- 預設: ` false `
@@ -286,14 +286,14 @@ version: 2
286
286
287
287
啟動可拖曳的 modal。
288
288
289
- ## ` fitParent `
289
+ ## ` fit-parent `
290
290
291
291
- 型別: ` Boolean `
292
292
- 預設: ` false `
293
293
294
294
拖曳不超過 ` .vfm__container ` 的範圍。
295
295
296
- ## ` dragSelector `
296
+ ## ` drag-selector `
297
297
298
298
- 型別: ` String `
299
299
- 預設: ` '' `
@@ -309,7 +309,7 @@ version: 2
309
309
310
310
只有透過 ` querySelectorAll(string) ` 選出的元素可點擊拖曳 modal.
311
311
312
- ## ` keepChangedStyle `
312
+ ## ` keep-changed-style `
313
313
314
314
- 型別: ` Boolean `
315
315
- 預設: ` false `
@@ -323,35 +323,35 @@ modal 關閉後保留 `drag` 和 `resize` 更改的樣式。
323
323
324
324
啟動可調整大小的 modal。
325
325
326
- ## ` resizeDirections `
326
+ ## ` resize-directions `
327
327
328
328
- 型別: ` Array `
329
329
- 預設: ` [] `
330
330
- 合法值: ` ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl'] `
331
331
332
332
設置可調整 modal 大小的方向。
333
333
334
- ## ` minWidth `
334
+ ## ` min-width `
335
335
336
336
- 型別: ` Number `
337
337
- 預設: ` 0 `
338
338
339
- 限制 resizable modal 的 ` minWidth ` 。
340
- ## ` minHeight `
339
+ 限制 resizable modal 的 ` min-width ` 。
340
+ ## ` min-height `
341
341
342
342
- 型別: ` Number `
343
343
- 預設: ` 0 `
344
344
345
- 限制 resizable modal 的 ` minHeight ` 。
346
- ## ` maxWidth `
345
+ 限制 resizable modal 的 ` min-height ` 。
346
+ ## ` max-width `
347
347
348
348
- 型別: ` Number `
349
349
- 預設: ` Infinity `
350
350
351
- 限制 resizable modal 的 ` maxWidth ` 。
352
- ## ` maxHeight `
351
+ 限制 resizable modal 的 ` max-width ` 。
352
+ ## ` max-height `
353
353
354
354
- 型別: ` Number `
355
355
- 預設: ` Infinity `
356
356
357
- 限制 resizable modal 的 ` maxHeight ` 。
357
+ 限制 resizable modal 的 ` max-height ` 。
0 commit comments