vant 3.2.8 → 3.3.0
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/address-edit/AddressEdit.js +155 -180
- package/es/address-edit/AddressEditDetail.d.ts +10 -9
- package/es/address-edit/AddressEditDetail.js +6 -6
- package/es/button/Button.js +2 -2
- package/es/calendar/CalendarHeader.js +1 -3
- package/es/cascader/Cascader.js +10 -2
- package/es/checkbox/Checker.js +1 -1
- package/es/checkbox/types.d.ts +2 -6
- package/es/composables/use-id.d.ts +1 -0
- package/es/composables/use-id.js +14 -0
- package/es/composables/use-route.d.ts +1 -1
- package/es/composables/use-route.js +4 -4
- package/es/count-down/CountDown.js +1 -0
- package/es/coupon-list/CouponList.js +40 -24
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.less +0 -5
- package/es/dropdown-item/DropdownItem.js +7 -2
- package/es/dropdown-item/types.d.ts +2 -6
- package/es/dropdown-menu/DropdownMenu.js +7 -3
- package/es/dropdown-menu/types.d.ts +1 -0
- package/es/empty/Network.js +22 -34
- package/es/field/Field.d.ts +1 -1
- package/es/field/Field.js +13 -5
- package/es/field/index.d.ts +2 -2
- package/es/field/types.d.ts +7 -6
- package/es/form/Form.js +2 -2
- package/es/image/Image.js +4 -9
- package/es/image-preview/ImagePreview.js +3 -4
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/lazyload/index.d.ts +1 -1
- package/es/lazyload/index.js +1 -1
- package/es/lazyload/vue-lazyload/index.d.ts +55 -0
- package/es/lazyload/vue-lazyload/index.js +46 -0
- package/es/lazyload/vue-lazyload/lazy-component.js +53 -0
- package/es/lazyload/vue-lazyload/lazy-container.js +98 -0
- package/es/lazyload/vue-lazyload/lazy-image.js +115 -0
- package/es/lazyload/vue-lazyload/lazy.js +507 -0
- package/es/lazyload/vue-lazyload/listener.js +241 -0
- package/es/lazyload/vue-lazyload/util.js +183 -0
- package/es/list/List.js +3 -1
- package/es/number-keyboard/NumberKeyboardKey.js +4 -4
- package/es/pagination/Pagination.js +67 -49
- package/es/pagination/index.css +1 -1
- package/es/pagination/index.less +32 -31
- package/es/password-input/PasswordInput.d.ts +1 -1
- package/es/password-input/index.d.ts +1 -1
- package/es/popover/Popover.js +2 -0
- package/es/popup/Popup.d.ts +1 -2
- package/es/popup/Popup.js +2 -5
- package/es/popup/index.d.ts +1 -2
- package/es/rate/Rate.js +5 -3
- package/es/search/Search.js +8 -2
- package/es/sidebar/Sidebar.js +1 -0
- package/es/sidebar-item/SidebarItem.js +4 -1
- package/es/slider/Slider.js +5 -3
- package/es/stepper/Stepper.js +11 -8
- package/es/swipe/Swipe.js +3 -4
- package/es/swipe/types.d.ts +1 -3
- package/es/switch/Switch.js +1 -0
- package/es/switch/index.css +1 -1
- package/es/switch/index.less +2 -0
- package/es/tab/Tab.js +17 -4
- package/es/tab/index.css +1 -1
- package/es/tab/index.less +1 -1
- package/es/tabbar/Tabbar.d.ts +1 -1
- package/es/tabbar/Tabbar.js +10 -10
- package/es/tabbar-item/TabbarItem.js +11 -4
- package/es/tabs/Tabs.js +10 -5
- package/es/tabs/TabsTitle.d.ts +6 -0
- package/es/tabs/TabsTitle.js +7 -1
- package/es/tabs/types.d.ts +1 -0
- package/es/uploader/UploaderPreviewItem.js +4 -1
- package/es/uploader/utils.d.ts +2 -2
- package/es/uploader/utils.js +2 -2
- package/es/utils/dom.d.ts +1 -0
- package/es/utils/dom.js +6 -2
- package/es/utils/format.js +6 -5
- package/es/vue-tsx-shim.d.ts +1 -0
- package/lib/address-edit/AddressEdit.js +156 -180
- package/lib/address-edit/AddressEditDetail.d.ts +10 -9
- package/lib/address-edit/AddressEditDetail.js +6 -6
- package/lib/button/Button.js +1 -1
- package/lib/calendar/CalendarHeader.js +1 -3
- package/lib/cascader/Cascader.js +10 -2
- package/lib/checkbox/Checker.js +1 -1
- package/lib/checkbox/types.d.ts +2 -6
- package/lib/composables/use-id.d.ts +1 -0
- package/lib/composables/use-id.js +21 -0
- package/lib/composables/use-route.d.ts +1 -1
- package/lib/composables/use-route.js +4 -4
- package/lib/count-down/CountDown.js +1 -0
- package/lib/coupon-list/CouponList.js +39 -22
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.less +0 -5
- package/lib/dropdown-item/DropdownItem.js +7 -2
- package/lib/dropdown-item/types.d.ts +2 -6
- package/lib/dropdown-menu/DropdownMenu.js +7 -2
- package/lib/dropdown-menu/types.d.ts +1 -0
- package/lib/empty/Network.js +22 -34
- package/lib/field/Field.d.ts +1 -1
- package/lib/field/Field.js +14 -5
- package/lib/field/index.d.ts +2 -2
- package/lib/field/types.d.ts +7 -6
- package/lib/form/Form.js +1 -1
- package/lib/image/Image.js +4 -9
- package/lib/image-preview/ImagePreview.js +1 -2
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/lazyload/index.d.ts +1 -1
- package/lib/lazyload/index.js +3 -3
- package/lib/lazyload/vue-lazyload/index.d.ts +55 -0
- package/lib/lazyload/vue-lazyload/index.js +58 -0
- package/lib/lazyload/vue-lazyload/lazy-component.js +62 -0
- package/lib/lazyload/vue-lazyload/lazy-container.js +106 -0
- package/lib/lazyload/vue-lazyload/lazy-image.js +125 -0
- package/lib/lazyload/vue-lazyload/lazy.js +520 -0
- package/lib/lazyload/vue-lazyload/listener.js +251 -0
- package/lib/lazyload/vue-lazyload/util.js +213 -0
- package/lib/list/List.js +3 -1
- package/lib/number-keyboard/NumberKeyboardKey.js +3 -3
- package/lib/pagination/Pagination.js +65 -47
- package/lib/pagination/index.css +1 -1
- package/lib/pagination/index.less +32 -31
- package/lib/password-input/PasswordInput.d.ts +1 -1
- package/lib/password-input/index.d.ts +1 -1
- package/lib/popover/Popover.js +2 -0
- package/lib/popup/Popup.d.ts +1 -2
- package/lib/popup/Popup.js +2 -5
- package/lib/popup/index.d.ts +1 -2
- package/lib/rate/Rate.js +5 -3
- package/lib/search/Search.js +9 -2
- package/lib/sidebar/Sidebar.js +1 -0
- package/lib/sidebar-item/SidebarItem.js +4 -1
- package/lib/slider/Slider.js +5 -3
- package/lib/stepper/Stepper.js +11 -8
- package/lib/swipe/Swipe.js +1 -2
- package/lib/swipe/types.d.ts +1 -3
- package/lib/switch/Switch.js +1 -0
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.less +2 -0
- package/lib/tab/Tab.js +19 -4
- package/lib/tab/index.css +1 -1
- package/lib/tab/index.less +1 -1
- package/lib/tabbar/Tabbar.d.ts +1 -1
- package/lib/tabbar/Tabbar.js +10 -10
- package/lib/tabbar-item/TabbarItem.js +11 -4
- package/lib/tabs/Tabs.js +9 -3
- package/lib/tabs/TabsTitle.d.ts +6 -0
- package/lib/tabs/TabsTitle.js +7 -1
- package/lib/tabs/types.d.ts +1 -0
- package/lib/uploader/UploaderPreviewItem.js +3 -0
- package/lib/uploader/utils.d.ts +2 -2
- package/lib/uploader/utils.js +3 -2
- package/lib/utils/dom.d.ts +1 -0
- package/lib/utils/dom.js +9 -2
- package/lib/utils/format.js +7 -5
- package/lib/vant.es.js +1086 -1068
- package/lib/vant.es.min.js +1086 -1068
- package/lib/vant.js +1085 -1067
- package/lib/vant.min.js +1 -1
- package/lib/vue-tsx-shim.d.ts +1 -0
- package/package.json +4 -4
- package/vetur/attributes.json +340 -340
- package/vetur/tags.json +119 -119
- package/vetur/web-types.json +1143 -1143
- package/es/composables/use-link-field.d.ts +0 -0
- package/es/composables/use-link-field.js +0 -0
- package/lib/composables/use-link-field.d.ts +0 -0
- package/lib/composables/use-link-field.js +0 -1
package/vetur/attributes.json
CHANGED
@@ -1,4 +1,87 @@
|
|
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
|
+
},
|
2
85
|
"van-action-sheet/v-model:show": {
|
3
86
|
"type": "boolean",
|
4
87
|
"description": "是否显示动作面板, 默认值: `false`"
|
@@ -82,88 +165,33 @@
|
|
82
165
|
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
83
166
|
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
84
167
|
},
|
85
|
-
"van-
|
86
|
-
"type": "boolean",
|
87
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
88
|
-
},
|
89
|
-
"van-action-bar-icon/text": {
|
90
|
-
"type": "string",
|
91
|
-
"description": "按钮文字, 默认值: -"
|
92
|
-
},
|
93
|
-
"van-action-bar-icon/icon": {
|
94
|
-
"type": "string",
|
95
|
-
"description": "图标, 默认值: -"
|
96
|
-
},
|
97
|
-
"van-action-bar-icon/color": {
|
98
|
-
"type": "string",
|
99
|
-
"description": "图标颜色, 默认值: `#323233`"
|
100
|
-
},
|
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": {
|
168
|
+
"van-address-list/v-model": {
|
109
169
|
"type": "string",
|
110
|
-
"description": "
|
170
|
+
"description": "当前选中地址的 id, 默认值: -"
|
111
171
|
},
|
112
|
-
"van-
|
113
|
-
"type": "
|
114
|
-
"description": "
|
172
|
+
"van-address-list/list": {
|
173
|
+
"type": "AddressListAddress[]",
|
174
|
+
"description": "地址列表, 默认值: `[]`"
|
115
175
|
},
|
116
|
-
"van-
|
117
|
-
"type": "
|
118
|
-
"description": "
|
176
|
+
"van-address-list/disabled-list": {
|
177
|
+
"type": "AddressListAddress[]",
|
178
|
+
"description": "不可配送地址列表, 默认值: `[]`"
|
119
179
|
},
|
120
|
-
"van-
|
180
|
+
"van-address-list/disabled-text": {
|
121
181
|
"type": "string",
|
122
|
-
"description": "
|
123
|
-
},
|
124
|
-
"van-action-bar-icon/to": {
|
125
|
-
"type": "string | object",
|
126
|
-
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
182
|
+
"description": "不可配送提示文案, 默认值: -"
|
127
183
|
},
|
128
|
-
"van-
|
184
|
+
"van-address-list/switchable": {
|
129
185
|
"type": "boolean",
|
130
|
-
"description": "
|
131
|
-
},
|
132
|
-
"van-action-bar-button/text": {
|
133
|
-
"type": "string",
|
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` 渐变色, 默认值: -"
|
186
|
+
"description": "是否允许切换地址, 默认值: `true`"
|
143
187
|
},
|
144
|
-
"van-
|
188
|
+
"van-address-list/add-button-text": {
|
145
189
|
"type": "string",
|
146
|
-
"description": "
|
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`"
|
190
|
+
"description": "底部按钮文字, 默认值: `新增地址`"
|
155
191
|
},
|
156
|
-
"van-
|
192
|
+
"van-address-list/default-tag-text": {
|
157
193
|
"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`"
|
194
|
+
"description": "默认地址标签文字, 默认值: -"
|
167
195
|
},
|
168
196
|
"van-address-edit/area-list": {
|
169
197
|
"type": "object",
|
@@ -253,61 +281,6 @@
|
|
253
281
|
"type": "(key, val) => string",
|
254
282
|
"description": "自定义校验函数, 默认值: -"
|
255
283
|
},
|
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
|
-
},
|
311
284
|
"van-area/value": {
|
312
285
|
"type": "string",
|
313
286
|
"description": "当前选中项对应的地区码, 默认值: -"
|
@@ -360,6 +333,33 @@
|
|
360
333
|
"type": "() => boolean",
|
361
334
|
"description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
362
335
|
},
|
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,6 +747,66 @@
|
|
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
|
+
},
|
750
810
|
"van-circle/v-model:current-rate": {
|
751
811
|
"type": "number",
|
752
812
|
"description": "当前进度, 默认值: -"
|
@@ -827,66 +887,6 @@
|
|
827
887
|
"type": "string",
|
828
888
|
"description": "自定义元素标签, 默认值: `div`"
|
829
889
|
},
|
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)[]_",
|
@@ -1403,7 +1403,7 @@
|
|
1403
1403
|
},
|
1404
1404
|
"van-field/id": {
|
1405
1405
|
"type": "string",
|
1406
|
-
"description": "输入框 id,同时会设置 label 的 for 属性, 默认值: -"
|
1406
|
+
"description": "输入框 id,同时会设置 label 的 for 属性, 默认值: `van-field-n-input`"
|
1407
1407
|
},
|
1408
1408
|
"van-field/type": {
|
1409
1409
|
"type": "string",
|
@@ -1520,25 +1520,77 @@
|
|
1520
1520
|
"type": "boolean | object",
|
1521
1521
|
"description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`, 默认值: `false`"
|
1522
1522
|
},
|
1523
|
-
"van-field/left-icon": {
|
1524
|
-
"type": "string",
|
1525
|
-
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
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`"
|
1526
1574
|
},
|
1527
|
-
"van-
|
1528
|
-
"type": "
|
1529
|
-
"description": "
|
1575
|
+
"van-form/validate-first": {
|
1576
|
+
"type": "boolean",
|
1577
|
+
"description": "是否在某一项校验不通过时停止校验, 默认值: `false`"
|
1530
1578
|
},
|
1531
|
-
"van-
|
1532
|
-
"type": "
|
1533
|
-
"description": "
|
1579
|
+
"van-form/scroll-to-error": {
|
1580
|
+
"type": "boolean",
|
1581
|
+
"description": "是否在提交表单且校验不通过时滚动至错误的表单项, 默认值: `false`"
|
1534
1582
|
},
|
1535
|
-
"van-
|
1536
|
-
"type": "
|
1537
|
-
"description": "
|
1583
|
+
"van-form/show-error": {
|
1584
|
+
"type": "boolean",
|
1585
|
+
"description": "是否在校验不通过时标红输入框, 默认值: `false`"
|
1538
1586
|
},
|
1539
|
-
"van-
|
1540
|
-
"type": "
|
1541
|
-
"description": "
|
1587
|
+
"van-form/show-error-message": {
|
1588
|
+
"type": "boolean",
|
1589
|
+
"description": "是否在校验不通过时在输入框下方展示错误提示, 默认值: `true`"
|
1590
|
+
},
|
1591
|
+
"van-form/submit-on-enter": {
|
1592
|
+
"type": "boolean",
|
1593
|
+
"description": "是否在按下回车键时提交表单, 默认值: `true`"
|
1542
1594
|
},
|
1543
1595
|
"van-grid/column-num": {
|
1544
1596
|
"type": "number | string",
|
@@ -1640,57 +1692,61 @@
|
|
1640
1692
|
"type": "string",
|
1641
1693
|
"description": "根节点对应的 HTML 标签名, 默认值: `i`"
|
1642
1694
|
},
|
1643
|
-
"van-
|
1644
|
-
"type": "number | string",
|
1645
|
-
"description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
|
1646
|
-
},
|
1647
|
-
"van-form/label-align": {
|
1695
|
+
"van-image/src": {
|
1648
1696
|
"type": "string",
|
1649
|
-
"description": "
|
1697
|
+
"description": "图片链接, 默认值: -"
|
1650
1698
|
},
|
1651
|
-
"van-
|
1699
|
+
"van-image/fit": {
|
1652
1700
|
"type": "string",
|
1653
|
-
"description": "
|
1701
|
+
"description": "图片填充模式, 默认值: `fill`"
|
1654
1702
|
},
|
1655
|
-
"van-
|
1703
|
+
"van-image/alt": {
|
1656
1704
|
"type": "string",
|
1657
|
-
"description": "
|
1705
|
+
"description": "替代文本, 默认值: -"
|
1658
1706
|
},
|
1659
|
-
"van-
|
1660
|
-
"type": "string",
|
1661
|
-
"description": "
|
1707
|
+
"van-image/width": {
|
1708
|
+
"type": "number | string",
|
1709
|
+
"description": "宽度,默认单位为 `px`, 默认值: -"
|
1662
1710
|
},
|
1663
|
-
"van-
|
1664
|
-
"type": "
|
1665
|
-
"description": "
|
1711
|
+
"van-image/height": {
|
1712
|
+
"type": "number | string",
|
1713
|
+
"description": "高度,默认单位为 `px`, 默认值: -"
|
1666
1714
|
},
|
1667
|
-
"van-
|
1668
|
-
"type": "
|
1669
|
-
"description": "
|
1715
|
+
"van-image/radius": {
|
1716
|
+
"type": "number | string",
|
1717
|
+
"description": "圆角大小,默认单位为 `px`, 默认值: `0`"
|
1670
1718
|
},
|
1671
|
-
"van-
|
1719
|
+
"van-image/round": {
|
1672
1720
|
"type": "boolean",
|
1673
|
-
"description": "
|
1721
|
+
"description": "是否显示为圆形, 默认值: `false`"
|
1674
1722
|
},
|
1675
|
-
"van-
|
1723
|
+
"van-image/lazy-load": {
|
1676
1724
|
"type": "boolean",
|
1677
|
-
"description": "
|
1725
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
1678
1726
|
},
|
1679
|
-
"van-
|
1727
|
+
"van-image/show-error": {
|
1680
1728
|
"type": "boolean",
|
1681
|
-
"description": "
|
1729
|
+
"description": "是否展示图片加载失败提示, 默认值: `true`"
|
1682
1730
|
},
|
1683
|
-
"van-
|
1731
|
+
"van-image/show-loading": {
|
1684
1732
|
"type": "boolean",
|
1685
|
-
"description": "
|
1733
|
+
"description": "是否展示图片加载中提示, 默认值: `true`"
|
1686
1734
|
},
|
1687
|
-
"van-
|
1688
|
-
"type": "
|
1689
|
-
"description": "
|
1735
|
+
"van-image/error-icon": {
|
1736
|
+
"type": "string",
|
1737
|
+
"description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo-fail`"
|
1690
1738
|
},
|
1691
|
-
"van-
|
1692
|
-
"type": "
|
1693
|
-
"description": "
|
1739
|
+
"van-image/loading-icon": {
|
1740
|
+
"type": "string",
|
1741
|
+
"description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo`"
|
1742
|
+
},
|
1743
|
+
"van-image/icon-size": {
|
1744
|
+
"type": "number | string",
|
1745
|
+
"description": "加载图标和失败图标的大小, 默认值: `32px`"
|
1746
|
+
},
|
1747
|
+
"van-image/icon-prefix": {
|
1748
|
+
"type": "string",
|
1749
|
+
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
1694
1750
|
},
|
1695
1751
|
"van-image-preview/v-model:show": {
|
1696
1752
|
"type": "boolean",
|
@@ -1795,62 +1851,6 @@
|
|
1795
1851
|
"type": "number | string",
|
1796
1852
|
"description": "索引字符, 默认值: -"
|
1797
1853
|
},
|
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,6 +1887,30 @@
|
|
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
|
+
},
|
1890
1914
|
"van-nav-bar/title": {
|
1891
1915
|
"type": "string",
|
1892
1916
|
"description": "标题, 默认值: `''`"
|
@@ -1923,30 +1947,6 @@
|
|
1923
1947
|
"type": "boolean",
|
1924
1948
|
"description": "是否开启[顶部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
|
1925
1949
|
},
|
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`, 默认值: `''`"
|
@@ -2539,7 +2539,7 @@
|
|
2539
2539
|
},
|
2540
2540
|
"van-search/id": {
|
2541
2541
|
"type": "string",
|
2542
|
-
"description": "搜索框 id,同时会设置 label 的 for 属性, 默认值: -"
|
2542
|
+
"description": "搜索框 id,同时会设置 label 的 for 属性, 默认值: `van-search-n-input`"
|
2543
2543
|
},
|
2544
2544
|
"van-search/background": {
|
2545
2545
|
"type": "string",
|
@@ -3014,30 +3014,6 @@
|
|
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
|
-
},
|
3041
3017
|
"van-swipe/autoplay": {
|
3042
3018
|
"type": "number | string",
|
3043
3019
|
"description": "自动轮播间隔,单位为 ms, 默认值: -"
|
@@ -3086,6 +3062,30 @@
|
|
3086
3062
|
"type": "string",
|
3087
3063
|
"description": "指示器颜色, 默认值: `#1989fa`"
|
3088
3064
|
},
|
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`"
|