vant 2.12.30-beta.0 → 2.12.32

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.
@@ -2,174 +2,10 @@
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.30-beta.0",
5
+ "version": "2.12.32",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
9
- {
10
- "name": "van-address-list",
11
- "slots": [
12
- {
13
- "name": "default",
14
- "description": "在列表下方插入内容"
15
- },
16
- {
17
- "name": "top",
18
- "description": "在顶部插入内容"
19
- },
20
- {
21
- "name": "item-bottom",
22
- "description": "在列表项底部插入内容"
23
- },
24
- {
25
- "name": "tag",
26
- "description": "列表项标签内容自定义"
27
- }
28
- ],
29
- "events": [
30
- {
31
- "name": "add",
32
- "description": "点击新增按钮时触发"
33
- },
34
- {
35
- "name": "edit",
36
- "description": "点击编辑按钮时触发"
37
- },
38
- {
39
- "name": "select",
40
- "description": "切换选中的地址时触发"
41
- },
42
- {
43
- "name": "edit-disabled",
44
- "description": "编辑不可配送的地址时触发"
45
- },
46
- {
47
- "name": "select-disabled",
48
- "description": "选中不可配送的地址时触发"
49
- },
50
- {
51
- "name": "click-item",
52
- "description": "点击任意地址时触发"
53
- }
54
- ],
55
- "attributes": [
56
- {
57
- "name": "v-model",
58
- "default": "-",
59
- "description": "当前选中地址的 id",
60
- "value": {
61
- "type": "string",
62
- "kind": "expression"
63
- }
64
- },
65
- {
66
- "name": "list",
67
- "default": "`[]`",
68
- "description": "地址列表",
69
- "value": {
70
- "type": "Address[]",
71
- "kind": "expression"
72
- }
73
- },
74
- {
75
- "name": "disabled-list",
76
- "default": "`[]`",
77
- "description": "不可配送地址列表",
78
- "value": {
79
- "type": "Address[]",
80
- "kind": "expression"
81
- }
82
- },
83
- {
84
- "name": "disabled-text",
85
- "default": "-",
86
- "description": "不可配送提示文案",
87
- "value": {
88
- "type": "string",
89
- "kind": "expression"
90
- }
91
- },
92
- {
93
- "name": "switchable",
94
- "default": "`true`",
95
- "description": "是否允许切换地址",
96
- "value": {
97
- "type": "boolean",
98
- "kind": "expression"
99
- }
100
- },
101
- {
102
- "name": "add-button-text",
103
- "default": "`新增地址`",
104
- "description": "底部按钮文字",
105
- "value": {
106
- "type": "string",
107
- "kind": "expression"
108
- }
109
- },
110
- {
111
- "name": "default-tag-text",
112
- "default": "-",
113
- "description": "默认地址标签文字",
114
- "value": {
115
- "type": "string",
116
- "kind": "expression"
117
- }
118
- }
119
- ]
120
- },
121
- {
122
- "name": "van-badge",
123
- "slots": [
124
- {
125
- "name": "default",
126
- "description": "徽标包裹的子元素"
127
- },
128
- {
129
- "name": "content",
130
- "description": "自定义徽标内容"
131
- }
132
- ],
133
- "events": [],
134
- "attributes": [
135
- {
136
- "name": "content",
137
- "default": "-",
138
- "description": "徽标内容",
139
- "value": {
140
- "type": "number | string",
141
- "kind": "expression"
142
- }
143
- },
144
- {
145
- "name": "color",
146
- "default": "`#ee0a24`",
147
- "description": "徽标背景颜色",
148
- "value": {
149
- "type": "string",
150
- "kind": "expression"
151
- }
152
- },
153
- {
154
- "name": "dot",
155
- "default": "`false`",
156
- "description": "是否展示为小红点",
157
- "value": {
158
- "type": "boolean",
159
- "kind": "expression"
160
- }
161
- },
162
- {
163
- "name": "max",
164
- "default": "-",
165
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
166
- "value": {
167
- "type": "number | string",
168
- "kind": "expression"
169
- }
170
- }
171
- ]
172
- },
173
9
  {
174
10
  "name": "van-action-sheet",
175
11
  "slots": [
@@ -369,247 +205,262 @@
369
205
  ]
370
206
  },
371
207
  {
372
- "name": "van-address-edit",
208
+ "name": "van-area",
373
209
  "slots": [
374
210
  {
375
- "name": "default",
376
- "description": "在邮政编码下方插入内容"
377
- }
378
- ],
379
- "events": [
380
- {
381
- "name": "save",
382
- "description": "点击保存按钮时触发"
383
- },
384
- {
385
- "name": "focus",
386
- "description": "输入框聚焦时触发"
387
- },
388
- {
389
- "name": "delete",
390
- "description": "确认删除地址时触发"
391
- },
392
- {
393
- "name": "cancel-delete",
394
- "description": "取消删除地址时触发"
211
+ "name": "title",
212
+ "description": "自定义标题内容"
395
213
  },
396
214
  {
397
- "name": "select-search",
398
- "description": "选中搜索结果时触发"
215
+ "name": "columns-top",
216
+ "description": "自定义选项上方内容"
399
217
  },
400
218
  {
401
- "name": "click-area",
402
- "description": "点击收件地区时触发"
403
- },
219
+ "name": "columns-bottom",
220
+ "description": "自定义选项下方内容"
221
+ }
222
+ ],
223
+ "events": [
404
224
  {
405
- "name": "change-area",
406
- "description": "修改收件地区时触发"
225
+ "name": "confirm",
226
+ "description": "点击右上方完成按钮"
407
227
  },
408
228
  {
409
- "name": "change-detail",
410
- "description": "修改详细地址时触发"
229
+ "name": "cancel",
230
+ "description": "点击取消按钮时"
411
231
  },
412
232
  {
413
- "name": "change-default",
414
- "description": "切换是否使用默认地址时触发"
233
+ "name": "change",
234
+ "description": "选项改变时触发"
415
235
  }
416
236
  ],
