vant 2.12.38 → 2.12.39
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/es/datetime-picker/utils.js +4 -0
- package/es/image-preview/ImagePreviewItem.js +8 -3
- package/es/index.js +1 -1
- package/es/nav-bar/index.js +9 -1
- package/es/tabbar/index.js +14 -6
- package/lib/datetime-picker/utils.js +4 -0
- package/lib/image-preview/ImagePreviewItem.js +8 -3
- package/lib/index.js +1 -1
- package/lib/nav-bar/index.js +9 -1
- package/lib/tabbar/index.js +14 -6
- package/lib/vant.js +36 -11
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +120 -120
- package/vetur/tags.json +42 -42
- package/vetur/web-types.json +430 -430
package/package.json
CHANGED
package/vetur/attributes.json
CHANGED
@@ -87,74 +87,6 @@
|
|
87
87
|
"type": "(key, val) => string",
|
88
88
|
"description": "自定义校验函数, 默认值: -"
|
89
89
|
},
|
90
|
-
"van-action-sheet/v-model (value)": {
|
91
|
-
"type": "boolean",
|
92
|
-
"description": "是否显示动作面板, 默认值: `false`"
|
93
|
-
},
|
94
|
-
"van-action-sheet/actions": {
|
95
|
-
"type": "Action[]",
|
96
|
-
"description": "面板选项列表, 默认值: `[]`"
|
97
|
-
},
|
98
|
-
"van-action-sheet/title": {
|
99
|
-
"type": "string",
|
100
|
-
"description": "顶部标题, 默认值: -"
|
101
|
-
},
|
102
|
-
"van-action-sheet/cancel-text": {
|
103
|
-
"type": "string",
|
104
|
-
"description": "取消按钮文字, 默认值: -"
|
105
|
-
},
|
106
|
-
"van-action-sheet/description": {
|
107
|
-
"type": "string",
|
108
|
-
"description": "选项上方的描述信息, 默认值: -"
|
109
|
-
},
|
110
|
-
"van-action-sheet/closeable": {
|
111
|
-
"type": "boolean",
|
112
|
-
"description": "是否显示关闭图标, 默认值: `true`"
|
113
|
-
},
|
114
|
-
"van-action-sheet/close-icon": {
|
115
|
-
"type": "string",
|
116
|
-
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
|
117
|
-
},
|
118
|
-
"van-action-sheet/duration": {
|
119
|
-
"type": "number | string",
|
120
|
-
"description": "动画时长,单位秒, 默认值: `0.3`"
|
121
|
-
},
|
122
|
-
"van-action-sheet/round": {
|
123
|
-
"type": "boolean",
|
124
|
-
"description": "是否显示圆角, 默认值: `true`"
|
125
|
-
},
|
126
|
-
"van-action-sheet/overlay": {
|
127
|
-
"type": "boolean",
|
128
|
-
"description": "是否显示遮罩层, 默认值: `true`"
|
129
|
-
},
|
130
|
-
"van-action-sheet/lock-scroll": {
|
131
|
-
"type": "boolean",
|
132
|
-
"description": "是否锁定背景滚动, 默认值: `true`"
|
133
|
-
},
|
134
|
-
"van-action-sheet/lazy-render": {
|
135
|
-
"type": "boolean",
|
136
|
-
"description": "是否在显示弹层时才渲染节点, 默认值: `true`"
|
137
|
-
},
|
138
|
-
"van-action-sheet/close-on-popstate": {
|
139
|
-
"type": "boolean",
|
140
|
-
"description": "是否在页面回退时自动关闭, 默认值: `false`"
|
141
|
-
},
|
142
|
-
"van-action-sheet/close-on-click-action": {
|
143
|
-
"type": "boolean",
|
144
|
-
"description": "是否在点击选项后关闭, 默认值: `false`"
|
145
|
-
},
|
146
|
-
"van-action-sheet/close-on-click-overlay": {
|
147
|
-
"type": "boolean",
|
148
|
-
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
149
|
-
},
|
150
|
-
"van-action-sheet/safe-area-inset-bottom": {
|
151
|
-
"type": "boolean",
|
152
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
153
|
-
},
|
154
|
-
"van-action-sheet/get-container": {
|
155
|
-
"type": "string | () => Element",
|
156
|
-
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
157
|
-
},
|
158
90
|
"van-address-list/v-model": {
|
159
91
|
"type": "string",
|
160
92
|
"description": "当前选中地址的 id, 默认值: -"
|
@@ -459,6 +391,34 @@
|
|
459
391
|
"type": "string",
|
460
392
|
"description": "选择超过最多可选天数时的提示文案, 默认值: `选择天数不能超过 xx 天`"
|
461
393
|
},
|
394
|
+
"van-cascader/title": {
|
395
|
+
"type": "string",
|
396
|
+
"description": "顶部标题, 默认值: -"
|
397
|
+
},
|
398
|
+
"van-cascader/value": {
|
399
|
+
"type": "string | number",
|
400
|
+
"description": "选中项的值, 默认值: -"
|
401
|
+
},
|
402
|
+
"van-cascader/options": {
|
403
|
+
"type": "Option[]",
|
404
|
+
"description": "可选项数据源, 默认值: `[]`"
|
405
|
+
},
|
406
|
+
"van-cascader/placeholder": {
|
407
|
+
"type": "string",
|
408
|
+
"description": "未选中时的提示文案, 默认值: `请选择`"
|
409
|
+
},
|
410
|
+
"van-cascader/active-color": {
|
411
|
+
"type": "string",
|
412
|
+
"description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
|
413
|
+
},
|
414
|
+
"van-cascader/closeable": {
|
415
|
+
"type": "boolean",
|
416
|
+
"description": "是否显示关闭图标, 默认值: `true`"
|
417
|
+
},
|
418
|
+
"van-cascader/field-names": {
|
419
|
+
"type": "object",
|
420
|
+
"description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
|
421
|
+
},
|
462
422
|
"van-card/thumb": {
|
463
423
|
"type": "string",
|
464
424
|
"description": "左侧图片 URL, 默认值: -"
|
@@ -503,34 +463,6 @@
|
|
503
463
|
"type": "boolean",
|
504
464
|
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
505
465
|
},
|
506
|
-
"van-cascader/title": {
|
507
|
-
"type": "string",
|
508
|
-
"description": "顶部标题, 默认值: -"
|
509
|
-
},
|
510
|
-
"van-cascader/value": {
|
511
|
-
"type": "string | number",
|
512
|
-
"description": "选中项的值, 默认值: -"
|
513
|
-
},
|
514
|
-
"van-cascader/options": {
|
515
|
-
"type": "Option[]",
|
516
|
-
"description": "可选项数据源, 默认值: `[]`"
|
517
|
-
},
|
518
|
-
"van-cascader/placeholder": {
|
519
|
-
"type": "string",
|
520
|
-
"description": "未选中时的提示文案, 默认值: `请选择`"
|
521
|
-
},
|
522
|
-
"van-cascader/active-color": {
|
523
|
-
"type": "string",
|
524
|
-
"description": "选中状态的高亮颜色, 默认值: `#ee0a24`"
|
525
|
-
},
|
526
|
-
"van-cascader/closeable": {
|
527
|
-
"type": "boolean",
|
528
|
-
"description": "是否显示关闭图标, 默认值: `true`"
|
529
|
-
},
|
530
|
-
"van-cascader/field-names": {
|
531
|
-
"type": "object",
|
532
|
-
"description": "自定义 `options` 结构中的字段, 默认值: `{ text: 'text', value: 'value', children: 'children' }`"
|
533
|
-
},
|
534
466
|
"van-cell-group/title": {
|
535
467
|
"type": "string",
|
536
468
|
"description": "分组标题, 默认值: `-`"
|
@@ -615,6 +547,74 @@
|
|
615
547
|
"type": "any",
|
616
548
|
"description": "描述信息额外类名, 默认值: -"
|
617
549
|
},
|
550
|
+
"van-action-sheet/v-model (value)": {
|
551
|
+
"type": "boolean",
|
552
|
+
"description": "是否显示动作面板, 默认值: `false`"
|
553
|
+
},
|
554
|
+
"van-action-sheet/actions": {
|
555
|
+
"type": "Action[]",
|
556
|
+
"description": "面板选项列表, 默认值: `[]`"
|
557
|
+
},
|
558
|
+
"van-action-sheet/title": {
|
559
|
+
"type": "string",
|
560
|
+
"description": "顶部标题, 默认值: -"
|
561
|
+
},
|
562
|
+
"van-action-sheet/cancel-text": {
|
563
|
+
"type": "string",
|
564
|
+
"description": "取消按钮文字, 默认值: -"
|
565
|
+
},
|
566
|
+
"van-action-sheet/description": {
|
567
|
+
"type": "string",
|
568
|
+
"description": "选项上方的描述信息, 默认值: -"
|
569
|
+
},
|
570
|
+
"van-action-sheet/closeable": {
|
571
|
+
"type": "boolean",
|
572
|
+
"description": "是否显示关闭图标, 默认值: `true`"
|
573
|
+
},
|
574
|
+
"van-action-sheet/close-icon": {
|
575
|
+
"type": "string",
|
576
|
+
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
|
577
|
+
},
|
578
|
+
"van-action-sheet/duration": {
|
579
|
+
"type": "number | string",
|
580
|
+
"description": "动画时长,单位秒, 默认值: `0.3`"
|
581
|
+
},
|
582
|
+
"van-action-sheet/round": {
|
583
|
+
"type": "boolean",
|
584
|
+
"description": "是否显示圆角, 默认值: `true`"
|
585
|
+
},
|
586
|
+
"van-action-sheet/overlay": {
|
587
|
+
"type": "boolean",
|
588
|
+
"description": "是否显示遮罩层, 默认值: `true`"
|
589
|
+
},
|
590
|
+
"van-action-sheet/lock-scroll": {
|
591
|
+
"type": "boolean",
|
592
|
+
"description": "是否锁定背景滚动, 默认值: `true`"
|
593
|
+
},
|
594
|
+
"van-action-sheet/lazy-render": {
|
595
|
+
"type": "boolean",
|
596
|
+
"description": "是否在显示弹层时才渲染节点, 默认值: `true`"
|
597
|
+
},
|
598
|
+
"van-action-sheet/close-on-popstate": {
|
599
|
+
"type": "boolean",
|
600
|
+
"description": "是否在页面回退时自动关闭, 默认值: `false`"
|
601
|
+
},
|
602
|
+
"van-action-sheet/close-on-click-action": {
|
603
|
+
"type": "boolean",
|
604
|
+
"description": "是否在点击选项后关闭, 默认值: `false`"
|
605
|
+
},
|
606
|
+
"van-action-sheet/close-on-click-overlay": {
|
607
|
+
"type": "boolean",
|
608
|
+
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
609
|
+
},
|
610
|
+
"van-action-sheet/safe-area-inset-bottom": {
|
611
|
+
"type": "boolean",
|
612
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
613
|
+
},
|
614
|
+
"van-action-sheet/get-container": {
|
615
|
+
"type": "string | () => Element",
|
616
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi), 默认值: -"
|
617
|
+
},
|
618
618
|
"van-checkbox/v-model (value)": {
|
619
619
|
"type": "boolean",
|
620
620
|
"description": "是否为选中状态, 默认值: `false`"
|
@@ -1879,30 +1879,6 @@
|
|
1879
1879
|
"type": "boolean",
|
1880
1880
|
"description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
|
1881
1881
|
},
|
1882
|
-
"van-overlay/show": {
|
1883
|
-
"type": "boolean",
|
1884
|
-
"description": "是否展示遮罩层, 默认值: `false`"
|
1885
|
-
},
|
1886
|
-
"van-overlay/z-index": {
|
1887
|
-
"type": "number | string",
|
1888
|
-
"description": "z-index 层级, 默认值: `1`"
|
1889
|
-
},
|
1890
|
-
"van-overlay/duration": {
|
1891
|
-
"type": "number | string",
|
1892
|
-
"description": "动画时长,单位秒, 默认值: `0.3`"
|
1893
|
-
},
|
1894
|
-
"van-overlay/class-name": {
|
1895
|
-
"type": "string",
|
1896
|
-
"description": "自定义类名, 默认值: -"
|
1897
|
-
},
|
1898
|
-
"van-overlay/custom-style": {
|
1899
|
-
"type": "object",
|
1900
|
-
"description": "自定义样式, 默认值: -"
|
1901
|
-
},
|
1902
|
-
"van-overlay/lock-scroll": {
|
1903
|
-
"type": "boolean",
|
1904
|
-
"description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
|
1905
|
-
},
|
1906
1882
|
"van-number-keyboard/v-model (value)": {
|
1907
1883
|
"type": "string",
|
1908
1884
|
"description": "当前输入值, 默认值: -"
|
@@ -1967,6 +1943,30 @@
|
|
1967
1943
|
"type": "boolean",
|
1968
1944
|
"description": "是否将通过随机顺序展示按键, 默认值: `false`"
|
1969
1945
|
},
|
1946
|
+
"van-overlay/show": {
|
1947
|
+
"type": "boolean",
|
1948
|
+
"description": "是否展示遮罩层, 默认值: `false`"
|
1949
|
+
},
|
1950
|
+
"van-overlay/z-index": {
|
1951
|
+
"type": "number | string",
|
1952
|
+
"description": "z-index 层级, 默认值: `1`"
|
1953
|
+
},
|
1954
|
+
"van-overlay/duration": {
|
1955
|
+
"type": "number | string",
|
1956
|
+
"description": "动画时长,单位秒, 默认值: `0.3`"
|
1957
|
+
},
|
1958
|
+
"van-overlay/class-name": {
|
1959
|
+
"type": "string",
|
1960
|
+
"description": "自定义类名, 默认值: -"
|
1961
|
+
},
|
1962
|
+
"van-overlay/custom-style": {
|
1963
|
+
"type": "object",
|
1964
|
+
"description": "自定义样式, 默认值: -"
|
1965
|
+
},
|
1966
|
+
"van-overlay/lock-scroll": {
|
1967
|
+
"type": "boolean",
|
1968
|
+
"description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
|
1969
|
+
},
|
1970
1970
|
"van-pagination/v-model": {
|
1971
1971
|
"type": "number",
|
1972
1972
|
"description": "当前页码, 默认值: -"
|
package/vetur/tags.json
CHANGED
@@ -25,27 +25,6 @@
|
|
25
25
|
"validator"
|
26
26
|
]
|
27
27
|
},
|
28
|
-
"van-action-sheet": {
|
29
|
-
"attributes": [
|
30
|
-
"v-model (value)",
|
31
|
-
"actions",
|
32
|
-
"title",
|
33
|
-
"cancel-text",
|
34
|
-
"description",
|
35
|
-
"closeable",
|
36
|
-
"close-icon",
|
37
|
-
"duration",
|
38
|
-
"round",
|
39
|
-
"overlay",
|
40
|
-
"lock-scroll",
|
41
|
-
"lazy-render",
|
42
|
-
"close-on-popstate",
|
43
|
-
"close-on-click-action",
|
44
|
-
"close-on-click-overlay",
|
45
|
-
"safe-area-inset-bottom",
|
46
|
-
"get-container"
|
47
|
-
]
|
48
|
-
},
|
49
28
|
"van-address-list": {
|
50
29
|
"attributes": [
|
51
30
|
"v-model",
|
@@ -154,6 +133,17 @@
|
|
154
133
|
"range-prompt"
|
155
134
|
]
|
156
135
|
},
|
136
|
+
"van-cascader": {
|
137
|
+
"attributes": [
|
138
|
+
"title",
|
139
|
+
"value",
|
140
|
+
"options",
|
141
|
+
"placeholder",
|
142
|
+
"active-color",
|
143
|
+
"closeable",
|
144
|
+
"field-names"
|
145
|
+
]
|
146
|
+
},
|
157
147
|
"van-card": {
|
158
148
|
"attributes": [
|
159
149
|
"thumb",
|
@@ -169,17 +159,6 @@
|
|
169
159
|
"lazy-load"
|
170
160
|
]
|
171
161
|
},
|
172
|
-
"van-cascader": {
|
173
|
-
"attributes": [
|
174
|
-
"title",
|
175
|
-
"value",
|
176
|
-
"options",
|
177
|
-
"placeholder",
|
178
|
-
"active-color",
|
179
|
-
"closeable",
|
180
|
-
"field-names"
|
181
|
-
]
|
182
|
-
},
|
183
162
|
"van-cell-group": {
|
184
163
|
"attributes": [
|
185
164
|
"title",
|
@@ -209,6 +188,27 @@
|
|
209
188
|
"label-class"
|
210
189
|
]
|
211
190
|
},
|
191
|
+
"van-action-sheet": {
|
192
|
+
"attributes": [
|
193
|
+
"v-model (value)",
|
194
|
+
"actions",
|
195
|
+
"title",
|
196
|
+
"cancel-text",
|
197
|
+
"description",
|
198
|
+
"closeable",
|
199
|
+
"close-icon",
|
200
|
+
"duration",
|
201
|
+
"round",
|
202
|
+
"overlay",
|
203
|
+
"lock-scroll",
|
204
|
+
"lazy-render",
|
205
|
+
"close-on-popstate",
|
206
|
+
"close-on-click-action",
|
207
|
+
"close-on-click-overlay",
|
208
|
+
"safe-area-inset-bottom",
|
209
|
+
"get-container"
|
210
|
+
]
|
211
|
+
},
|
212
212
|
"van-checkbox": {
|
213
213
|
"attributes": [
|
214
214
|
"v-model (value)",
|
@@ -673,16 +673,6 @@
|
|
673
673
|
"wrapable"
|
674
674
|
]
|
675
675
|
},
|
676
|
-
"van-overlay": {
|
677
|
-
"attributes": [
|
678
|
-
"show",
|
679
|
-
"z-index",
|
680
|
-
"duration",
|
681
|
-
"class-name",
|
682
|
-
"custom-style",
|
683
|
-
"lock-scroll"
|
684
|
-
]
|
685
|
-
},
|
686
676
|
"van-number-keyboard": {
|
687
677
|
"attributes": [
|
688
678
|
"v-model (value)",
|
@@ -703,6 +693,16 @@
|
|
703
693
|
"random-key-order"
|
704
694
|
]
|
705
695
|
},
|
696
|
+
"van-overlay": {
|
697
|
+
"attributes": [
|
698
|
+
"show",
|
699
|
+
"z-index",
|
700
|
+
"duration",
|
701
|
+
"class-name",
|
702
|
+
"custom-style",
|
703
|
+
"lock-scroll"
|
704
|
+
]
|
705
|
+
},
|
706
706
|
"van-pagination": {
|
707
707
|
"attributes": [
|
708
708
|
"v-model",
|