vant 2.12.31 → 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,7 +2,7 @@
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.31",
5
+ "version": "2.12.32",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -204,253 +204,6 @@
204
204
  }
205
205
  ]
206
206
  },
207
- {
208
- "name": "van-address-edit",
209
- "slots": [
210
- {
211
- "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": "选中搜索结果时触发"
235
- },
236
- {
237
- "name": "click-area",
238
- "description": "点击收件地区时触发"
239
- },
240
- {
241
- "name": "change-area",
242
- "description": "修改收件地区时触发"
243
- },
244
- {
245
- "name": "change-detail",
246
- "description": "修改详细地址时触发"
247
- },
248
- {
249
- "name": "change-default",
250
- "description": "切换是否使用默认地址时触发"
251
- }
252
- ],
253
- "attributes": [
254
- {
255
- "name": "area-list",
256
- "default": "-",
257
- "description": "地区列表",
258
- "value": {
259
- "type": "object",
260
- "kind": "expression"
261
- }
262
- },
263
- {
264
- "name": "area-columns-placeholder",
265
- "default": "`[]`",
266
- "description": "地区选择列占位提示文字",
267
- "value": {
268
- "type": "string[]",
269
- "kind": "expression"
270
- }
271
- },
272
- {
273
- "name": "area-placeholder",
274
- "default": "`选择省 / 市 / 区`",
275
- "description": "地区输入框占位提示文字",
276
- "value": {
277
- "type": "string",
278
- "kind": "expression"
279
- }
280
- },
281
- {
282
- "name": "address-info",
283
- "default": "`{}`",
284
- "description": "收货人信息初始值",
285
- "value": {
286
- "type": "AddressInfo",
287
- "kind": "expression"
288
- }
289
- },
290
- {
291
- "name": "search-result",
292
- "default": "`[]`",
293
- "description": "详细地址搜索结果",
294
- "value": {
295
- "type": "SearchResult[]",
296
- "kind": "expression"
297
- }
298
- },
299
- {
300
- "name": "show-postal",
301
- "default": "`false`",
302
- "description": "是否显示邮政编码",
303
- "value": {
304
- "type": "boolean",
305
- "kind": "expression"
306
- }
307
- },
308
- {
309
- "name": "show-delete",
310
- "default": "`false`",
311
- "description": "是否显示删除按钮",
312
- "value": {
313
- "type": "boolean",
314
- "kind": "expression"
315
- }
316
- },
317
- {
318
- "name": "show-set-default",
319
- "default": "`false`",
320
- "description": "是否显示默认地址栏",
321
- "value": {
322
- "type": "boolean",
323
- "kind": "expression"
324
- }
325
- },
326
- {
327
- "name": "show-search-result",
328
- "default": "`false`",
329
- "description": "是否显示搜索结果",
330
- "value": {
331
- "type": "boolean",
332
- "kind": "expression"
333
- }
334
- },
335
- {
336
- "name": "show-area",
337
- "default": "`true`",
338
- "description": "是否显示地区",
339
- "value": {
340
- "type": "boolean",
341
- "kind": "expression"
342
- }
343
- },
344
- {
345
- "name": "show-detail",
346
- "default": "`true`",
347
- "description": "是否显示详细地址",
348
- "value": {
349
- "type": "boolean",
350
- "kind": "expression"
351
- }
352
- },
353
- {
354
- "name": "disable-area",
355
- "default": "`false`",
356
- "description": "是否禁用地区选择",
357
- "value": {
358
- "type": "boolean",
359
- "kind": "expression"
360
- }
361
- },
362
- {
363
- "name": "save-button-text",
364
- "default": "`保存`",
365
- "description": "保存按钮文字",
366
- "value": {
367
- "type": "string",
368
- "kind": "expression"
369
- }
370
- },
371
- {
372
- "name": "delete-button-text",
373
- "default": "`删除`",
374
- "description": "删除按钮文字",
375
- "value": {
376
- "type": "string",
377
- "kind": "expression"
378
- }
379
- },
380
- {
381
- "name": "detail-rows",
382
- "default": "`1`",
383
- "description": "详细地址输入框行数",
384
- "value": {
385
- "type": "number | string",
386
- "kind": "expression"
387
- }
388
- },
389
- {
390
- "name": "detail-maxlength",
391
- "default": "`200`",
392
- "description": "详细地址最大长度",
393
- "value": {
394
- "type": "number | string",
395
- "kind": "expression"
396
- }
397
- },
398
- {
399
- "name": "is-saving",
400
- "default": "`false`",
401
- "description": "是否显示保存按钮加载动画",
402
- "value": {
403
- "type": "boolean",
404
- "kind": "expression"
405
- }
406
- },
407
- {
408
- "name": "is-deleting",
409
- "default": "`false`",
410
- "description": "是否显示删除按钮加载动画",
411
- "value": {
412
- "type": "boolean",
413
- "kind": "expression"
414
- }
415
- },
416
- {
417
- "name": "tel-validator",
418
- "default": "-",
419
- "description": "手机号格式校验函数",
420
- "value": {
421
- "type": "string => boolean",
422
- "kind": "expression"
423
- }
424
- },
425
- {
426
- "name": "tel-maxlength",
427
- "default": "-",
428
- "description": "手机号最大长度",
429
- "value": {
430
- "type": "number | string",
431
- "kind": "expression"
432
- }
433
- },
434
- {
435
- "name": "postal-validator",
436
- "default": "-",
437
- "description": "邮政编码格式校验函数",
438
- "value": {
439
- "type": "string => boolean",
440
- "kind": "expression"
441
- }
442
- },
443
- {
444
- "name": "validator",
445
- "default": "-",
446
- "description": "自定义校验函数",
447
- "value": {
448
- "type": "(key, val) => string",
449
- "kind": "expression"
450
- }
451
- }
452
- ]
453
- },
454
207
  {
455
208
  "name": "van-area",
456
209
  "slots": [
@@ -602,52 +355,112 @@
602
355
  ]
603
356
  },