417
237
  "attributes": [
418
238
  {
419
- "name": "area-list",
239
+ "name": "value",
420
240
  "default": "-",
421
- "description": "地区列表",
241
+ "description": "当前选中的省市区`code`",
422
242
  "value": {
423
- "type": "object",
243
+ "type": "string",
424
244
  "kind": "expression"
425
245
  }
426
246
  },
427
247
  {
428
- "name": "area-columns-placeholder",
429
- "default": "`[]`",
430
- "description": "地区选择列占位提示文字",
248
+ "name": "title",
249
+ "default": "-",
250
+ "description": "顶部栏标题",
431
251
  "value": {
432
- "type": "string[]",
252
+ "type": "string",
433
253
  "kind": "expression"
434
254
  }
435
255
  },
436
256
  {
437
- "name": "area-placeholder",
438
- "default": "`选择省 / 市 / 区`",
439
- "description": "地区输入框占位提示文字",
257
+ "name": "confirm-button-text",
258
+ "default": "`确认`",
259
+ "description": "确认按钮文字",
440
260
  "value": {
441
261
  "type": "string",
442
262
  "kind": "expression"
443
263
  }
444
264
  },
445
265
  {
446
- "name": "address-info",
447
- "default": "`{}`",
448
- "description": "收货人信息初始值",
266
+ "name": "cancel-button-text",
267
+ "default": "`取消`",
268
+ "description": "取消按钮文字",
449
269
  "value": {
450
- "type": "AddressInfo",
270
+ "type": "string",
451
271
  "kind": "expression"
452
272
  }
453
273
  },
454
274
  {
455
- "name": "search-result",
456
- "default": "`[]`",
457
- "description": "详细地址搜索结果",
275
+ "name": "area-list",
276
+ "default": "-",
277
+ "description": "省市区数据,格式见下方",
458
278
  "value": {
459
- "type": "SearchResult[]",
279
+ "type": "object",
460
280
  "kind": "expression"
461
281
  }
462
282
  },
463
283
  {
464
- "name": "show-postal",
465
- "default": "`false`",
466
- "description": "是否显示邮政编码",
284
+ "name": "columns-placeholder",
285
+ "default": "`[]`",
286
+ "description": "列占位提示文字",
467
287
  "value": {
468
- "type": "boolean",
288
+ "type": "string[]",
469
289
  "kind": "expression"
470
290
  }
471
291
  },
472
292
  {
473
- "name": "show-delete",
293
+ "name": "loading",
474
294
  "default": "`false`",
475
- "description": "是否显示删除按钮",
295
+ "description": "是否显示加载状态",
476
296
  "value": {
477
297
  "type": "boolean",
478
298
  "kind": "expression"
479
299
  }
480
300
  },
481
301
  {
482
- "name": "show-set-default",
302
+ "name": "readonly",
483
303
  "default": "`false`",
484
- "description": "是否显示默认地址栏",
304
+ "description": "是否为只读状态,只读状态下无法切换选项",
485
305
  "value": {
486
306
  "type": "boolean",
487
307
  "kind": "expression"
488
308
  }
489
309
  },
490
310
  {
491
- "name": "show-search-result",
492
- "default": "`false`",
493
- "description": "是否显示搜索结果",
311
+ "name": "item-height",
312
+ "default": "`44`",
313
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
494
314
  "value": {
495
- "type": "boolean",
315
+ "type": "number | string",
496
316
  "kind": "expression"
497
317
  }
498
318
  },
499
319
  {
500
- "name": "show-area",
501
- "default": "`true`",
502
- "description": "是否显示地区",
320
+ "name": "columns-num",
321
+ "default": "`3`",
322
+ "description": "显示列数,3-省市区,2-省市,1-省",
503
323
  "value": {
504
- "type": "boolean",
324
+ "type": "number | string",
505
325
  "kind": "expression"
506
326
  }
507
327
  },
508
328
  {
509
- "name": "show-detail",
510
- "default": "`true`",
511
- "description": "是否显示详细地址",
329
+ "name": "visible-item-count",
330
+ "default": "`6`",
331
+ "description": "可见的选项个数",
512
332
  "value": {
513
- "type": "boolean",
333
+ "type": "number | string",
514
334
  "kind": "expression"
515
335
  }
516
336
  },
517
337
  {
518
- "name": "disable-area",
519
- "default": "`false`",
520
- "description": "是否禁用地区选择",
338
+ "name": "swipe-duration",
339
+ "default": "`1000`",
340
+ "description": "快速滑动时惯性滚动的时长,单位`ms`",
521
341
  "value": {
522
- "type": "boolean",
342
+ "type": "number | string",
523
343
  "kind": "expression"
524
344
  }
525
345
  },
526
346
  {
527
- "name": "save-button-text",
528
- "default": "`保存`",
529
- "description": "保存按钮文字",
347
+ "name": "is-oversea-code",
348
+ "default": "-",
349
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
530
350
  "value": {
531
- "type": "string",
351
+ "type": "() => boolean",
532
352
  "kind": "expression"
533
353
  }
354
+ }
355
+ ]
356
+ },
357
+ {
358
+ "name": "van-address-list",
359
+ "slots": [
360
+ {
361
+ "name": "default",
362
+ "description": "在列表下方插入内容"
534
363
  },
535
364
  {
536
- "name": "delete-button-text",
537
- "default": "`删除`",
538
- "description": "删除按钮文字",
539
- "value": {
540
- "type": "string",
541
- "kind": "expression"
542
- }
365
+ "name": "top",
366
+ "description": "在顶部插入内容"
543
367
  },
544
368
  {
545
- "name": "detail-rows",
546
- "default": "`1`",
547
- "description": "详细地址输入框行数",
548
- "value": {
549
- "type": "number | string",
550
- "kind": "expression"
551
- }
369
+ "name": "item-bottom",
370
+ "description": "在列表项底部插入内容"
552
371
  },
553
372
  {
554
- "name": "detail-maxlength",
555
- "default": "`200`",
556
- "description": "详细地址最大长度",
373
+ "name": "tag",
374
+ "description": "列表项标签内容自定义"
375
+ }
376
+ ],
377
+ "events": [
378
+ {
379
+ "name": "add",
380
+ "description": "点击新增按钮时触发"
381
+ },
382
+ {
383
+ "name": "edit",
384
+ "description": "点击编辑按钮时触发"
385
+ },
386
+ {
387
+ "name": "select",
388
+ "description": "切换选中的地址时触发"
389
+ },
390
+ {
391
+ "name": "edit-disabled",
392
+ "description": "编辑不可配送的地址时触发"
393
+ },
394
+ {
395
+ "name": "select-disabled",
396
+ "description": "选中不可配送的地址时触发"
397
+ },
398
+ {
399
+ "name": "click-item",
400
+ "description": "点击任意地址时触发"
401
+ }
402
+ ],
403
+ "attributes": [
404
+ {
405
+ "name": "v-model",
406
+ "default": "-",
407
+ "description": "当前选中地址的 id",
557
408
  "value": {
558
- "type": "number | string",
409
+ "type": "string",
559
410
  "kind": "expression"
560
411
  }
561
412
  },
562
413
  {
563
- "name": "is-saving",
564
- "default": "`false`",
565
- "description": "是否显示保存按钮加载动画",
414
+ "name": "list",
415
+ "default": "`[]`",
416
+ "description": "地址列表",
566
417
  "value": {
567
- "type": "boolean",
418
+ "type": "Address[]",
568
419
  "kind": "expression"
569
420
  }
570
421
  },
571
422
  {
572
- "name": "is-deleting",
573
- "default": "`false`",
574
- "description": "是否显示删除按钮加载动画",
423
+ "name": "disabled-list",
424
+ "default": "`[]`",
425
+ "description": "不可配送地址列表",
575
426
  "value": {
576
- "type": "boolean",
427
+ "type": "Address[]",
577
428
  "kind": "expression"
578
429
  }
579
430
  },
580
431
  {
581
- "name": "tel-validator",
432
+ "name": "disabled-text",
582
433
  "default": "-",
583
- "description": "手机号格式校验函数",
434
+ "description": "不可配送提示文案",
584
435
  "value": {
585
- "type": "string => boolean",
436
+ "type": "string",
586
437
  "kind": "expression"
587
438
  }
588
439
  },
589
440
  {
590
- "name": "tel-maxlength",
591
- "default": "-",
592
- "description": "手机号最大长度",
441
+ "name": "switchable",
442
+ "default": "`true`",
443
+ "description": "是否允许切换地址",
593
444
  "value": {
594
- "type": "number | string",
445
+ "type": "boolean",
595
446
  "kind": "expression"
596
447
  }
597
448
  },
598
449
  {
599
- "name": "postal-validator",
600
- "default": "-",
601
- "description": "邮政编码格式校验函数",
450
+ "name": "add-button-text",
451
+ "default": "`新增地址`",
452
+ "description": "底部按钮文字",
602
453
  "value": {
603
- "type": "string => boolean",
454
+ "type": "string",
604
455
  "kind": "expression"
605
456
  }
606
457
  },
607
458
  {
608
- "name": "validator",
459
+ "name": "default-tag-text",
609
460
  "default": "-",
610
- "description": "自定义校验函数",
461
+ "description": "默认地址标签文字",
611
462
  "value": {
612
- "type": "(key, val) => string",
463
+ "type": "string",
613
464
  "kind": "expression"
614
465
  }
615
466
  }
@@ -1190,6 +1041,58 @@
1190
1041
  }
1191
1042
  ]
