vant 3.2.7 → 3.2.8
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/cascader/Cascader.js +7 -3
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/index.d.ts +1 -1
- package/es/password-input/PasswordInput.d.ts +20 -0
- package/es/password-input/PasswordInput.js +10 -9
- package/es/password-input/index.d.ts +1 -0
- package/es/progress/Progress.js +2 -2
- package/es/submit-bar/SubmitBar.d.ts +4 -3
- package/es/submit-bar/index.d.ts +3 -2
- package/es/tabs/Tabs.js +7 -6
- package/lib/cascader/Cascader.js +7 -3
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/password-input/PasswordInput.d.ts +20 -0
- package/lib/password-input/PasswordInput.js +10 -9
- package/lib/password-input/index.d.ts +1 -0
- package/lib/progress/Progress.js +2 -2
- package/lib/submit-bar/SubmitBar.d.ts +4 -3
- package/lib/submit-bar/index.d.ts +3 -2
- package/lib/tabs/Tabs.js +7 -6
- package/lib/vant.es.js +234 -159
- package/lib/vant.es.min.js +234 -159
- package/lib/vant.js +234 -159
- package/lib/vant.min.js +1 -1
- package/package.json +7 -4
- package/vetur/attributes.json +344 -344
- package/vetur/tags.json +119 -119
- package/vetur/web-types.json +1149 -1145
package/vetur/attributes.json
CHANGED
@@ -1,87 +1,4 @@
|
|
1
1
|
{
|
2
|
-
"van-action-bar/safe-area-inset-bottom": {
|
3
|
-
"type": "boolean",
|
4
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
5
|
-
},
|
6
|
-
"van-action-bar-icon/text": {
|
7
|
-
"type": "string",
|
8
|
-
"description": "按钮文字, 默认值: -"
|
9
|
-
},
|
10
|
-
"van-action-bar-icon/icon": {
|
11
|
-
"type": "string",
|
12
|
-
"description": "图标, 默认值: -"
|
13
|
-
},
|
14
|
-
"van-action-bar-icon/color": {
|
15
|
-
"type": "string",
|
16
|
-
"description": "图标颜色, 默认值: `#323233`"
|
17
|
-
},
|
18
|
-
"van-action-bar-icon/icon-class": {
|
19
|
-
"type": "string | Array \\",
|
20
|
-
"description": "图标额外类名, 默认值: object_",
|
21
|
-
"options": [
|
22
|
-
"-"
|
23
|
-
]
|
24
|
-
},
|
25
|
-
"van-action-bar-icon/icon-prefix": {
|
26
|
-
"type": "string",
|
27
|
-
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
28
|
-
},
|
29
|
-
"van-action-bar-icon/dot": {
|
30
|
-
"type": "boolean",
|
31
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
32
|
-
},
|
33
|
-
"van-action-bar-icon/badge": {
|
34
|
-
"type": "number | string",
|
35
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
36
|
-
},
|
37
|
-
"van-action-bar-icon/url": {
|
38
|
-
"type": "string",
|
39
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
40
|
-
},
|
41
|
-
"van-action-bar-icon/to": {
|
42
|
-
"type": "string | object",
|
43
|
-
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
44
|
-
},
|
45
|
-
"van-action-bar-icon/replace": {
|
46
|
-
"type": "boolean",
|
47
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
48
|
-
},
|
49
|
-
"van-action-bar-button/text": {
|
50
|
-
"type": "string",
|
51
|
-
"description": "按钮文字, 默认值: -"
|
52
|
-
},
|
53
|
-
"van-action-bar-button/type": {
|
54
|
-
"type": "string",
|
55
|
-
"description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
|
56
|
-
},
|
57
|
-
"van-action-bar-button/color": {
|
58
|
-
"type": "string",
|
59
|
-
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
|
60
|
-
},
|
61
|
-
"van-action-bar-button/icon": {
|
62
|
-
"type": "string",
|
63
|
-
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
64
|
-
},
|
65
|
-
"van-action-bar-button/disabled": {
|
66
|
-
"type": "boolean",
|
67
|
-
"description": "是否禁用按钮, 默认值: `false`"
|
68
|
-
},
|
69
|
-
"van-action-bar-button/loading": {
|
70
|
-
"type": "boolean",
|
71
|
-
"description": "是否显示为加载状态, 默认值: `false`"
|
72
|
-
},
|
73
|
-
"van-action-bar-button/url": {
|
74
|
-
"type": "string",
|
75
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
76
|
-
},
|
77
|
-
"van-action-bar-button/to": {
|
78
|
-
"type": "string | object",
|
79
|
-
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
80
|
-
},
|
81
|
-
"van-action-bar-button/replace": {
|
82
|
-
"type": "boolean",
|
83
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
84
|
-
},
|
85
2
|
"van-action-sheet/v-model:show": {
|
86
3
|
"type": "boolean",
|
87
4
|
"description": "是否显示动作面板, 默认值: `false`"
|
@@ -165,33 +82,88 @@
|
|
165
82
|
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
166
83
|
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
167
84
|
},
|
168
|
-
"van-
|
85
|
+
"van-action-bar/safe-area-inset-bottom": {
|
86
|
+
"type": "boolean",
|
87
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
88
|
+
},
|
89
|
+
"van-action-bar-icon/text": {
|
169
90
|
"type": "string",
|
170
|
-
"description": "
|
91
|
+
"description": "按钮文字, 默认值: -"
|
171
92
|
},
|
172
|
-
"van-
|
173
|
-
"type": "
|
174
|
-
"description": "
|
93
|
+
"van-action-bar-icon/icon": {
|
94
|
+
"type": "string",
|
95
|
+
"description": "图标, 默认值: -"
|
175
96
|
},
|
176
|
-
"van-
|
177
|
-
"type": "
|
178
|
-
"description": "
|
97
|
+
"van-action-bar-icon/color": {
|
98
|
+
"type": "string",
|
99
|
+
"description": "图标颜色, 默认值: `#323233`"
|
179
100
|
},
|
180
|
-
"van-
|
101
|
+
"van-action-bar-icon/icon-class": {
|
102
|
+
"type": "string | Array \\",
|
103
|
+
"description": "图标额外类名, 默认值: object_",
|
104
|
+
"options": [
|
105
|
+
"-"
|
106
|
+
]
|
107
|
+
},
|
108
|
+
"van-action-bar-icon/icon-prefix": {
|
181
109
|
"type": "string",
|
182
|
-
"description": "
|
110
|
+
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
183
111
|
},
|
184
|
-
"van-
|
112
|
+
"van-action-bar-icon/dot": {
|
185
113
|
"type": "boolean",
|
186
|
-
"description": "
|
114
|
+
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
187
115
|
},
|
188
|
-
"van-
|
116
|
+
"van-action-bar-icon/badge": {
|
117
|
+
"type": "number | string",
|
118
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
119
|
+
},
|
120
|
+
"van-action-bar-icon/url": {
|
189
121
|
"type": "string",
|
190
|
-
"description": "
|
122
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
191
123
|
},
|
192
|
-
"van-
|
124
|
+
"van-action-bar-icon/to": {
|
125
|
+
"type": "string | object",
|
126
|
+
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
127
|
+
},
|
128
|
+
"van-action-bar-icon/replace": {
|
129
|
+
"type": "boolean",
|
130
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
131
|
+
},
|
132
|
+
"van-action-bar-button/text": {
|
193
133
|
"type": "string",
|
194
|
-
"description": "
|
134
|
+
"description": "按钮文字, 默认值: -"
|
135
|
+
},
|
136
|
+
"van-action-bar-button/type": {
|
137
|
+
"type": "string",
|
138
|
+
"description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
|
139
|
+
},
|
140
|
+
"van-action-bar-button/color": {
|
141
|
+
"type": "string",
|
142
|
+
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
|
143
|
+
},
|
144
|
+
"van-action-bar-button/icon": {
|
145
|
+
"type": "string",
|
146
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
147
|
+
},
|
148
|
+
"van-action-bar-button/disabled": {
|
149
|
+
"type": "boolean",
|
150
|
+
"description": "是否禁用按钮, 默认值: `false`"
|
151
|
+
},
|
152
|
+
"van-action-bar-button/loading": {
|
153
|
+
"type": "boolean",
|
154
|
+
"description": "是否显示为加载状态, 默认值: `false`"
|
155
|
+
},
|
156
|
+
"van-action-bar-button/url": {
|
157
|
+
"type": "string",
|
158
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
159
|
+
},
|
160
|
+
"van-action-bar-button/to": {
|
161
|
+
"type": "string | object",
|
162
|
+
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
163
|
+
},
|
164
|
+
"van-action-bar-button/replace": {
|
165
|
+
"type": "boolean",
|
166
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
195
167
|
},
|
196
168
|
"van-address-edit/area-list": {
|
197
169
|
"type": "object",
|
@@ -281,6 +253,61 @@
|
|
281
253
|
"type": "(key, val) => string",
|
282
254
|
"description": "自定义校验函数, 默认值: -"
|
283
255
|
},
|
256
|
+
"van-badge/content": {
|
257
|
+
"type": "number | string",
|
258
|
+
"description": "徽标内容, 默认值: -"
|
259
|
+
},
|
260
|
+
"van-badge/color": {
|
261
|
+
"type": "string",
|
262
|
+
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
263
|
+
},
|
264
|
+
"van-badge/dot": {
|
265
|
+
"type": "boolean",
|
266
|
+
"description": "是否展示为小红点, 默认值: `false`"
|
267
|
+
},
|
268
|
+
"van-badge/max": {
|
269
|
+
"type": "number | string",
|
270
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
271
|
+
},
|
272
|
+
"van-badge/offset": {
|
273
|
+
"type": "[number | string, number \\",
|
274
|
+
"description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`, 默认值: string]_",
|
275
|
+
"options": [
|
276
|
+
"-"
|
277
|
+
]
|
278
|
+
},
|
279
|
+
"van-badge/show-zero": {
|
280
|
+
"type": "boolean",
|
281
|
+
"description": "当 content 为数字 0 时,是否展示徽标, 默认值: `true`"
|
282
|
+
},
|
283
|
+
"van-address-list/v-model": {
|
284
|
+
"type": "string",
|
285
|
+
"description": "当前选中地址的 id, 默认值: -"
|
286
|
+
},
|
287
|
+
"van-address-list/list": {
|
288
|
+
"type": "AddressListAddress[]",
|
289
|
+
"description": "地址列表, 默认值: `[]`"
|
290
|
+
},
|
291
|
+
"van-address-list/disabled-list": {
|
292
|
+
"type": "AddressListAddress[]",
|
293
|
+
"description": "不可配送地址列表, 默认值: `[]`"
|
294
|
+
},
|
295
|
+
"van-address-list/disabled-text": {
|
296
|
+
"type": "string",
|
297
|
+
"description": "不可配送提示文案, 默认值: -"
|
298
|
+
},
|
299
|
+
"van-address-list/switchable": {
|
300
|
+
"type": "boolean",
|
301
|
+
"description": "是否允许切换地址, 默认值: `true`"
|
302
|
+
},
|
303
|
+
"van-address-list/add-button-text": {
|
304
|
+
"type": "string",
|
305
|
+
"description": "底部按钮文字, 默认值: `新增地址`"
|
306
|
+
},
|
307
|
+
"van-address-list/default-tag-text": {
|
308
|
+
"type": "string",
|
309
|
+
"description": "默认地址标签文字, 默认值: -"
|
310
|
+
},
|
284
311
|
"van-area/value": {
|
285
312
|
"type": "string",
|
286
313
|
"description": "当前选中项对应的地区码, 默认值: -"
|
@@ -333,33 +360,6 @@
|
|
333
360
|
"type": "() => boolean",
|
334
361
|
"description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
335
362
|
},
|
336
|
-
"van-badge/content": {
|
337
|
-
"type": "number | string",
|
338
|
-
"description": "徽标内容, 默认值: -"
|
339
|
-
},
|
340
|
-
"van-badge/color": {
|
341
|
-
"type": "string",
|
342
|
-
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
343
|
-
},
|
344
|
-
"van-badge/dot": {
|
345
|
-
"type": "boolean",
|
346
|
-
"description": "是否展示为小红点, 默认值: `false`"
|
347
|
-
},
|
348
|
-
"van-badge/max": {
|
349
|
-
"type": "number | string",
|
350
|
-
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
351
|
-
},
|
352
|
-
"van-badge/offset": {
|
353
|
-
"type": "[number | string, number \\",
|
354
|
-
"description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`, 默认值: string]_",
|
355
|
-
"options": [
|
356
|
-
"-"
|
357
|
-
]
|
358
|
-
},
|
359
|
-
"van-badge/show-zero": {
|
360
|
-
"type": "boolean",
|
361
|
-
"description": "当 content 为数字 0 时,是否展示徽标, 默认值: `true`"
|
362
|
-
},
|
363
363
|
"van-button/type": {
|
364
364
|
"type": "string",
|
365
365
|
"description": "类型,可选值为 `primary` `success` `warning` `danger`, 默认值: `default`"
|
@@ -747,66 +747,6 @@
|
|
747
747
|
"-"
|
748
748
|
]
|
749
749
|
},
|
750
|
-
"van-checkbox/v-model": {
|
751
|
-
"type": "boolean",
|
752
|
-
"description": "是否为选中状态, 默认值: `false`"
|
753
|
-
},
|
754
|
-
"van-checkbox/name": {
|
755
|
-
"type": "any",
|
756
|
-
"description": "标识符, 默认值: -"
|
757
|
-
},
|
758
|
-
"van-checkbox/shape": {
|
759
|
-
"type": "string",
|
760
|
-
"description": "形状,可选值为 `square`, 默认值: `round`"
|
761
|
-
},
|
762
|
-
"van-checkbox/disabled": {
|
763
|
-
"type": "boolean",
|
764
|
-
"description": "是否禁用复选框, 默认值: `false`"
|
765
|
-
},
|
766
|
-
"van-checkbox/label-disabled": {
|
767
|
-
"type": "boolean",
|
768
|
-
"description": "是否禁用复选框文本点击, 默认值: `false`"
|
769
|
-
},
|
770
|
-
"van-checkbox/label-position": {
|
771
|
-
"type": "string",
|
772
|
-
"description": "文本位置,可选值为 `left`, 默认值: `right`"
|
773
|
-
},
|
774
|
-
"van-checkbox/icon-size": {
|
775
|
-
"type": "number | string",
|
776
|
-
"description": "图标大小,默认单位为 `px`, 默认值: `20px`"
|
777
|
-
},
|
778
|
-
"van-checkbox/checked-color": {
|
779
|
-
"type": "string",
|
780
|
-
"description": "选中状态颜色, 默认值: `#1989fa`"
|
781
|
-
},
|
782
|
-
"van-checkbox/bind-group": {
|
783
|
-
"type": "boolean",
|
784
|
-
"description": "是否与复选框组绑定, 默认值: `true`"
|
785
|
-
},
|
786
|
-
"van-checkbox-group/v-model": {
|
787
|
-
"type": "any[]",
|
788
|
-
"description": "所有选中项的标识符, 默认值: -"
|
789
|
-
},
|
790
|
-
"van-checkbox-group/disabled": {
|
791
|
-
"type": "boolean",
|
792
|
-
"description": "是否禁用所有复选框, 默认值: `false`"
|
793
|
-
},
|
794
|
-
"van-checkbox-group/max": {
|
795
|
-
"type": "number | string",
|
796
|
-
"description": "最大可选数,`0` 为无限制, 默认值: `0`"
|
797
|
-
},
|
798
|
-
"van-checkbox-group/direction": {
|
799
|
-
"type": "string",
|
800
|
-
"description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
|
801
|
-
},
|
802
|
-
"van-checkbox-group/icon-size": {
|
803
|
-
"type": "number | string",
|
804
|
-
"description": "所有复选框的图标大小,默认单位为 `px`, 默认值: `20px`"
|
805
|
-
},
|
806
|
-
"van-checkbox-group/checked-color": {
|
807
|
-
"type": "string",
|
808
|
-
"description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
|
809
|
-
},
|
810
750
|
"van-circle/v-model:current-rate": {
|
811
751
|
"type": "number",
|
812
752
|
"description": "当前进度, 默认值: -"
|
@@ -887,6 +827,66 @@
|
|
887
827
|
"type": "string",
|
888
828
|
"description": "自定义元素标签, 默认值: `div`"
|
889
829
|
},
|
830
|
+
"van-checkbox/v-model": {
|
831
|
+
"type": "boolean",
|
832
|
+
"description": "是否为选中状态, 默认值: `false`"
|
833
|
+
},
|
834
|
+
"van-checkbox/name": {
|
835
|
+
"type": "any",
|
836
|
+
"description": "标识符, 默认值: -"
|
837
|
+
},
|
838
|
+
"van-checkbox/shape": {
|
839
|
+
"type": "string",
|
840
|
+
"description": "形状,可选值为 `square`, 默认值: `round`"
|
841
|
+
},
|
842
|
+
"van-checkbox/disabled": {
|
843
|
+
"type": "boolean",
|
844
|
+
"description": "是否禁用复选框, 默认值: `false`"
|
845
|
+
},
|
846
|
+
"van-checkbox/label-disabled": {
|
847
|
+
"type": "boolean",
|
848
|
+
"description": "是否禁用复选框文本点击, 默认值: `false`"
|
849
|
+
},
|
850
|
+
"van-checkbox/label-position": {
|
851
|
+
"type": "string",
|
852
|
+
"description": "文本位置,可选值为 `left`, 默认值: `right`"
|
853
|
+
},
|
854
|
+
"van-checkbox/icon-size": {
|
855
|
+
"type": "number | string",
|
856
|
+
"description": "图标大小,默认单位为 `px`, 默认值: `20px`"
|
857
|
+
},
|
858
|
+
"van-checkbox/checked-color": {
|
859
|
+
"type": "string",
|
860
|
+
"description": "选中状态颜色, 默认值: `#1989fa`"
|
861
|
+
},
|
862
|
+
"van-checkbox/bind-group": {
|
863
|
+
"type": "boolean",
|
864
|
+
"description": "是否与复选框组绑定, 默认值: `true`"
|
865
|
+
},
|
866
|
+
"van-checkbox-group/v-model": {
|
867
|
+
"type": "any[]",
|
868
|
+
"description": "所有选中项的标识符, 默认值: -"
|
869
|
+
},
|
870
|
+
"van-checkbox-group/disabled": {
|
871
|
+
"type": "boolean",
|
872
|
+
"description": "是否禁用所有复选框, 默认值: `false`"
|
873
|
+
},
|
874
|
+
"van-checkbox-group/max": {
|
875
|
+
"type": "number | string",
|
876
|
+
"description": "最大可选数,`0` 为无限制, 默认值: `0`"
|
877
|
+
},
|
878
|
+
"van-checkbox-group/direction": {
|
879
|
+
"type": "string",
|
880
|
+
"description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
|
881
|
+
},
|
882
|
+
"van-checkbox-group/icon-size": {
|
883
|
+
"type": "number | string",
|
884
|
+
"description": "所有复选框的图标大小,默认单位为 `px`, 默认值: `20px`"
|
885
|
+
},
|
886
|
+
"van-checkbox-group/checked-color": {
|
887
|
+
"type": "string",
|
888
|
+
"description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
|
889
|
+
},
|
890
890
|
"van-collapse/v-model": {
|
891
891
|
"type": "手风琴模式:_number | string_<br>非手风琴模式:_(number \\",
|
892
892
|
"description": "当前展开面板的 name, 默认值: string)[]_",
|
@@ -1516,81 +1516,29 @@
|
|
1516
1516
|
"type": "string",
|
1517
1517
|
"description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1518
1518
|
},
|
1519
|
-
"van-field/autosize": {
|
1520
|
-
"type": "boolean | object",
|
1521
|
-
"description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`, 默认值: `false`"
|
1522
|
-
},
|
1523
|
-
"van-field/left-icon": {
|
1524
|
-
"type": "string",
|
1525
|
-
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1526
|
-
},
|
1527
|
-
"van-field/right-icon": {
|
1528
|
-
"type": "string",
|
1529
|
-
"description": "右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1530
|
-
},
|
1531
|
-
"van-field/icon-prefix": {
|
1532
|
-
"type": "string",
|
1533
|
-
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
1534
|
-
},
|
1535
|
-
"van-field/rules": {
|
1536
|
-
"type": "Rule[]",
|
1537
|
-
"description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou), 默认值: -"
|
1538
|
-
},
|
1539
|
-
"van-field/autocomplete": {
|
1540
|
-
"type": "string",
|
1541
|
-
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
|
1542
|
-
},
|
1543
|
-
"van-form/label-width": {
|
1544
|
-
"type": "number | string",
|
1545
|
-
"description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
|
1546
|
-
},
|
1547
|
-
"van-form/label-align": {
|
1548
|
-
"type": "string",
|
1549
|
-
"description": "\b 表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1550
|
-
},
|
1551
|
-
"van-form/input-align": {
|
1552
|
-
"type": "string",
|
1553
|
-
"description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1554
|
-
},
|
1555
|
-
"van-form/error-message-align": {
|
1556
|
-
"type": "string",
|
1557
|
-
"description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1558
|
-
},
|
1559
|
-
"van-form/validate-trigger": {
|
1560
|
-
"type": "string",
|
1561
|
-
"description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
|
1562
|
-
},
|
1563
|
-
"van-form/colon": {
|
1564
|
-
"type": "boolean",
|
1565
|
-
"description": "是否在 label 后面添加冒号, 默认值: `false`"
|
1566
|
-
},
|
1567
|
-
"van-form/disabled": {
|
1568
|
-
"type": "boolean",
|
1569
|
-
"description": "是否禁用表单中的所有输入框, 默认值: `false`"
|
1570
|
-
},
|
1571
|
-
"van-form/readonly": {
|
1572
|
-
"type": "boolean",
|
1573
|
-
"description": "是否将表单中的所有输入框设置为只读状态, 默认值: `false`"
|
1574
|
-
},
|
1575
|
-
"van-form/validate-first": {
|
1576
|
-
"type": "boolean",
|
1577
|
-
"description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
|
1519
|
+
"van-field/autosize": {
|
1520
|
+
"type": "boolean | object",
|
1521
|
+
"description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`, 默认值: `false`"
|
1578
1522
|
},
|
1579
|
-
"van-
|
1580
|
-
"type": "
|
1581
|
-
"description": "
|
1523
|
+
"van-field/left-icon": {
|
1524
|
+
"type": "string",
|
1525
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1582
1526
|
},
|
1583
|
-
"van-
|
1584
|
-
"type": "
|
1585
|
-
"description": "
|
1527
|
+
"van-field/right-icon": {
|
1528
|
+
"type": "string",
|
1529
|
+
"description": "右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1586
1530
|
},
|
1587
|
-
"van-
|
1588
|
-
"type": "
|
1589
|
-
"description": "
|
1531
|
+
"van-field/icon-prefix": {
|
1532
|
+
"type": "string",
|
1533
|
+
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
1590
1534
|
},
|
1591
|
-
"van-
|
1592
|
-
"type": "
|
1593
|
-
"description": "
|
1535
|
+
"van-field/rules": {
|
1536
|
+
"type": "Rule[]",
|
1537
|
+
"description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou), 默认值: -"
|
1538
|
+
},
|
1539
|
+
"van-field/autocomplete": {
|
1540
|
+
"type": "string",
|
1541
|
+
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
|
1594
1542
|
},
|
1595
1543
|
"van-grid/column-num": {
|
1596
1544
|
"type": "number | string",
|
@@ -1692,61 +1640,57 @@
|
|
1692
1640
|
"type": "string",
|
1693
1641
|
"description": "根节点对应的 HTML 标签名, 默认值: `i`"
|
1694
1642
|
},
|
1695
|
-
"van-
|
1696
|
-
"type": "string",
|
1697
|
-
"description": "
|
1643
|
+
"van-form/label-width": {
|
1644
|
+
"type": "number | string",
|
1645
|
+
"description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
|
1698
1646
|
},
|
1699
|
-
"van-
|
1647
|
+
"van-form/label-align": {
|
1700
1648
|
"type": "string",
|
1701
|
-
"description": "
|
1649
|
+
"description": "\b 表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1702
1650
|
},
|
1703
|
-
"van-
|
1651
|
+
"van-form/input-align": {
|
1704
1652
|
"type": "string",
|
1705
|
-
"description": "
|
1706
|
-
},
|
1707
|
-
"van-image/width": {
|
1708
|
-
"type": "number | string",
|
1709
|
-
"description": "宽度,默认单位为 `px`, 默认值: -"
|
1653
|
+
"description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1710
1654
|
},
|
1711
|
-
"van-
|
1712
|
-
"type": "
|
1713
|
-
"description": "
|
1655
|
+
"van-form/error-message-align": {
|
1656
|
+
"type": "string",
|
1657
|
+
"description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1714
1658
|
},
|
1715
|
-
"van-
|
1716
|
-
"type": "
|
1717
|
-
"description": "
|
1659
|
+
"van-form/validate-trigger": {
|
1660
|
+
"type": "string",
|
1661
|
+
"description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表, 默认值: `onBlur`"
|
1718
1662
|
},
|
1719
|
-
"van-
|
1663
|
+
"van-form/colon": {
|
1720
1664
|
"type": "boolean",
|
1721
|
-
"description": "
|
1665
|
+
"description": "是否在 label 后面添加冒号, 默认值: `false`"
|
1722
1666
|
},
|
1723
|
-
"van-
|
1667
|
+
"van-form/disabled": {
|
1724
1668
|
"type": "boolean",
|
1725
|
-
"description": "
|
1669
|
+
"description": "是否禁用表单中的所有输入框, 默认值: `false`"
|
1726
1670
|
},
|
1727
|
-
"van-
|
1671
|
+
"van-form/readonly": {
|
1728
1672
|
"type": "boolean",
|
1729
|
-
"description": "
|
1673
|
+
"description": "是否将表单中的所有输入框设置为只读状态, 默认值: `false`"
|
1730
1674
|
},
|
1731
|
-
"van-
|
1675
|
+
"van-form/validate-first": {
|
1732
1676
|
"type": "boolean",
|
1733
|
-
"description": "
|
1677
|
+
"description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
|
1734
1678
|
},
|
1735
|
-
"van-
|
1736
|
-
"type": "
|
1737
|
-
"description": "
|
1679
|
+
"van-form/scroll-to-error": {
|
1680
|
+
"type": "boolean",
|
1681
|
+
"description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
|
1738
1682
|
},
|
1739
|
-
"van-
|
1740
|
-
"type": "
|
1741
|
-
"description": "
|
1683
|
+
"van-form/show-error": {
|
1684
|
+
"type": "boolean",
|
1685
|
+
"description": "是否在校验不通过时标红输入框, 默认值: `false`"
|
1742
1686
|
},
|
1743
|
-
"van-
|
1744
|
-
"type": "
|
1745
|
-
"description": "
|
1687
|
+
"van-form/show-error-message": {
|
1688
|
+
"type": "boolean",
|
1689
|
+
"description": "是否在校验不通过时在输入框下方展示错误提示, 默认值: `true`"
|
1746
1690
|
},
|
1747
|
-
"van-
|
1748
|
-
"type": "
|
1749
|
-
"description": "
|
1691
|
+
"van-form/submit-on-enter": {
|
1692
|
+
"type": "boolean",
|
1693
|
+
"description": "是否在按下回车键时提交表单, 默认值: `true`"
|
1750
1694
|
},
|
1751
1695
|
"van-image-preview/v-model:show": {
|
1752
1696
|
"type": "boolean",
|
@@ -1851,6 +1795,62 @@
|
|
1851
1795
|
"type": "number | string",
|
1852
1796
|
"description": "索引字符, 默认值: -"
|
1853
1797
|
},
|
1798
|
+
"van-image/src": {
|
1799
|
+
"type": "string",
|
1800
|
+
"description": "图片链接, 默认值: -"
|
1801
|
+
},
|
1802
|
+
"van-image/fit": {
|
1803
|
+
"type": "string",
|
1804
|
+
"description": "图片填充模式, 默认值: `fill`"
|
1805
|
+
},
|
1806
|
+
"van-image/alt": {
|
1807
|
+
"type": "string",
|
1808
|
+
"description": "替代文本, 默认值: -"
|
1809
|
+
},
|
1810
|
+
"van-image/width": {
|
1811
|
+
"type": "number | string",
|
1812
|
+
"description": "宽度,默认单位为 `px`, 默认值: -"
|
1813
|
+
},
|
1814
|
+
"van-image/height": {
|
1815
|
+
"type": "number | string",
|
1816
|
+
"description": "高度,默认单位为 `px`, 默认值: -"
|
1817
|
+
},
|
1818
|
+
"van-image/radius": {
|
1819
|
+
"type": "number | string",
|
1820
|
+
"description": "圆角大小,默认单位为 `px`, 默认值: `0`"
|
1821
|
+
},
|
1822
|
+
"van-image/round": {
|
1823
|
+
"type": "boolean",
|
1824
|
+
"description": "是否显示为圆形, 默认值: `false`"
|
1825
|
+
},
|
1826
|
+
"van-image/lazy-load": {
|
1827
|
+
"type": "boolean",
|
1828
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
1829
|
+
},
|
1830
|
+
"van-image/show-error": {
|
1831
|
+
"type": "boolean",
|
1832
|
+
"description": "是否展示图片加载失败提示, 默认值: `true`"
|
1833
|
+
},
|
1834
|
+
"van-image/show-loading": {
|
1835
|
+
"type": "boolean",
|
1836
|
+
"description": "是否展示图片加载中提示, 默认值: `true`"
|
1837
|
+
},
|
1838
|
+
"van-image/error-icon": {
|
1839
|
+
"type": "string",
|
1840
|
+
"description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo-fail`"
|
1841
|
+
},
|
1842
|
+
"van-image/loading-icon": {
|
1843
|
+
"type": "string",
|
1844
|
+
"description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo`"
|
1845
|
+
},
|
1846
|
+
"van-image/icon-size": {
|
1847
|
+
"type": "number | string",
|
1848
|
+
"description": "加载图标和失败图标的大小, 默认值: `32px`"
|
1849
|
+
},
|
1850
|
+
"van-image/icon-prefix": {
|
1851
|
+
"type": "string",
|
1852
|
+
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
1853
|
+
},
|
1854
1854
|
"van-list/v-model:loading": {
|
1855
1855
|
"type": "boolean",
|
1856
1856
|
"description": "是否处于加载状态,加载过程中不触发 `load` 事件, 默认值: `false`"
|
@@ -1887,30 +1887,6 @@
|
|
1887
1887
|
"type": "string",
|
1888
1888
|
"description": "滚动触发加载的方向,可选值为 `up`, 默认值: `down`"
|
1889
1889
|
},
|
1890
|
-
"van-loading/color": {
|
1891
|
-
"type": "string",
|
1892
|
-
"description": "颜色, 默认值: `#c9c9c9`"
|
1893
|
-
},
|
1894
|
-
"van-loading/type": {
|
1895
|
-
"type": "string",
|
1896
|
-
"description": "类型,可选值为 `spinner`, 默认值: `circular`"
|
1897
|
-
},
|
1898
|
-
"van-loading/size": {
|
1899
|
-
"type": "number | string",
|
1900
|
-
"description": "加载图标大小,默认单位为 `px`, 默认值: `30px`"
|
1901
|
-
},
|
1902
|
-
"van-loading/text-size": {
|
1903
|
-
"type": "number | string",
|
1904
|
-
"description": "文字大小,默认单位为 `px`, 默认值: `14px`"
|
1905
|
-
},
|
1906
|
-
"van-loading/text-color": {
|
1907
|
-
"type": "string",
|
1908
|
-
"description": "文字颜色, 默认值: `#c9c9c9`"
|
1909
|
-
},
|
1910
|
-
"van-loading/vertical": {
|
1911
|
-
"type": "boolean",
|
1912
|
-
"description": "是否垂直排列图标和文字内容, 默认值: `false`"
|
1913
|
-
},
|
1914
1890
|
"van-nav-bar/title": {
|
1915
1891
|
"type": "string",
|
1916
1892
|
"description": "标题, 默认值: `''`"
|
@@ -1947,6 +1923,30 @@
|
|
1947
1923
|
"type": "boolean",
|
1948
1924
|
"description": "是否开启[顶部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
|
1949
1925
|
},
|
1926
|
+
"van-loading/color": {
|
1927
|
+
"type": "string",
|
1928
|
+
"description": "颜色, 默认值: `#c9c9c9`"
|
1929
|
+
},
|
1930
|
+
"van-loading/type": {
|
1931
|
+
"type": "string",
|
1932
|
+
"description": "类型,可选值为 `spinner`, 默认值: `circular`"
|
1933
|
+
},
|
1934
|
+
"van-loading/size": {
|
1935
|
+
"type": "number | string",
|
1936
|
+
"description": "加载图标大小,默认单位为 `px`, 默认值: `30px`"
|
1937
|
+
},
|
1938
|
+
"van-loading/text-size": {
|
1939
|
+
"type": "number | string",
|
1940
|
+
"description": "文字大小,默认单位为 `px`, 默认值: `14px`"
|
1941
|
+
},
|
1942
|
+
"van-loading/text-color": {
|
1943
|
+
"type": "string",
|
1944
|
+
"description": "文字颜色, 默认值: `#c9c9c9`"
|
1945
|
+
},
|
1946
|
+
"van-loading/vertical": {
|
1947
|
+
"type": "boolean",
|
1948
|
+
"description": "是否垂直排列图标和文字内容, 默认值: `false`"
|
1949
|
+
},
|
1950
1950
|
"van-notice-bar/mode": {
|
1951
1951
|
"type": "string",
|
1952
1952
|
"description": "通知栏模式,可选值为 `closeable` `link`, 默认值: `''`"
|
@@ -1957,11 +1957,11 @@
|
|
1957
1957
|
},
|
1958
1958
|
"van-notice-bar/color": {
|
1959
1959
|
"type": "string",
|
1960
|
-
"description": "通知文本颜色, 默认值: `#
|
1960
|
+
"description": "通知文本颜色, 默认值: `#ed6a0c`"
|
1961
1961
|
},
|
1962
1962
|
"van-notice-bar/background": {
|
1963
1963
|
"type": "string",
|
1964
|
-
"description": "滚动条背景, 默认值: `#
|
1964
|
+
"description": "滚动条背景, 默认值: `#fffbe8`"
|
1965
1965
|
},
|
1966
1966
|
"van-notice-bar/left-icon": {
|
1967
1967
|
"type": "string",
|
@@ -3014,6 +3014,30 @@
|
|
3014
3014
|
"type": "boolean",
|
3015
3015
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
3016
3016
|
},
|
3017
|
+
"van-swipe-cell/name": {
|
3018
|
+
"type": "number | string",
|
3019
|
+
"description": "标识符,可以在事件参数中获取到, 默认值: `''`"
|
3020
|
+
},
|
3021
|
+
"van-swipe-cell/left-width": {
|
3022
|
+
"type": "number | string",
|
3023
|
+
"description": "指定左侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
3024
|
+
},
|
3025
|
+
"van-swipe-cell/right-width": {
|
3026
|
+
"type": "number | string",
|
3027
|
+
"description": "指定右侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
3028
|
+
},
|
3029
|
+
"van-swipe-cell/before-close": {
|
3030
|
+
"type": "(args) => boolean | Promise\\<boolean\\>",
|
3031
|
+
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
3032
|
+
},
|
3033
|
+
"van-swipe-cell/disabled": {
|
3034
|
+
"type": "boolean",
|
3035
|
+
"description": "是否禁用滑动, 默认值: `false`"
|
3036
|
+
},
|
3037
|
+
"van-swipe-cell/stop-propagation": {
|
3038
|
+
"type": "boolean",
|
3039
|
+
"description": "是否阻止滑动事件冒泡, 默认值: `false`"
|
3040
|
+
},
|
3017
3041
|
"van-swipe/autoplay": {
|
3018
3042
|
"type": "number | string",
|
3019
3043
|
"description": "自动轮播间隔,单位为 ms, 默认值: -"
|
@@ -3062,30 +3086,6 @@
|
|
3062
3086
|
"type": "string",
|
3063
3087
|
"description": "指示器颜色, 默认值: `#1989fa`"
|
3064
3088
|
},
|
3065
|
-
"van-swipe-cell/name": {
|
3066
|
-
"type": "number | string",
|
3067
|
-
"description": "标识符,可以在事件参数中获取到, 默认值: `''`"
|
3068
|
-
},
|
3069
|
-
"van-swipe-cell/left-width": {
|
3070
|
-
"type": "number | string",
|
3071
|
-
"description": "指定左侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
3072
|
-
},
|
3073
|
-
"van-swipe-cell/right-width": {
|
3074
|
-
"type": "number | string",
|
3075
|
-
"description": "指定右侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
3076
|
-
},
|
3077
|
-
"van-swipe-cell/before-close": {
|
3078
|
-
"type": "(args) => boolean | Promise\\<boolean\\>",
|
3079
|
-
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
3080
|
-
},
|
3081
|
-
"van-swipe-cell/disabled": {
|
3082
|
-
"type": "boolean",
|
3083
|
-
"description": "是否禁用滑动, 默认值: `false`"
|
3084
|
-
},
|
3085
|
-
"van-swipe-cell/stop-propagation": {
|
3086
|
-
"type": "boolean",
|
3087
|
-
"description": "是否阻止滑动事件冒泡, 默认值: `false`"
|
3088
|
-
},
|
3089
3089
|
"van-switch/v-model": {
|
3090
3090
|
"type": "any",
|
3091
3091
|
"description": "开关选中状态, 默认值: `false`"
|