604
357
  {
605
- "name": "van-badge",
358
+ "name": "van-address-list",
606
359
  "slots": [
607
360
  {
608
361
  "name": "default",
609
- "description": "徽标包裹的子元素"
362
+ "description": "在列表下方插入内容"
610
363
  },
611
364
  {
612
- "name": "content",
613
- "description": "自定义徽标内容"
614
- }
615
- ],
616
- "events": [],
365
+ "name": "top",
366
+ "description": "在顶部插入内容"
367
+ },
368
+ {
369
+ "name": "item-bottom",
370
+ "description": "在列表项底部插入内容"
371
+ },
372
+ {
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
+ ],
617
403
  "attributes": [
618
404
  {
619
- "name": "content",
405
+ "name": "v-model",
620
406
  "default": "-",
621
- "description": "徽标内容",
407
+ "description": "当前选中地址的 id",
622
408
  "value": {
623
- "type": "number | string",
409
+ "type": "string",
624
410
  "kind": "expression"
625
411
  }
626
412
  },
627
413
  {
628
- "name": "color",
629
- "default": "`#ee0a24`",
630
- "description": "徽标背景颜色",
414
+ "name": "list",
415
+ "default": "`[]`",
416
+ "description": "地址列表",
417
+ "value": {
418
+ "type": "Address[]",
419
+ "kind": "expression"
420
+ }
421
+ },
422
+ {
423
+ "name": "disabled-list",
424
+ "default": "`[]`",
425
+ "description": "不可配送地址列表",
426
+ "value": {
427
+ "type": "Address[]",
428
+ "kind": "expression"
429
+ }
430
+ },
431
+ {
432
+ "name": "disabled-text",
433
+ "default": "-",
434
+ "description": "不可配送提示文案",
631
435
  "value": {
632
436
  "type": "string",
633
437
  "kind": "expression"
634
438
  }
635
439
  },
636
440
  {
637
- "name": "dot",
638
- "default": "`false`",
639
- "description": "是否展示为小红点",
441
+ "name": "switchable",
442
+ "default": "`true`",
443
+ "description": "是否允许切换地址",
640
444
  "value": {
641
445
  "type": "boolean",
642
446
  "kind": "expression"
643
447
  }
644
448
  },
645
449
  {
646
- "name": "max",
450
+ "name": "add-button-text",
451
+ "default": "`新增地址`",
452
+ "description": "底部按钮文字",
453
+ "value": {
454
+ "type": "string",
455
+ "kind": "expression"
456
+ }
457
+ },
458
+ {
459
+ "name": "default-tag-text",
647
460
  "default": "-",
648
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
461
+ "description": "默认地址标签文字",
649
462
  "value": {
650
- "type": "number | string",
463
+ "type": "string",
651
464
  "kind": "expression"
652
465
  }
653
466
  }
@@ -880,118 +693,6 @@
880
693
  }
881
694
  ]
882
695
  },