1192
1043
  },
1044
+ {
1045
+ "name": "van-badge",
1046
+ "slots": [
1047
+ {
1048
+ "name": "default",
1049
+ "description": "徽标包裹的子元素"
1050
+ },
1051
+ {
1052
+ "name": "content",
1053
+ "description": "自定义徽标内容"
1054
+ }
1055
+ ],
1056
+ "events": [],
1057
+ "attributes": [
1058
+ {
1059
+ "name": "content",
1060
+ "default": "-",
1061
+ "description": "徽标内容",
1062
+ "value": {
1063
+ "type": "number | string",
1064
+ "kind": "expression"
1065
+ }
1066
+ },
1067
+ {
1068
+ "name": "color",
1069
+ "default": "`#ee0a24`",
1070
+ "description": "徽标背景颜色",
1071
+ "value": {
1072
+ "type": "string",
1073
+ "kind": "expression"
1074
+ }
1075
+ },
1076
+ {
1077
+ "name": "dot",
1078
+ "default": "`false`",
1079
+ "description": "是否展示为小红点",
1080
+ "value": {
1081
+ "type": "boolean",
1082
+ "kind": "expression"
1083
+ }
1084
+ },
1085
+ {
1086
+ "name": "max",
1087
+ "default": "-",
1088
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
1089
+ "value": {
1090
+ "type": "number | string",
1091
+ "kind": "expression"
1092
+ }
1093
+ }
1094
+ ]
1095
+ },
1193
1096
  {
1194
1097
  "name": "van-card",
1195
1098
  "slots": [
@@ -1250,101 +1153,348 @@
1250
1153
  ],
1251
1154
  "attributes": [
1252
1155
  {
1253
- "name": "thumb",
1254
- "default": "-",
1255
- "description": "左侧图片 URL",
1156
+ "name": "thumb",
1157
+ "default": "-",
1158
+ "description": "左侧图片 URL",
1159
+ "value": {
1160
+ "type": "string",
1161
+ "kind": "expression"
1162
+ }
1163
+ },
1164
+ {
1165
+ "name": "title",
1166
+ "default": "-",
1167
+ "description": "标题",
1168
+ "value": {
1169
+ "type": "string",
1170
+ "kind": "expression"
1171
+ }
1172
+ },
1173
+ {
1174
+ "name": "desc",
1175
+ "default": "-",
1176
+ "description": "描述",
1177
+ "value": {
1178
+ "type": "string",
1179
+ "kind": "expression"
1180
+ }
1181
+ },
1182
+ {
1183
+ "name": "tag",
1184
+ "default": "-",
1185
+ "description": "图片角标",
1186
+ "value": {
1187
+ "type": "string",
1188
+ "kind": "expression"
1189
+ }
1190
+ },
1191
+ {
1192
+ "name": "num",
1193
+ "default": "-",
1194
+ "description": "商品数量",
1195
+ "value": {
1196
+ "type": "number | string",
1197
+ "kind": "expression"
1198
+ }
1199
+ },
1200
+ {
1201
+ "name": "price",
1202
+ "default": "-",
1203
+ "description": "商品价格",
1204
+ "value": {
1205
+ "type": "number | string",
1206
+ "kind": "expression"
1207
+ }
1208
+ },
1209
+ {
1210
+ "name": "origin-price",
1211
+ "default": "-",
1212
+ "description": "商品划线原价",
1213
+ "value": {
1214
+ "type": "number | string",
1215
+ "kind": "expression"
1216
+ }
1217
+ },
1218
+ {
1219
+ "name": "centered",
1220
+ "default": "`false`",
1221
+ "description": "内容是否垂直居中",
1222
+ "value": {
1223
+ "type": "boolean",
1224
+ "kind": "expression"
1225
+ }
1226
+ },
1227
+ {
1228
+ "name": "currency",
1229
+ "default": "`¥`",
1230
+ "description": "货币符号",
1231
+ "value": {
1232
+ "type": "string",
1233
+ "kind": "expression"
1234
+ }
1235
+ },
1236
+ {
1237
+ "name": "thumb-link",
1238
+ "default": "-",
1239
+ "description": "点击左侧图片后跳转的链接地址",
1240
+ "value": {
1241
+ "type": "string",
1242
+ "kind": "expression"
1243
+ }
1244
+ },
1245
+ {
1246
+ "name": "lazy-load",
1247
+ "default": "`false`",
1248
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
1249
+ "value": {
1250
+ "type": "boolean",
1251
+ "kind": "expression"
1252
+ }
1253
+ }
1254
+ ]
1255
+ },
1256
+ {
1257
+ "name": "van-address-edit",
1258
+ "slots": [
1259
+ {
1260
+ "name": "default",
1261
+ "description": "在邮政编码下方插入内容"
1262
+ }
1263
+ ],
1264
+ "events": [
1265
+ {
1266
+ "name": "save",
1267
+ "description": "点击保存按钮时触发"
1268
+ },
1269
+ {
1270
+ "name": "focus",
1271
+ "description": "输入框聚焦时触发"
1272
+ },
1273
+ {
1274
+ "name": "delete",
1275
+ "description": "确认删除地址时触发"
1276
+ },
1277
+ {
1278
+ "name": "cancel-delete",
1279
+ "description": "取消删除地址时触发"
1280
+ },
1281
+ {
1282
+ "name": "select-search",
1283
+ "description": "选中搜索结果时触发"
1284
+ },
1285
+ {
1286
+ "name": "click-area",
1287
+ "description": "点击收件地区时触发"
1288
+ },
1289
+ {
1290
+ "name": "change-area",
1291
+ "description": "修改收件地区时触发"
1292
+ },
1293
+ {
1294
+ "name": "change-detail",
1295
+ "description": "修改详细地址时触发"
1296
+ },
1297
+ {
1298
+ "name": "change-default",
1299
+ "description": "切换是否使用默认地址时触发"
1300
+ }
1301
+ ],
1302
+ "attributes": [
1303
+ {
1304
+ "name": "area-list",
1305
+ "default": "-",
1306
+ "description": "地区列表",
1307
+ "value": {
1308
+ "type": "object",
1309
+ "kind": "expression"
1310
+ }
1311
+ },
1312
+ {
1313
+ "name": "area-columns-placeholder",
1314
+ "default": "`[]`",
1315
+ "description": "地区选择列占位提示文字",
1316
+ "value": {
1317
+ "type": "string[]",
1318
+ "kind": "expression"
1319
+ }
1320
+ },
1321
+ {
1322
+ "name": "area-placeholder",
1323
+ "default": "`选择省 / 市 / 区`",
1324
+ "description": "地区输入框占位提示文字",
1325
+ "value": {
1326
+ "type": "string",
1327
+ "kind": "expression"
1328
+ }
1329
+ },
1330
+ {
1331
+ "name": "address-info",
1332
+ "default": "`{}`",
1333
+ "description": "收货人信息初始值",
1334
+ "value": {
1335
+ "type": "AddressInfo",
1336
+ "kind": "expression"
1337
+ }
1338
+ },
1339
+ {
1340
+ "name": "search-result",
1341
+ "default": "`[]`",
1342
+ "description": "详细地址搜索结果",
1343
+ "value": {
1344
+ "type": "SearchResult[]",
1345
+ "kind": "expression"
1346
+ }
1347
+ },
1348
+ {
1349
+ "name": "show-postal",
1350
+ "default": "`false`",
1351
+ "description": "是否显示邮政编码",
1352
+ "value": {
1353
+ "type": "boolean",
1354
+ "kind": "expression"
1355
+ }
1356
+ },
1357
+ {
1358
+ "name": "show-delete",
1359
+ "default": "`false`",
1360
+ "description": "是否显示删除按钮",
1361
+ "value": {
1362
+ "type": "boolean",
1363
+ "kind": "expression"
1364
+ }
1365
+ },
1366
+ {
1367
+ "name": "show-set-default",
1368
+ "default": "`false`",
1369
+ "description": "是否显示默认地址栏",
1370
+ "value": {
1371
+ "type": "boolean",
1372
+ "kind": "expression"
1373
+ }
1374
+ },
1375
+ {
1376
+ "name": "show-search-result",
1377
+ "default": "`false`",
1378
+ "description": "是否显示搜索结果",
1379
+ "value": {
1380
+ "type": "boolean",
1381
+ "kind": "expression"
1382
+ }
1383
+ },
1384
+ {
1385
+ "name": "show-area",
1386
+ "default": "`true`",
1387
+ "description": "是否显示地区",
1388
+ "value": {
1389
+ "type": "boolean",
1390
+ "kind": "expression"
1391
+ }
1392
+ },
1393
+ {
1394
+ "name": "show-detail",
1395
+ "default": "`true`",
1396
+ "description": "是否显示详细地址",
1256
1397
  "value": {
1257
- "type": "string",
1398
+ "type": "boolean",
1258
1399
  "kind": "expression"
1259
1400
  }
1260
1401
  },
1261
1402
  {
1262
- "name": "title",
1263
- "default": "-",
1264
- "description": "标题",
1403
+ "name": "disable-area",
1404
+ "default": "`false`",
1405
+ "description": "是否禁用地区选择",
1265
1406
  "value": {
1266
- "type": "string",
1407
+ "type": "boolean",
1267
1408
  "kind": "expression"
1268
1409
  }
1269
1410
  },
1270
1411
  {
1271
- "name": "desc",
1272
- "default": "-",
1273
- "description": "描述",
1412
+ "name": "save-button-text",
1413
+ "default": "`保存`",
1414
+ "description": "保存按钮文字",
1274
1415
  "value": {
1275
1416
  "type": "string",
1276
1417
  "kind": "expression"
1277
1418
  }
1278
1419
  },
1279
1420
  {
1280
- "name": "tag",
1281
- "default": "-",
1282
- "description": "图片角标",
1421
+ "name": "delete-button-text",
1422
+ "default": "`删除`",
1423
+ "description": "删除按钮文字",
1283
1424
  "value": {
1284
1425
  "type": "string",
1285
1426
  "kind": "expression"
1286
1427
  }
1287
1428
  },
1288
1429
  {
1289
- "name": "num",
1290
- "default": "-",
1291
- "description": "商品数量",
1430
+ "name": "detail-rows",
1431
+ "default": "`1`",
1432
+ "description": "详细地址输入框行数",
1292
1433
  "value": {
1293
1434
  "type": "number | string",
1294
1435
  "kind": "expression"
1295
1436
  }
1296
1437
  },
1297
1438
  {
1298
- "name": "price",
1299
- "default": "-",
1300
- "description": "商品价格",
1439
+ "name": "detail-maxlength",
1440
+ "default": "`200`",
1441
+ "description": "详细地址最大长度",
1301
1442
  "value": {
1302
1443
  "type": "number | string",
1303
1444
  "kind": "expression"
1304
1445
  }
1305
1446
  },
1306
1447
  {
1307
- "name": "origin-price",
1308
- "default": "-",
1309
- "description": "商品划线原价",
1448
+ "name": "is-saving",
1449
+ "default": "`false`",
1450
+ "description": "是否显示保存按钮加载动画",
1310
1451
  "value": {
1311
- "type": "number | string",
1452
+ "type": "boolean",
1312
1453
  "kind": "expression"
1313
1454
  }
1314
1455
  },
1315
1456
  {
1316
- "name": "centered",
1457
+ "name": "is-deleting",
1317
1458
  "default": "`false`",
1318
- "description": "内容是否垂直居中",
1459
+ "description": "是否显示删除按钮加载动画",
1319
1460
  "value": {
1320
1461
  "type": "boolean",
1321
1462
  "kind": "expression"
1322
1463
  }
1323
1464
  },
1324
1465
  {
1325
- "name": "currency",
1326
- "default": "`¥`",
1327
- "description": "货币符号",
1466
+ "name": "tel-validator",
1467
+ "default": "-",
1468
+ "description": "手机号格式校验函数",
1328
1469
  "value": {
1329
- "type": "string",
1470
+ "type": "string => boolean",
1330
1471
  "kind": "expression"
1331
1472
  }
1332
1473
  },
1333
1474
  {
1334
- "name": "thumb-link",
1475
+ "name": "tel-maxlength",
1335
1476
  "default": "-",
1336
- "description": "点击左侧图片后跳转的链接地址",
1477
+ "description": "手机号最大长度",
1337
1478
  "value": {
1338
- "type": "string",
1479
+ "type": "number | string",
1339
1480
  "kind": "expression"
1340
1481
  }
1341
1482
  },
1342
1483
  {
1343
- "name": "lazy-load",
1344
- "default": "`false`",
1345
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
1484
+ "name": "postal-validator",
1485
+ "default": "-",
1486
+ "description": "邮政编码格式校验函数",
1346
1487
  "value": {
1347
- "type": "boolean",
1488
+ "type": "string => boolean",
1489
+ "kind": "expression"
1490
+ }
1491
+ },
1492
+ {
1493
+ "name": "validator",
1494
+ "default": "-",
1495
+ "description": "自定义校验函数",
1496
+ "value": {
1497
+ "type": "(key, val) => string",
1348
1498
  "kind": "expression"
1349
1499
  }
1350
1500
  }
@@ -1536,299 +1686,149 @@
1536
1686
  "value": {
1537
1687
  "type": "string",
1538
1688
  "kind": "expression"
1539
- }
1540
- },
1541
- {
1542
- "name": "size",
1543
- "default": "-",
1544
- "description": "单元格大小,可选值为 `large`",
1545
- "value": {
1546
- "type": "string",
1547
- "kind": "expression"
1548
- }
1549
- },
1550
- {
1551
- "name": "icon",
1552
- "default": "-",
1553
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
1554
- "value": {
1555
- "type": "string",
1556
- "kind": "expression"
1557
- }
1558
- },
1559
- {
1560
- "name": "icon-prefix",
1561
- "default": "`van-icon`",
1562
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
1563
- "value": {
1564
- "type": "string",
1565
- "kind": "expression"
1566
- }
1567
- },
1568
- {
1569
- "name": "url",
1570
- "default": "-",
1571
- "description": "点击后跳转的链接地址",
1572
- "value": {
1573
- "type": "string",
1574
- "kind": "expression"
1575
- }
1576
- },
1577
- {
1578
- "name": "to",
1579
- "default": "-",
1580
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
1581
- "value": {
1582
- "type": "string | object",
1583
- "kind": "expression"
1584
- }
1585
- },
1586
- {
1587
- "name": "border",
1588
- "default": "`true`",
1589
- "description": "是否显示内边框",
1590
- "value": {
1591
- "type": "boolean",
1592
- "kind": "expression"
1593
- }
1594
- },
1595
- {
1596
- "name": "replace",
1597
- "default": "`false`",
1598
- "description": "是否在跳转时替换当前页面历史",
1599
- "value": {
1600
- "type": "boolean",
1601
- "kind": "expression"
1602
- }
1603
- },
1604
- {
1605
- "name": "clickable",
1606
- "default": "`null`",
1607
- "description": "是否开启点击反馈",
1608
- "value": {
1609
- "type": "boolean",
1610
- "kind": "expression"
1611
- }
1612
- },
1613
- {
1614
- "name": "is-link",
1615
- "default": "`false`",
1616
- "description": "是否展示右侧箭头并开启点击反馈",
1617
- "value": {
1618
- "type": "boolean",
1619
- "kind": "expression"
1620
- }
1621
- },
1622
- {
1623
- "name": "required",
1624
- "default": "`false`",
1625
- "description": "是否显示表单必填星号",
1626
- "value": {
1627
- "type": "boolean",
1628
- "kind": "expression"
1629
- }
1630
- },
1631
- {
1632
- "name": "center",
1633
- "default": "`false`",
1634
- "description": "是否使内容垂直居中",
1635
- "value": {
1636
- "type": "boolean",
1637
- "kind": "expression"
1638
- }
1639
- },
1640
- {
1641
- "name": "arrow-direction",
1642
- "default": "`right`",
1643
- "description": "箭头方向,可选值为 `left` `up` `down`",
1644
- "value": {
1645
- "type": "string",
1646
- "kind": "expression"
1647
- }
1648
- },
1649
- {
1650
- "name": "title-style",
1651
- "default": "-",
1652
- "description": "左侧标题额外样式",
1653
- "value": {
1654
- "type": "any",
1655
- "kind": "expression"
1656
- }
1657
- },
1658
- {
1659
- "name": "title-class",
1660
- "default": "-",
1661
- "description": "左侧标题额外类名",
1662
- "value": {
1663
- "type": "any",
1664
- "kind": "expression"
1665
- }
1666
- },
1667
- {
1668
- "name": "value-class",
1669
- "default": "-",
1670
- "description": "右侧内容额外类名",
1671
- "value": {
1672
- "type": "any",
1673
- "kind": "expression"
1674
- }
1675
- },
1676
- {
1677
- "name": "label-class",
1678
- "default": "-",
1679
- "description": "描述信息额外类名",
1680
- "value": {
1681
- "type": "any",
1682
- "kind": "expression"
1683
- }
1684
- }
1685
- ]
1686
- },
1687
- {
1688
- "name": "van-area",
1689
- "slots": [
1690
- {
1691
- "name": "title",
1692
- "description": "自定义标题内容"
1693
- },
1694
- {
1695
- "name": "columns-top",
1696
- "description": "自定义选项上方内容"
1697
- },
1698
- {
1699
- "name": "columns-bottom",
1700
- "description": "自定义选项下方内容"
1701
- }
1702
- ],
1703
- "events": [
1704
- {
1705
- "name": "confirm",
1706
- "description": "点击右上方完成按钮"
1707
- },
1708
- {
1709
- "name": "cancel",
1710
- "description": "点击取消按钮时"
1689
+ }
1711
1690
  },
1712
1691
  {
1713
- "name": "change",
1714
- "description": "选项改变时触发"
1715
- }
1716
- ],
1717
- "attributes": [
1718
- {
1719
- "name": "value",
1692
+ "name": "size",
1720
1693
  "default": "-",
1721
- "description": "当前选中的省市区`code`",
1694
+ "description": "单元格大小,可选值为 `large`",
1722
1695
  "value": {
1723
1696
  "type": "string",
1724
1697
  "kind": "expression"
1725
1698
  }
1726
1699
  },
1727
1700
  {
1728
- "name": "title",
1701
+ "name": "icon",
1729
1702
  "default": "-",
1730
- "description": "顶部栏标题",
1703
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
1731
1704
  "value": {
1732
1705
  "type": "string",
1733
1706
  "kind": "expression"
1734
1707
  }
1735
1708
  },
1736
1709
  {
1737
- "name": "confirm-button-text",
1738
- "default": "`确认`",
1739
- "description": "确认按钮文字",
1710
+ "name": "icon-prefix",
1711
+ "default": "`van-icon`",
1712
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
1740
1713
  "value": {
1741
1714
  "type": "string",
1742
1715
  "kind": "expression"
1743
1716
  }
1744
1717
  },
1745
1718
  {
1746
- "name": "cancel-button-text",
1747
- "default": "`取消`",
1748
- "description": "取消按钮文字",
1719
+ "name": "url",
1720
+ "default": "-",
1721
+ "description": "点击后跳转的链接地址",
1749
1722
  "value": {
1750
1723
  "type": "string",
1751
1724
  "kind": "expression"
1752
1725
  }
1753
1726
  },
1754
1727
  {
1755
- "name": "area-list",
1728
+ "name": "to",
1756
1729
  "default": "-",
1757
- "description": "省市区数据,格式见下方",
1730
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
1758
1731
  "value": {
1759
- "type": "object",
1732
+ "type": "string | object",
1760
1733
  "kind": "expression"
1761
1734
  }
1762
1735
  },
1763
1736
  {
1764
- "name": "columns-placeholder",
1765
- "default": "`[]`",
1766
- "description": "列占位提示文字",
1737
+ "name": "border",
1738
+ "default": "`true`",
1739
+ "description": "是否显示内边框",
1767
1740
  "value": {
1768
- "type": "string[]",
1741
+ "type": "boolean",
1769
1742
  "kind": "expression"
1770
1743
  }
1771
1744
  },
1772
1745
  {
1773
- "name": "loading",
1746
+ "name": "replace",
1774
1747
  "default": "`false`",
1775
- "description": "是否显示加载状态",
1748
+ "description": "是否在跳转时替换当前页面历史",
1776
1749
  "value": {
1777
1750
  "type": "boolean",
1778
1751
  "kind": "expression"
1779
1752
  }
1780
1753
  },
1781
1754
  {
1782
- "name": "readonly",
1755
+ "name": "clickable",
1756
+ "default": "`null`",
1757
+ "description": "是否开启点击反馈",
1758
+ "value": {
1759
+ "type": "boolean",
1760
+ "kind": "expression"
1761
+ }
1762
+ },
1763
+ {
1764
+ "name": "is-link",
1783
1765
  "default": "`false`",
1784
- "description": "是否为只读状态,只读状态下无法切换选项",
1766
+ "description": "是否展示右侧箭头并开启点击反馈",
1785
1767
  "value": {
1786
1768
  "type": "boolean",
1787
1769
  "kind": "expression"
1788
1770
  }
1789
1771
  },
1790
1772
  {
1791
- "name": "item-height",
1792
- "default": "`44`",
1793
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
1773
+ "name": "required",
1774
+ "default": "`false`",
1775
+ "description": "是否显示表单必填星号",
1794
1776
  "value": {
1795
- "type": "number | string",
1777
+ "type": "boolean",
1796
1778
  "kind": "expression"
1797
1779
  }
1798
1780
  },
1799
1781
  {
1800
- "name": "columns-num",
1801
- "default": "`3`",
1802
- "description": "显示列数,3-省市区,2-省市,1-省",
1782
+ "name": "center",
1783
+ "default": "`false`",
1784
+ "description": "是否使内容垂直居中",
1803
1785
  "value": {
1804
- "type": "number | string",
1786
+ "type": "boolean",
1805
1787
  "kind": "expression"
1806
1788
  }
1807
1789
  },
1808
1790
  {
1809
- "name": "visible-item-count",
1810
- "default": "`6`",
1811
- "description": "可见的选项个数",
1791
+ "name": "arrow-direction",
1792
+ "default": "`right`",
1793
+ "description": "箭头方向,可选值为 `left` `up` `down`",
1812
1794
  "value": {
1813
- "type": "number | string",
1795
+ "type": "string",
1814
1796
  "kind": "expression"
1815
1797
  }
1816
1798
  },
1817
1799
  {
1818
- "name": "swipe-duration",
1819
- "default": "`1000`",
1820
- "description": "快速滑动时惯性滚动的时长,单位`ms`",
1800
+ "name": "title-style",
1801
+ "default": "-",
1802
+ "description": "左侧标题额外样式",
1821
1803
  "value": {
1822
- "type": "number | string",
1804
+ "type": "any",
1823
1805
  "kind": "expression"
1824
1806
  }
1825
1807
  },
1826
1808
  {
1827
- "name": "is-oversea-code",
1809
+ "name": "title-class",
1828
1810
  "default": "-",
1829
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
1811
+ "description": "左侧标题额外类名",
1830
1812
  "value": {
1831
- "type": "() => boolean",
1813
+ "type": "any",
1814
+ "kind": "expression"
1815
+ }
1816
+ },
1817
+ {
1818
+ "name": "value-class",
1819
+ "default": "-",
1820
+ "description": "右侧内容额外类名",
1821
+ "value": {
1822
+ "type": "any",
1823
+ "kind": "expression"
1824
+ }
1825
+ },
1826
+ {
1827
+ "name": "label-class",
1828
+ "default": "-",
1829
+ "description": "描述信息额外类名",
1830
+ "value": {
1831
+ "type": "any",
1832
1832
  "kind": "expression"
1833
1833
  }
1834
1834
  }
@@ -2100,7 +2100,7 @@
2100
2100
  {
2101
2101
  "name": "stroke-linecap",
2102
2102
  "default": "`round`",
2103
- "description": "进度条端点的形状,可选值为`sqaure` `butt`",
2103
+ "description": "进度条端点的形状,可选值为`square` `butt`",
2104
2104
  "value": {
2105
2105
  "type": "string",
2106
2106
  "kind": "expression"
@@ -3341,7 +3341,7 @@
3341
3341
  {
3342
3342
  "name": "transition",
3343
3343
  "default": "-",
3344
- "description": "动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性",
3344
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性",
3345
3345
  "value": {
3346
3346
  "type": "string",
3347
3347
  "kind": "expression"
@@ -4926,7 +4926,7 @@
4926
4926
  {
4927
4927
  "name": "transition",
4928
4928
  "default": "`van-fade`",
4929
- "description": "动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性",
4929
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性",
4930
4930
  "value": {
4931
4931
  "type": "string",
4932
4932
  "kind": "expression"
@@ -5425,6 +5425,77 @@
5425
5425
  }
5426
5426
  ]
5427
5427
  },
5428
+ {
5429
+ "name": "van-overlay",
5430
+ "slots": [
5431
+ {
5432
+ "name": "default",
5433
+ "description": "默认插槽,用于在遮罩层上方嵌入内容"
5434
+ }
5435
+ ],
5436
+ "events": [
5437
+ {
5438
+ "name": "click",
5439
+ "description": "点击时触发"
5440
+ }
5441
+ ],
5442
+ "attributes": [
5443
+ {
5444
+ "name": "show",
5445
+ "default": "`false`",
5446
+ "description": "是否展示遮罩层",
5447
+ "value": {
5448
+ "type": "boolean",
5449
+ "kind": "expression"
5450
+ }
5451
+ },
5452
+ {
5453
+ "name": "z-index",
5454
+ "default": "`1`",
5455
+ "description": "z-index 层级",
5456
+ "value": {
5457
+ "type": "number | string",
5458
+ "kind": "expression"
5459
+ }
5460
+ },
5461
+ {
5462
+ "name": "duration",
5463
+ "default": "`0.3`",
5464
+ "description": "动画时长,单位秒",
5465
+ "value": {
5466
+ "type": "number | string",
5467
+ "kind": "expression"
5468
+ }
5469
+ },
5470
+ {
5471
+ "name": "class-name",
5472
+ "default": "-",
5473
+ "description": "自定义类名",
5474
+ "value": {
5475
+ "type": "string",
5476
+ "kind": "expression"
5477
+ }
5478
+ },
5479
+ {
5480
+ "name": "custom-style",
5481
+ "default": "-",
5482
+ "description": "自定义样式",
5483
+ "value": {
5484
+ "type": "object",
5485
+ "kind": "expression"
5486
+ }
5487
+ },
5488
+ {
5489
+ "name": "lock-scroll",
5490
+ "default": "`true`",
5491
+ "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动",
5492
+ "value": {
5493
+ "type": "boolean",
5494
+ "kind": "expression"
5495
+ }
5496
+ }
5497
+ ]
5498
+ },
5428
5499
  {
5429
5500
  "name": "van-number-keyboard",
5430
5501
  "slots": [
@@ -5614,77 +5685,6 @@
5614
5685
  }
5615
5686
  ]
5616
5687
  },
5617
- {
5618
- "name": "van-overlay",
5619
- "slots": [
5620
- {
5621
- "name": "default",
5622
- "description": "默认插槽,用于在遮罩层上方嵌入内容"
5623
- }
5624
- ],
5625
- "events": [
5626
- {
5627
- "name": "click",
5628
- "description": "点击时触发"
5629
- }
5630
- ],
5631
- "attributes": [
5632
- {
5633
- "name": "show",
5634
- "default": "`false`",
5635
- "description": "是否展示遮罩层",
5636
- "value": {
5637
- "type": "boolean",
5638
- "kind": "expression"
5639
- }
5640
- },
5641
- {
5642
- "name": "z-index",
5643
- "default": "`1`",
5644
- "description": "z-index 层级",
5645
- "value": {
5646
- "type": "number | string",
5647
- "kind": "expression"
5648
- }
5649
- },
5650
- {
5651
- "name": "duration",
5652
- "default": "`0.3`",
5653
- "description": "动画时长,单位秒",
5654
- "value": {
5655
- "type": "number | string",
5656
- "kind": "expression"
5657
- }
5658
- },
5659
- {
5660
- "name": "class-name",
5661
- "default": "-",
5662
- "description": "自定义类名",
5663
- "value": {
5664
- "type": "string",
5665
- "kind": "expression"
5666
- }
5667
- },
5668
- {
5669
- "name": "custom-style",
5670
- "default": "-",
5671
- "description": "自定义样式",
5672
- "value": {
5673
- "type": "object",
5674
- "kind": "expression"
5675
- }
5676
- },
5677
- {
5678
- "name": "lock-scroll",
5679
- "default": "`true`",
5680
- "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动",
5681
- "value": {
5682
- "type": "boolean",
5683
- "kind": "expression"
5684
- }
5685
- }
5686
- ]
5687
- },
5688
5688
  {
5689
5689
  "name": "van-pagination",
5690
5690
  "slots": [
@@ -6386,7 +6386,7 @@
6386
6386
  {
6387
6387
  "name": "transition",
6388
6388
  "default": "-",
6389
- "description": "动画类名,等价于 [transtion](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性",
6389
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性",
6390
6390
  "value": {
6391
6391
  "type": "string",
6392
6392
  "kind": "expression"