vant 3.3.2 → 3.3.3-beta.nuxt3
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/locale/lang/pt-BR.d.ts +73 -0
- package/es/locale/lang/pt-BR.js +72 -0
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.less +2 -0
- package/lib/index.css +1 -1
- package/lib/locale/lang/pt-BR.d.ts +73 -0
- package/lib/locale/lang/pt-BR.js +77 -0
- package/lib/ssr.js +7 -0
- package/lib/ssr.mjs +1 -0
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.less +2 -0
- package/package.json +6 -2
- package/vetur/attributes.json +505 -505
- package/vetur/tags.json +172 -172
- package/vetur/web-types.json +1676 -1676
package/vetur/attributes.json
CHANGED
@@ -82,6 +82,89 @@
|
|
82
82
|
"type": "boolean",
|
83
83
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
84
84
|
},
|
85
|
+
"van-action-sheet/v-model:show": {
|
86
|
+
"type": "boolean",
|
87
|
+
"description": "是否显示动作面板, 默认值: `false`"
|
88
|
+
},
|
89
|
+
"van-action-sheet/actions": {
|
90
|
+
"type": "ActionSheetAction[]",
|
91
|
+
"description": "面板选项列表, 默认值: `[]`"
|
92
|
+
},
|
93
|
+
"van-action-sheet/title": {
|
94
|
+
"type": "string",
|
95
|
+
"description": "顶部标题, 默认值: -"
|
96
|
+
},
|
97
|
+
"van-action-sheet/cancel-text": {
|
98
|
+
"type": "string",
|
99
|
+
"description": "取消按钮文字, 默认值: -"
|
100
|
+
},
|
101
|
+
"van-action-sheet/description": {
|
102
|
+
"type": "string",
|
103
|
+
"description": "选项上方的描述信息, 默认值: -"
|
104
|
+
},
|
105
|
+
"van-action-sheet/closeable": {
|
106
|
+
"type": "boolean",
|
107
|
+
"description": "是否显示关闭图标, 默认值: `true`"
|
108
|
+
},
|
109
|
+
"van-action-sheet/close-icon": {
|
110
|
+
"type": "string",
|
111
|
+
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
|
112
|
+
},
|
113
|
+
"van-action-sheet/duration": {
|
114
|
+
"type": "number | string",
|
115
|
+
"description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
|
116
|
+
},
|
117
|
+
"van-action-sheet/round": {
|
118
|
+
"type": "boolean",
|
119
|
+
"description": "是否显示圆角, 默认值: `true`"
|
120
|
+
},
|
121
|
+
"van-action-sheet/overlay": {
|
122
|
+
"type": "boolean",
|
123
|
+
"description": "是否显示遮罩层, 默认值: `true`"
|
124
|
+
},
|
125
|
+
"van-action-sheet/overlay-class": {
|
126
|
+
"type": "string | Array \\",
|
127
|
+
"description": "自定义遮罩层类名, 默认值: object_",
|
128
|
+
"options": [
|
129
|
+
"-"
|
130
|
+
]
|
131
|
+
},
|
132
|
+
"van-action-sheet/overlay-style": {
|
133
|
+
"type": "object",
|
134
|
+
"description": "自定义遮罩层样式, 默认值: -"
|
135
|
+
},
|
136
|
+
"van-action-sheet/lock-scroll": {
|
137
|
+
"type": "boolean",
|
138
|
+
"description": "是否锁定背景滚动, 默认值: `true`"
|
139
|
+
},
|
140
|
+
"van-action-sheet/lazy-render": {
|
141
|
+
"type": "boolean",
|
142
|
+
"description": "是否在显示弹层时才渲染节点, 默认值: `true`"
|
143
|
+
},
|
144
|
+
"van-action-sheet/close-on-popstate": {
|
145
|
+
"type": "boolean",
|
146
|
+
"description": "是否在页面回退时自动关闭, 默认值: `true`"
|
147
|
+
},
|
148
|
+
"van-action-sheet/close-on-click-action": {
|
149
|
+
"type": "boolean",
|
150
|
+
"description": "是否在点击选项后关闭, 默认值: `false`"
|
151
|
+
},
|
152
|
+
"van-action-sheet/close-on-click-overlay": {
|
153
|
+
"type": "boolean",
|
154
|
+
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
155
|
+
},
|
156
|
+
"van-action-sheet/safe-area-inset-bottom": {
|
157
|
+
"type": "boolean",
|
158
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
159
|
+
},
|
160
|
+
"van-action-sheet/teleport": {
|
161
|
+
"type": "string | Element",
|
162
|
+
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
163
|
+
},
|
164
|
+
"van-action-sheet/before-close": {
|
165
|
+
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
166
|
+
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
167
|
+
},
|
85
168
|
"van-address-edit/area-list": {
|
86
169
|
"type": "object",
|
87
170
|
"description": "地区列表, 默认值: -"
|
@@ -170,6 +253,33 @@
|
|
170
253
|
"type": "(key, val) => string",
|
171
254
|
"description": "自定义校验函数, 默认值: -"
|
172
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
|
+
},
|
173
283
|
"van-address-list/v-model": {
|
174
284
|
"type": "string",
|
175
285
|
"description": "当前选中地址的 id, 默认值: -"
|
@@ -250,116 +360,6 @@
|
|
250
360
|
"type": "() => boolean",
|
251
361
|
"description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
252
362
|
},
|
253
|
-
"van-action-sheet/v-model:show": {
|
254
|
-
"type": "boolean",
|
255
|
-
"description": "是否显示动作面板, 默认值: `false`"
|
256
|
-
},
|
257
|
-
"van-action-sheet/actions": {
|
258
|
-
"type": "ActionSheetAction[]",
|
259
|
-
"description": "面板选项列表, 默认值: `[]`"
|
260
|
-
},
|
261
|
-
"van-action-sheet/title": {
|
262
|
-
"type": "string",
|
263
|
-
"description": "顶部标题, 默认值: -"
|
264
|
-
},
|
265
|
-
"van-action-sheet/cancel-text": {
|
266
|
-
"type": "string",
|
267
|
-
"description": "取消按钮文字, 默认值: -"
|
268
|
-
},
|
269
|
-
"van-action-sheet/description": {
|
270
|
-
"type": "string",
|
271
|
-
"description": "选项上方的描述信息, 默认值: -"
|
272
|
-
},
|
273
|
-
"van-action-sheet/closeable": {
|
274
|
-
"type": "boolean",
|
275
|
-
"description": "是否显示关闭图标, 默认值: `true`"
|
276
|
-
},
|
277
|
-
"van-action-sheet/close-icon": {
|
278
|
-
"type": "string",
|
279
|
-
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
|
280
|
-
},
|
281
|
-
"van-action-sheet/duration": {
|
282
|
-
"type": "number | string",
|
283
|
-
"description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
|
284
|
-
},
|
285
|
-
"van-action-sheet/round": {
|
286
|
-
"type": "boolean",
|
287
|
-
"description": "是否显示圆角, 默认值: `true`"
|
288
|
-
},
|
289
|
-
"van-action-sheet/overlay": {
|
290
|
-
"type": "boolean",
|
291
|
-
"description": "是否显示遮罩层, 默认值: `true`"
|
292
|
-
},
|
293
|
-
"van-action-sheet/overlay-class": {
|
294
|
-
"type": "string | Array \\",
|
295
|
-
"description": "自定义遮罩层类名, 默认值: object_",
|
296
|
-
"options": [
|
297
|
-
"-"
|
298
|
-
]
|
299
|
-
},
|
300
|
-
"van-action-sheet/overlay-style": {
|
301
|
-
"type": "object",
|
302
|
-
"description": "自定义遮罩层样式, 默认值: -"
|
303
|
-
},
|
304
|
-
"van-action-sheet/lock-scroll": {
|
305
|
-
"type": "boolean",
|
306
|
-
"description": "是否锁定背景滚动, 默认值: `true`"
|
307
|
-
},
|
308
|
-
"van-action-sheet/lazy-render": {
|
309
|
-
"type": "boolean",
|
310
|
-
"description": "是否在显示弹层时才渲染节点, 默认值: `true`"
|
311
|
-
},
|
312
|
-
"van-action-sheet/close-on-popstate": {
|
313
|
-
"type": "boolean",
|
314
|
-
"description": "是否在页面回退时自动关闭, 默认值: `true`"
|
315
|
-
},
|
316
|
-
"van-action-sheet/close-on-click-action": {
|
317
|
-
"type": "boolean",
|
318
|
-
"description": "是否在点击选项后关闭, 默认值: `false`"
|
319
|
-
},
|
320
|
-
"van-action-sheet/close-on-click-overlay": {
|
321
|
-
"type": "boolean",
|
322
|
-
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
323
|
-
},
|
324
|
-
"van-action-sheet/safe-area-inset-bottom": {
|
325
|
-
"type": "boolean",
|
326
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
327
|
-
},
|
328
|
-
"van-action-sheet/teleport": {
|
329
|
-
"type": "string | Element",
|
330
|
-
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
331
|
-
},
|
332
|
-
"van-action-sheet/before-close": {
|
333
|
-
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
334
|
-
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
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`"
|
@@ -1214,6 +1214,18 @@
|
|
1214
1214
|
"type": "number | string",
|
1215
1215
|
"description": "可选的最大分钟, 默认值: `59`"
|
1216
1216
|
},
|
1217
|
+
"van-divider/dashed": {
|
1218
|
+
"type": "boolean",
|
1219
|
+
"description": "是否使用虚线, 默认值: `false`"
|
1220
|
+
},
|
1221
|
+
"van-divider/hairline": {
|
1222
|
+
"type": "boolean",
|
1223
|
+
"description": "是否使用 0.5px 线, 默认值: `true`"
|
1224
|
+
},
|
1225
|
+
"van-divider/content-position": {
|
1226
|
+
"type": "string",
|
1227
|
+
"description": "内容位置,可选值为 `left` `right`, 默认值: `center`"
|
1228
|
+
},
|
1217
1229
|
"van-dialog/v-model:show": {
|
1218
1230
|
"type": "boolean",
|
1219
1231
|
"description": "是否显示弹窗, 默认值: -"
|
@@ -1306,17 +1318,17 @@
|
|
1306
1318
|
"type": "string | Element",
|
1307
1319
|
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
1308
1320
|
},
|
1309
|
-
"van-
|
1310
|
-
"type": "
|
1311
|
-
"description": "
|
1321
|
+
"van-empty/image": {
|
1322
|
+
"type": "string",
|
1323
|
+
"description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL, 默认值: `default`"
|
1312
1324
|
},
|
1313
|
-
"van-
|
1314
|
-
"type": "
|
1315
|
-
"description": "
|
1325
|
+
"van-empty/image-size": {
|
1326
|
+
"type": "number | string",
|
1327
|
+
"description": "图片大小,默认单位为 `px`, 默认值: -"
|
1316
1328
|
},
|
1317
|
-
"van-
|
1329
|
+
"van-empty/description": {
|
1318
1330
|
"type": "string",
|
1319
|
-
"description": "
|
1331
|
+
"description": "图片下方的描述文字, 默认值: -"
|
1320
1332
|
},
|
1321
1333
|
"van-dropdown-menu/active-color": {
|
1322
1334
|
"type": "string",
|
@@ -1377,21 +1389,9 @@
|
|
1377
1389
|
"type": "string | Element",
|
1378
1390
|
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
1379
1391
|
},
|
1380
|
-
"van-
|
1381
|
-
"type": "string",
|
1382
|
-
"description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL, 默认值: `default`"
|
1383
|
-
},
|
1384
|
-
"van-empty/image-size": {
|
1392
|
+
"van-field/v-model": {
|
1385
1393
|
"type": "number | string",
|
1386
|
-
"description": "
|
1387
|
-
},
|
1388
|
-
"van-empty/description": {
|
1389
|
-
"type": "string",
|
1390
|
-
"description": "图片下方的描述文字, 默认值: -"
|
1391
|
-
},
|
1392
|
-
"van-field/v-model": {
|
1393
|
-
"type": "number | string",
|
1394
|
-
"description": "当前输入的值, 默认值: -"
|
1394
|
+
"description": "当前输入的值, 默认值: -"
|
1395
1395
|
},
|
1396
1396
|
"van-field/label": {
|
1397
1397
|
"type": "string",
|
@@ -1692,61 +1692,33 @@
|
|
1692
1692
|
"type": "string",
|
1693
1693
|
"description": "根节点对应的 HTML 标签名, 默认值: `i`"
|
1694
1694
|
},
|
1695
|
-
"van-
|
1696
|
-
"type": "string",
|
1697
|
-
"description": "
|
1698
|
-
},
|
1699
|
-
"van-image/fit": {
|
1700
|
-
"type": "string",
|
1701
|
-
"description": "图片填充模式, 默认值: `fill`"
|
1702
|
-
},
|
1703
|
-
"van-image/alt": {
|
1704
|
-
"type": "string",
|
1705
|
-
"description": "替代文本, 默认值: -"
|
1706
|
-
},
|
1707
|
-
"van-image/width": {
|
1708
|
-
"type": "number | string",
|
1709
|
-
"description": "宽度,默认单位为 `px`, 默认值: -"
|
1710
|
-
},
|
1711
|
-
"van-image/height": {
|
1712
|
-
"type": "number | string",
|
1713
|
-
"description": "高度,默认单位为 `px`, 默认值: -"
|
1695
|
+
"van-index-bar/index-list": {
|
1696
|
+
"type": "string[] | number[]",
|
1697
|
+
"description": "索引字符列表, 默认值: `A-Z`"
|
1714
1698
|
},
|
1715
|
-
"van-
|
1699
|
+
"van-index-bar/z-index": {
|
1716
1700
|
"type": "number | string",
|
1717
|
-
"description": "
|
1718
|
-
},
|
1719
|
-
"van-image/round": {
|
1720
|
-
"type": "boolean",
|
1721
|
-
"description": "是否显示为圆形, 默认值: `false`"
|
1722
|
-
},
|
1723
|
-
"van-image/lazy-load": {
|
1724
|
-
"type": "boolean",
|
1725
|
-
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
1701
|
+
"description": "z-index 层级, 默认值: `1`"
|
1726
1702
|
},
|
1727
|
-
"van-
|
1703
|
+
"van-index-bar/sticky": {
|
1728
1704
|
"type": "boolean",
|
1729
|
-
"description": "
|
1705
|
+
"description": "是否开启锚点自动吸顶, 默认值: `true`"
|
1730
1706
|
},
|
1731
|
-
"van-
|
1732
|
-
"type": "
|
1733
|
-
"description": "
|
1707
|
+
"van-index-bar/sticky-offset-top": {
|
1708
|
+
"type": "number",
|
1709
|
+
"description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
|
1734
1710
|
},
|
1735
|
-
"van-
|
1711
|
+
"van-index-bar/highlight-color": {
|
1736
1712
|
"type": "string",
|
1737
|
-
"description": "
|
1713
|
+
"description": "索引字符高亮颜色, 默认值: `#ee0a24`"
|
1738
1714
|
},
|
1739
|
-
"van-
|
1740
|
-
"type": "string",
|
1741
|
-
"description": "
|
1715
|
+
"van-index-bar/teleport": {
|
1716
|
+
"type": "string | Element",
|
1717
|
+
"description": "指定索引栏挂载的节点, 默认值: -"
|
1742
1718
|
},
|
1743
|
-
"van-
|
1719
|
+
"van-index-anchor/index": {
|
1744
1720
|
"type": "number | string",
|
1745
|
-
"description": "
|
1746
|
-
},
|
1747
|
-
"van-image/icon-prefix": {
|
1748
|
-
"type": "string",
|
1749
|
-
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
1721
|
+
"description": "索引字符, 默认值: -"
|
1750
1722
|
},
|
1751
1723
|
"van-image-preview/v-model:show": {
|
1752
1724
|
"type": "boolean",
|
@@ -1823,33 +1795,85 @@
|
|
1823
1795
|
"type": "string | Element",
|
1824
1796
|
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
1825
1797
|
},
|
1826
|
-
"van-
|
1827
|
-
"type": "string
|
1828
|
-
"description": "
|
1798
|
+
"van-image/src": {
|
1799
|
+
"type": "string",
|
1800
|
+
"description": "图片链接, 默认值: -"
|
1829
1801
|
},
|
1830
|
-
"van-
|
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": {
|
1831
1811
|
"type": "number | string",
|
1832
|
-
"description": "
|
1812
|
+
"description": "宽度,默认单位为 `px`, 默认值: -"
|
1833
1813
|
},
|
1834
|
-
"van-
|
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": {
|
1835
1823
|
"type": "boolean",
|
1836
|
-
"description": "
|
1824
|
+
"description": "是否显示为圆形, 默认值: `false`"
|
1837
1825
|
},
|
1838
|
-
"van-
|
1839
|
-
"type": "
|
1840
|
-
"description": "
|
1826
|
+
"van-image/lazy-load": {
|
1827
|
+
"type": "boolean",
|
1828
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
1841
1829
|
},
|
1842
|
-
"van-
|
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": {
|
1843
1839
|
"type": "string",
|
1844
|
-
"description": "
|
1840
|
+
"description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo-fail`"
|
1845
1841
|
},
|
1846
|
-
"van-
|
1847
|
-
"type": "string
|
1848
|
-
"description": "
|
1842
|
+
"van-image/loading-icon": {
|
1843
|
+
"type": "string",
|
1844
|
+
"description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo`"
|
1849
1845
|
},
|
1850
|
-
"van-
|
1846
|
+
"van-image/icon-size": {
|
1851
1847
|
"type": "number | string",
|
1852
|
-
"description": "
|
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
|
+
"van-loading/color": {
|
1855
|
+
"type": "string",
|
1856
|
+
"description": "颜色, 默认值: `#c9c9c9`"
|
1857
|
+
},
|
1858
|
+
"van-loading/type": {
|
1859
|
+
"type": "string",
|
1860
|
+
"description": "类型,可选值为 `spinner`, 默认值: `circular`"
|
1861
|
+
},
|
1862
|
+
"van-loading/size": {
|
1863
|
+
"type": "number | string",
|
1864
|
+
"description": "加载图标大小,默认单位为 `px`, 默认值: `30px`"
|
1865
|
+
},
|
1866
|
+
"van-loading/text-size": {
|
1867
|
+
"type": "number | string",
|
1868
|
+
"description": "文字大小,默认单位为 `px`, 默认值: `14px`"
|
1869
|
+
},
|
1870
|
+
"van-loading/text-color": {
|
1871
|
+
"type": "string",
|
1872
|
+
"description": "文字颜色, 默认值: `#c9c9c9`"
|
1873
|
+
},
|
1874
|
+
"van-loading/vertical": {
|
1875
|
+
"type": "boolean",
|
1876
|
+
"description": "是否垂直排列图标和文字内容, 默认值: `false`"
|
1853
1877
|
},
|
1854
1878
|
"van-list/v-model:loading": {
|
1855
1879
|
"type": "boolean",
|
@@ -1887,29 +1911,73 @@
|
|
1887
1911
|
"type": "string",
|
1888
1912
|
"description": "滚动触发加载的方向,可选值为 `up`, 默认值: `down`"
|
1889
1913
|
},
|
1890
|
-
"van-
|
1914
|
+
"van-number-keyboard/v-model": {
|
1891
1915
|
"type": "string",
|
1892
|
-
"description": "
|
1916
|
+
"description": "当前输入值, 默认值: -"
|
1893
1917
|
},
|
1894
|
-
"van-
|
1918
|
+
"van-number-keyboard/show": {
|
1919
|
+
"type": "boolean",
|
1920
|
+
"description": "是否显示键盘, 默认值: -"
|
1921
|
+
},
|
1922
|
+
"van-number-keyboard/title": {
|
1895
1923
|
"type": "string",
|
1896
|
-
"description": "
|
1924
|
+
"description": "键盘标题, 默认值: -"
|
1897
1925
|
},
|
1898
|
-
"van-
|
1926
|
+
"van-number-keyboard/theme": {
|
1927
|
+
"type": "string",
|
1928
|
+
"description": "样式风格,可选值为 `custom`, 默认值: `default`"
|
1929
|
+
},
|
1930
|
+
"van-number-keyboard/maxlength": {
|
1899
1931
|
"type": "number | string",
|
1900
|
-
"description": "
|
1932
|
+
"description": "输入值最大长度, 默认值: `Infinity`"
|
1901
1933
|
},
|
1902
|
-
"van-
|
1934
|
+
"van-number-keyboard/transition": {
|
1935
|
+
"type": "boolean",
|
1936
|
+
"description": "是否开启过场动画, 默认值: `true`"
|
1937
|
+
},
|
1938
|
+
"van-number-keyboard/z-index": {
|
1903
1939
|
"type": "number | string",
|
1904
|
-
"description": "
|
1940
|
+
"description": "键盘 z-index 层级, 默认值: `100`"
|
1905
1941
|
},
|
1906
|
-
"van-
|
1942
|
+
"van-number-keyboard/extra-key": {
|
1943
|
+
"type": "string | string[]",
|
1944
|
+
"description": "底部额外按键的内容, 默认值: `''`"
|
1945
|
+
},
|
1946
|
+
"van-number-keyboard/close-button-text": {
|
1907
1947
|
"type": "string",
|
1908
|
-
"description": "
|
1948
|
+
"description": "关闭按钮文字,空则不展示, 默认值: -"
|
1909
1949
|
},
|
1910
|
-
"van-
|
1950
|
+
"van-number-keyboard/delete-button-text": {
|
1951
|
+
"type": "string",
|
1952
|
+
"description": "删除按钮文字,空则展示删除图标, 默认值: -"
|
1953
|
+
},
|
1954
|
+
"van-number-keyboard/close-button-loading": {
|
1911
1955
|
"type": "boolean",
|
1912
|
-
"description": "
|
1956
|
+
"description": "是否将关闭按钮设置为加载中状态,仅在 `theme=\"custom\"` 时有效, 默认值: `false`"
|
1957
|
+
},
|
1958
|
+
"van-number-keyboard/show-delete-key": {
|
1959
|
+
"type": "boolean",
|
1960
|
+
"description": "是否展示删除图标, 默认值: `true`"
|
1961
|
+
},
|
1962
|
+
"van-number-keyboard/blur-on-close": {
|
1963
|
+
"type": "boolean",
|
1964
|
+
"description": "是否在点击关闭按钮时触发 blur 事件, 默认值: `true`"
|
1965
|
+
},
|
1966
|
+
"van-number-keyboard/hide-on-click-outside": {
|
1967
|
+
"type": "boolean",
|
1968
|
+
"description": "是否在点击外部时收起键盘, 默认值: `true`"
|
1969
|
+
},
|
1970
|
+
"van-number-keyboard/teleport": {
|
1971
|
+
"type": "string | Element",
|
1972
|
+
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
1973
|
+
},
|
1974
|
+
"van-number-keyboard/safe-area-inset-bottom": {
|
1975
|
+
"type": "boolean",
|
1976
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
1977
|
+
},
|
1978
|
+
"van-number-keyboard/random-key-order": {
|
1979
|
+
"type": "boolean",
|
1980
|
+
"description": "是否将通过随机顺序展示按键, 默认值: `false`"
|
1913
1981
|
},
|
1914
1982
|
"van-nav-bar/title": {
|
1915
1983
|
"type": "string",
|
@@ -1983,74 +2051,6 @@
|
|
1983
2051
|
"type": "boolean",
|
1984
2052
|
"description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
|
1985
2053
|
},
|
1986
|
-
"van-number-keyboard/v-model": {
|
1987
|
-
"type": "string",
|
1988
|
-
"description": "当前输入值, 默认值: -"
|
1989
|
-
},
|
1990
|
-
"van-number-keyboard/show": {
|
1991
|
-
"type": "boolean",
|
1992
|
-
"description": "是否显示键盘, 默认值: -"
|
1993
|
-
},
|
1994
|
-
"van-number-keyboard/title": {
|
1995
|
-
"type": "string",
|
1996
|
-
"description": "键盘标题, 默认值: -"
|
1997
|
-
},
|
1998
|
-
"van-number-keyboard/theme": {
|
1999
|
-
"type": "string",
|
2000
|
-
"description": "样式风格,可选值为 `custom`, 默认值: `default`"
|
2001
|
-
},
|
2002
|
-
"van-number-keyboard/maxlength": {
|
2003
|
-
"type": "number | string",
|
2004
|
-
"description": "输入值最大长度, 默认值: `Infinity`"
|
2005
|
-
},
|
2006
|
-
"van-number-keyboard/transition": {
|
2007
|
-
"type": "boolean",
|
2008
|
-
"description": "是否开启过场动画, 默认值: `true`"
|
2009
|
-
},
|
2010
|
-
"van-number-keyboard/z-index": {
|
2011
|
-
"type": "number | string",
|
2012
|
-
"description": "键盘 z-index 层级, 默认值: `100`"
|
2013
|
-
},
|
2014
|
-
"van-number-keyboard/extra-key": {
|
2015
|
-
"type": "string | string[]",
|
2016
|
-
"description": "底部额外按键的内容, 默认值: `''`"
|
2017
|
-
},
|
2018
|
-
"van-number-keyboard/close-button-text": {
|
2019
|
-
"type": "string",
|
2020
|
-
"description": "关闭按钮文字,空则不展示, 默认值: -"
|
2021
|
-
},
|
2022
|
-
"van-number-keyboard/delete-button-text": {
|
2023
|
-
"type": "string",
|
2024
|
-
"description": "删除按钮文字,空则展示删除图标, 默认值: -"
|
2025
|
-
},
|
2026
|
-
"van-number-keyboard/close-button-loading": {
|
2027
|
-
"type": "boolean",
|
2028
|
-
"description": "是否将关闭按钮设置为加载中状态,仅在 `theme=\"custom\"` 时有效, 默认值: `false`"
|
2029
|
-
},
|
2030
|
-
"van-number-keyboard/show-delete-key": {
|
2031
|
-
"type": "boolean",
|
2032
|
-
"description": "是否展示删除图标, 默认值: `true`"
|
2033
|
-
},
|
2034
|
-
"van-number-keyboard/blur-on-close": {
|
2035
|
-
"type": "boolean",
|
2036
|
-
"description": "是否在点击关闭按钮时触发 blur 事件, 默认值: `true`"
|
2037
|
-
},
|
2038
|
-
"van-number-keyboard/hide-on-click-outside": {
|
2039
|
-
"type": "boolean",
|
2040
|
-
"description": "是否在点击外部时收起键盘, 默认值: `true`"
|
2041
|
-
},
|
2042
|
-
"van-number-keyboard/teleport": {
|
2043
|
-
"type": "string | Element",
|
2044
|
-
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
2045
|
-
},
|
2046
|
-
"van-number-keyboard/safe-area-inset-bottom": {
|
2047
|
-
"type": "boolean",
|
2048
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
2049
|
-
},
|
2050
|
-
"van-number-keyboard/random-key-order": {
|
2051
|
-
"type": "boolean",
|
2052
|
-
"description": "是否将通过随机顺序展示按键, 默认值: `false`"
|
2053
|
-
},
|
2054
2054
|
"van-overlay/show": {
|
2055
2055
|
"type": "boolean",
|
2056
2056
|
"description": "是否展示遮罩层, 默认值: `false`"
|
@@ -2111,34 +2111,6 @@
|
|
2111
2111
|
"type": "boolean",
|
2112
2112
|
"description": "是否显示省略号, 默认值: `false`"
|
2113
2113
|
},
|
2114
|
-
"van-password-input/value": {
|
2115
|
-
"type": "string",
|
2116
|
-
"description": "密码值, 默认值: `''`"
|
2117
|
-
},
|
2118
|
-
"van-password-input/info": {
|
2119
|
-
"type": "string",
|
2120
|
-
"description": "输入框下方文字提示, 默认值: -"
|
2121
|
-
},
|
2122
|
-
"van-password-input/error-info": {
|
2123
|
-
"type": "string",
|
2124
|
-
"description": "输入框下方错误提示, 默认值: -"
|
2125
|
-
},
|
2126
|
-
"van-password-input/length": {
|
2127
|
-
"type": "number | string",
|
2128
|
-
"description": "密码最大长度, 默认值: `6`"
|
2129
|
-
},
|
2130
|
-
"van-password-input/gutter": {
|
2131
|
-
"type": "number | string",
|
2132
|
-
"description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`, 默认值: `0`"
|
2133
|
-
},
|
2134
|
-
"van-password-input/mask": {
|
2135
|
-
"type": "boolean",
|
2136
|
-
"description": "是否隐藏密码内容, 默认值: `true`"
|
2137
|
-
},
|
2138
|
-
"van-password-input/focused": {
|
2139
|
-
"type": "boolean",
|
2140
|
-
"description": "是否已聚焦,聚焦时会显示光标, 默认值: `false`"
|
2141
|
-
},
|
2142
2114
|
"van-picker/columns": {
|
2143
2115
|
"type": "Column[]",
|
2144
2116
|
"description": "对象数组,配置每一列显示的数据, 默认值: `[]`"
|
@@ -2191,6 +2163,34 @@
|
|
2191
2163
|
"type": "number | string",
|
2192
2164
|
"description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
|
2193
2165
|
},
|
2166
|
+
"van-password-input/value": {
|
2167
|
+
"type": "string",
|
2168
|
+
"description": "密码值, 默认值: `''`"
|
2169
|
+
},
|
2170
|
+
"van-password-input/info": {
|
2171
|
+
"type": "string",
|
2172
|
+
"description": "输入框下方文字提示, 默认值: -"
|
2173
|
+
},
|
2174
|
+
"van-password-input/error-info": {
|
2175
|
+
"type": "string",
|
2176
|
+
"description": "输入框下方错误提示, 默认值: -"
|
2177
|
+
},
|
2178
|
+
"van-password-input/length": {
|
2179
|
+
"type": "number | string",
|
2180
|
+
"description": "密码最大长度, 默认值: `6`"
|
2181
|
+
},
|
2182
|
+
"van-password-input/gutter": {
|
2183
|
+
"type": "number | string",
|
2184
|
+
"description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`, 默认值: `0`"
|
2185
|
+
},
|
2186
|
+
"van-password-input/mask": {
|
2187
|
+
"type": "boolean",
|
2188
|
+
"description": "是否隐藏密码内容, 默认值: `true`"
|
2189
|
+
},
|
2190
|
+
"van-password-input/focused": {
|
2191
|
+
"type": "boolean",
|
2192
|
+
"description": "是否已聚焦,聚焦时会显示光标, 默认值: `false`"
|
2193
|
+
},
|
2194
2194
|
"van-popover/v-model:show": {
|
2195
2195
|
"type": "boolean",
|
2196
2196
|
"description": "是否展示气泡弹出层, 默认值: `false`"
|
@@ -2258,6 +2258,42 @@
|
|
2258
2258
|
"type": "string",
|
2259
2259
|
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
2260
2260
|
},
|
2261
|
+
"van-progress/percentage": {
|
2262
|
+
"type": "number | string",
|
2263
|
+
"description": "进度百分比, 默认值: `0`"
|
2264
|
+
},
|
2265
|
+
"van-progress/stroke-width": {
|
2266
|
+
"type": "number | string",
|
2267
|
+
"description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
|
2268
|
+
},
|
2269
|
+
"van-progress/color": {
|
2270
|
+
"type": "string",
|
2271
|
+
"description": "进度条颜色, 默认值: `#1989fa`"
|
2272
|
+
},
|
2273
|
+
"van-progress/track-color": {
|
2274
|
+
"type": "string",
|
2275
|
+
"description": "轨道颜色, 默认值: `#e5e5e5`"
|
2276
|
+
},
|
2277
|
+
"van-progress/pivot-text": {
|
2278
|
+
"type": "string",
|
2279
|
+
"description": "进度文字内容, 默认值: 百分比"
|
2280
|
+
},
|
2281
|
+
"van-progress/pivot-color": {
|
2282
|
+
"type": "string",
|
2283
|
+
"description": "进度文字背景色, 默认值: 同进度条颜色"
|
2284
|
+
},
|
2285
|
+
"van-progress/text-color": {
|
2286
|
+
"type": "string",
|
2287
|
+
"description": "进度文字颜色, 默认值: `white`"
|
2288
|
+
},
|
2289
|
+
"van-progress/inactive": {
|
2290
|
+
"type": "boolean",
|
2291
|
+
"description": "是否置灰, 默认值: `false`"
|
2292
|
+
},
|
2293
|
+
"van-progress/show-pivot": {
|
2294
|
+
"type": "boolean",
|
2295
|
+
"description": "是否显示进度文字, 默认值: `true`"
|
2296
|
+
},
|
2261
2297
|
"van-popup/v-model:show": {
|
2262
2298
|
"type": "boolean",
|
2263
2299
|
"description": "是否显示弹出层, 默认值: `false`"
|
@@ -2341,81 +2377,141 @@
|
|
2341
2377
|
"type": "boolean",
|
2342
2378
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
|
2343
2379
|
},
|
2344
|
-
"van-
|
2380
|
+
"van-pull-refresh/v-model": {
|
2381
|
+
"type": "boolean",
|
2382
|
+
"description": "是否处于加载中状态, 默认值: -"
|
2383
|
+
},
|
2384
|
+
"van-pull-refresh/pulling-text": {
|
2385
|
+
"type": "string",
|
2386
|
+
"description": "下拉过程提示文案, 默认值: `下拉即可刷新...`"
|
2387
|
+
},
|
2388
|
+
"van-pull-refresh/loosing-text": {
|
2389
|
+
"type": "string",
|
2390
|
+
"description": "释放过程提示文案, 默认值: `释放即可刷新...`"
|
2391
|
+
},
|
2392
|
+
"van-pull-refresh/loading-text": {
|
2393
|
+
"type": "string",
|
2394
|
+
"description": "加载过程提示文案, 默认值: `加载中...`"
|
2395
|
+
},
|
2396
|
+
"van-pull-refresh/success-text": {
|
2397
|
+
"type": "string",
|
2398
|
+
"description": "刷新成功提示文案, 默认值: -"
|
2399
|
+
},
|
2400
|
+
"van-pull-refresh/success-duration": {
|
2345
2401
|
"type": "number | string",
|
2346
|
-
"description": "
|
2402
|
+
"description": "刷新成功提示展示时长(ms), 默认值: `500`"
|
2347
2403
|
},
|
2348
|
-
"van-
|
2404
|
+
"van-pull-refresh/animation-duration": {
|
2349
2405
|
"type": "number | string",
|
2350
|
-
"description": "
|
2406
|
+
"description": "动画时长, 默认值: `300`"
|
2351
2407
|
},
|
2352
|
-
"van-
|
2408
|
+
"van-pull-refresh/head-height": {
|
2409
|
+
"type": "number | string",
|
2410
|
+
"description": "顶部内容高度, 默认值: `50`"
|
2411
|
+
},
|
2412
|
+
"van-pull-refresh/pull-distance": {
|
2413
|
+
"type": "number | string",
|
2414
|
+
"description": "触发下拉刷新的距离, 默认值: 与 `head-height` 一致"
|
2415
|
+
},
|
2416
|
+
"van-pull-refresh/disabled": {
|
2417
|
+
"type": "boolean",
|
2418
|
+
"description": "是否禁用下拉刷新, 默认值: `false`"
|
2419
|
+
},
|
2420
|
+
"van-search/v-model": {
|
2421
|
+
"type": "number | string",
|
2422
|
+
"description": "当前输入的值, 默认值: -"
|
2423
|
+
},
|
2424
|
+
"van-search/label": {
|
2353
2425
|
"type": "string",
|
2354
|
-
"description": "
|
2426
|
+
"description": "搜索框左侧文本, 默认值: -"
|
2355
2427
|
},
|
2356
|
-
"van-
|
2428
|
+
"van-search/name": {
|
2357
2429
|
"type": "string",
|
2358
|
-
"description": "
|
2430
|
+
"description": "名称,作为提交表单时的标识符, 默认值: -"
|
2359
2431
|
},
|
2360
|
-
"van-
|
2432
|
+
"van-search/shape": {
|
2361
2433
|
"type": "string",
|
2362
|
-
"description": "
|
2434
|
+
"description": "搜索框形状,可选值为 `round`, 默认值: `square`"
|
2363
2435
|
},
|
2364
|
-
"van-
|
2436
|
+
"van-search/id": {
|
2365
2437
|
"type": "string",
|
2366
|
-
"description": "
|
2438
|
+
"description": "搜索框 id,同时会设置 label 的 for 属性, 默认值: `van-search-n-input`"
|
2367
2439
|
},
|
2368
|
-
"van-
|
2440
|
+
"van-search/background": {
|
2369
2441
|
"type": "string",
|
2370
|
-
"description": "
|
2442
|
+
"description": "搜索框外部背景色, 默认值: `#f2f2f2`"
|
2371
2443
|
},
|
2372
|
-
"van-
|
2444
|
+
"van-search/maxlength": {
|
2445
|
+
"type": "number | string",
|
2446
|
+
"description": "输入的最大字符数, 默认值: -"
|
2447
|
+
},
|
2448
|
+
"van-search/placeholder": {
|
2449
|
+
"type": "string",
|
2450
|
+
"description": "占位提示文字, 默认值: -"
|
2451
|
+
},
|
2452
|
+
"van-search/clearable": {
|
2373
2453
|
"type": "boolean",
|
2374
|
-
"description": "
|
2454
|
+
"description": "是否启用清除图标,点击清除图标后会清空输入框, 默认值: `true`"
|
2375
2455
|
},
|
2376
|
-
"van-
|
2456
|
+
"van-search/clear-icon": {
|
2457
|
+
"type": "string",
|
2458
|
+
"description": "清除[图标名称](#/zh-CN/icon)或图片链接, 默认值: `clear`"
|
2459
|
+
},
|
2460
|
+
"van-search/clear-trigger": {
|
2461
|
+
"type": "string",
|
2462
|
+
"description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
|
2463
|
+
},
|
2464
|
+
"van-search/autofocus": {
|
2377
2465
|
"type": "boolean",
|
2378
|
-
"description": "
|
2466
|
+
"description": "是否自动聚焦,iOS 系统不支持该属性, 默认值: `false`"
|
2379
2467
|
},
|
2380
|
-
"van-
|
2468
|
+
"van-search/show-action": {
|
2381
2469
|
"type": "boolean",
|
2382
|
-
"description": "
|
2470
|
+
"description": "是否在搜索框右侧显示取消按钮, 默认值: `false`"
|
2471
|
+
},
|
2472
|
+
"van-search/action-text": {
|
2473
|
+
"type": "boolean",
|
2474
|
+
"description": "取消按钮文字, 默认值: `取消`"
|
2475
|
+
},
|
2476
|
+
"van-search/disabled": {
|
2477
|
+
"type": "boolean",
|
2478
|
+
"description": "是否禁用输入框, 默认值: `false`"
|
2479
|
+
},
|
2480
|
+
"van-search/readonly": {
|
2481
|
+
"type": "boolean",
|
2482
|
+
"description": "是否将输入框设为只读状态,只读状态下无法输入内容, 默认值: `false`"
|
2483
|
+
},
|
2484
|
+
"van-search/error": {
|
2485
|
+
"type": "boolean",
|
2486
|
+
"description": "是否将输入内容标红, 默认值: `false`"
|
2487
|
+
},
|
2488
|
+
"van-search/error-message": {
|
2489
|
+
"type": "string",
|
2490
|
+
"description": "底部错误提示文案,为空时不展示, 默认值: -"
|
2491
|
+
},
|
2492
|
+
"van-search/formatter": {
|
2493
|
+
"type": "(val: string) => string",
|
2494
|
+
"description": "输入内容格式化函数, 默认值: -"
|
2383
2495
|
},
|
2384
|
-
"van-
|
2496
|
+
"van-search/format-trigger": {
|
2385
2497
|
"type": "string",
|
2386
|
-
"description": "
|
2498
|
+
"description": "格式化函数触发的时机,可选值为 `onBlur`, 默认值: `onChange`"
|
2387
2499
|
},
|
2388
|
-
"van-
|
2500
|
+
"van-search/input-align": {
|
2389
2501
|
"type": "string",
|
2390
|
-
"description": "
|
2502
|
+
"description": "输入框内容对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
2391
2503
|
},
|
2392
|
-
"van-
|
2504
|
+
"van-search/left-icon": {
|
2393
2505
|
"type": "string",
|
2394
|
-
"description": "
|
2506
|
+
"description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: `search`"
|
2395
2507
|
},
|
2396
|
-
"van-
|
2508
|
+
"van-search/right-icon": {
|
2397
2509
|
"type": "string",
|
2398
|
-
"description": "
|
2399
|
-
},
|
2400
|
-
"van-pull-refresh/success-duration": {
|
2401
|
-
"type": "number | string",
|
2402
|
-
"description": "刷新成功提示展示时长(ms), 默认值: `500`"
|
2403
|
-
},
|
2404
|
-
"van-pull-refresh/animation-duration": {
|
2405
|
-
"type": "number | string",
|
2406
|
-
"description": "动画时长, 默认值: `300`"
|
2407
|
-
},
|
2408
|
-
"van-pull-refresh/head-height": {
|
2409
|
-
"type": "number | string",
|
2410
|
-
"description": "顶部内容高度, 默认值: `50`"
|
2411
|
-
},
|
2412
|
-
"van-pull-refresh/pull-distance": {
|
2413
|
-
"type": "number | string",
|
2414
|
-
"description": "触发下拉刷新的距离, 默认值: 与 `head-height` 一致"
|
2510
|
+
"description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
2415
2511
|
},
|
2416
|
-
"van-
|
2417
|
-
"type": "
|
2418
|
-
"description": "
|
2512
|
+
"van-search/autocomplete": {
|
2513
|
+
"type": "string",
|
2514
|
+
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
|
2419
2515
|
},
|
2420
2516
|
"van-radio/name": {
|
2421
2517
|
"type": "any",
|
@@ -2521,102 +2617,6 @@
|
|
2521
2617
|
"type": "boolean",
|
2522
2618
|
"description": "是否可以通过滑动手势选择评分, 默认值: `true`"
|
2523
2619
|
},
|
2524
|
-
"van-search/v-model": {
|
2525
|
-
"type": "number | string",
|
2526
|
-
"description": "当前输入的值, 默认值: -"
|
2527
|
-
},
|
2528
|
-
"van-search/label": {
|
2529
|
-
"type": "string",
|
2530
|
-
"description": "搜索框左侧文本, 默认值: -"
|
2531
|
-
},
|
2532
|
-
"van-search/name": {
|
2533
|
-
"type": "string",
|
2534
|
-
"description": "名称,作为提交表单时的标识符, 默认值: -"
|
2535
|
-
},
|
2536
|
-
"van-search/shape": {
|
2537
|
-
"type": "string",
|
2538
|
-
"description": "搜索框形状,可选值为 `round`, 默认值: `square`"
|
2539
|
-
},
|
2540
|
-
"van-search/id": {
|
2541
|
-
"type": "string",
|
2542
|
-
"description": "搜索框 id,同时会设置 label 的 for 属性, 默认值: `van-search-n-input`"
|
2543
|
-
},
|
2544
|
-
"van-search/background": {
|
2545
|
-
"type": "string",
|
2546
|
-
"description": "搜索框外部背景色, 默认值: `#f2f2f2`"
|
2547
|
-
},
|
2548
|
-
"van-search/maxlength": {
|
2549
|
-
"type": "number | string",
|
2550
|
-
"description": "输入的最大字符数, 默认值: -"
|
2551
|
-
},
|
2552
|
-
"van-search/placeholder": {
|
2553
|
-
"type": "string",
|
2554
|
-
"description": "占位提示文字, 默认值: -"
|
2555
|
-
},
|
2556
|
-
"van-search/clearable": {
|
2557
|
-
"type": "boolean",
|
2558
|
-
"description": "是否启用清除图标,点击清除图标后会清空输入框, 默认值: `true`"
|
2559
|
-
},
|
2560
|
-
"van-search/clear-icon": {
|
2561
|
-
"type": "string",
|
2562
|
-
"description": "清除[图标名称](#/zh-CN/icon)或图片链接, 默认值: `clear`"
|
2563
|
-
},
|
2564
|
-
"van-search/clear-trigger": {
|
2565
|
-
"type": "string",
|
2566
|
-
"description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
|
2567
|
-
},
|
2568
|
-
"van-search/autofocus": {
|
2569
|
-
"type": "boolean",
|
2570
|
-
"description": "是否自动聚焦,iOS 系统不支持该属性, 默认值: `false`"
|
2571
|
-
},
|
2572
|
-
"van-search/show-action": {
|
2573
|
-
"type": "boolean",
|
2574
|
-
"description": "是否在搜索框右侧显示取消按钮, 默认值: `false`"
|
2575
|
-
},
|
2576
|
-
"van-search/action-text": {
|
2577
|
-
"type": "boolean",
|
2578
|
-
"description": "取消按钮文字, 默认值: `取消`"
|
2579
|
-
},
|
2580
|
-
"van-search/disabled": {
|
2581
|
-
"type": "boolean",
|
2582
|
-
"description": "是否禁用输入框, 默认值: `false`"
|
2583
|
-
},
|
2584
|
-
"van-search/readonly": {
|
2585
|
-
"type": "boolean",
|
2586
|
-
"description": "是否将输入框设为只读状态,只读状态下无法输入内容, 默认值: `false`"
|
2587
|
-
},
|
2588
|
-
"van-search/error": {
|
2589
|
-
"type": "boolean",
|
2590
|
-
"description": "是否将输入内容标红, 默认值: `false`"
|
2591
|
-
},
|
2592
|
-
"van-search/error-message": {
|
2593
|
-
"type": "string",
|
2594
|
-
"description": "底部错误提示文案,为空时不展示, 默认值: -"
|
2595
|
-
},
|
2596
|
-
"van-search/formatter": {
|
2597
|
-
"type": "(val: string) => string",
|
2598
|
-
"description": "输入内容格式化函数, 默认值: -"
|
2599
|
-
},
|
2600
|
-
"van-search/format-trigger": {
|
2601
|
-
"type": "string",
|
2602
|
-
"description": "格式化函数触发的时机,可选值为 `onBlur`, 默认值: `onChange`"
|
2603
|
-
},
|
2604
|
-
"van-search/input-align": {
|
2605
|
-
"type": "string",
|
2606
|
-
"description": "输入框内容对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
2607
|
-
},
|
2608
|
-
"van-search/left-icon": {
|
2609
|
-
"type": "string",
|
2610
|
-
"description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: `search`"
|
2611
|
-
},
|
2612
|
-
"van-search/right-icon": {
|
2613
|
-
"type": "string",
|
2614
|
-
"description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
2615
|
-
},
|
2616
|
-
"van-search/autocomplete": {
|
2617
|
-
"type": "string",
|
2618
|
-
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
|
2619
|
-
},
|
2620
2620
|
"van-share-sheet/v-model:show": {
|
2621
2621
|
"type": "boolean",
|
2622
2622
|
"description": "是否显示分享面板, 默认值: `false`"
|
@@ -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`"
|
@@ -3118,6 +3118,42 @@
|
|
3118
3118
|
"type": "any",
|
3119
3119
|
"description": "关闭时对应的值, 默认值: `false`"
|
3120
3120
|
},
|
3121
|
+
"van-tag/type": {
|
3122
|
+
"type": "string",
|
3123
|
+
"description": "类型,可选值为 `primary` `success` `danger` `warning`, 默认值: `default`"
|
3124
|
+
},
|
3125
|
+
"van-tag/size": {
|
3126
|
+
"type": "string",
|
3127
|
+
"description": "大小, 可选值为 `large` `medium`, 默认值: -"
|
3128
|
+
},
|
3129
|
+
"van-tag/color": {
|
3130
|
+
"type": "string",
|
3131
|
+
"description": "标签颜色, 默认值: -"
|
3132
|
+
},
|
3133
|
+
"van-tag/show": {
|
3134
|
+
"type": "boolean",
|
3135
|
+
"description": "是否展示标签, 默认值: `true`"
|
3136
|
+
},
|
3137
|
+
"van-tag/plain": {
|
3138
|
+
"type": "boolean",
|
3139
|
+
"description": "是否为空心样式, 默认值: `false`"
|
3140
|
+
},
|
3141
|
+
"van-tag/round": {
|
3142
|
+
"type": "boolean",
|
3143
|
+
"description": "是否为圆角样式, 默认值: `false`"
|
3144
|
+
},
|
3145
|
+
"van-tag/mark": {
|
3146
|
+
"type": "boolean",
|
3147
|
+
"description": "是否为标记样式, 默认值: `false`"
|
3148
|
+
},
|
3149
|
+
"van-tag/text-color": {
|
3150
|
+
"type": "string",
|
3151
|
+
"description": "文本颜色,优先级高于 `color` 属性, 默认值: `white`"
|
3152
|
+
},
|
3153
|
+
"van-tag/closeable": {
|
3154
|
+
"type": "boolean",
|
3155
|
+
"description": "是否为可关闭标签, 默认值: `false`"
|
3156
|
+
},
|
3121
3157
|
"van-tabs/v-model:active": {
|
3122
3158
|
"type": "number | string",
|
3123
3159
|
"description": "绑定当前选中标签的标识符, 默认值: `0`"
|
@@ -3322,42 +3358,6 @@
|
|
3322
3358
|
"type": "boolean",
|
3323
3359
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
3324
3360
|
},
|
3325
|
-
"van-tag/type": {
|
3326
|
-
"type": "string",
|
3327
|
-
"description": "类型,可选值为 `primary` `success` `danger` `warning`, 默认值: `default`"
|
3328
|
-
},
|
3329
|
-
"van-tag/size": {
|
3330
|
-
"type": "string",
|
3331
|
-
"description": "大小, 可选值为 `large` `medium`, 默认值: -"
|
3332
|
-
},
|
3333
|
-
"van-tag/color": {
|
3334
|
-
"type": "string",
|
3335
|
-
"description": "标签颜色, 默认值: -"
|
3336
|
-
},
|
3337
|
-
"van-tag/show": {
|
3338
|
-
"type": "boolean",
|
3339
|
-
"description": "是否展示标签, 默认值: `true`"
|
3340
|
-
},
|
3341
|
-
"van-tag/plain": {
|
3342
|
-
"type": "boolean",
|
3343
|
-
"description": "是否为空心样式, 默认值: `false`"
|
3344
|
-
},
|
3345
|
-
"van-tag/round": {
|
3346
|
-
"type": "boolean",
|
3347
|
-
"description": "是否为圆角样式, 默认值: `false`"
|
3348
|
-
},
|
3349
|
-
"van-tag/mark": {
|
3350
|
-
"type": "boolean",
|
3351
|
-
"description": "是否为标记样式, 默认值: `false`"
|
3352
|
-
},
|
3353
|
-
"van-tag/text-color": {
|
3354
|
-
"type": "string",
|
3355
|
-
"description": "文本颜色,优先级高于 `color` 属性, 默认值: `white`"
|
3356
|
-
},
|
3357
|
-
"van-tag/closeable": {
|
3358
|
-
"type": "boolean",
|
3359
|
-
"description": "是否为可关闭标签, 默认值: `false`"
|
3360
|
-
},
|
3361
3361
|
"van-tree-select/items": {
|
3362
3362
|
"type": "TreeSelectItem[]",
|
3363
3363
|
"description": "分类显示所需的数据, 默认值: `[]`"
|