883
- {
884
- "name": "van-address-list",
885
- "slots": [
886
- {
887
- "name": "default",
888
- "description": "在列表下方插入内容"
889
- },
890
- {
891
- "name": "top",
892
- "description": "在顶部插入内容"
893
- },
894
- {
895
- "name": "item-bottom",
896
- "description": "在列表项底部插入内容"
897
- },
898
- {
899
- "name": "tag",
900
- "description": "列表项标签内容自定义"
901
- }
902
- ],
903
- "events": [
904
- {
905
- "name": "add",
906
- "description": "点击新增按钮时触发"
907
- },
908
- {
909
- "name": "edit",
910
- "description": "点击编辑按钮时触发"
911
- },
912
- {
913
- "name": "select",
914
- "description": "切换选中的地址时触发"
915
- },
916
- {
917
- "name": "edit-disabled",
918
- "description": "编辑不可配送的地址时触发"
919
- },
920
- {
921
- "name": "select-disabled",
922
- "description": "选中不可配送的地址时触发"
923
- },
924
- {
925
- "name": "click-item",
926
- "description": "点击任意地址时触发"
927
- }
928
- ],
929
- "attributes": [
930
- {
931
- "name": "v-model",
932
- "default": "-",
933
- "description": "当前选中地址的 id",
934
- "value": {
935
- "type": "string",
936
- "kind": "expression"
937
- }
938
- },
939
- {
940
- "name": "list",
941
- "default": "`[]`",
942
- "description": "地址列表",
943
- "value": {
944
- "type": "Address[]",
945
- "kind": "expression"
946
- }
947
- },
948
- {
949
- "name": "disabled-list",
950
- "default": "`[]`",
951
- "description": "不可配送地址列表",
952
- "value": {
953
- "type": "Address[]",
954
- "kind": "expression"
955
- }
956
- },
957
- {
958
- "name": "disabled-text",
959
- "default": "-",
960
- "description": "不可配送提示文案",
961
- "value": {
962
- "type": "string",
963
- "kind": "expression"
964
- }
965
- },
966
- {
967
- "name": "switchable",
968
- "default": "`true`",
969
- "description": "是否允许切换地址",
970
- "value": {
971
- "type": "boolean",
972
- "kind": "expression"
973
- }
974
- },
975
- {
976
- "name": "add-button-text",
977
- "default": "`新增地址`",
978
- "description": "底部按钮文字",
979
- "value": {
980
- "type": "string",
981
- "kind": "expression"
982
- }
983
- },
984
- {
985
- "name": "default-tag-text",
986
- "default": "-",
987
- "description": "默认地址标签文字",
988
- "value": {
989
- "type": "string",
990
- "kind": "expression"
991
- }
992
- }
993
- ]
994
- },
995
696
  {
996
697
  "name": "van-calendar",
997
698
  "slots": [
@@ -1340,6 +1041,58 @@
1340
1041
  }
1341
1042
  ]
1342
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
+ },
1343
1096
  {
1344
1097
  "name": "van-card",
1345
1098
  "slots": [
@@ -1380,121 +1133,368 @@
1380
1133
  "description": "自定义图片角标"
1381
1134
  },
1382
1135
  {
1383
- "name": "tags",
1384
- "description": "自定义描述下方标签区域"
1136
+ "name": "tags",
1137
+ "description": "自定义描述下方标签区域"
1138
+ },
1139
+ {
1140
+ "name": "footer",
1141
+ "description": "自定义右下角内容"
1142
+ }
1143
+ ],
1144
+ "events": [
1145
+ {
1146
+ "name": "click",
1147
+ "description": "点击时触发"
1148
+ },
1149
+ {
1150
+ "name": "click-thumb",
1151
+ "description": "点击自定义图片时触发"
1152
+ }
1153
+ ],
1154
+ "attributes": [
1155
+ {
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
+ }
1385
1383
  },
