vant 2.12.44 → 2.12.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/README.zh-CN.md +3 -2
- package/changelog.generated.md +11 -0
- package/es/dialog/Dialog.js +41 -8
- package/es/index.js +1 -1
- package/es/locale/lang/vi-VN.js +91 -0
- package/es/sku/utils/sku-helper.js +2 -2
- package/es/tabbar/index.js +1 -1
- package/es/tabbar-item/index.js +10 -8
- package/lib/dialog/Dialog.js +40 -7
- package/lib/index.js +1 -1
- package/lib/locale/lang/vi-VN.js +96 -0
- package/lib/sku/utils/sku-helper.js +2 -2
- package/lib/tabbar/index.js +1 -1
- package/lib/tabbar-item/index.js +10 -8
- package/lib/vant.js +54 -19
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +321 -321
- package/vetur/tags.json +96 -96
- package/vetur/web-types.json +933 -933
package/vetur/attributes.json
CHANGED
@@ -1,4 +1,72 @@
|
|
1
1
|
{
|
2
|
+
"van-action-sheet/v-model (value)": {
|
3
|
+
"type": "boolean",
|
4
|
+
"description": "是否显示动作面板, 默认值: `false`"
|
5
|
+
},
|
6
|
+
"van-action-sheet/actions": {
|
7
|
+
"type": "Action[]",
|
8
|
+
"description": "面板选项列表, 默认值: `[]`"
|
9
|
+
},
|
10
|
+
"van-action-sheet/title": {
|
11
|
+
"type": "string",
|
12
|
+
"description": "顶部标题, 默认值: -"
|
13
|
+
},
|
14
|
+
"van-action-sheet/cancel-text": {
|
15
|
+
"type": "string",
|
16
|
+
"description": "取消按钮文字, 默认值: -"
|
17
|
+
},
|
18
|
+
"van-action-sheet/description": {
|
19
|
+
"type": "string",
|
20
|
+
"description": "选项上方的描述信息, 默认值: -"
|
21
|
+
},
|
22
|
+
"van-action-sheet/closeable": {
|
23
|
+
"type": "boolean",
|
24
|
+
"description": "是否显示关闭图标, 默认值: `true`"
|
25
|
+
},
|
26
|
+
"van-action-sheet/close-icon": {
|
27
|
+
"type": "string",
|
28
|
+
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
|
29
|
+
},
|
30
|
+
"van-action-sheet/duration": {
|
31
|
+
"type": "number | string",
|
32
|
+
"description": "动画时长,单位秒, 默认值: `0.3`"
|
33
|
+
},
|
34
|
+
"van-action-sheet/round": {
|
35
|
+
"type": "boolean",
|
36
|
+
"description": "是否显示圆角, 默认值: `true`"
|
37
|
+
},
|
38
|
+
"van-action-sheet/overlay": {
|
39
|
+
"type": "boolean",
|
40
|
+
"description": "是否显示遮罩层, 默认值: `true`"
|
41
|
+
},
|
42
|
+
"van-action-sheet/lock-scroll": {
|
43
|
+
"type": "boolean",
|
44
|
+
"description": "是否锁定背景滚动, 默认值: `true`"
|
45
|
+
},
|
46
|
+
"van-action-sheet/lazy-render": {
|
47
|
+
"type": "boolean",
|
48
|
+
"description": "是否在显示弹层时才渲染节点, 默认值: `true`"
|
49
|
+
},
|
50
|
+
"van-action-sheet/close-on-popstate": {
|
51
|
+
"type": "boolean",
|
52
|
+
"description": "是否在页面回退时自动关闭, 默认值: `false`"
|
53
|
+
},
|
54
|
+
"van-action-sheet/close-on-click-action": {
|
55
|
+
"type": "boolean",
|
56
|
+
"description": "是否在点击选项后关闭, 默认值: `false`"
|
57
|
+
},
|
58
|
+
"van-action-sheet/close-on-click-overlay": {
|
59
|
+
"type": "boolean",
|
60
|
+
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
61
|
+
},
|
62
|
+
"van-action-sheet/safe-area-inset-bottom": {
|
63
|
+
"type": "boolean",
|
64
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
65
|
+
},
|
66
|
+
"van-action-sheet/get-container": {
|
67
|
+
"type": "string | () => Element",
|
68
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
69
|
+
},
|
2
70
|
"van-area/value": {
|
3
71
|
"type": "string",
|
4
72
|
"description": "当前选中的省市区`code`, 默认值: -"
|
@@ -51,6 +119,34 @@
|
|
51
119
|
"type": "() => boolean",
|
52
120
|
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
53
121
|
},
|
122
|
+
"van-address-list/v-model": {
|
123
|
+
"type": "string",
|
124
|
+
"description": "当前选中地址的 id, 默认值: -"
|
125
|
+
},
|
126
|
+
"van-address-list/list": {
|
127
|
+
"type": "Address[]",
|
128
|
+
"description": "地址列表, 默认值: `[]`"
|
129
|
+
},
|
130
|
+
"van-address-list/disabled-list": {
|
131
|
+
"type": "Address[]",
|
132
|
+
"description": "不可配送地址列表, 默认值: `[]`"
|
133
|
+
},
|
134
|
+
"van-address-list/disabled-text": {
|
135
|
+
"type": "string",
|
136
|
+
"description": "不可配送提示文案, 默认值: -"
|
137
|
+
},
|
138
|
+
"van-address-list/switchable": {
|
139
|
+
"type": "boolean",
|
140
|
+
"description": "是否允许切换地址, 默认值: `true`"
|
141
|
+
},
|
142
|
+
"van-address-list/add-button-text": {
|
143
|
+
"type": "string",
|
144
|
+
"description": "底部按钮文字, 默认值: `新增地址`"
|
145
|
+
},
|
146
|
+
"van-address-list/default-tag-text": {
|
147
|
+
"type": "string",
|
148
|
+
"description": "默认地址标签文字, 默认值: -"
|
149
|
+
},
|
54
150
|
"van-badge/content": {
|
55
151
|
"type": "number | string",
|
56
152
|
"description": "徽标内容, 默认值: -"
|
@@ -67,6 +163,94 @@
|
|
67
163
|
"type": "number | string",
|
68
164
|
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
69
165
|
},
|
166
|
+
"van-address-edit/area-list": {
|
167
|
+
"type": "object",
|
168
|
+
"description": "地区列表, 默认值: -"
|
169
|
+
},
|
170
|
+
"van-address-edit/area-columns-placeholder": {
|
171
|
+
"type": "string[]",
|
172
|
+
"description": "地区选择列占位提示文字, 默认值: `[]`"
|
173
|
+
},
|
174
|
+
"van-address-edit/area-placeholder": {
|
175
|
+
"type": "string",
|
176
|
+
"description": "地区输入框占位提示文字, 默认值: `选择省 / 市 / 区`"
|
177
|
+
},
|
178
|
+
"van-address-edit/address-info": {
|
179
|
+
"type": "AddressInfo",
|
180
|
+
"description": "收货人信息初始值, 默认值: `{}`"
|
181
|
+
},
|
182
|
+
"van-address-edit/search-result": {
|
183
|
+
"type": "SearchResult[]",
|
184
|
+
"description": "详细地址搜索结果, 默认值: `[]`"
|
185
|
+
},
|
186
|
+
"van-address-edit/show-postal": {
|
187
|
+
"type": "boolean",
|
188
|
+
"description": "是否显示邮政编码, 默认值: `false`"
|
189
|
+
},
|
190
|
+
"van-address-edit/show-delete": {
|
191
|
+
"type": "boolean",
|
192
|
+
"description": "是否显示删除按钮, 默认值: `false`"
|
193
|
+
},
|
194
|
+
"van-address-edit/show-set-default": {
|
195
|
+
"type": "boolean",
|
196
|
+
"description": "是否显示默认地址栏, 默认值: `false`"
|
197
|
+
},
|
198
|
+
"van-address-edit/show-search-result": {
|
199
|
+
"type": "boolean",
|
200
|
+
"description": "是否显示搜索结果, 默认值: `false`"
|
201
|
+
},
|
202
|
+
"van-address-edit/show-area": {
|
203
|
+
"type": "boolean",
|
204
|
+
"description": "是否显示地区, 默认值: `true`"
|
205
|
+
},
|
206
|
+
"van-address-edit/show-detail": {
|
207
|
+
"type": "boolean",
|
208
|
+
"description": "是否显示详细地址, 默认值: `true`"
|
209
|
+
},
|
210
|
+
"van-address-edit/disable-area": {
|
211
|
+
"type": "boolean",
|
212
|
+
"description": "是否禁用地区选择, 默认值: `false`"
|
213
|
+
},
|
214
|
+
"van-address-edit/save-button-text": {
|
215
|
+
"type": "string",
|
216
|
+
"description": "保存按钮文字, 默认值: `保存`"
|
217
|
+
},
|
218
|
+
"van-address-edit/delete-button-text": {
|
219
|
+
"type": "string",
|
220
|
+
"description": "删除按钮文字, 默认值: `删除`"
|
221
|
+
},
|
222
|
+
"van-address-edit/detail-rows": {
|
223
|
+
"type": "number | string",
|
224
|
+
"description": "详细地址输入框行数, 默认值: `1`"
|
225
|
+
},
|
226
|
+
"van-address-edit/detail-maxlength": {
|
227
|
+
"type": "number | string",
|
228
|
+
"description": "详细地址最大长度, 默认值: `200`"
|
229
|
+
},
|
230
|
+
"van-address-edit/is-saving": {
|
231
|
+
"type": "boolean",
|
232
|
+
"description": "是否显示保存按钮加载动画, 默认值: `false`"
|
233
|
+
},
|
234
|
+
"van-address-edit/is-deleting": {
|
235
|
+
"type": "boolean",
|
236
|
+
"description": "是否显示删除按钮加载动画, 默认值: `false`"
|
237
|
+
},
|
238
|
+
"van-address-edit/tel-validator": {
|
239
|
+
"type": "string => boolean",
|
240
|
+
"description": "手机号格式校验函数, 默认值: -"
|
241
|
+
},
|
242
|
+
"van-address-edit/tel-maxlength": {
|
243
|
+
"type": "number | string",
|
244
|
+
"description": "手机号最大长度, 默认值: -"
|
245
|
+
},
|
246
|
+
"van-address-edit/postal-validator": {
|
247
|
+
"type": "string => boolean",
|
248
|
+
"description": "邮政编码格式校验函数, 默认值: -"
|
249
|
+
},
|
250
|
+
"van-address-edit/validator": {
|
251
|
+
"type": "(key, val) => string",
|
252
|
+
"description": "自定义校验函数, 默认值: -"
|
253
|
+
},
|
70
254
|
"van-button/type": {
|
71
255
|
"type": "string",
|
72
256
|
"description": "类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
|
@@ -155,93 +339,49 @@
|
|
155
339
|
"type": "boolean",
|
156
340
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
157
341
|
},
|
158
|
-
"van-
|
159
|
-
"type": "object",
|
160
|
-
"description": "地区列表, 默认值: -"
|
161
|
-
},
|
162
|
-
"van-address-edit/area-columns-placeholder": {
|
163
|
-
"type": "string[]",
|
164
|
-
"description": "地区选择列占位提示文字, 默认值: `[]`"
|
165
|
-
},
|
166
|
-
"van-address-edit/area-placeholder": {
|
342
|
+
"van-card/thumb": {
|
167
343
|
"type": "string",
|
168
|
-
"description": "
|
169
|
-
},
|
170
|
-
"van-address-edit/address-info": {
|
171
|
-
"type": "AddressInfo",
|
172
|
-
"description": "收货人信息初始值, 默认值: `{}`"
|
173
|
-
},
|
174
|
-
"van-address-edit/search-result": {
|
175
|
-
"type": "SearchResult[]",
|
176
|
-
"description": "详细地址搜索结果, 默认值: `[]`"
|
177
|
-
},
|
178
|
-
"van-address-edit/show-postal": {
|
179
|
-
"type": "boolean",
|
180
|
-
"description": "是否显示邮政编码, 默认值: `false`"
|
181
|
-
},
|
182
|
-
"van-address-edit/show-delete": {
|
183
|
-
"type": "boolean",
|
184
|
-
"description": "是否显示删除按钮, 默认值: `false`"
|
185
|
-
},
|
186
|
-
"van-address-edit/show-set-default": {
|
187
|
-
"type": "boolean",
|
188
|
-
"description": "是否显示默认地址栏, 默认值: `false`"
|
189
|
-
},
|
190
|
-
"van-address-edit/show-search-result": {
|
191
|
-
"type": "boolean",
|
192
|
-
"description": "是否显示搜索结果, 默认值: `false`"
|
193
|
-
},
|
194
|
-
"van-address-edit/show-area": {
|
195
|
-
"type": "boolean",
|
196
|
-
"description": "是否显示地区, 默认值: `true`"
|
197
|
-
},
|
198
|
-
"van-address-edit/show-detail": {
|
199
|
-
"type": "boolean",
|
200
|
-
"description": "是否显示详细地址, 默认值: `true`"
|
344
|
+
"description": "左侧图片 URL, 默认值: -"
|
201
345
|
},
|
202
|
-
"van-
|
203
|
-
"type": "
|
204
|
-
"description": "
|
346
|
+
"van-card/title": {
|
347
|
+
"type": "string",
|
348
|
+
"description": "标题, 默认值: -"
|
205
349
|
},
|
206
|
-
"van-
|
350
|
+
"van-card/desc": {
|
207
351
|
"type": "string",
|
208
|
-
"description": "
|
352
|
+
"description": "描述, 默认值: -"
|
209
353
|
},
|
210
|
-
"van-
|
354
|
+
"van-card/tag": {
|
211
355
|
"type": "string",
|
212
|
-
"description": "
|
356
|
+
"description": "图片角标, 默认值: -"
|
213
357
|
},
|
214
|
-
"van-
|
358
|
+
"van-card/num": {
|
215
359
|
"type": "number | string",
|
216
|
-
"description": "
|
360
|
+
"description": "商品数量, 默认值: -"
|
217
361
|
},
|
218
|
-
"van-
|
362
|
+
"van-card/price": {
|
219
363
|
"type": "number | string",
|
220
|
-
"description": "
|
364
|
+
"description": "商品价格, 默认值: -"
|
221
365
|
},
|
222
|
-
"van-
|
223
|
-
"type": "
|
224
|
-
"description": "
|
366
|
+
"van-card/origin-price": {
|
367
|
+
"type": "number | string",
|
368
|
+
"description": "商品划线原价, 默认值: -"
|
225
369
|
},
|
226
|
-
"van-
|
370
|
+
"van-card/centered": {
|
227
371
|
"type": "boolean",
|
228
|
-
"description": "
|
229
|
-
},
|
230
|
-
"van-address-edit/tel-validator": {
|
231
|
-
"type": "string => boolean",
|
232
|
-
"description": "手机号格式校验函数, 默认值: -"
|
372
|
+
"description": "内容是否垂直居中, 默认值: `false`"
|
233
373
|
},
|
234
|
-
"van-
|
235
|
-
"type": "
|
236
|
-
"description": "
|
374
|
+
"van-card/currency": {
|
375
|
+
"type": "string",
|
376
|
+
"description": "货币符号, 默认值: `¥`"
|
237
377
|
},
|
238
|
-
"van-
|
239
|
-
"type": "string
|
240
|
-
"description": "
|
378
|
+
"van-card/thumb-link": {
|
379
|
+
"type": "string",
|
380
|
+
"description": "点击左侧图片后跳转的链接地址, 默认值: -"
|
241
381
|
},
|
242
|
-
"van-
|
243
|
-
"type": "
|
244
|
-
"description": "
|
382
|
+
"van-card/lazy-load": {
|
383
|
+
"type": "boolean",
|
384
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
245
385
|
},
|
246
386
|
"van-calendar/type": {
|
247
387
|
"type": "string",
|
@@ -295,213 +435,105 @@
|
|
295
435
|
"type": "boolean",
|
296
436
|
"description": "是否展示日历副标题(年月), 默认值: `true`"
|
297
437
|
},
|
298
|
-
"van-calendar/show-confirm": {
|
299
|
-
"type": "boolean",
|
300
|
-
"description": "是否展示确认按钮, 默认值: `true`"
|
301
|
-
},
|
302
|
-
"van-calendar/readonly": {
|
303
|
-
"type": "boolean",
|
304
|
-
"description": "是否为只读状态,只读状态下不能选择日期, 默认值: `false`"
|
305
|
-
},
|
306
|
-
"van-calendar/confirm-text": {
|
307
|
-
"type": "string",
|
308
|
-
"description": "确认按钮的文字, 默认值: `确定`"
|
309
|
-
},
|
310
|
-
"van-calendar/confirm-disabled-text": {
|
311
|
-
"type": "string",
|
312
|
-
"description": "确认按钮处于禁用状态时的文字, 默认值: `确定`"
|
313
|
-
},
|
314
|
-
"van-calendar/first-day-of-week": {
|
315
|
-
"type": "0-6",
|
316
|
-
"description": "设置周起始日, 默认值: `0`"
|
317
|
-
},
|
318
|
-
"van-poppable/v-model": {
|
319
|
-
"type": "boolean",
|
320
|
-
"description": "是否显示日历弹窗, 默认值: `false`"
|
321
|
-
},
|
322
|
-
"van-poppable/position": {
|
323
|
-
"type": "string",
|
324
|
-
"description": "弹出位置,可选值为 `top` `right` `left`, 默认值: `bottom`"
|
325
|
-
},
|
326
|
-
"van-poppable/round": {
|
327
|
-
"type": "boolean",
|
328
|
-
"description": "是否显示圆角弹窗, 默认值: `true`"
|
329
|
-
},
|
330
|
-
"van-poppable/close-on-popstate": {
|
331
|
-
"type": "boolean",
|
332
|
-
"description": "是否在页面回退时自动关闭, 默认值: `true`"
|
333
|
-
},
|
334
|
-
"van-poppable/close-on-click-overlay": {
|
335
|
-
"type": "boolean",
|
336
|
-
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
337
|
-
},
|
338
|
-
"van-poppable/safe-area-inset-bottom": {
|
339
|
-
"type": "boolean",
|
340
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
341
|
-
},
|
342
|
-
"van-poppable/get-container": {
|
343
|
-
"type": "string | () => Element",
|
344
|
-
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
345
|
-
},
|
346
|
-
"van-range/max-range": {
|
347
|
-
"type": "number | string",
|
348
|
-
"description": "日期区间最多可选天数, 默认值: 无限制"
|
349
|
-
},
|
350
|
-
"van-range/range-prompt": {
|
351
|
-
"type": "string",
|
352
|
-
"description": "范围选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
|
353
|
-
},
|
354
|
-
"van-range/allow-same-day": {
|
355
|
-
"type": "boolean",
|
356
|
-
"description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
|
357
|
-
},
|
358
|
-
"van-multiple/max-range": {
|
359
|
-
"type": "number | string",
|
360
|
-
"description": "日期最多可选天数, 默认值: 无限制"
|
361
|
-
},
|
362
|
-
"van-multiple/range-prompt": {
|
363
|
-
"type": "string",
|
364
|
-
"description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
|
365
|
-
},
|
366
|
-
"van-action-sheet/v-model (value)": {
|
367
|
-
"type": "boolean",
|
368
|
-
"description": "是否显示动作面板, 默认值: `false`"
|
369
|
-
},
|
370
|
-
"van-action-sheet/actions": {
|
371
|
-
"type": "Action[]",
|
372
|
-
"description": "面板选项列表, 默认值: `[]`"
|
373
|
-
},
|
374
|
-
"van-action-sheet/title": {
|
375
|
-
"type": "string",
|
376
|
-
"description": "顶部标题, 默认值: -"
|
377
|
-
},
|
378
|
-
"van-action-sheet/cancel-text": {
|
379
|
-
"type": "string",
|
380
|
-
"description": "取消按钮文字, 默认值: -"
|
381
|
-
},
|
382
|
-
"van-action-sheet/description": {
|
383
|
-
"type": "string",
|
384
|
-
"description": "选项上方的描述信息, 默认值: -"
|
385
|
-
},
|
386
|
-
"van-action-sheet/closeable": {
|
387
|
-
"type": "boolean",
|
388
|
-
"description": "是否显示关闭图标, 默认值: `true`"
|
389
|
-
},
|
390
|
-
"van-action-sheet/close-icon": {
|
391
|
-
"type": "string",
|
392
|
-
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
|
393
|
-
},
|
394
|
-
"van-action-sheet/duration": {
|
395
|
-
"type": "number | string",
|
396
|
-
"description": "动画时长,单位秒, 默认值: `0.3`"
|
397
|
-
},
|
398
|
-
"van-action-sheet/round": {
|
399
|
-
"type": "boolean",
|
400
|
-
"description": "是否显示圆角, 默认值: `true`"
|
401
|
-
},
|
402
|
-
"van-action-sheet/overlay": {
|
438
|
+
"van-calendar/show-confirm": {
|
403
439
|
"type": "boolean",
|
404
|
-
"description": "
|
440
|
+
"description": "是否展示确认按钮, 默认值: `true`"
|
405
441
|
},
|
406
|
-
"van-
|
442
|
+
"van-calendar/readonly": {
|
407
443
|
"type": "boolean",
|
408
|
-
"description": "
|
444
|
+
"description": "是否为只读状态,只读状态下不能选择日期, 默认值: `false`"
|
409
445
|
},
|
410
|
-
"van-
|
446
|
+
"van-calendar/confirm-text": {
|
447
|
+
"type": "string",
|
448
|
+
"description": "确认按钮的文字, 默认值: `确定`"
|
449
|
+
},
|
450
|
+
"van-calendar/confirm-disabled-text": {
|
451
|
+
"type": "string",
|
452
|
+
"description": "确认按钮处于禁用状态时的文字, 默认值: `确定`"
|
453
|
+
},
|
454
|
+
"van-calendar/first-day-of-week": {
|
455
|
+
"type": "0-6",
|
456
|
+
"description": "设置周起始日, 默认值: `0`"
|
457
|
+
},
|
458
|
+
"van-poppable/v-model": {
|
411
459
|
"type": "boolean",
|
412
|
-
"description": "
|
460
|
+
"description": "是否显示日历弹窗, 默认值: `false`"
|
413
461
|
},
|
414
|
-
"van-
|
462
|
+
"van-poppable/position": {
|
463
|
+
"type": "string",
|
464
|
+
"description": "弹出位置,可选值为 `top` `right` `left`, 默认值: `bottom`"
|
465
|
+
},
|
466
|
+
"van-poppable/round": {
|
415
467
|
"type": "boolean",
|
416
|
-
"description": "
|
468
|
+
"description": "是否显示圆角弹窗, 默认值: `true`"
|
417
469
|
},
|
418
|
-
"van-
|
470
|
+
"van-poppable/close-on-popstate": {
|
419
471
|
"type": "boolean",
|
420
|
-
"description": "
|
472
|
+
"description": "是否在页面回退时自动关闭, 默认值: `true`"
|
421
473
|
},
|
422
|
-
"van-
|
474
|
+
"van-poppable/close-on-click-overlay": {
|
423
475
|
"type": "boolean",
|
424
476
|
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
425
477
|
},
|
426
|
-
"van-
|
478
|
+
"van-poppable/safe-area-inset-bottom": {
|
427
479
|
"type": "boolean",
|
428
480
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
429
481
|
},
|
430
|
-
"van-
|
482
|
+
"van-poppable/get-container": {
|
431
483
|
"type": "string | () => Element",
|
432
484
|
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
433
485
|
},
|
434
|
-
"van-
|
435
|
-
"type": "string",
|
436
|
-
"description": "
|
437
|
-
},
|
438
|
-
"van-address-list/list": {
|
439
|
-
"type": "Address[]",
|
440
|
-
"description": "地址列表, 默认值: `[]`"
|
441
|
-
},
|
442
|
-
"van-address-list/disabled-list": {
|
443
|
-
"type": "Address[]",
|
444
|
-
"description": "不可配送地址列表, 默认值: `[]`"
|
486
|
+
"van-range/max-range": {
|
487
|
+
"type": "number | string",
|
488
|
+
"description": "日期区间最多可选天数, 默认值: 无限制"
|
445
489
|
},
|
446
|
-
"van-
|
490
|
+
"van-range/range-prompt": {
|
447
491
|
"type": "string",
|
448
|
-
"description": "
|
492
|
+
"description": "范围选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
|
449
493
|
},
|
450
|
-
"van-
|
494
|
+
"van-range/allow-same-day": {
|
451
495
|
"type": "boolean",
|
452
|
-
"description": "
|
496
|
+
"description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
|
453
497
|
},
|
454
|
-
"van-
|
455
|
-
"type": "string",
|
456
|
-
"description": "
|
498
|
+
"van-multiple/max-range": {
|
499
|
+
"type": "number | string",
|
500
|
+
"description": "日期最多可选天数, 默认值: 无限制"
|
457
501
|
},
|
458
|
-
"van-
|
502
|
+
"van-multiple/range-prompt": {
|
459
503
|
"type": "string",
|
460
|
-
"description": "
|
504
|
+
"description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
|
461
505
|
},
|
462
|
-
"van-
|
506
|
+
"van-cascader/title": {
|
463
507
|
"type": "string",
|
464
|
-
"description": "
|
508
|
+
"description": "顶部标题, 默认值: -"
|
465
509
|
},
|
466
|
-
"van-
|
467
|
-
"type": "string",
|
468
|
-
"description": "
|
510
|
+
"van-cascader/value": {
|
511
|
+
"type": "string | number",
|
512
|
+
"description": "选中项的值, 默认值: -"
|
469
513
|
},
|
470
|
-
"van-
|
471
|
-
"type": "
|
472
|
-
"description": "
|
514
|
+
"van-cascader/options": {
|
515
|
+
"type": "Option[]",
|
516
|
+
"description": "可选项数据源, 默认值: `[]`"
|
473
517
|
},
|
474
|
-
"van-
|
518
|
+
"van-cascader/placeholder": {
|
475
519
|
"type": "string",
|
476
|
-
"description": "
|
477
|
-
},
|
478
|
-
"van-card/num": {
|
479
|
-
"type": "number | string",
|
480
|
-
"description": "商品数量, 默认值: -"
|
481
|
-
},
|
482
|
-
"van-card/price": {
|
483
|
-
"type": "number | string",
|
484
|
-
"description": "商品价格, 默认值: -"
|
485
|
-
},
|
486
|
-
"van-card/origin-price": {
|
487
|
-
"type": "number | string",
|
488
|
-
"description": "商品划线原价, 默认值: -"
|
489
|
-
},
|
490
|
-
"van-card/centered": {
|
491
|
-
"type": "boolean",
|
492
|
-
"description": "内容是否垂直居中, 默认值: `false`"
|
520
|
+
"description": "未选中时的提示文案, 默认值: `请选择`"
|
493
521
|
},
|
494
|
-
"van-
|
522
|
+
"van-cascader/active-color": {
|
495
523
|
"type": "string",
|
496
|
-
"description": "
|
524
|
+
"description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
|
497
525
|
},
|
498
|
-
"van-
|
499
|
-
"type": "
|
500
|
-
"description": "
|
526
|
+
"van-cascader/closeable": {
|
527
|
+
"type": "boolean",
|
528
|
+
"description": "是否显示关闭图标, 默认值: `true`"
|
501
529
|
},
|
502
|
-
"van-
|
530
|
+
"van-cascader/show-header": {
|
503
531
|
"type": "boolean",
|
504
|
-
"description": "
|
532
|
+
"description": "是否展示标题栏, 默认值: `true`"
|
533
|
+
},
|
534
|
+
"van-cascader/field-names": {
|
535
|
+
"type": "object",
|
536
|
+
"description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
|
505
537
|
},
|
506
538
|
"van-cell-group/title": {
|
507
539
|
"type": "string",
|
@@ -587,38 +619,6 @@
|
|
587
619
|
"type": "any",
|
588
620
|
"description": "描述信息额外类名, 默认值: -"
|
589
621
|
},
|
590
|
-
"van-cascader/title": {
|
591
|
-
"type": "string",
|
592
|
-
"description": "顶部标题, 默认值: -"
|
593
|
-
},
|
594
|
-
"van-cascader/value": {
|
595
|
-
"type": "string | number",
|
596
|
-
"description": "选中项的值, 默认值: -"
|
597
|
-
},
|
598
|
-
"van-cascader/options": {
|
599
|
-
"type": "Option[]",
|
600
|
-
"description": "可选项数据源, 默认值: `[]`"
|
601
|
-
},
|
602
|
-
"van-cascader/placeholder": {
|
603
|
-
"type": "string",
|
604
|
-
"description": "未选中时的提示文案, 默认值: `请选择`"
|
605
|
-
},
|
606
|
-
"van-cascader/active-color": {
|
607
|
-
"type": "string",
|
608
|
-
"description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
|
609
|
-
},
|
610
|
-
"van-cascader/closeable": {
|
611
|
-
"type": "boolean",
|
612
|
-
"description": "是否显示关闭图标, 默认值: `true`"
|
613
|
-
},
|
614
|
-
"van-cascader/show-header": {
|
615
|
-
"type": "boolean",
|
616
|
-
"description": "是否展示标题栏, 默认值: `true`"
|
617
|
-
},
|
618
|
-
"van-cascader/field-names": {
|
619
|
-
"type": "object",
|
620
|
-
"description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
|
621
|
-
},
|
622
622
|
"van-checkbox/v-model (value)": {
|
623
623
|
"type": "boolean",
|
624
624
|
"description": "是否为选中状态, 默认值: `false`"
|
@@ -2947,54 +2947,6 @@
|
|
2947
2947
|
"type": "boolean",
|
2948
2948
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
2949
2949
|
},
|
2950
|
-
"van-swipe/autoplay": {
|
2951
|
-
"type": "number | string",
|
2952
|
-
"description": "自动轮播间隔,单位为 ms, 默认值: -"
|
2953
|
-
},
|
2954
|
-
"van-swipe/duration": {
|
2955
|
-
"type": "number | string",
|
2956
|
-
"description": "动画时长,单位为 ms, 默认值: `500`"
|
2957
|
-
},
|
2958
|
-
"van-swipe/initial-swipe": {
|
2959
|
-
"type": "number | string",
|
2960
|
-
"description": "初始位置索引值, 默认值: `0`"
|
2961
|
-
},
|
2962
|
-
"van-swipe/width": {
|
2963
|
-
"type": "number | string",
|
2964
|
-
"description": "滑块宽度,单位为`px`, 默认值: `auto`"
|
2965
|
-
},
|
2966
|
-
"van-swipe/height": {
|
2967
|
-
"type": "number | string",
|
2968
|
-
"description": "滑块高度,单位为`px`, 默认值: `auto`"
|
2969
|
-
},
|
2970
|
-
"van-swipe/loop": {
|
2971
|
-
"type": "boolean",
|
2972
|
-
"description": "是否开启循环播放, 默认值: `true`"
|
2973
|
-
},
|
2974
|
-
"van-swipe/show-indicators": {
|
2975
|
-
"type": "boolean",
|
2976
|
-
"description": "是否显示指示器, 默认值: `true`"
|
2977
|
-
},
|
2978
|
-
"van-swipe/vertical": {
|
2979
|
-
"type": "boolean",
|
2980
|
-
"description": "是否为纵向滚动, 默认值: `false`"
|
2981
|
-
},
|
2982
|
-
"van-swipe/touchable": {
|
2983
|
-
"type": "boolean",
|
2984
|
-
"description": "是否可以通过手势滑动, 默认值: `true`"
|
2985
|
-
},
|
2986
|
-
"van-swipe/stop-propagation": {
|
2987
|
-
"type": "boolean",
|
2988
|
-
"description": "是否阻止滑动事件冒泡, 默认值: `true`"
|
2989
|
-
},
|
2990
|
-
"van-swipe/lazy-render": {
|
2991
|
-
"type": "boolean",
|
2992
|
-
"description": "是否延迟渲染未展示的轮播, 默认值: `false`"
|
2993
|
-
},
|
2994
|
-
"van-swipe/indicator-color": {
|
2995
|
-
"type": "string",
|
2996
|
-
"description": "指示器颜色, 默认值: `#1989fa`"
|
2997
|
-
},
|
2998
2950
|
"van-swipe-cell/name": {
|
2999
2951
|
"type": "number | string",
|
3000
2952
|
"description": "标识符,可以在事件参数中获取到, 默认值: -"
|
@@ -3095,6 +3047,54 @@
|
|
3095
3047
|
"type": "any",
|
3096
3048
|
"description": "关闭时的值, 默认值: `false`"
|
3097
3049
|
},
|
3050
|
+
"van-swipe/autoplay": {
|
3051
|
+
"type": "number | string",
|
3052
|
+
"description": "自动轮播间隔,单位为 ms, 默认值: -"
|
3053
|
+
},
|
3054
|
+
"van-swipe/duration": {
|
3055
|
+
"type": "number | string",
|
3056
|
+
"description": "动画时长,单位为 ms, 默认值: `500`"
|
3057
|
+
},
|
3058
|
+
"van-swipe/initial-swipe": {
|
3059
|
+
"type": "number | string",
|
3060
|
+
"description": "初始位置索引值, 默认值: `0`"
|
3061
|
+
},
|
3062
|
+
"van-swipe/width": {
|
3063
|
+
"type": "number | string",
|
3064
|
+
"description": "滑块宽度,单位为`px`, 默认值: `auto`"
|
3065
|
+
},
|
3066
|
+
"van-swipe/height": {
|
3067
|
+
"type": "number | string",
|
3068
|
+
"description": "滑块高度,单位为`px`, 默认值: `auto`"
|
3069
|
+
},
|
3070
|
+
"van-swipe/loop": {
|
3071
|
+
"type": "boolean",
|
3072
|
+
"description": "是否开启循环播放, 默认值: `true`"
|
3073
|
+
},
|
3074
|
+
"van-swipe/show-indicators": {
|
3075
|
+
"type": "boolean",
|
3076
|
+
"description": "是否显示指示器, 默认值: `true`"
|
3077
|
+
},
|
3078
|
+
"van-swipe/vertical": {
|
3079
|
+
"type": "boolean",
|
3080
|
+
"description": "是否为纵向滚动, 默认值: `false`"
|
3081
|
+
},
|
3082
|
+
"van-swipe/touchable": {
|
3083
|
+
"type": "boolean",
|
3084
|
+
"description": "是否可以通过手势滑动, 默认值: `true`"
|
3085
|
+
},
|
3086
|
+
"van-swipe/stop-propagation": {
|
3087
|
+
"type": "boolean",
|
3088
|
+
"description": "是否阻止滑动事件冒泡, 默认值: `true`"
|
3089
|
+
},
|
3090
|
+
"van-swipe/lazy-render": {
|
3091
|
+
"type": "boolean",
|
3092
|
+
"description": "是否延迟渲染未展示的轮播, 默认值: `false`"
|
3093
|
+
},
|
3094
|
+
"van-swipe/indicator-color": {
|
3095
|
+
"type": "string",
|
3096
|
+
"description": "指示器颜色, 默认值: `#1989fa`"
|
3097
|
+
},
|
3098
3098
|
"van-tabs/v-model": {
|
3099
3099
|
"type": "number | string",
|
3100
3100
|
"description": "绑定当前选中标签的标识符, 默认值: `0`"
|