vant 2.12.40 → 2.12.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/README.zh-CN.md +4 -4
- package/es/collapse-item/index.js +5 -1
- package/es/index.js +1 -1
- package/es/utils/validate/email.js +2 -2
- package/lib/collapse-item/index.js +5 -1
- package/lib/index.js +1 -1
- package/lib/utils/validate/email.js +2 -2
- package/lib/vant.js +9 -5
- package/lib/vant.min.js +1 -1
- package/package.json +3 -3
- package/vetur/attributes.json +305 -301
- package/vetur/tags.json +111 -110
- package/vetur/web-types.json +917 -908
package/vetur/web-types.json
CHANGED
@@ -2,83 +2,71 @@
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
3
3
|
"framework": "vue",
|
4
4
|
"name": "vant",
|
5
|
-
"version": "2.12.
|
5
|
+
"version": "2.12.44",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
9
9
|
{
|
10
|
-
"name": "van-
|
10
|
+
"name": "van-area",
|
11
11
|
"slots": [
|
12
12
|
{
|
13
|
-
"name": "
|
14
|
-
"description": "
|
13
|
+
"name": "title",
|
14
|
+
"description": "自定义标题内容"
|
15
15
|
},
|
16
16
|
{
|
17
|
-
"name": "
|
18
|
-
"description": "
|
17
|
+
"name": "columns-top",
|
18
|
+
"description": "自定义选项上方内容"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"name": "columns-bottom",
|
22
|
+
"description": "自定义选项下方内容"
|
19
23
|
}
|
20
24
|
],
|
21
25
|
"events": [
|
22
26
|
{
|
23
|
-
"name": "
|
24
|
-
"description": "
|
27
|
+
"name": "confirm",
|
28
|
+
"description": "点击右上方完成按钮"
|
25
29
|
},
|
26
30
|
{
|
27
31
|
"name": "cancel",
|
28
|
-
"description": "
|
29
|
-
},
|
30
|
-
{
|
31
|
-
"name": "open",
|
32
|
-
"description": "打开面板时触发"
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"name": "close",
|
36
|
-
"description": "关闭面板时触发"
|
37
|
-
},
|
38
|
-
{
|
39
|
-
"name": "opened",
|
40
|
-
"description": "打开面板且动画结束后触发"
|
41
|
-
},
|
42
|
-
{
|
43
|
-
"name": "closed",
|
44
|
-
"description": "关闭面板且动画结束后触发"
|
32
|
+
"description": "点击取消按钮时"
|
45
33
|
},
|
46
34
|
{
|
47
|
-
"name": "
|
48
|
-
"description": "
|
35
|
+
"name": "change",
|
36
|
+
"description": "选项改变时触发"
|
49
37
|
}
|
50
38
|
],
|
51
39
|
"attributes": [
|
52
40
|
{
|
53
|
-
"name": "
|
54
|
-
"default": "
|
55
|
-
"description": "
|
41
|
+
"name": "value",
|
42
|
+
"default": "-",
|
43
|
+
"description": "当前选中的省市区`code`",
|
56
44
|
"value": {
|
57
|
-
"type": "
|
45
|
+
"type": "string",
|
58
46
|
"kind": "expression"
|
59
47
|
}
|
60
48
|
},
|
61
49
|
{
|
62
|
-
"name": "
|
63
|
-
"default": "
|
64
|
-
"description": "
|
50
|
+
"name": "title",
|
51
|
+
"default": "-",
|
52
|
+
"description": "顶部栏标题",
|
65
53
|
"value": {
|
66
|
-
"type": "
|
54
|
+
"type": "string",
|
67
55
|
"kind": "expression"
|
68
56
|
}
|
69
57
|
},
|
70
58
|
{
|
71
|
-
"name": "
|
72
|
-
"default": "
|
73
|
-
"description": "
|
59
|
+
"name": "confirm-button-text",
|
60
|
+
"default": "`确认`",
|
61
|
+
"description": "确认按钮文字",
|
74
62
|
"value": {
|
75
63
|
"type": "string",
|
76
64
|
"kind": "expression"
|
77
65
|
}
|
78
66
|
},
|
79
67
|
{
|
80
|
-
"name": "cancel-text",
|
81
|
-
"default": "
|
68
|
+
"name": "cancel-button-text",
|
69
|
+
"default": "`取消`",
|
82
70
|
"description": "取消按钮文字",
|
83
71
|
"value": {
|
84
72
|
"type": "string",
|
@@ -86,204 +74,447 @@
|
|
86
74
|
}
|
87
75
|
},
|
88
76
|
{
|
89
|
-
"name": "
|
77
|
+
"name": "area-list",
|
90
78
|
"default": "-",
|
91
|
-
"description": "
|
79
|
+
"description": "省市区数据,格式见下方",
|
92
80
|
"value": {
|
93
|
-
"type": "
|
81
|
+
"type": "object",
|
94
82
|
"kind": "expression"
|
95
83
|
}
|
96
84
|
},
|
97
85
|
{
|
98
|
-
"name": "
|
99
|
-
"default": "`
|
100
|
-
"description": "
|
86
|
+
"name": "columns-placeholder",
|
87
|
+
"default": "`[]`",
|
88
|
+
"description": "列占位提示文字",
|
101
89
|
"value": {
|
102
|
-
"type": "
|
90
|
+
"type": "string[]",
|
103
91
|
"kind": "expression"
|
104
92
|
}
|
105
93
|
},
|
106
94
|
{
|
107
|
-
"name": "
|
108
|
-
"default": "`
|
109
|
-
"description": "
|
95
|
+
"name": "loading",
|
96
|
+
"default": "`false`",
|
97
|
+
"description": "是否显示加载状态",
|
110
98
|
"value": {
|
111
|
-
"type": "
|
99
|
+
"type": "boolean",
|
112
100
|
"kind": "expression"
|
113
101
|
}
|
114
102
|
},
|
115
103
|
{
|
116
|
-
"name": "
|
117
|
-
"default": "`
|
118
|
-
"description": "
|
104
|
+
"name": "readonly",
|
105
|
+
"default": "`false`",
|
106
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
119
107
|
"value": {
|
120
|
-
"type": "
|
108
|
+
"type": "boolean",
|
121
109
|
"kind": "expression"
|
122
110
|
}
|
123
111
|
},
|
124
112
|
{
|
125
|
-
"name": "
|
126
|
-
"default": "`
|
127
|
-
"description": "
|
113
|
+
"name": "item-height",
|
114
|
+
"default": "`44`",
|
115
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
128
116
|
"value": {
|
129
|
-
"type": "
|
117
|
+
"type": "number | string",
|
130
118
|
"kind": "expression"
|
131
119
|
}
|
132
120
|
},
|
133
121
|
{
|
134
|
-
"name": "
|
135
|
-
"default": "`
|
136
|
-
"description": "
|
122
|
+
"name": "columns-num",
|
123
|
+
"default": "`3`",
|
124
|
+
"description": "显示列数,3-省市区,2-省市,1-省",
|
137
125
|
"value": {
|
138
|
-
"type": "
|
126
|
+
"type": "number | string",
|
139
127
|
"kind": "expression"
|
140
128
|
}
|
141
129
|
},
|
142
130
|
{
|
143
|
-
"name": "
|
144
|
-
"default": "`
|
145
|
-
"description": "
|
131
|
+
"name": "visible-item-count",
|
132
|
+
"default": "`6`",
|
133
|
+
"description": "可见的选项个数",
|
146
134
|
"value": {
|
147
|
-
"type": "
|
135
|
+
"type": "number | string",
|
148
136
|
"kind": "expression"
|
149
137
|
}
|
150
138
|
},
|
151
139
|
{
|
152
|
-
"name": "
|
153
|
-
"default": "`
|
154
|
-
"description": "
|
140
|
+
"name": "swipe-duration",
|
141
|
+
"default": "`1000`",
|
142
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
155
143
|
"value": {
|
156
|
-
"type": "
|
144
|
+
"type": "number | string",
|
157
145
|
"kind": "expression"
|
158
146
|
}
|
159
147
|
},
|
160
148
|
{
|
161
|
-
"name": "
|
162
|
-
"default": "
|
163
|
-
"description": "
|
149
|
+
"name": "is-oversea-code",
|
150
|
+
"default": "-",
|
151
|
+
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
|
164
152
|
"value": {
|
165
|
-
"type": "boolean",
|
153
|
+
"type": "() => boolean",
|
166
154
|
"kind": "expression"
|
167
155
|
}
|
156
|
+
}
|
157
|
+
]
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"name": "van-badge",
|
161
|
+
"slots": [
|
162
|
+
{
|
163
|
+
"name": "default",
|
164
|
+
"description": "徽标包裹的子元素"
|
168
165
|
},
|
169
166
|
{
|
170
|
-
"name": "
|
171
|
-
"
|
172
|
-
|
167
|
+
"name": "content",
|
168
|
+
"description": "自定义徽标内容"
|
169
|
+
}
|
170
|
+
],
|
171
|
+
"events": [],
|
172
|
+
"attributes": [
|
173
|
+
{
|
174
|
+
"name": "content",
|
175
|
+
"default": "-",
|
176
|
+
"description": "徽标内容",
|
173
177
|
"value": {
|
174
|
-
"type": "
|
178
|
+
"type": "number | string",
|
175
179
|
"kind": "expression"
|
176
180
|
}
|
177
181
|
},
|
178
182
|
{
|
179
|
-
"name": "
|
180
|
-
"default": "`
|
181
|
-
"description": "
|
183
|
+
"name": "color",
|
184
|
+
"default": "`#ee0a24`",
|
185
|
+
"description": "徽标背景颜色",
|
182
186
|
"value": {
|
183
|
-
"type": "
|
187
|
+
"type": "string",
|
184
188
|
"kind": "expression"
|
185
189
|
}
|
186
190
|
},
|
187
191
|
{
|
188
|
-
"name": "
|
189
|
-
"default": "`
|
190
|
-
"description": "
|
192
|
+
"name": "dot",
|
193
|
+
"default": "`false`",
|
194
|
+
"description": "是否展示为小红点",
|
191
195
|
"value": {
|
192
196
|
"type": "boolean",
|
193
197
|
"kind": "expression"
|
194
198
|
}
|
195
199
|
},
|
196
200
|
{
|
197
|
-
"name": "
|
201
|
+
"name": "max",
|
198
202
|
"default": "-",
|
199
|
-
"description": "
|
203
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
|
200
204
|
"value": {
|
201
|
-
"type": "
|
205
|
+
"type": "number | string",
|
202
206
|
"kind": "expression"
|
203
207
|
}
|
204
208
|
}
|
205
209
|
]
|
206
210
|
},
|
207
211
|
{
|
208
|
-
"name": "van-
|
212
|
+
"name": "van-button",
|
209
213
|
"slots": [
|
210
214
|
{
|
211
215
|
"name": "default",
|
212
|
-
"description": "
|
213
|
-
}
|
214
|
-
],
|
215
|
-
"events": [
|
216
|
-
{
|
217
|
-
"name": "save",
|
218
|
-
"description": "点击保存按钮时触发"
|
219
|
-
},
|
220
|
-
{
|
221
|
-
"name": "focus",
|
222
|
-
"description": "输入框聚焦时触发"
|
223
|
-
},
|
224
|
-
{
|
225
|
-
"name": "delete",
|
226
|
-
"description": "确认删除地址时触发"
|
227
|
-
},
|
228
|
-
{
|
229
|
-
"name": "cancel-delete",
|
230
|
-
"description": "取消删除地址时触发"
|
231
|
-
},
|
232
|
-
{
|
233
|
-
"name": "select-search",
|
234
|
-
"description": "选中搜索结果时触发"
|
216
|
+
"description": "按钮内容"
|
235
217
|
},
|
236
218
|
{
|
237
|
-
"name": "
|
238
|
-
"description": "
|
219
|
+
"name": "icon",
|
220
|
+
"description": "自定义图标"
|
239
221
|
},
|
240
222
|
{
|
241
|
-
"name": "
|
242
|
-
"description": "
|
243
|
-
}
|
223
|
+
"name": "loading",
|
224
|
+
"description": "自定义加载图标"
|
225
|
+
}
|
226
|
+
],
|
227
|
+
"events": [
|
244
228
|
{
|
245
|
-
"name": "
|
246
|
-
"description": "
|
229
|
+
"name": "click",
|
230
|
+
"description": "点击按钮,且按钮状态不为加载或禁用时触发"
|
247
231
|
},
|
248
232
|
{
|
249
|
-
"name": "
|
250
|
-
"description": "
|
233
|
+
"name": "touchstart",
|
234
|
+
"description": "开始触摸按钮时触发"
|
251
235
|
}
|
252
236
|
],
|
253
237
|
"attributes": [
|
254
238
|
{
|
255
|
-
"name": "
|
256
|
-
"default": "
|
257
|
-
"description": "
|
239
|
+
"name": "type",
|
240
|
+
"default": "`default`",
|
241
|
+
"description": "类型,可选值为 `primary` `info` `warning` `danger`",
|
258
242
|
"value": {
|
259
|
-
"type": "
|
243
|
+
"type": "string",
|
260
244
|
"kind": "expression"
|
261
245
|
}
|
262
246
|
},
|
263
247
|
{
|
264
|
-
"name": "
|
265
|
-
"default": "`
|
266
|
-
"description": "
|
248
|
+
"name": "size",
|
249
|
+
"default": "`normal`",
|
250
|
+
"description": "尺寸,可选值为 `large` `small` `mini`",
|
267
251
|
"value": {
|
268
|
-
"type": "string
|
252
|
+
"type": "string",
|
269
253
|
"kind": "expression"
|
270
254
|
}
|
271
255
|
},
|
272
256
|
{
|
273
|
-
"name": "
|
274
|
-
"default": "
|
275
|
-
"description": "
|
257
|
+
"name": "text",
|
258
|
+
"default": "-",
|
259
|
+
"description": "按钮文字",
|
276
260
|
"value": {
|
277
261
|
"type": "string",
|
278
262
|
"kind": "expression"
|
279
263
|
}
|
280
264
|
},
|
281
265
|
{
|
282
|
-
"name": "
|
283
|
-
"default": "
|
284
|
-
"description": "
|
266
|
+
"name": "color",
|
267
|
+
"default": "-",
|
268
|
+
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
|
285
269
|
"value": {
|
286
|
-
"type": "
|
270
|
+
"type": "string",
|
271
|
+
"kind": "expression"
|
272
|
+
}
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"name": "icon",
|
276
|
+
"default": "-",
|
277
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
278
|
+
"value": {
|
279
|
+
"type": "string",
|
280
|
+
"kind": "expression"
|
281
|
+
}
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"name": "icon-prefix",
|
285
|
+
"default": "`van-icon`",
|
286
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
287
|
+
"value": {
|
288
|
+
"type": "string",
|
289
|
+
"kind": "expression"
|
290
|
+
}
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"name": "icon-position",
|
294
|
+
"default": "`left`",
|
295
|
+
"description": "图标展示位置,可选值为 `right`",
|
296
|
+
"value": {
|
297
|
+
"type": "string",
|
298
|
+
"kind": "expression"
|
299
|
+
}
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"name": "tag",
|
303
|
+
"default": "`button`",
|
304
|
+
"description": "按钮根节点的 HTML 标签",
|
305
|
+
"value": {
|
306
|
+
"type": "string",
|
307
|
+
"kind": "expression"
|
308
|
+
}
|
309
|
+
},
|
310
|
+
{
|
311
|
+
"name": "native-type",
|
312
|
+
"default": "-",
|
313
|
+
"description": "原生 button 标签的 type 属性",
|
314
|
+
"value": {
|
315
|
+
"type": "string",
|
316
|
+
"kind": "expression"
|
317
|
+
}
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"name": "block",
|
321
|
+
"default": "`false`",
|
322
|
+
"description": "是否为块级元素",
|
323
|
+
"value": {
|
324
|
+
"type": "boolean",
|
325
|
+
"kind": "expression"
|
326
|
+
}
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"name": "plain",
|
330
|
+
"default": "`false`",
|
331
|
+
"description": "是否为朴素按钮",
|
332
|
+
"value": {
|
333
|
+
"type": "boolean",
|
334
|
+
"kind": "expression"
|
335
|
+
}
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"name": "square",
|
339
|
+
"default": "`false`",
|
340
|
+
"description": "是否为方形按钮",
|
341
|
+
"value": {
|
342
|
+
"type": "boolean",
|
343
|
+
"kind": "expression"
|
344
|
+
}
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"name": "round",
|
348
|
+
"default": "`false`",
|
349
|
+
"description": "是否为圆形按钮",
|
350
|
+
"value": {
|
351
|
+
"type": "boolean",
|
352
|
+
"kind": "expression"
|
353
|
+
}
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"name": "disabled",
|
357
|
+
"default": "`false`",
|
358
|
+
"description": "是否禁用按钮",
|
359
|
+
"value": {
|
360
|
+
"type": "boolean",
|
361
|
+
"kind": "expression"
|
362
|
+
}
|
363
|
+
},
|
364
|
+
{
|
365
|
+
"name": "hairline",
|
366
|
+
"default": "`false`",
|
367
|
+
"description": "是否使用 0.5px 边框",
|
368
|
+
"value": {
|
369
|
+
"type": "boolean",
|
370
|
+
"kind": "expression"
|
371
|
+
}
|
372
|
+
},
|
373
|
+
{
|
374
|
+
"name": "loading",
|
375
|
+
"default": "`false`",
|
376
|
+
"description": "是否显示为加载状态",
|
377
|
+
"value": {
|
378
|
+
"type": "boolean",
|
379
|
+
"kind": "expression"
|
380
|
+
}
|
381
|
+
},
|
382
|
+
{
|
383
|
+
"name": "loading-text",
|
384
|
+
"default": "-",
|
385
|
+
"description": "加载状态提示文字",
|
386
|
+
"value": {
|
387
|
+
"type": "string",
|
388
|
+
"kind": "expression"
|
389
|
+
}
|
390
|
+
},
|
391
|
+
{
|
392
|
+
"name": "loading-type",
|
393
|
+
"default": "`circular`",
|
394
|
+
"description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
|
395
|
+
"value": {
|
396
|
+
"type": "string",
|
397
|
+
"kind": "expression"
|
398
|
+
}
|
399
|
+
},
|
400
|
+
{
|
401
|
+
"name": "loading-size",
|
402
|
+
"default": "`20px`",
|
403
|
+
"description": "加载图标大小",
|
404
|
+
"value": {
|
405
|
+
"type": "string",
|
406
|
+
"kind": "expression"
|
407
|
+
}
|
408
|
+
},
|
409
|
+
{
|
410
|
+
"name": "url",
|
411
|
+
"default": "-",
|
412
|
+
"description": "点击后跳转的链接地址",
|
413
|
+
"value": {
|
414
|
+
"type": "string",
|
415
|
+
"kind": "expression"
|
416
|
+
}
|
417
|
+
},
|
418
|
+
{
|
419
|
+
"name": "to",
|
420
|
+
"default": "-",
|
421
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
422
|
+
"value": {
|
423
|
+
"type": "string | object",
|
424
|
+
"kind": "expression"
|
425
|
+
}
|
426
|
+
},
|
427
|
+
{
|
428
|
+
"name": "replace",
|
429
|
+
"default": "`false`",
|
430
|
+
"description": "是否在跳转时替换当前页面历史",
|
431
|
+
"value": {
|
432
|
+
"type": "boolean",
|
433
|
+
"kind": "expression"
|
434
|
+
}
|
435
|
+
}
|
436
|
+
]
|
437
|
+
},
|
438
|
+
{
|
439
|
+
"name": "van-address-edit",
|
440
|
+
"slots": [
|
441
|
+
{
|
442
|
+
"name": "default",
|
443
|
+
"description": "在邮政编码下方插入内容"
|
444
|
+
}
|
445
|
+
],
|
446
|
+
"events": [
|
447
|
+
{
|
448
|
+
"name": "save",
|
449
|
+
"description": "点击保存按钮时触发"
|
450
|
+
},
|
451
|
+
{
|
452
|
+
"name": "focus",
|
453
|
+
"description": "输入框聚焦时触发"
|
454
|
+
},
|
455
|
+
{
|
456
|
+
"name": "delete",
|
457
|
+
"description": "确认删除地址时触发"
|
458
|
+
},
|
459
|
+
{
|
460
|
+
"name": "cancel-delete",
|
461
|
+
"description": "取消删除地址时触发"
|
462
|
+
},
|
463
|
+
{
|
464
|
+
"name": "select-search",
|
465
|
+
"description": "选中搜索结果时触发"
|
466
|
+
},
|
467
|
+
{
|
468
|
+
"name": "click-area",
|
469
|
+
"description": "点击收件地区时触发"
|
470
|
+
},
|
471
|
+
{
|
472
|
+
"name": "change-area",
|
473
|
+
"description": "修改收件地区时触发"
|
474
|
+
},
|
475
|
+
{
|
476
|
+
"name": "change-detail",
|
477
|
+
"description": "修改详细地址时触发"
|
478
|
+
},
|
479
|
+
{
|
480
|
+
"name": "change-default",
|
481
|
+
"description": "切换是否使用默认地址时触发"
|
482
|
+
}
|
483
|
+
],
|
484
|
+
"attributes": [
|
485
|
+
{
|
486
|
+
"name": "area-list",
|
487
|
+
"default": "-",
|
488
|
+
"description": "地区列表",
|
489
|
+
"value": {
|
490
|
+
"type": "object",
|
491
|
+
"kind": "expression"
|
492
|
+
}
|
493
|
+
},
|
494
|
+
{
|
495
|
+
"name": "area-columns-placeholder",
|
496
|
+
"default": "`[]`",
|
497
|
+
"description": "地区选择列占位提示文字",
|
498
|
+
"value": {
|
499
|
+
"type": "string[]",
|
500
|
+
"kind": "expression"
|
501
|
+
}
|
502
|
+
},
|
503
|
+
{
|
504
|
+
"name": "area-placeholder",
|
505
|
+
"default": "`选择省 / 市 / 区`",
|
506
|
+
"description": "地区输入框占位提示文字",
|
507
|
+
"value": {
|
508
|
+
"type": "string",
|
509
|
+
"kind": "expression"
|
510
|
+
}
|
511
|
+
},
|
512
|
+
{
|
513
|
+
"name": "address-info",
|
514
|
+
"default": "`{}`",
|
515
|
+
"description": "收货人信息初始值",
|
516
|
+
"value": {
|
517
|
+
"type": "AddressInfo",
|
287
518
|
"kind": "expression"
|
288
519
|
}
|
289
520
|
},
|
@@ -452,175 +683,11 @@
|
|
452
683
|
]
|
453
684
|
},
|
454
685
|
{
|
455
|
-
"name": "van-
|
686
|
+
"name": "van-calendar",
|
456
687
|
"slots": [
|
457
688
|
{
|
458
|
-
"name": "
|
459
|
-
"description": "
|
460
|
-
},
|
461
|
-
{
|
462
|
-
"name": "top",
|
463
|
-
"description": "在顶部插入内容"
|
464
|
-
},
|
465
|
-
{
|
466
|
-
"name": "item-bottom",
|
467
|
-
"description": "在列表项底部插入内容"
|
468
|
-
},
|
469
|
-
{
|
470
|
-
"name": "tag",
|
471
|
-
"description": "列表项标签内容自定义"
|
472
|
-
}
|
473
|
-
],
|
474
|
-
"events": [
|
475
|
-
{
|
476
|
-
"name": "add",
|
477
|
-
"description": "点击新增按钮时触发"
|
478
|
-
},
|
479
|
-
{
|
480
|
-
"name": "edit",
|
481
|
-
"description": "点击编辑按钮时触发"
|
482
|
-
},
|
483
|
-
{
|
484
|
-
"name": "select",
|
485
|
-
"description": "切换选中的地址时触发"
|
486
|
-
},
|
487
|
-
{
|
488
|
-
"name": "edit-disabled",
|
489
|
-
"description": "编辑不可配送的地址时触发"
|
490
|
-
},
|
491
|
-
{
|
492
|
-
"name": "select-disabled",
|
493
|
-
"description": "选中不可配送的地址时触发"
|
494
|
-
},
|
495
|
-
{
|
496
|
-
"name": "click-item",
|
497
|
-
"description": "点击任意地址时触发"
|
498
|
-
}
|
499
|
-
],
|
500
|
-
"attributes": [
|
501
|
-
{
|
502
|
-
"name": "v-model",
|
503
|
-
"default": "-",
|
504
|
-
"description": "当前选中地址的 id",
|
505
|
-
"value": {
|
506
|
-
"type": "string",
|
507
|
-
"kind": "expression"
|
508
|
-
}
|
509
|
-
},
|
510
|
-
{
|
511
|
-
"name": "list",
|
512
|
-
"default": "`[]`",
|
513
|
-
"description": "地址列表",
|
514
|
-
"value": {
|
515
|
-
"type": "Address[]",
|
516
|
-
"kind": "expression"
|
517
|
-
}
|
518
|
-
},
|
519
|
-
{
|
520
|
-
"name": "disabled-list",
|
521
|
-
"default": "`[]`",
|
522
|
-
"description": "不可配送地址列表",
|
523
|
-
"value": {
|
524
|
-
"type": "Address[]",
|
525
|
-
"kind": "expression"
|
526
|
-
}
|
527
|
-
},
|
528
|
-
{
|
529
|
-
"name": "disabled-text",
|
530
|
-
"default": "-",
|
531
|
-
"description": "不可配送提示文案",
|
532
|
-
"value": {
|
533
|
-
"type": "string",
|
534
|
-
"kind": "expression"
|
535
|
-
}
|
536
|
-
},
|
537
|
-
{
|
538
|
-
"name": "switchable",
|
539
|
-
"default": "`true`",
|
540
|
-
"description": "是否允许切换地址",
|
541
|
-
"value": {
|
542
|
-
"type": "boolean",
|
543
|
-
"kind": "expression"
|
544
|
-
}
|
545
|
-
},
|
546
|
-
{
|
547
|
-
"name": "add-button-text",
|
548
|
-
"default": "`新增地址`",
|
549
|
-
"description": "底部按钮文字",
|
550
|
-
"value": {
|
551
|
-
"type": "string",
|
552
|
-
"kind": "expression"
|
553
|
-
}
|
554
|
-
},
|
555
|
-
{
|
556
|
-
"name": "default-tag-text",
|
557
|
-
"default": "-",
|
558
|
-
"description": "默认地址标签文字",
|
559
|
-
"value": {
|
560
|
-
"type": "string",
|
561
|
-
"kind": "expression"
|
562
|
-
}
|
563
|
-
}
|
564
|
-
]
|
565
|
-
},
|
566
|
-
{
|
567
|
-
"name": "van-badge",
|
568
|
-
"slots": [
|
569
|
-
{
|
570
|
-
"name": "default",
|
571
|
-
"description": "徽标包裹的子元素"
|
572
|
-
},
|
573
|
-
{
|
574
|
-
"name": "content",
|
575
|
-
"description": "自定义徽标内容"
|
576
|
-
}
|
577
|
-
],
|
578
|
-
"events": [],
|
579
|
-
"attributes": [
|
580
|
-
{
|
581
|
-
"name": "content",
|
582
|
-
"default": "-",
|
583
|
-
"description": "徽标内容",
|
584
|
-
"value": {
|
585
|
-
"type": "number | string",
|
586
|
-
"kind": "expression"
|
587
|
-
}
|
588
|
-
},
|
589
|
-
{
|
590
|
-
"name": "color",
|
591
|
-
"default": "`#ee0a24`",
|
592
|
-
"description": "徽标背景颜色",
|
593
|
-
"value": {
|
594
|
-
"type": "string",
|
595
|
-
"kind": "expression"
|
596
|
-
}
|
597
|
-
},
|
598
|
-
{
|
599
|
-
"name": "dot",
|
600
|
-
"default": "`false`",
|
601
|
-
"description": "是否展示为小红点",
|
602
|
-
"value": {
|
603
|
-
"type": "boolean",
|
604
|
-
"kind": "expression"
|
605
|
-
}
|
606
|
-
},
|
607
|
-
{
|
608
|
-
"name": "max",
|
609
|
-
"default": "-",
|
610
|
-
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
|
611
|
-
"value": {
|
612
|
-
"type": "number | string",
|
613
|
-
"kind": "expression"
|
614
|
-
}
|
615
|
-
}
|
616
|
-
]
|
617
|
-
},
|
618
|
-
{
|
619
|
-
"name": "van-calendar",
|
620
|
-
"slots": [
|
621
|
-
{
|
622
|
-
"name": "title",
|
623
|
-
"description": "自定义标题"
|
689
|
+
"name": "title",
|
690
|
+
"description": "自定义标题"
|
624
691
|
},
|
625
692
|
{
|
626
693
|
"name": "footer",
|
@@ -964,66 +1031,78 @@
|
|
964
1031
|
]
|
965
1032
|
},
|
966
1033
|
{
|
967
|
-
"name": "van-
|
1034
|
+
"name": "van-action-sheet",
|
968
1035
|
"slots": [
|
969
1036
|
{
|
970
|
-
"name": "
|
971
|
-
"description": "
|
972
|
-
},
|
973
|
-
{
|
974
|
-
"name": "columns-top",
|
975
|
-
"description": "自定义选项上方内容"
|
1037
|
+
"name": "default",
|
1038
|
+
"description": "自定义面板的展示内容"
|
976
1039
|
},
|
977
1040
|
{
|
978
|
-
"name": "
|
979
|
-
"description": "
|
1041
|
+
"name": "description",
|
1042
|
+
"description": "自定义描述文案"
|
980
1043
|
}
|
981
1044
|
],
|
982
1045
|
"events": [
|
983
1046
|
{
|
984
|
-
"name": "
|
985
|
-
"description": "
|
1047
|
+
"name": "select",
|
1048
|
+
"description": "点击选项时触发,禁用或加载状态下不会触发"
|
986
1049
|
},
|
987
1050
|
{
|
988
1051
|
"name": "cancel",
|
989
|
-
"description": "
|
1052
|
+
"description": "点击取消按钮时触发"
|
990
1053
|
},
|
991
1054
|
{
|
992
|
-
"name": "
|
993
|
-
"description": "
|
1055
|
+
"name": "open",
|
1056
|
+
"description": "打开面板时触发"
|
1057
|
+
},
|
1058
|
+
{
|
1059
|
+
"name": "close",
|
1060
|
+
"description": "关闭面板时触发"
|
1061
|
+
},
|
1062
|
+
{
|
1063
|
+
"name": "opened",
|
1064
|
+
"description": "打开面板且动画结束后触发"
|
1065
|
+
},
|
1066
|
+
{
|
1067
|
+
"name": "closed",
|
1068
|
+
"description": "关闭面板且动画结束后触发"
|
1069
|
+
},
|
1070
|
+
{
|
1071
|
+
"name": "click-overlay",
|
1072
|
+
"description": "点击遮罩层时触发"
|
994
1073
|
}
|
995
1074
|
],
|
996
1075
|
"attributes": [
|
997
1076
|
{
|
998
|
-
"name": "value",
|
999
|
-
"default": "
|
1000
|
-
"description": "
|
1077
|
+
"name": "v-model (value)",
|
1078
|
+
"default": "`false`",
|
1079
|
+
"description": "是否显示动作面板",
|
1001
1080
|
"value": {
|
1002
|
-
"type": "
|
1081
|
+
"type": "boolean",
|
1003
1082
|
"kind": "expression"
|
1004
1083
|
}
|
1005
1084
|
},
|
1006
1085
|
{
|
1007
|
-
"name": "
|
1008
|
-
"default": "
|
1009
|
-
"description": "
|
1086
|
+
"name": "actions",
|
1087
|
+
"default": "`[]`",
|
1088
|
+
"description": "面板选项列表",
|
1010
1089
|
"value": {
|
1011
|
-
"type": "
|
1090
|
+
"type": "Action[]",
|
1012
1091
|
"kind": "expression"
|
1013
1092
|
}
|
1014
1093
|
},
|
1015
1094
|
{
|
1016
|
-
"name": "
|
1017
|
-
"default": "
|
1018
|
-
"description": "
|
1095
|
+
"name": "title",
|
1096
|
+
"default": "-",
|
1097
|
+
"description": "顶部标题",
|
1019
1098
|
"value": {
|
1020
1099
|
"type": "string",
|
1021
1100
|
"kind": "expression"
|
1022
1101
|
}
|
1023
1102
|
},
|
1024
1103
|
{
|
1025
|
-
"name": "cancel-
|
1026
|
-
"default": "
|
1104
|
+
"name": "cancel-text",
|
1105
|
+
"default": "-",
|
1027
1106
|
"description": "取消按钮文字",
|
1028
1107
|
"value": {
|
1029
1108
|
"type": "string",
|
@@ -1031,344 +1110,391 @@
|
|
1031
1110
|
}
|
1032
1111
|
},
|
1033
1112
|
{
|
1034
|
-
"name": "
|
1113
|
+
"name": "description",
|
1035
1114
|
"default": "-",
|
1036
|
-
"description": "
|
1037
|
-
"value": {
|
1038
|
-
"type": "object",
|
1039
|
-
"kind": "expression"
|
1040
|
-
}
|
1041
|
-
},
|
1042
|
-
{
|
1043
|
-
"name": "columns-placeholder",
|
1044
|
-
"default": "`[]`",
|
1045
|
-
"description": "列占位提示文字",
|
1115
|
+
"description": "选项上方的描述信息",
|
1046
1116
|
"value": {
|
1047
|
-
"type": "string
|
1117
|
+
"type": "string",
|
1048
1118
|
"kind": "expression"
|
1049
1119
|
}
|
1050
1120
|
},
|
1051
1121
|
{
|
1052
|
-
"name": "
|
1053
|
-
"default": "`
|
1054
|
-
"description": "
|
1122
|
+
"name": "closeable",
|
1123
|
+
"default": "`true`",
|
1124
|
+
"description": "是否显示关闭图标",
|
1055
1125
|
"value": {
|
1056
1126
|
"type": "boolean",
|
1057
1127
|
"kind": "expression"
|
1058
1128
|
}
|
1059
1129
|
},
|
1060
1130
|
{
|
1061
|
-
"name": "
|
1062
|
-
"default": "`
|
1063
|
-
"description": "
|
1131
|
+
"name": "close-icon",
|
1132
|
+
"default": "`cross`",
|
1133
|
+
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
|
1064
1134
|
"value": {
|
1065
|
-
"type": "
|
1135
|
+
"type": "string",
|
1066
1136
|
"kind": "expression"
|
1067
1137
|
}
|
1068
1138
|
},
|
1069
1139
|
{
|
1070
|
-
"name": "
|
1071
|
-
"default": "`
|
1072
|
-
"description": "
|
1140
|
+
"name": "duration",
|
1141
|
+
"default": "`0.3`",
|
1142
|
+
"description": "动画时长,单位秒",
|
1073
1143
|
"value": {
|
1074
1144
|
"type": "number | string",
|
1075
1145
|
"kind": "expression"
|
1076
1146
|
}
|
1077
1147
|
},
|
1078
1148
|
{
|
1079
|
-
"name": "
|
1080
|
-
"default": "`
|
1081
|
-
"description": "
|
1149
|
+
"name": "round",
|
1150
|
+
"default": "`true`",
|
1151
|
+
"description": "是否显示圆角",
|
1082
1152
|
"value": {
|
1083
|
-
"type": "
|
1153
|
+
"type": "boolean",
|
1084
1154
|
"kind": "expression"
|
1085
1155
|
}
|
1086
1156
|
},
|
1087
1157
|
{
|
1088
|
-
"name": "
|
1089
|
-
"default": "`
|
1090
|
-
"description": "
|
1158
|
+
"name": "overlay",
|
1159
|
+
"default": "`true`",
|
1160
|
+
"description": "是否显示遮罩层",
|
1091
1161
|
"value": {
|
1092
|
-
"type": "
|
1162
|
+
"type": "boolean",
|
1093
1163
|
"kind": "expression"
|
1094
1164
|
}
|
1095
1165
|
},
|
1096
1166
|
{
|
1097
|
-
"name": "
|
1098
|
-
"default": "`
|
1099
|
-
"description": "
|
1167
|
+
"name": "lock-scroll",
|
1168
|
+
"default": "`true`",
|
1169
|
+
"description": "是否锁定背景滚动",
|
1100
1170
|
"value": {
|
1101
|
-
"type": "
|
1171
|
+
"type": "boolean",
|
1102
1172
|
"kind": "expression"
|
1103
1173
|
}
|
1104
1174
|
},
|
1105
1175
|
{
|
1106
|
-
"name": "
|
1107
|
-
"default": "
|
1108
|
-
"description": "
|
1176
|
+
"name": "lazy-render",
|
1177
|
+
"default": "`true`",
|
1178
|
+
"description": "是否在显示弹层时才渲染节点",
|
1109
1179
|
"value": {
|
1110
|
-
"type": "
|
1180
|
+
"type": "boolean",
|
1111
1181
|
"kind": "expression"
|
1112
1182
|
}
|
1113
|
-
}
|
1114
|
-
]
|
1115
|
-
},
|
1116
|
-
{
|
1117
|
-
"name": "van-card",
|
1118
|
-
"slots": [
|
1119
|
-
{
|
1120
|
-
"name": "title",
|
1121
|
-
"description": "自定义标题"
|
1122
1183
|
},
|
1123
1184
|
{
|
1124
|
-
"name": "
|
1125
|
-
"
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1185
|
+
"name": "close-on-popstate",
|
1186
|
+
"default": "`false`",
|
1187
|
+
"description": "是否在页面回退时自动关闭",
|
1188
|
+
"value": {
|
1189
|
+
"type": "boolean",
|
1190
|
+
"kind": "expression"
|
1191
|
+
}
|
1130
1192
|
},
|
1131
1193
|
{
|
1132
|
-
"name": "
|
1133
|
-
"
|
1194
|
+
"name": "close-on-click-action",
|
1195
|
+
"default": "`false`",
|
1196
|
+
"description": "是否在点击选项后关闭",
|
1197
|
+
"value": {
|
1198
|
+
"type": "boolean",
|
1199
|
+
"kind": "expression"
|
1200
|
+
}
|
1134
1201
|
},
|
1135
1202
|
{
|
1136
|
-
"name": "
|
1137
|
-
"
|
1203
|
+
"name": "close-on-click-overlay",
|
1204
|
+
"default": "`true`",
|
1205
|
+
"description": "是否在点击遮罩层后关闭",
|
1206
|
+
"value": {
|
1207
|
+
"type": "boolean",
|
1208
|
+
"kind": "expression"
|
1209
|
+
}
|
1138
1210
|
},
|
1139
1211
|
{
|
1140
|
-
"name": "
|
1141
|
-
"
|
1212
|
+
"name": "safe-area-inset-bottom",
|
1213
|
+
"default": "`true`",
|
1214
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
1215
|
+
"value": {
|
1216
|
+
"type": "boolean",
|
1217
|
+
"kind": "expression"
|
1218
|
+
}
|
1142
1219
|
},
|
1143
1220
|
{
|
1144
|
-
"name": "
|
1145
|
-
"
|
1146
|
-
|
1221
|
+
"name": "get-container",
|
1222
|
+
"default": "-",
|
1223
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
|
1224
|
+
"value": {
|
1225
|
+
"type": "string | () => Element",
|
1226
|
+
"kind": "expression"
|
1227
|
+
}
|
1228
|
+
}
|
1229
|
+
]
|
1230
|
+
},
|
1231
|
+
{
|
1232
|
+
"name": "van-address-list",
|
1233
|
+
"slots": [
|
1147
1234
|
{
|
1148
|
-
"name": "
|
1149
|
-
"description": "
|
1235
|
+
"name": "default",
|
1236
|
+
"description": "在列表下方插入内容"
|
1150
1237
|
},
|
1151
1238
|
{
|
1152
|
-
"name": "
|
1153
|
-
"description": "
|
1239
|
+
"name": "top",
|
1240
|
+
"description": "在顶部插入内容"
|
1154
1241
|
},
|
1155
1242
|
{
|
1156
|
-
"name": "
|
1157
|
-
"description": "
|
1243
|
+
"name": "item-bottom",
|
1244
|
+
"description": "在列表项底部插入内容"
|
1158
1245
|
},
|
1159
1246
|
{
|
1160
|
-
"name": "
|
1161
|
-
"description": "
|
1247
|
+
"name": "tag",
|
1248
|
+
"description": "列表项标签内容自定义"
|
1162
1249
|
}
|
1163
1250
|
],
|
1164
1251
|
"events": [
|
1165
1252
|
{
|
1166
|
-
"name": "
|
1167
|
-
"description": "
|
1253
|
+
"name": "add",
|
1254
|
+
"description": "点击新增按钮时触发"
|
1168
1255
|
},
|
1169
1256
|
{
|
1170
|
-
"name": "
|
1171
|
-
"description": "
|
1172
|
-
}
|
1173
|
-
],
|
1174
|
-
"attributes": [
|
1257
|
+
"name": "edit",
|
1258
|
+
"description": "点击编辑按钮时触发"
|
1259
|
+
},
|
1175
1260
|
{
|
1176
|
-
"name": "
|
1177
|
-
"
|
1178
|
-
"description": "左侧图片 URL",
|
1179
|
-
"value": {
|
1180
|
-
"type": "string",
|
1181
|
-
"kind": "expression"
|
1182
|
-
}
|
1261
|
+
"name": "select",
|
1262
|
+
"description": "切换选中的地址时触发"
|
1183
1263
|
},
|
1184
1264
|
{
|
1185
|
-
"name": "
|
1186
|
-
"
|
1187
|
-
"description": "标题",
|
1188
|
-
"value": {
|
1189
|
-
"type": "string",
|
1190
|
-
"kind": "expression"
|
1191
|
-
}
|
1265
|
+
"name": "edit-disabled",
|
1266
|
+
"description": "编辑不可配送的地址时触发"
|
1192
1267
|
},
|
1193
1268
|
{
|
1194
|
-
"name": "
|
1195
|
-
"
|
1196
|
-
"description": "描述",
|
1197
|
-
"value": {
|
1198
|
-
"type": "string",
|
1199
|
-
"kind": "expression"
|
1200
|
-
}
|
1269
|
+
"name": "select-disabled",
|
1270
|
+
"description": "选中不可配送的地址时触发"
|
1201
1271
|
},
|
1202
1272
|
{
|
1203
|
-
"name": "
|
1273
|
+
"name": "click-item",
|
1274
|
+
"description": "点击任意地址时触发"
|
1275
|
+
}
|
1276
|
+
],
|
1277
|
+
"attributes": [
|
1278
|
+
{
|
1279
|
+
"name": "v-model",
|
1204
1280
|
"default": "-",
|
1205
|
-
"description": "
|
1281
|
+
"description": "当前选中地址的 id",
|
1206
1282
|
"value": {
|
1207
1283
|
"type": "string",
|
1208
1284
|
"kind": "expression"
|
1209
1285
|
}
|
1210
1286
|
},
|
1211
1287
|
{
|
1212
|
-
"name": "
|
1213
|
-
"default": "
|
1214
|
-
"description": "
|
1288
|
+
"name": "list",
|
1289
|
+
"default": "`[]`",
|
1290
|
+
"description": "地址列表",
|
1215
1291
|
"value": {
|
1216
|
-
"type": "
|
1292
|
+
"type": "Address[]",
|
1217
1293
|
"kind": "expression"
|
1218
1294
|
}
|
1219
1295
|
},
|
1220
1296
|
{
|
1221
|
-
"name": "
|
1222
|
-
"default": "
|
1223
|
-
"description": "
|
1297
|
+
"name": "disabled-list",
|
1298
|
+
"default": "`[]`",
|
1299
|
+
"description": "不可配送地址列表",
|
1224
1300
|
"value": {
|
1225
|
-
"type": "
|
1301
|
+
"type": "Address[]",
|
1226
1302
|
"kind": "expression"
|
1227
1303
|
}
|
1228
1304
|
},
|
1229
1305
|
{
|
1230
|
-
"name": "
|
1306
|
+
"name": "disabled-text",
|
1231
1307
|
"default": "-",
|
1232
|
-
"description": "
|
1308
|
+
"description": "不可配送提示文案",
|
1233
1309
|
"value": {
|
1234
|
-
"type": "
|
1310
|
+
"type": "string",
|
1235
1311
|
"kind": "expression"
|
1236
1312
|
}
|
1237
1313
|
},
|
1238
1314
|
{
|
1239
|
-
"name": "
|
1240
|
-
"default": "`
|
1241
|
-
"description": "
|
1315
|
+
"name": "switchable",
|
1316
|
+
"default": "`true`",
|
1317
|
+
"description": "是否允许切换地址",
|
1242
1318
|
"value": {
|
1243
1319
|
"type": "boolean",
|
1244
1320
|
"kind": "expression"
|
1245
1321
|
}
|
1246
1322
|
},
|
1247
1323
|
{
|
1248
|
-
"name": "
|
1249
|
-
"default": "
|
1250
|
-
"description": "
|
1324
|
+
"name": "add-button-text",
|
1325
|
+
"default": "`新增地址`",
|
1326
|
+
"description": "底部按钮文字",
|
1251
1327
|
"value": {
|
1252
1328
|
"type": "string",
|
1253
1329
|
"kind": "expression"
|
1254
1330
|
}
|
1255
1331
|
},
|
1256
1332
|
{
|
1257
|
-
"name": "
|
1333
|
+
"name": "default-tag-text",
|
1258
1334
|
"default": "-",
|
1259
|
-
"description": "
|
1335
|
+
"description": "默认地址标签文字",
|
1260
1336
|
"value": {
|
1261
1337
|
"type": "string",
|
1262
1338
|
"kind": "expression"
|
1263
1339
|
}
|
1264
|
-
},
|
1265
|
-
{
|
1266
|
-
"name": "lazy-load",
|
1267
|
-
"default": "`false`",
|
1268
|
-
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
|
1269
|
-
"value": {
|
1270
|
-
"type": "boolean",
|
1271
|
-
"kind": "expression"
|
1272
|
-
}
|
1273
1340
|
}
|
1274
1341
|
]
|
1275
1342
|
},
|
1276
1343
|
{
|
1277
|
-
"name": "van-
|
1344
|
+
"name": "van-card",
|
1278
1345
|
"slots": [
|
1279
1346
|
{
|
1280
1347
|
"name": "title",
|
1281
|
-
"description": "
|
1348
|
+
"description": "自定义标题"
|
1282
1349
|
},
|
1283
1350
|
{
|
1284
|
-
"name": "
|
1285
|
-
"description": "
|
1351
|
+
"name": "desc",
|
1352
|
+
"description": "自定义描述"
|
1353
|
+
},
|
1354
|
+
{
|
1355
|
+
"name": "num",
|
1356
|
+
"description": "自定义数量"
|
1357
|
+
},
|
1358
|
+
{
|
1359
|
+
"name": "price",
|
1360
|
+
"description": "自定义价格"
|
1361
|
+
},
|
1362
|
+
{
|
1363
|
+
"name": "origin-price",
|
1364
|
+
"description": "自定义商品原价"
|
1365
|
+
},
|
1366
|
+
{
|
1367
|
+
"name": "price-top",
|
1368
|
+
"description": "自定义价格上方区域"
|
1369
|
+
},
|
1370
|
+
{
|
1371
|
+
"name": "bottom",
|
1372
|
+
"description": "自定义价格下方区域"
|
1373
|
+
},
|
1374
|
+
{
|
1375
|
+
"name": "thumb",
|
1376
|
+
"description": "自定义图片"
|
1377
|
+
},
|
1378
|
+
{
|
1379
|
+
"name": "tag",
|
1380
|
+
"description": "自定义图片角标"
|
1381
|
+
},
|
1382
|
+
{
|
1383
|
+
"name": "tags",
|
1384
|
+
"description": "自定义描述下方标签区域"
|
1385
|
+
},
|
1386
|
+
{
|
1387
|
+
"name": "footer",
|
1388
|
+
"description": "自定义右下角内容"
|
1286
1389
|
}
|
1287
1390
|
],
|
1288
1391
|
"events": [
|
1289
1392
|
{
|
1290
|
-
"name": "
|
1291
|
-
"description": "
|
1292
|
-
},
|
1293
|
-
{
|
1294
|
-
"name": "finish",
|
1295
|
-
"description": "全部选项选择完成后触发"
|
1393
|
+
"name": "click",
|
1394
|
+
"description": "点击时触发"
|
1296
1395
|
},
|
1297
1396
|
{
|
1298
|
-
"name": "
|
1299
|
-
"description": "
|
1397
|
+
"name": "click-thumb",
|
1398
|
+
"description": "点击自定义图片时触发"
|
1300
1399
|
}
|
1301
1400
|
],
|
1302
1401
|
"attributes": [
|
1303
1402
|
{
|
1304
|
-
"name": "
|
1403
|
+
"name": "thumb",
|
1404
|
+
"default": "-",
|
1405
|
+
"description": "左侧图片 URL",
|
1406
|
+
"value": {
|
1407
|
+
"type": "string",
|
1408
|
+
"kind": "expression"
|
1409
|
+
}
|
1410
|
+
},
|
1411
|
+
{
|
1412
|
+
"name": "title",
|
1413
|
+
"default": "-",
|
1414
|
+
"description": "标题",
|
1415
|
+
"value": {
|
1416
|
+
"type": "string",
|
1417
|
+
"kind": "expression"
|
1418
|
+
}
|
1419
|
+
},
|
1420
|
+
{
|
1421
|
+
"name": "desc",
|
1305
1422
|
"default": "-",
|
1306
|
-
"description": "
|
1423
|
+
"description": "描述",
|
1307
1424
|
"value": {
|
1308
1425
|
"type": "string",
|
1309
1426
|
"kind": "expression"
|
1310
1427
|
}
|
1311
1428
|
},
|
1312
1429
|
{
|
1313
|
-
"name": "
|
1430
|
+
"name": "tag",
|
1314
1431
|
"default": "-",
|
1315
|
-
"description": "
|
1432
|
+
"description": "图片角标",
|
1316
1433
|
"value": {
|
1317
|
-
"type": "string
|
1434
|
+
"type": "string",
|
1318
1435
|
"kind": "expression"
|
1319
1436
|
}
|
1320
1437
|
},
|
1321
1438
|
{
|
1322
|
-
"name": "
|
1323
|
-
"default": "
|
1324
|
-
"description": "
|
1439
|
+
"name": "num",
|
1440
|
+
"default": "-",
|
1441
|
+
"description": "商品数量",
|
1325
1442
|
"value": {
|
1326
|
-
"type": "
|
1443
|
+
"type": "number | string",
|
1327
1444
|
"kind": "expression"
|
1328
1445
|
}
|
1329
1446
|
},
|
1330
1447
|
{
|
1331
|
-
"name": "
|
1332
|
-
"default": "
|
1333
|
-
"description": "
|
1448
|
+
"name": "price",
|
1449
|
+
"default": "-",
|
1450
|
+
"description": "商品价格",
|
1334
1451
|
"value": {
|
1335
|
-
"type": "string",
|
1452
|
+
"type": "number | string",
|
1336
1453
|
"kind": "expression"
|
1337
1454
|
}
|
1338
1455
|
},
|
1339
1456
|
{
|
1340
|
-
"name": "
|
1341
|
-
"default": "
|
1342
|
-
"description": "
|
1457
|
+
"name": "origin-price",
|
1458
|
+
"default": "-",
|
1459
|
+
"description": "商品划线原价",
|
1343
1460
|
"value": {
|
1344
|
-
"type": "string",
|
1461
|
+
"type": "number | string",
|
1345
1462
|
"kind": "expression"
|
1346
1463
|
}
|
1347
1464
|
},
|
1348
1465
|
{
|
1349
|
-
"name": "
|
1350
|
-
"default": "`
|
1351
|
-
"description": "
|
1466
|
+
"name": "centered",
|
1467
|
+
"default": "`false`",
|
1468
|
+
"description": "内容是否垂直居中",
|
1352
1469
|
"value": {
|
1353
1470
|
"type": "boolean",
|
1354
1471
|
"kind": "expression"
|
1355
1472
|
}
|
1356
1473
|
},
|
1357
1474
|
{
|
1358
|
-
"name": "
|
1359
|
-
"default": "
|
1360
|
-
"description": "
|
1475
|
+
"name": "currency",
|
1476
|
+
"default": "`¥`",
|
1477
|
+
"description": "货币符号",
|
1361
1478
|
"value": {
|
1362
|
-
"type": "
|
1479
|
+
"type": "string",
|
1363
1480
|
"kind": "expression"
|
1364
1481
|
}
|
1365
1482
|
},
|
1366
1483
|
{
|
1367
|
-
"name": "
|
1368
|
-
"default": "
|
1369
|
-
"description": "
|
1484
|
+
"name": "thumb-link",
|
1485
|
+
"default": "-",
|
1486
|
+
"description": "点击左侧图片后跳转的链接地址",
|
1370
1487
|
"value": {
|
1371
|
-
"type": "
|
1488
|
+
"type": "string",
|
1489
|
+
"kind": "expression"
|
1490
|
+
}
|
1491
|
+
},
|
1492
|
+
{
|
1493
|
+
"name": "lazy-load",
|
1494
|
+
"default": "`false`",
|
1495
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
|
1496
|
+
"value": {
|
1497
|
+
"type": "boolean",
|
1372
1498
|
"kind": "expression"
|
1373
1499
|
}
|
1374
1500
|
}
|
@@ -1617,227 +1743,101 @@
|
|
1617
1743
|
]
|
1618
1744
|
},
|
1619
1745
|
{
|
1620
|
-
"name": "van-
|
1746
|
+
"name": "van-cascader",
|
1621
1747
|
"slots": [
|
1622
1748
|
{
|
1623
|
-
"name": "
|
1624
|
-
"description": "
|
1625
|
-
},
|
1626
|
-
{
|
1627
|
-
"name": "icon",
|
1628
|
-
"description": "自定义图标"
|
1749
|
+
"name": "title",
|
1750
|
+
"description": "自定义顶部标题"
|
1629
1751
|
},
|
1630
1752
|
{
|
1631
|
-
"name": "
|
1632
|
-
"description": "
|
1753
|
+
"name": "option",
|
1754
|
+
"description": "自定义选项文字"
|
1633
1755
|
}
|
1634
1756
|
],
|
1635
1757
|
"events": [
|
1636
1758
|
{
|
1637
|
-
"name": "
|
1638
|
-
"description": "
|
1759
|
+
"name": "change",
|
1760
|
+
"description": "选中项变化时触发"
|
1639
1761
|
},
|
1640
1762
|
{
|
1641
|
-
"name": "
|
1642
|
-
"description": "
|
1763
|
+
"name": "finish",
|
1764
|
+
"description": "全部选项选择完成后触发"
|
1765
|
+
},
|
1766
|
+
{
|
1767
|
+
"name": "close",
|
1768
|
+
"description": "点击关闭图标时触发"
|
1643
1769
|
}
|
1644
1770
|
],
|
1645
1771
|
"attributes": [
|
1646
1772
|
{
|
1647
|
-
"name": "
|
1648
|
-
"default": "`default`",
|
1649
|
-
"description": "类型,可选值为 `primary` `info` `warning` `danger`",
|
1650
|
-
"value": {
|
1651
|
-
"type": "string",
|
1652
|
-
"kind": "expression"
|
1653
|
-
}
|
1654
|
-
},
|
1655
|
-
{
|
1656
|
-
"name": "size",
|
1657
|
-
"default": "`normal`",
|
1658
|
-
"description": "尺寸,可选值为 `large` `small` `mini`",
|
1659
|
-
"value": {
|
1660
|
-
"type": "string",
|
1661
|
-
"kind": "expression"
|
1662
|
-
}
|
1663
|
-
},
|
1664
|
-
{
|
1665
|
-
"name": "text",
|
1666
|
-
"default": "-",
|
1667
|
-
"description": "按钮文字",
|
1668
|
-
"value": {
|
1669
|
-
"type": "string",
|
1670
|
-
"kind": "expression"
|
1671
|
-
}
|
1672
|
-
},
|
1673
|
-
{
|
1674
|
-
"name": "color",
|
1675
|
-
"default": "-",
|
1676
|
-
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
|
1677
|
-
"value": {
|
1678
|
-
"type": "string",
|
1679
|
-
"kind": "expression"
|
1680
|
-
}
|
1681
|
-
},
|
1682
|
-
{
|
1683
|
-
"name": "icon",
|
1773
|
+
"name": "title",
|
1684
1774
|
"default": "-",
|
1685
|
-
"description": "
|
1686
|
-
"value": {
|
1687
|
-
"type": "string",
|
1688
|
-
"kind": "expression"
|
1689
|
-
}
|
1690
|
-
},
|
1691
|
-
{
|
1692
|
-
"name": "icon-prefix",
|
1693
|
-
"default": "`van-icon`",
|
1694
|
-
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
1695
|
-
"value": {
|
1696
|
-
"type": "string",
|
1697
|
-
"kind": "expression"
|
1698
|
-
}
|
1699
|
-
},
|
1700
|
-
{
|
1701
|
-
"name": "icon-position",
|
1702
|
-
"default": "`left`",
|
1703
|
-
"description": "图标展示位置,可选值为 `right`",
|
1704
|
-
"value": {
|
1705
|
-
"type": "string",
|
1706
|
-
"kind": "expression"
|
1707
|
-
}
|
1708
|
-
},
|
1709
|
-
{
|
1710
|
-
"name": "tag",
|
1711
|
-
"default": "`button`",
|
1712
|
-
"description": "按钮根节点的 HTML 标签",
|
1775
|
+
"description": "顶部标题",
|
1713
1776
|
"value": {
|
1714
1777
|
"type": "string",
|
1715
1778
|
"kind": "expression"
|
1716
1779
|
}
|
1717
1780
|
},
|
1718
1781
|
{
|
1719
|
-
"name": "
|
1782
|
+
"name": "value",
|
1720
1783
|
"default": "-",
|
1721
|
-
"description": "
|
1722
|
-
"value": {
|
1723
|
-
"type": "string",
|
1724
|
-
"kind": "expression"
|
1725
|
-
}
|
1726
|
-
},
|
1727
|
-
{
|
1728
|
-
"name": "block",
|
1729
|
-
"default": "`false`",
|
1730
|
-
"description": "是否为块级元素",
|
1731
|
-
"value": {
|
1732
|
-
"type": "boolean",
|
1733
|
-
"kind": "expression"
|
1734
|
-
}
|
1735
|
-
},
|
1736
|
-
{
|
1737
|
-
"name": "plain",
|
1738
|
-
"default": "`false`",
|
1739
|
-
"description": "是否为朴素按钮",
|
1740
|
-
"value": {
|
1741
|
-
"type": "boolean",
|
1742
|
-
"kind": "expression"
|
1743
|
-
}
|
1744
|
-
},
|
1745
|
-
{
|
1746
|
-
"name": "square",
|
1747
|
-
"default": "`false`",
|
1748
|
-
"description": "是否为方形按钮",
|
1749
|
-
"value": {
|
1750
|
-
"type": "boolean",
|
1751
|
-
"kind": "expression"
|
1752
|
-
}
|
1753
|
-
},
|
1754
|
-
{
|
1755
|
-
"name": "round",
|
1756
|
-
"default": "`false`",
|
1757
|
-
"description": "是否为圆形按钮",
|
1758
|
-
"value": {
|
1759
|
-
"type": "boolean",
|
1760
|
-
"kind": "expression"
|
1761
|
-
}
|
1762
|
-
},
|
1763
|
-
{
|
1764
|
-
"name": "disabled",
|
1765
|
-
"default": "`false`",
|
1766
|
-
"description": "是否禁用按钮",
|
1767
|
-
"value": {
|
1768
|
-
"type": "boolean",
|
1769
|
-
"kind": "expression"
|
1770
|
-
}
|
1771
|
-
},
|
1772
|
-
{
|
1773
|
-
"name": "hairline",
|
1774
|
-
"default": "`false`",
|
1775
|
-
"description": "是否使用 0.5px 边框",
|
1776
|
-
"value": {
|
1777
|
-
"type": "boolean",
|
1778
|
-
"kind": "expression"
|
1779
|
-
}
|
1780
|
-
},
|
1781
|
-
{
|
1782
|
-
"name": "loading",
|
1783
|
-
"default": "`false`",
|
1784
|
-
"description": "是否显示为加载状态",
|
1784
|
+
"description": "选中项的值",
|
1785
1785
|
"value": {
|
1786
|
-
"type": "
|
1786
|
+
"type": "string | number",
|
1787
1787
|
"kind": "expression"
|
1788
1788
|
}
|
1789
1789
|
},
|
1790
1790
|
{
|
1791
|
-
"name": "
|
1792
|
-
"default": "
|
1793
|
-
"description": "
|
1791
|
+
"name": "options",
|
1792
|
+
"default": "`[]`",
|
1793
|
+
"description": "可选项数据源",
|
1794
1794
|
"value": {
|
1795
|
-
"type": "
|
1795
|
+
"type": "Option[]",
|
1796
1796
|
"kind": "expression"
|
1797
1797
|
}
|
1798
1798
|
},
|
1799
1799
|
{
|
1800
|
-
"name": "
|
1801
|
-
"default": "
|
1802
|
-
"description": "
|
1800
|
+
"name": "placeholder",
|
1801
|
+
"default": "`请选择`",
|
1802
|
+
"description": "未选中时的提示文案",
|
1803
1803
|
"value": {
|
1804
1804
|
"type": "string",
|
1805
1805
|
"kind": "expression"
|
1806
1806
|
}
|
1807
1807
|
},
|
1808
1808
|
{
|
1809
|
-
"name": "
|
1810
|
-
"default": "`
|
1811
|
-
"description": "
|
1809
|
+
"name": "active-color",
|
1810
|
+
"default": "`#ee0a24`",
|
1811
|
+
"description": "选中状态的高亮颜色",
|
1812
1812
|
"value": {
|
1813
1813
|
"type": "string",
|
1814
1814
|
"kind": "expression"
|
1815
1815
|
}
|
1816
1816
|
},
|
1817
1817
|
{
|
1818
|
-
"name": "
|
1819
|
-
"default": "
|
1820
|
-
"description": "
|
1818
|
+
"name": "closeable",
|
1819
|
+
"default": "`true`",
|
1820
|
+
"description": "是否显示关闭图标",
|
1821
1821
|
"value": {
|
1822
|
-
"type": "
|
1822
|
+
"type": "boolean",
|
1823
1823
|
"kind": "expression"
|
1824
1824
|
}
|
1825
1825
|
},
|
1826
1826
|
{
|
1827
|
-
"name": "
|
1828
|
-
"default": "
|
1829
|
-
"description": "
|
1827
|
+
"name": "show-header",
|
1828
|
+
"default": "`true`",
|
1829
|
+
"description": "是否展示标题栏",
|
1830
1830
|
"value": {
|
1831
|
-
"type": "
|
1831
|
+
"type": "boolean",
|
1832
1832
|
"kind": "expression"
|
1833
1833
|
}
|
1834
1834
|
},
|
1835
1835
|
{
|
1836
|
-
"name": "
|
1837
|
-
"default": "`
|
1838
|
-
"description": "
|
1836
|
+
"name": "field-names",
|
1837
|
+
"default": "`{ text: 'text', value: 'value', children: 'children' }`",
|
1838
|
+
"description": "自定义 `options` 结构中的字段",
|
1839
1839
|
"value": {
|
1840
|
-
"type": "
|
1840
|
+
"type": "object",
|
1841
1841
|
"kind": "expression"
|
1842
1842
|
}
|
1843
1843
|
}
|
@@ -2368,6 +2368,15 @@
|
|
2368
2368
|
"kind": "expression"
|
2369
2369
|
}
|
2370
2370
|
},
|
2371
|
+
{
|
2372
|
+
"name": "lazy-render",
|
2373
|
+
"default": "`true`",
|
2374
|
+
"description": "是否在首次展开时才渲染面板内容",
|
2375
|
+
"value": {
|
2376
|
+
"type": "boolean",
|
2377
|
+
"kind": "expression"
|
2378
|
+
}
|
2379
|
+
},
|
2371
2380
|
{
|
2372
2381
|
"name": "title-class",
|
2373
2382
|
"default": "-",
|
@@ -2861,25 +2870,259 @@
|
|
2861
2870
|
"default": "`¥`",
|
2862
2871
|
"description": "货币符号",
|
2863
2872
|
"value": {
|
2864
|
-
"type": "string",
|
2873
|
+
"type": "string",
|
2874
|
+
"kind": "expression"
|
2875
|
+
}
|
2876
|
+
},
|
2877
|
+
{
|
2878
|
+
"name": "empty-image",
|
2879
|
+
"default": "`https://img01.yzcdn.cn/vant/coupon-empty.png`",
|
2880
|
+
"description": "列表为空时的占位图",
|
2881
|
+
"value": {
|
2882
|
+
"type": "string",
|
2883
|
+
"kind": "expression"
|
2884
|
+
}
|
2885
|
+
},
|
2886
|
+
{
|
2887
|
+
"name": "show-count",
|
2888
|
+
"default": "`true`",
|
2889
|
+
"description": "是否展示可用 / 不可用数量",
|
2890
|
+
"value": {
|
2891
|
+
"type": "boolean",
|
2892
|
+
"kind": "expression"
|
2893
|
+
}
|
2894
|
+
}
|
2895
|
+
]
|
2896
|
+
},
|
2897
|
+
{
|
2898
|
+
"name": "van-datetime-picker",
|
2899
|
+
"slots": [
|
2900
|
+
{
|
2901
|
+
"name": "default",
|
2902
|
+
"description": "自定义整个顶部栏的内容"
|
2903
|
+
},
|
2904
|
+
{
|
2905
|
+
"name": "title",
|
2906
|
+
"description": "自定义标题内容"
|
2907
|
+
},
|
2908
|
+
{
|
2909
|
+
"name": "confirm",
|
2910
|
+
"description": "自定义确认按钮内容"
|
2911
|
+
},
|
2912
|
+
{
|
2913
|
+
"name": "cancel",
|
2914
|
+
"description": "自定义取消按钮内容"
|
2915
|
+
},
|
2916
|
+
{
|
2917
|
+
"name": "option",
|
2918
|
+
"description": "自定义选项内容"
|
2919
|
+
},
|
2920
|
+
{
|
2921
|
+
"name": "columns-top",
|
2922
|
+
"description": "自定义选项上方内容"
|
2923
|
+
},
|
2924
|
+
{
|
2925
|
+
"name": "columns-bottom",
|
2926
|
+
"description": "自定义选项下方内容"
|
2927
|
+
}
|
2928
|
+
],
|
2929
|
+
"events": [
|
2930
|
+
{
|
2931
|
+
"name": "change",
|
2932
|
+
"description": "当值变化时触发的事件"
|
2933
|
+
},
|
2934
|
+
{
|
2935
|
+
"name": "confirm",
|
2936
|
+
"description": "点击完成按钮时触发的事件"
|
2937
|
+
},
|
2938
|
+
{
|
2939
|
+
"name": "cancel",
|
2940
|
+
"description": "点击取消按钮时触发的事件"
|
2941
|
+
}
|
2942
|
+
],
|
2943
|
+
"attributes": [
|
2944
|
+
{
|
2945
|
+
"name": "type",
|
2946
|
+
"default": "`datetime`",
|
2947
|
+
"description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`",
|
2948
|
+
"value": {
|
2949
|
+
"type": "string",
|
2950
|
+
"kind": "expression"
|
2951
|
+
}
|
2952
|
+
},
|
2953
|
+
{
|
2954
|
+
"name": "title",
|
2955
|
+
"default": "`''`",
|
2956
|
+
"description": "顶部栏标题",
|
2957
|
+
"value": {
|
2958
|
+
"type": "string",
|
2959
|
+
"kind": "expression"
|
2960
|
+
}
|
2961
|
+
},
|
2962
|
+
{
|
2963
|
+
"name": "confirm-button-text",
|
2964
|
+
"default": "`确认`",
|
2965
|
+
"description": "确认按钮文字",
|
2966
|
+
"value": {
|
2967
|
+
"type": "string",
|
2968
|
+
"kind": "expression"
|
2969
|
+
}
|
2970
|
+
},
|
2971
|
+
{
|
2972
|
+
"name": "cancel-button-text",
|
2973
|
+
"default": "`取消`",
|
2974
|
+
"description": "取消按钮文字",
|
2975
|
+
"value": {
|
2976
|
+
"type": "string",
|
2977
|
+
"kind": "expression"
|
2978
|
+
}
|
2979
|
+
},
|
2980
|
+
{
|
2981
|
+
"name": "show-toolbar",
|
2982
|
+
"default": "`true`",
|
2983
|
+
"description": "是否显示顶部栏",
|
2984
|
+
"value": {
|
2985
|
+
"type": "boolean",
|
2986
|
+
"kind": "expression"
|
2987
|
+
}
|
2988
|
+
},
|
2989
|
+
{
|
2990
|
+
"name": "loading",
|
2991
|
+
"default": "`false`",
|
2992
|
+
"description": "是否显示加载状态",
|
2993
|
+
"value": {
|
2994
|
+
"type": "boolean",
|
2995
|
+
"kind": "expression"
|
2996
|
+
}
|
2997
|
+
},
|
2998
|
+
{
|
2999
|
+
"name": "readonly",
|
3000
|
+
"default": "`false`",
|
3001
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
3002
|
+
"value": {
|
3003
|
+
"type": "boolean",
|
3004
|
+
"kind": "expression"
|
3005
|
+
}
|
3006
|
+
},
|
3007
|
+
{
|
3008
|
+
"name": "filter",
|
3009
|
+
"default": "-",
|
3010
|
+
"description": "选项过滤函数",
|
3011
|
+
"value": {
|
3012
|
+
"type": "(type, vals) => vals",
|
3013
|
+
"kind": "expression"
|
3014
|
+
}
|
3015
|
+
},
|
3016
|
+
{
|
3017
|
+
"name": "formatter",
|
3018
|
+
"default": "-",
|
3019
|
+
"description": "选项格式化函数",
|
3020
|
+
"value": {
|
3021
|
+
"type": "(type, val) => val",
|
3022
|
+
"kind": "expression"
|
3023
|
+
}
|
3024
|
+
},
|
3025
|
+
{
|
3026
|
+
"name": "columns-order",
|
3027
|
+
"default": "-",
|
3028
|
+
"description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
|
3029
|
+
"value": {
|
3030
|
+
"type": "string[]",
|
3031
|
+
"kind": "expression"
|
3032
|
+
}
|
3033
|
+
},
|
3034
|
+
{
|
3035
|
+
"name": "item-height",
|
3036
|
+
"default": "`44`",
|
3037
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
3038
|
+
"value": {
|
3039
|
+
"type": "number | string",
|
3040
|
+
"kind": "expression"
|
3041
|
+
}
|
3042
|
+
},
|
3043
|
+
{
|
3044
|
+
"name": "visible-item-count",
|
3045
|
+
"default": "`6`",
|
3046
|
+
"description": "可见的选项个数",
|
3047
|
+
"value": {
|
3048
|
+
"type": "number | string",
|
3049
|
+
"kind": "expression"
|
3050
|
+
}
|
3051
|
+
},
|
3052
|
+
{
|
3053
|
+
"name": "swipe-duration",
|
3054
|
+
"default": "`1000`",
|
3055
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
3056
|
+
"value": {
|
3057
|
+
"type": "number | string",
|
3058
|
+
"kind": "expression"
|
3059
|
+
}
|
3060
|
+
}
|
3061
|
+
]
|
3062
|
+
},
|
3063
|
+
{
|
3064
|
+
"name": "van-date-picker",
|
3065
|
+
"slots": [],
|
3066
|
+
"events": [],
|
3067
|
+
"attributes": [
|
3068
|
+
{
|
3069
|
+
"name": "min-date",
|
3070
|
+
"default": "十年前",
|
3071
|
+
"description": "可选的最小时间,精确到分钟",
|
3072
|
+
"value": {
|
3073
|
+
"type": "Date",
|
3074
|
+
"kind": "expression"
|
3075
|
+
}
|
3076
|
+
},
|
3077
|
+
{
|
3078
|
+
"name": "max-date",
|
3079
|
+
"default": "十年后",
|
3080
|
+
"description": "可选的最大时间,精确到分钟",
|
3081
|
+
"value": {
|
3082
|
+
"type": "Date",
|
3083
|
+
"kind": "expression"
|
3084
|
+
}
|
3085
|
+
}
|
3086
|
+
]
|
3087
|
+
},
|
3088
|
+
{
|
3089
|
+
"name": "van-time-picker",
|
3090
|
+
"slots": [],
|
3091
|
+
"events": [],
|
3092
|
+
"attributes": [
|
3093
|
+
{
|
3094
|
+
"name": "min-hour",
|
3095
|
+
"default": "`0`",
|
3096
|
+
"description": "可选的最小小时",
|
3097
|
+
"value": {
|
3098
|
+
"type": "number | string",
|
3099
|
+
"kind": "expression"
|
3100
|
+
}
|
3101
|
+
},
|
3102
|
+
{
|
3103
|
+
"name": "max-hour",
|
3104
|
+
"default": "`23`",
|
3105
|
+
"description": "可选的最大小时",
|
3106
|
+
"value": {
|
3107
|
+
"type": "number | string",
|
2865
3108
|
"kind": "expression"
|
2866
3109
|
}
|
2867
3110
|
},
|
2868
3111
|
{
|
2869
|
-
"name": "
|
2870
|
-
"default": "`
|
2871
|
-
"description": "
|
3112
|
+
"name": "min-minute",
|
3113
|
+
"default": "`0`",
|
3114
|
+
"description": "可选的最小分钟",
|
2872
3115
|
"value": {
|
2873
|
-
"type": "string",
|
3116
|
+
"type": "number | string",
|
2874
3117
|
"kind": "expression"
|
2875
3118
|
}
|
2876
3119
|
},
|
2877
3120
|
{
|
2878
|
-
"name": "
|
2879
|
-
"default": "`
|
2880
|
-
"description": "
|
3121
|
+
"name": "max-minute",
|
3122
|
+
"default": "`59`",
|
3123
|
+
"description": "可选的最大分钟",
|
2881
3124
|
"value": {
|
2882
|
-
"type": "
|
3125
|
+
"type": "number | string",
|
2883
3126
|
"kind": "expression"
|
2884
3127
|
}
|
2885
3128
|
}
|
@@ -3133,240 +3376,6 @@
|
|
3133
3376
|
}
|
3134
3377
|
]
|
3135
3378
|
},
|
3136
|
-
{
|
3137
|
-
"name": "van-datetime-picker",
|
3138
|
-
"slots": [
|
3139
|
-
{
|
3140
|
-
"name": "default",
|
3141
|
-
"description": "自定义整个顶部栏的内容"
|
3142
|
-
},
|
3143
|
-
{
|
3144
|
-
"name": "title",
|
3145
|
-
"description": "自定义标题内容"
|
3146
|
-
},
|
3147
|
-
{
|
3148
|
-
"name": "confirm",
|
3149
|
-
"description": "自定义确认按钮内容"
|
3150
|
-
},
|
3151
|
-
{
|
3152
|
-
"name": "cancel",
|
3153
|
-
"description": "自定义取消按钮内容"
|
3154
|
-
},
|
3155
|
-
{
|
3156
|
-
"name": "option",
|
3157
|
-
"description": "自定义选项内容"
|
3158
|
-
},
|
3159
|
-
{
|
3160
|
-
"name": "columns-top",
|
3161
|
-
"description": "自定义选项上方内容"
|
3162
|
-
},
|
3163
|
-
{
|
3164
|
-
"name": "columns-bottom",
|
3165
|
-
"description": "自定义选项下方内容"
|
3166
|
-
}
|
3167
|
-
],
|
3168
|
-
"events": [
|
3169
|
-
{
|
3170
|
-
"name": "change",
|
3171
|
-
"description": "当值变化时触发的事件"
|
3172
|
-
},
|
3173
|
-
{
|
3174
|
-
"name": "confirm",
|
3175
|
-
"description": "点击完成按钮时触发的事件"
|
3176
|
-
},
|
3177
|
-
{
|
3178
|
-
"name": "cancel",
|
3179
|
-
"description": "点击取消按钮时触发的事件"
|
3180
|
-
}
|
3181
|
-
],
|
3182
|
-
"attributes": [
|
3183
|
-
{
|
3184
|
-
"name": "type",
|
3185
|
-
"default": "`datetime`",
|
3186
|
-
"description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`",
|
3187
|
-
"value": {
|
3188
|
-
"type": "string",
|
3189
|
-
"kind": "expression"
|
3190
|
-
}
|
3191
|
-
},
|
3192
|
-
{
|
3193
|
-
"name": "title",
|
3194
|
-
"default": "`''`",
|
3195
|
-
"description": "顶部栏标题",
|
3196
|
-
"value": {
|
3197
|
-
"type": "string",
|
3198
|
-
"kind": "expression"
|
3199
|
-
}
|
3200
|
-
},
|
3201
|
-
{
|
3202
|
-
"name": "confirm-button-text",
|
3203
|
-
"default": "`确认`",
|
3204
|
-
"description": "确认按钮文字",
|
3205
|
-
"value": {
|
3206
|
-
"type": "string",
|
3207
|
-
"kind": "expression"
|
3208
|
-
}
|
3209
|
-
},
|
3210
|
-
{
|
3211
|
-
"name": "cancel-button-text",
|
3212
|
-
"default": "`取消`",
|
3213
|
-
"description": "取消按钮文字",
|
3214
|
-
"value": {
|
3215
|
-
"type": "string",
|
3216
|
-
"kind": "expression"
|
3217
|
-
}
|
3218
|
-
},
|
3219
|
-
{
|
3220
|
-
"name": "show-toolbar",
|
3221
|
-
"default": "`true`",
|
3222
|
-
"description": "是否显示顶部栏",
|
3223
|
-
"value": {
|
3224
|
-
"type": "boolean",
|
3225
|
-
"kind": "expression"
|
3226
|
-
}
|
3227
|
-
},
|
3228
|
-
{
|
3229
|
-
"name": "loading",
|
3230
|
-
"default": "`false`",
|
3231
|
-
"description": "是否显示加载状态",
|
3232
|
-
"value": {
|
3233
|
-
"type": "boolean",
|
3234
|
-
"kind": "expression"
|
3235
|
-
}
|
3236
|
-
},
|
3237
|
-
{
|
3238
|
-
"name": "readonly",
|
3239
|
-
"default": "`false`",
|
3240
|
-
"description": "是否为只读状态,只读状态下无法切换选项",
|
3241
|
-
"value": {
|
3242
|
-
"type": "boolean",
|
3243
|
-
"kind": "expression"
|
3244
|
-
}
|
3245
|
-
},
|
3246
|
-
{
|
3247
|
-
"name": "filter",
|
3248
|
-
"default": "-",
|
3249
|
-
"description": "选项过滤函数",
|
3250
|
-
"value": {
|
3251
|
-
"type": "(type, vals) => vals",
|
3252
|
-
"kind": "expression"
|
3253
|
-
}
|
3254
|
-
},
|
3255
|
-
{
|
3256
|
-
"name": "formatter",
|
3257
|
-
"default": "-",
|
3258
|
-
"description": "选项格式化函数",
|
3259
|
-
"value": {
|
3260
|
-
"type": "(type, val) => val",
|
3261
|
-
"kind": "expression"
|
3262
|
-
}
|
3263
|
-
},
|
3264
|
-
{
|
3265
|
-
"name": "columns-order",
|
3266
|
-
"default": "-",
|
3267
|
-
"description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
|
3268
|
-
"value": {
|
3269
|
-
"type": "string[]",
|
3270
|
-
"kind": "expression"
|
3271
|
-
}
|
3272
|
-
},
|
3273
|
-
{
|
3274
|
-
"name": "item-height",
|
3275
|
-
"default": "`44`",
|
3276
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
3277
|
-
"value": {
|
3278
|
-
"type": "number | string",
|
3279
|
-
"kind": "expression"
|
3280
|
-
}
|
3281
|
-
},
|
3282
|
-
{
|
3283
|
-
"name": "visible-item-count",
|
3284
|
-
"default": "`6`",
|
3285
|
-
"description": "可见的选项个数",
|
3286
|
-
"value": {
|
3287
|
-
"type": "number | string",
|
3288
|
-
"kind": "expression"
|
3289
|
-
}
|
3290
|
-
},
|
3291
|
-
{
|
3292
|
-
"name": "swipe-duration",
|
3293
|
-
"default": "`1000`",
|
3294
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
3295
|
-
"value": {
|
3296
|
-
"type": "number | string",
|
3297
|
-
"kind": "expression"
|
3298
|
-
}
|
3299
|
-
}
|
3300
|
-
]
|
3301
|
-
},
|
3302
|
-
{
|
3303
|
-
"name": "van-date-picker",
|
3304
|
-
"slots": [],
|
3305
|
-
"events": [],
|
3306
|
-
"attributes": [
|
3307
|
-
{
|
3308
|
-
"name": "min-date",
|
3309
|
-
"default": "十年前",
|
3310
|
-
"description": "可选的最小时间,精确到分钟",
|
3311
|
-
"value": {
|
3312
|
-
"type": "Date",
|
3313
|
-
"kind": "expression"
|
3314
|
-
}
|
3315
|
-
},
|
3316
|
-
{
|
3317
|
-
"name": "max-date",
|
3318
|
-
"default": "十年后",
|
3319
|
-
"description": "可选的最大时间,精确到分钟",
|
3320
|
-
"value": {
|
3321
|
-
"type": "Date",
|
3322
|
-
"kind": "expression"
|
3323
|
-
}
|
3324
|
-
}
|
3325
|
-
]
|
3326
|
-
},
|
3327
|
-
{
|
3328
|
-
"name": "van-time-picker",
|
3329
|
-
"slots": [],
|
3330
|
-
"events": [],
|
3331
|
-
"attributes": [
|
3332
|
-
{
|
3333
|
-
"name": "min-hour",
|
3334
|
-
"default": "`0`",
|
3335
|
-
"description": "可选的最小小时",
|
3336
|
-
"value": {
|
3337
|
-
"type": "number | string",
|
3338
|
-
"kind": "expression"
|
3339
|
-
}
|
3340
|
-
},
|
3341
|
-
{
|
3342
|
-
"name": "max-hour",
|
3343
|
-
"default": "`23`",
|
3344
|
-
"description": "可选的最大小时",
|
3345
|
-
"value": {
|
3346
|
-
"type": "number | string",
|
3347
|
-
"kind": "expression"
|
3348
|
-
}
|
3349
|
-
},
|
3350
|
-
{
|
3351
|
-
"name": "min-minute",
|
3352
|
-
"default": "`0`",
|
3353
|
-
"description": "可选的最小分钟",
|
3354
|
-
"value": {
|
3355
|
-
"type": "number | string",
|
3356
|
-
"kind": "expression"
|
3357
|
-
}
|
3358
|
-
},
|
3359
|
-
{
|
3360
|
-
"name": "max-minute",
|
3361
|
-
"default": "`59`",
|
3362
|
-
"description": "可选的最大分钟",
|
3363
|
-
"value": {
|
3364
|
-
"type": "number | string",
|
3365
|
-
"kind": "expression"
|
3366
|
-
}
|
3367
|
-
}
|
3368
|
-
]
|
3369
|
-
},
|
3370
3379
|
{
|
3371
3380
|
"name": "van-divider",
|
3372
3381
|
"slots": [
|