1386
1384
  {
1387
- "name": "footer",
1388
- "description": "自定义右下角内容"
1389
- }
1390
- ],
1391
- "events": [
1392
- {
1393
- "name": "click",
1394
- "description": "点击时触发"
1385
+ "name": "show-area",
1386
+ "default": "`true`",
1387
+ "description": "是否显示地区",
1388
+ "value": {
1389
+ "type": "boolean",
1390
+ "kind": "expression"
1391
+ }
1395
1392
  },
1396
1393
  {
1397
- "name": "click-thumb",
1398
- "description": "点击自定义图片时触发"
1399
- }
1400
- ],
1401
- "attributes": [
1402
- {
1403
- "name": "thumb",
1404
- "default": "-",
1405
- "description": "左侧图片 URL",
1394
+ "name": "show-detail",
1395
+ "default": "`true`",
1396
+ "description": "是否显示详细地址",
1406
1397
  "value": {
1407
- "type": "string",
1398
+ "type": "boolean",
1408
1399
  "kind": "expression"
1409
1400
  }
1410
1401
  },
1411
1402
  {
1412
- "name": "title",
1413
- "default": "-",
1414
- "description": "标题",
1403
+ "name": "disable-area",
1404
+ "default": "`false`",
1405
+ "description": "是否禁用地区选择",
1415
1406
  "value": {
1416
- "type": "string",
1407
+ "type": "boolean",
1417
1408
  "kind": "expression"
1418
1409
  }
1419
1410
  },
1420
1411
  {
1421
- "name": "desc",
1422
- "default": "-",
1423
- "description": "描述",
1412
+ "name": "save-button-text",
1413
+ "default": "`保存`",
1414
+ "description": "保存按钮文字",
1424
1415
  "value": {
1425
1416
  "type": "string",
1426
1417
  "kind": "expression"
1427
1418
  }
1428
1419
  },
1429
1420
  {
1430
- "name": "tag",
1431
- "default": "-",
1432
- "description": "图片角标",
1421
+ "name": "delete-button-text",
1422
+ "default": "`删除`",
1423
+ "description": "删除按钮文字",
1433
1424
  "value": {
1434
1425
  "type": "string",
1435
1426
  "kind": "expression"
1436
1427
  }
1437
1428
  },
1438
1429
  {
1439
- "name": "num",
1440
- "default": "-",
1441
- "description": "商品数量",
1430
+ "name": "detail-rows",
1431
+ "default": "`1`",
1432
+ "description": "详细地址输入框行数",
1442
1433
  "value": {
1443
1434
  "type": "number | string",
1444
1435
  "kind": "expression"
1445
1436
  }
1446
1437
  },
1447
1438
  {
1448
- "name": "price",
1449
- "default": "-",
1450
- "description": "商品价格",
1439
+ "name": "detail-maxlength",
1440
+ "default": "`200`",
1441
+ "description": "详细地址最大长度",
1451
1442
  "value": {
1452
1443
  "type": "number | string",
1453
1444
  "kind": "expression"
1454
1445
  }
1455
1446
  },
1456
1447
  {
1457
- "name": "origin-price",
1458
- "default": "-",
1459
- "description": "商品划线原价",
1448
+ "name": "is-saving",
1449
+ "default": "`false`",
1450
+ "description": "是否显示保存按钮加载动画",
1460
1451
  "value": {
1461
- "type": "number | string",
1452
+ "type": "boolean",
1462
1453
  "kind": "expression"
1463
1454
  }
1464
1455
  },
1465
1456
  {
1466
- "name": "centered",
1457
+ "name": "is-deleting",
1467
1458
  "default": "`false`",
1468
- "description": "内容是否垂直居中",
1459
+ "description": "是否显示删除按钮加载动画",
1469
1460
  "value": {
1470
1461
  "type": "boolean",
1471
1462
  "kind": "expression"
1472
1463
  }
1473
1464
  },
1474
1465
  {
1475
- "name": "currency",
1476
- "default": "`¥`",
1477
- "description": "货币符号",
1466
+ "name": "tel-validator",
1467
+ "default": "-",
1468
+ "description": "手机号格式校验函数",
1478
1469
  "value": {
1479
- "type": "string",
1470
+ "type": "string => boolean",
1480
1471
  "kind": "expression"
1481
1472
  }
1482
1473
  },
1483
1474
  {
1484
- "name": "thumb-link",
1475
+ "name": "tel-maxlength",
1485
1476
  "default": "-",
1486
- "description": "点击左侧图片后跳转的链接地址",
1477
+ "description": "手机号最大长度",
1487
1478
  "value": {
1488
- "type": "string",
1479
+ "type": "number | string",
1489
1480
  "kind": "expression"
1490
1481
  }
1491
1482
  },
1492
1483
  {
1493
- "name": "lazy-load",
1494
- "default": "`false`",
1495
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
1484
+ "name": "postal-validator",
1485
+ "default": "-",
1486
+ "description": "邮政编码格式校验函数",
1496
1487
  "value": {
1497
- "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",
1498
1498
  "kind": "expression"
1499
1499
  }
1500
1500
  }
@@ -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"