vant 2.12.54 → 2.13.1

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.54",
5
+ "version": "2.13.1",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -205,54 +205,249 @@
205
205
  ]
206
206
  },
207
207
  {
208
- "name": "van-badge",
208
+ "name": "van-address-edit",
209
209
  "slots": [
210
210
  {
211
211
  "name": "default",
212
- "description": "徽标包裹的子元素"
212
+ "description": "在邮政编码下方插入内容"
213
+ }
214
+ ],
215
+ "events": [
216
+ {
217
+ "name": "save",
218
+ "description": "点击保存按钮时触发"
213
219
  },
214
220
  {
215
- "name": "content",
216
- "description": "自定义徽标内容"
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": "切换是否使用默认地址时触发"
217
251
  }
218
252
  ],
219
- "events": [],
220
253
  "attributes": [
221
254
  {
222
- "name": "content",
255
+ "name": "area-list",
223
256
  "default": "-",
224
- "description": "徽标内容",
257
+ "description": "地区列表",
225
258
  "value": {
226
- "type": "number | string",
259
+ "type": "object",
227
260
  "kind": "expression"
228
261
  }
229
262
  },
230
263
  {
231
- "name": "color",
232
- "default": "`#ee0a24`",
233
- "description": "徽标背景颜色",
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": "地区输入框占位提示文字",
234
276
  "value": {
235
277
  "type": "string",
236
278
  "kind": "expression"
237
279
  }
238
280
  },
239
281
  {
240
- "name": "dot",
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",
241
301
  "default": "`false`",
242
- "description": "是否展示为小红点",
302
+ "description": "是否显示邮政编码",
243
303
  "value": {
244
304
  "type": "boolean",
245
305
  "kind": "expression"
246
306
  }
247
307
  },
248
308
  {
249
- "name": "max",
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",
250
418
  "default": "-",
251
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
419
+ "description": "手机号格式校验函数",
420
+ "value": {
421
+ "type": "string => boolean",
422
+ "kind": "expression"
423
+ }
424
+ },
425
+ {
426
+ "name": "tel-maxlength",
427
+ "default": "-",
428
+ "description": "手机号最大长度",
252
429
  "value": {
253
430
  "type": "number | string",
254
431
  "kind": "expression"
255
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
+ }
256
451
  }
257
452
  ]
258
453
  },
@@ -407,36 +602,148 @@
407
602
  ]
408
603
  },
409
604
  {
410
- "name": "van-button",
605
+ "name": "van-address-list",
411
606
  "slots": [
412
607
  {
413
608
  "name": "default",
414
- "description": "按钮内容"
609
+ "description": "在列表下方插入内容"
415
610
  },
416
611
  {
417
- "name": "icon",
418
- "description": "自定义图标"
612
+ "name": "top",
613
+ "description": "在顶部插入内容"
419
614
  },
420
615
  {
421
- "name": "loading",
422
- "description": "自定义加载图标"
616
+ "name": "item-bottom",
617
+ "description": "在列表项底部插入内容"
618
+ },
619
+ {
620
+ "name": "tag",
621
+ "description": "列表项标签内容自定义"
423
622
  }
424
623
  ],
425
624
  "events": [
426
625
  {
427
- "name": "click",
428
- "description": "点击按钮,且按钮状态不为加载或禁用时触发"
626
+ "name": "add",
627
+ "description": "点击新增按钮时触发"
429
628
  },
430
629
  {
431
- "name": "touchstart",
432
- "description": "开始触摸按钮时触发"
433
- }
434
- ],
435
- "attributes": [
630
+ "name": "edit",
631
+ "description": "点击编辑按钮时触发"
632
+ },
436
633
  {
437
- "name": "type",
438
- "default": "`default`",
439
- "description": "类型,可选值为 `primary` `info` `warning` `danger`",
634
+ "name": "select",
635
+ "description": "切换选中的地址时触发"
636
+ },
637
+ {
638
+ "name": "edit-disabled",
639
+ "description": "编辑不可配送的地址时触发"
640
+ },
641
+ {
642
+ "name": "select-disabled",
643
+ "description": "选中不可配送的地址时触发"
644
+ },
645
+ {
646
+ "name": "click-item",
647
+ "description": "点击任意地址时触发"
648
+ }
649
+ ],
650
+ "attributes": [
651
+ {
652
+ "name": "v-model",
653
+ "default": "-",
654
+ "description": "当前选中地址的 id",
655
+ "value": {
656
+ "type": "string",
657
+ "kind": "expression"
658
+ }
659
+ },
660
+ {
661
+ "name": "list",
662
+ "default": "`[]`",
663
+ "description": "地址列表",
664
+ "value": {
665
+ "type": "Address[]",
666
+ "kind": "expression"
667
+ }
668
+ },
669
+ {
670
+ "name": "disabled-list",
671
+ "default": "`[]`",
672
+ "description": "不可配送地址列表",
673
+ "value": {
674
+ "type": "Address[]",
675
+ "kind": "expression"
676
+ }
677
+ },
678
+ {
679
+ "name": "disabled-text",
680
+ "default": "-",
681
+ "description": "不可配送提示文案",
682
+ "value": {
683
+ "type": "string",
684
+ "kind": "expression"
685
+ }
686
+ },
687
+ {
688
+ "name": "switchable",
689
+ "default": "`true`",
690
+ "description": "是否允许切换地址",
691
+ "value": {
692
+ "type": "boolean",
693
+ "kind": "expression"
694
+ }
695
+ },
696
+ {
697
+ "name": "add-button-text",
698
+ "default": "`新增地址`",
699
+ "description": "底部按钮文字",
700
+ "value": {
701
+ "type": "string",
702
+ "kind": "expression"
703
+ }
704
+ },
705
+ {
706
+ "name": "default-tag-text",
707
+ "default": "-",
708
+ "description": "默认地址标签文字",
709
+ "value": {
710
+ "type": "string",
711
+ "kind": "expression"
712
+ }
713
+ }
714
+ ]
715
+ },
716
+ {
717
+ "name": "van-button",
718
+ "slots": [
719
+ {
720
+ "name": "default",
721
+ "description": "按钮内容"
722
+ },
723
+ {
724
+ "name": "icon",
725
+ "description": "自定义图标"
726
+ },
727
+ {
728
+ "name": "loading",
729
+ "description": "自定义加载图标"
730
+ }
731
+ ],
732
+ "events": [
733
+ {
734
+ "name": "click",
735
+ "description": "点击按钮,且按钮状态不为加载或禁用时触发"
736
+ },
737
+ {
738
+ "name": "touchstart",
739
+ "description": "开始触摸按钮时触发"
740
+ }
741
+ ],
742
+ "attributes": [
743
+ {
744
+ "name": "type",
745
+ "default": "`default`",
746
+ "description": "类型,可选值为 `primary` `info` `warning` `danger`",
440
747
  "value": {
441
748
  "type": "string",
442
749
  "kind": "expression"
@@ -634,329 +941,109 @@
634
941
  ]
635
942
  },
636
943
  {
637
- "name": "van-address-list",
944
+ "name": "van-badge",
638
945
  "slots": [
639
946
  {
640
947
  "name": "default",
641
- "description": "在列表下方插入内容"
642
- },
643
- {
644
- "name": "top",
645
- "description": "在顶部插入内容"
646
- },
647
- {
648
- "name": "item-bottom",
649
- "description": "在列表项底部插入内容"
650
- },
651
- {
652
- "name": "tag",
653
- "description": "列表项标签内容自定义"
654
- }
655
- ],
656
- "events": [
657
- {
658
- "name": "add",
659
- "description": "点击新增按钮时触发"
660
- },
661
- {
662
- "name": "edit",
663
- "description": "点击编辑按钮时触发"
664
- },
665
- {
666
- "name": "select",
667
- "description": "切换选中的地址时触发"
668
- },
669
- {
670
- "name": "edit-disabled",
671
- "description": "编辑不可配送的地址时触发"
672
- },
673
- {
674
- "name": "select-disabled",
675
- "description": "选中不可配送的地址时触发"
948
+ "description": "徽标包裹的子元素"
676
949
  },
677
950
  {
678
- "name": "click-item",
679
- "description": "点击任意地址时触发"
951
+ "name": "content",
952
+ "description": "自定义徽标内容"
680
953
  }
681
954
  ],
955
+ "events": [],
682
956
  "attributes": [
683
957
  {
684
- "name": "v-model",
958
+ "name": "content",
685
959
  "default": "-",
686
- "description": "当前选中地址的 id",
687
- "value": {
688
- "type": "string",
689
- "kind": "expression"
690
- }
691
- },
692
- {
693
- "name": "list",
694
- "default": "`[]`",
695
- "description": "地址列表",
696
- "value": {
697
- "type": "Address[]",
698
- "kind": "expression"
699
- }
700
- },
701
- {
702
- "name": "disabled-list",
703
- "default": "`[]`",
704
- "description": "不可配送地址列表",
960
+ "description": "徽标内容",
705
961
  "value": {
706
- "type": "Address[]",
962
+ "type": "number | string",
707
963
  "kind": "expression"
708
964
  }
709
965
  },
710
966
  {
711
- "name": "disabled-text",
712
- "default": "-",
713
- "description": "不可配送提示文案",
967
+ "name": "color",
968
+ "default": "`#ee0a24`",
969
+ "description": "徽标背景颜色",
714
970
  "value": {
715
971
  "type": "string",
716
972
  "kind": "expression"
717
973
  }
718
974
  },
719
975
  {
720
- "name": "switchable",
721
- "default": "`true`",
722
- "description": "是否允许切换地址",
976
+ "name": "dot",
977
+ "default": "`false`",
978
+ "description": "是否展示为小红点",
723
979
  "value": {
724
980
  "type": "boolean",
725
981
  "kind": "expression"
726
982
  }
727
983
  },
728
984
  {
729
- "name": "add-button-text",
730
- "default": "`新增地址`",
731
- "description": "底部按钮文字",
732
- "value": {
733
- "type": "string",
734
- "kind": "expression"
735
- }
736
- },
737
- {
738
- "name": "default-tag-text",
985
+ "name": "max",
739
986
  "default": "-",
740
- "description": "默认地址标签文字",
987
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
741
988
  "value": {
742
- "type": "string",
989
+ "type": "number | string",
743
990
  "kind": "expression"
744
991
  }
745
992
  }
746
993
  ]
747
994
  },
748
995
  {
749
- "name": "van-card",
996
+ "name": "van-calendar",
750
997
  "slots": [
751
998
  {
752
999
  "name": "title",
753
1000
  "description": "自定义标题"
754
1001
  },
755
1002
  {
756
- "name": "desc",
757
- "description": "自定义描述"
1003
+ "name": "footer",
1004
+ "description": "自定义底部区域内容"
758
1005
  },
759
1006
  {
760
- "name": "num",
761
- "description": "自定义数量"
1007
+ "name": "top-info",
1008
+ "description": "自定义日期上方的提示信息"
762
1009
  },
763
1010
  {
764
- "name": "price",
765
- "description": "自定义价格"
1011
+ "name": "bottom-info",
1012
+ "description": "自定义日期下方的提示信息"
1013
+ }
1014
+ ],
1015
+ "events": [
1016
+ {
1017
+ "name": "select",
1018
+ "description": "点击并选中任意日期时触发"
766
1019
  },
767
1020
  {
768
- "name": "origin-price",
769
- "description": "自定义商品原价"
1021
+ "name": "confirm",
1022
+ "description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
770
1023
  },
771
1024
  {
772
- "name": "price-top",
773
- "description": "自定义价格上方区域"
1025
+ "name": "open",
1026
+ "description": "打开弹出层时触发"
774
1027
  },
775
1028
  {
776
- "name": "bottom",
777
- "description": "自定义价格下方区域"
1029
+ "name": "close",
1030
+ "description": "关闭弹出层时触发"
778
1031
  },
779
1032
  {
780
- "name": "thumb",
781
- "description": "自定义图片"
1033
+ "name": "opened",
1034
+ "description": "打开弹出层且动画结束后触发"
782
1035
  },
783
1036
  {
784
- "name": "tag",
785
- "description": "自定义图片角标"
1037
+ "name": "closed",
1038
+ "description": "关闭弹出层且动画结束后触发"
786
1039
  },
787
1040
  {
788
- "name": "tags",
789
- "description": "自定义描述下方标签区域"
1041
+ "name": "unselect",
1042
+ "description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
790
1043
  },
791
1044
  {
792
- "name": "footer",
793
- "description": "自定义右下角内容"
794
- }
795
- ],
796
- "events": [
797
- {
798
- "name": "click",
799
- "description": "点击时触发"
800
- },
801
- {
802
- "name": "click-thumb",
803
- "description": "点击自定义图片时触发"
804
- }
805
- ],
806
- "attributes": [
807
- {
808
- "name": "thumb",
809
- "default": "-",
810
- "description": "左侧图片 URL",
811
- "value": {
812
- "type": "string",
813
- "kind": "expression"
814
- }
815
- },
816
- {
817
- "name": "title",
818
- "default": "-",
819
- "description": "标题",
820
- "value": {
821
- "type": "string",
822
- "kind": "expression"
823
- }
824
- },
825
- {
826
- "name": "desc",
827
- "default": "-",
828
- "description": "描述",
829
- "value": {
830
- "type": "string",
831
- "kind": "expression"
832
- }
833
- },
834
- {
835
- "name": "tag",
836
- "default": "-",
837
- "description": "图片角标",
838
- "value": {
839
- "type": "string",
840
- "kind": "expression"
841
- }
842
- },
843
- {
844
- "name": "num",
845
- "default": "-",
846
- "description": "商品数量",
847
- "value": {
848
- "type": "number | string",
849
- "kind": "expression"
850
- }
851
- },
852
- {
853
- "name": "price",
854
- "default": "-",
855
- "description": "商品价格",
856
- "value": {
857
- "type": "number | string",
858
- "kind": "expression"
859
- }
860
- },
861
- {
862
- "name": "origin-price",
863
- "default": "-",
864
- "description": "商品划线原价",
865
- "value": {
866
- "type": "number | string",
867
- "kind": "expression"
868
- }
869
- },
870
- {
871
- "name": "centered",
872
- "default": "`false`",
873
- "description": "内容是否垂直居中",
874
- "value": {
875
- "type": "boolean",
876
- "kind": "expression"
877
- }
878
- },
879
- {
880
- "name": "currency",
881
- "default": "`¥`",
882
- "description": "货币符号",
883
- "value": {
884
- "type": "string",
885
- "kind": "expression"
886
- }
887
- },
888
- {
889
- "name": "thumb-link",
890
- "default": "-",
891
- "description": "点击左侧图片后跳转的链接地址",
892
- "value": {
893
- "type": "string",
894
- "kind": "expression"
895
- }
896
- },
897
- {
898
- "name": "lazy-load",
899
- "default": "`false`",
900
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
901
- "value": {
902
- "type": "boolean",
903
- "kind": "expression"
904
- }
905
- }
906
- ]
907
- },
908
- {
909
- "name": "van-calendar",
910
- "slots": [
911
- {
912
- "name": "title",
913
- "description": "自定义标题"
914
- },
915
- {
916
- "name": "footer",
917
- "description": "自定义底部区域内容"
918
- },
919
- {
920
- "name": "top-info",
921
- "description": "自定义日期上方的提示信息"
922
- },
923
- {
924
- "name": "bottom-info",
925
- "description": "自定义日期下方的提示信息"
926
- }
927
- ],
928
- "events": [
929
- {
930
- "name": "select",
931
- "description": "点击并选中任意日期时触发"
932
- },
933
- {
934
- "name": "confirm",
935
- "description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
936
- },
937
- {
938
- "name": "open",
939
- "description": "打开弹出层时触发"
940
- },
941
- {
942
- "name": "close",
943
- "description": "关闭弹出层时触发"
944
- },
945
- {
946
- "name": "opened",
947
- "description": "打开弹出层且动画结束后触发"
948
- },
949
- {
950
- "name": "closed",
951
- "description": "关闭弹出层且动画结束后触发"
952
- },
953
- {
954
- "name": "unselect",
955
- "description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
956
- },
957
- {
958
- "name": "month-show",
959
- "description": "当某个月份进入可视区域时触发"
1045
+ "name": "month-show",
1046
+ "description": "当某个月份进入可视区域时触发"
960
1047
  }
961
1048
  ],
962
1049
  "attributes": [
@@ -1233,348 +1320,261 @@
1233
1320
  ]
1234
1321
  },
1235
1322
  {
1236
- "name": "van-cascader",
1323
+ "name": "van-card",
1237
1324
  "slots": [
1238
1325
  {
1239
1326
  "name": "title",
1240
- "description": "自定义顶部标题"
1327
+ "description": "自定义标题"
1241
1328
  },
1242
1329
  {
1243
- "name": "option",
1244
- "description": "自定义选项文字"
1330
+ "name": "desc",
1331
+ "description": "自定义描述"
1332
+ },
1333
+ {
1334
+ "name": "num",
1335
+ "description": "自定义数量"
1336
+ },
1337
+ {
1338
+ "name": "price",
1339
+ "description": "自定义价格"
1340
+ },
1341
+ {
1342
+ "name": "origin-price",
1343
+ "description": "自定义商品原价"
1344
+ },
1345
+ {
1346
+ "name": "price-top",
1347
+ "description": "自定义价格上方区域"
1348
+ },
1349
+ {
1350
+ "name": "bottom",
1351
+ "description": "自定义价格下方区域"
1352
+ },
1353
+ {
1354
+ "name": "thumb",
1355
+ "description": "自定义图片"
1356
+ },
1357
+ {
1358
+ "name": "tag",
1359
+ "description": "自定义图片角标"
1360
+ },
1361
+ {
1362
+ "name": "tags",
1363
+ "description": "自定义描述下方标签区域"
1364
+ },
1365
+ {
1366
+ "name": "footer",
1367
+ "description": "自定义右下角内容"
1245
1368
  }
1246
1369
  ],
1247
1370
  "events": [
1248
1371
  {
1249
- "name": "change",
1250
- "description": "选中项变化时触发"
1251
- },
1252
- {
1253
- "name": "finish",
1254
- "description": "全部选项选择完成后触发"
1372
+ "name": "click",
1373
+ "description": "点击时触发"
1255
1374
  },
1256
1375
  {
1257
- "name": "close",
1258
- "description": "点击关闭图标时触发"
1376
+ "name": "click-thumb",
1377
+ "description": "点击自定义图片时触发"
1259
1378
  }
1260
1379
  ],
1261
1380
  "attributes": [
1262
1381
  {
1263
- "name": "title",
1382
+ "name": "thumb",
1264
1383
  "default": "-",
1265
- "description": "顶部标题",
1384
+ "description": "左侧图片 URL",
1266
1385
  "value": {
1267
1386
  "type": "string",
1268
1387
  "kind": "expression"
1269
1388
  }
1270
1389
  },
1271
1390
  {
1272
- "name": "value",
1391
+ "name": "title",
1273
1392
  "default": "-",
1274
- "description": "选中项的值",
1393
+ "description": "标题",
1275
1394
  "value": {
1276
- "type": "string | number",
1395
+ "type": "string",
1277
1396
  "kind": "expression"
1278
1397
  }
1279
1398
  },
1280
1399
  {
1281
- "name": "options",
1282
- "default": "`[]`",
1283
- "description": "可选项数据源",
1400
+ "name": "desc",
1401
+ "default": "-",
1402
+ "description": "描述",
1284
1403
  "value": {
1285
- "type": "Option[]",
1404
+ "type": "string",
1286
1405
  "kind": "expression"
1287
1406
  }
1288
1407
  },
1289
1408
  {
1290
- "name": "placeholder",
1291
- "default": "`请选择`",
1292
- "description": "未选中时的提示文案",
1409
+ "name": "tag",
1410
+ "default": "-",
1411
+ "description": "图片角标",
1293
1412
  "value": {
1294
1413
  "type": "string",
1295
1414
  "kind": "expression"
1296
1415
  }
1297
1416
  },
1298
1417
  {
1299
- "name": "active-color",
1300
- "default": "`#ee0a24`",
1301
- "description": "选中状态的高亮颜色",
1418
+ "name": "num",
1419
+ "default": "-",
1420
+ "description": "商品数量",
1302
1421
  "value": {
1303
- "type": "string",
1422
+ "type": "number | string",
1304
1423
  "kind": "expression"
1305
1424
  }
1306
1425
  },
1307
1426
  {
1308
- "name": "closeable",
1309
- "default": "`true`",
1310
- "description": "是否显示关闭图标",
1311
- "value": {
1312
- "type": "boolean",
1313
- "kind": "expression"
1314
- }
1315
- },
1316
- {
1317
- "name": "show-header",
1318
- "default": "`true`",
1319
- "description": "是否展示标题栏",
1427
+ "name": "price",
1428
+ "default": "-",
1429
+ "description": "商品价格",
1320
1430
  "value": {
1321
- "type": "boolean",
1431
+ "type": "number | string",
1322
1432
  "kind": "expression"
1323
1433
  }
1324
1434
  },
1325
1435
  {
1326
- "name": "field-names",
1327
- "default": "`{ text: 'text', value: 'value', children: 'children' }`",
1328
- "description": "自定义 `options` 结构中的字段",
1329
- "value": {
1330
- "type": "object",
1331
- "kind": "expression"
1332
- }
1333
- }
1334
- ]
1335
- },
1336
- {
1337
- "name": "van-address-edit",
1338
- "slots": [
1339
- {
1340
- "name": "default",
1341
- "description": "在邮政编码下方插入内容"
1342
- }
1343
- ],
1344
- "events": [
1345
- {
1346
- "name": "save",
1347
- "description": "点击保存按钮时触发"
1348
- },
1349
- {
1350
- "name": "focus",
1351
- "description": "输入框聚焦时触发"
1352
- },
1353
- {
1354
- "name": "delete",
1355
- "description": "确认删除地址时触发"
1356
- },
1357
- {
1358
- "name": "cancel-delete",
1359
- "description": "取消删除地址时触发"
1360
- },
1361
- {
1362
- "name": "select-search",
1363
- "description": "选中搜索结果时触发"
1364
- },
1365
- {
1366
- "name": "click-area",
1367
- "description": "点击收件地区时触发"
1368
- },
1369
- {
1370
- "name": "change-area",
1371
- "description": "修改收件地区时触发"
1372
- },
1373
- {
1374
- "name": "change-detail",
1375
- "description": "修改详细地址时触发"
1376
- },
1377
- {
1378
- "name": "change-default",
1379
- "description": "切换是否使用默认地址时触发"
1380
- }
1381
- ],
1382
- "attributes": [
1383
- {
1384
- "name": "area-list",
1436
+ "name": "origin-price",
1385
1437
  "default": "-",
1386
- "description": "地区列表",
1438
+ "description": "商品划线原价",
1387
1439
  "value": {
1388
- "type": "object",
1440
+ "type": "number | string",
1389
1441
  "kind": "expression"
1390
1442
  }
1391
1443
  },
1392
1444
  {
1393
- "name": "area-columns-placeholder",
1394
- "default": "`[]`",
1395
- "description": "地区选择列占位提示文字",
1445
+ "name": "centered",
1446
+ "default": "`false`",
1447
+ "description": "内容是否垂直居中",
1396
1448
  "value": {
1397
- "type": "string[]",
1449
+ "type": "boolean",
1398
1450
  "kind": "expression"
1399
1451
  }
1400
1452
  },
1401
1453
  {
1402
- "name": "area-placeholder",
1403
- "default": "`选择省 / 市 / 区`",
1404
- "description": "地区输入框占位提示文字",
1454
+ "name": "currency",
1455
+ "default": "`¥`",
1456
+ "description": "货币符号",
1405
1457
  "value": {
1406
1458
  "type": "string",
1407
1459
  "kind": "expression"
1408
1460
  }
1409
1461
  },
1410
1462
  {
1411
- "name": "address-info",
1412
- "default": "`{}`",
1413
- "description": "收货人信息初始值",
1414
- "value": {
1415
- "type": "AddressInfo",
1416
- "kind": "expression"
1417
- }
1418
- },
1419
- {
1420
- "name": "search-result",
1421
- "default": "`[]`",
1422
- "description": "详细地址搜索结果",
1423
- "value": {
1424
- "type": "SearchResult[]",
1425
- "kind": "expression"
1426
- }
1427
- },
1428
- {
1429
- "name": "show-postal",
1430
- "default": "`false`",
1431
- "description": "是否显示邮政编码",
1463
+ "name": "thumb-link",
1464
+ "default": "-",
1465
+ "description": "点击左侧图片后跳转的链接地址",
1432
1466
  "value": {
1433
- "type": "boolean",
1467
+ "type": "string",
1434
1468
  "kind": "expression"
1435
1469
  }
1436
1470
  },
1437
1471
  {
1438
- "name": "show-delete",
1472
+ "name": "lazy-load",
1439
1473
  "default": "`false`",
1440
- "description": "是否显示删除按钮",
1474
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
1441
1475
  "value": {
1442
1476
  "type": "boolean",
1443
1477
  "kind": "expression"
1444
1478
  }
1445
- },
1479
+ }
1480
+ ]
1481
+ },
1482
+ {
1483
+ "name": "van-cascader",
1484
+ "slots": [
1446
1485
  {
1447
- "name": "show-set-default",
1448
- "default": "`false`",
1449
- "description": "是否显示默认地址栏",
1450
- "value": {
1451
- "type": "boolean",
1452
- "kind": "expression"
1453
- }
1486
+ "name": "title",
1487
+ "description": "自定义顶部标题"
1454
1488
  },
1455
1489
  {
1456
- "name": "show-search-result",
1457
- "default": "`false`",
1458
- "description": "是否显示搜索结果",
1459
- "value": {
1460
- "type": "boolean",
1461
- "kind": "expression"
1462
- }
1463
- },
1490
+ "name": "option",
1491
+ "description": "自定义选项文字"
1492
+ }
1493
+ ],
1494
+ "events": [
1464
1495
  {
1465
- "name": "show-area",
1466
- "default": "`true`",
1467
- "description": "是否显示地区",
1468
- "value": {
1469
- "type": "boolean",
1470
- "kind": "expression"
1471
- }
1496
+ "name": "change",
1497
+ "description": "选中项变化时触发"
1472
1498
  },
1473
1499
  {
1474
- "name": "show-detail",
1475
- "default": "`true`",
1476
- "description": "是否显示详细地址",
1477
- "value": {
1478
- "type": "boolean",
1479
- "kind": "expression"
1480
- }
1500
+ "name": "finish",
1501
+ "description": "全部选项选择完成后触发"
1481
1502
  },
1482
1503
  {
1483
- "name": "disable-area",
1484
- "default": "`false`",
1485
- "description": "是否禁用地区选择",
1486
- "value": {
1487
- "type": "boolean",
1488
- "kind": "expression"
1489
- }
1490
- },
1504
+ "name": "close",
1505
+ "description": "点击关闭图标时触发"
1506
+ }
1507
+ ],
1508
+ "attributes": [
1491
1509
  {
1492
- "name": "save-button-text",
1493
- "default": "`保存`",
1494
- "description": "保存按钮文字",
1510
+ "name": "title",
1511
+ "default": "-",
1512
+ "description": "顶部标题",
1495
1513
  "value": {
1496
1514
  "type": "string",
1497
1515
  "kind": "expression"
1498
1516
  }
1499
1517
  },
1500
1518
  {
1501
- "name": "delete-button-text",
1502
- "default": "`删除`",
1503
- "description": "删除按钮文字",
1519
+ "name": "value",
1520
+ "default": "-",
1521
+ "description": "选中项的值",
1504
1522
  "value": {
1505
- "type": "string",
1523
+ "type": "string | number",
1506
1524
  "kind": "expression"
1507
1525
  }
1508
1526
  },
1509
1527
  {
1510
- "name": "detail-rows",
1511
- "default": "`1`",
1512
- "description": "详细地址输入框行数",
1528
+ "name": "options",
1529
+ "default": "`[]`",
1530
+ "description": "可选项数据源",
1513
1531
  "value": {
1514
- "type": "number | string",
1532
+ "type": "Option[]",
1515
1533
  "kind": "expression"
1516
1534
  }
1517
1535
  },
1518
1536
  {
1519
- "name": "detail-maxlength",
1520
- "default": "`200`",
1521
- "description": "详细地址最大长度",
1537
+ "name": "placeholder",
1538
+ "default": "`请选择`",
1539
+ "description": "未选中时的提示文案",
1522
1540
  "value": {
1523
- "type": "number | string",
1541
+ "type": "string",
1524
1542
  "kind": "expression"
1525
1543
  }
1526
1544
  },
1527
1545
  {
1528
- "name": "is-saving",
1529
- "default": "`false`",
1530
- "description": "是否显示保存按钮加载动画",
1546
+ "name": "active-color",
1547
+ "default": "`#ee0a24`",
1548
+ "description": "选中状态的高亮颜色",
1531
1549
  "value": {
1532
- "type": "boolean",
1550
+ "type": "string",
1533
1551
  "kind": "expression"
1534
1552
  }
1535
1553
  },
1536
1554
  {
1537
- "name": "is-deleting",
1538
- "default": "`false`",
1539
- "description": "是否显示删除按钮加载动画",
1555
+ "name": "closeable",
1556
+ "default": "`true`",
1557
+ "description": "是否显示关闭图标",
1540
1558
  "value": {
1541
1559
  "type": "boolean",
1542
1560
  "kind": "expression"
1543
1561
  }
1544
1562
  },
1545
1563
  {
1546
- "name": "tel-validator",
1547
- "default": "-",
1548
- "description": "手机号格式校验函数",
1549
- "value": {
1550
- "type": "string => boolean",
1551
- "kind": "expression"
1552
- }
1553
- },
1554
- {
1555
- "name": "tel-maxlength",
1556
- "default": "-",
1557
- "description": "手机号最大长度",
1558
- "value": {
1559
- "type": "number | string",
1560
- "kind": "expression"
1561
- }
1562
- },
1563
- {
1564
- "name": "postal-validator",
1565
- "default": "-",
1566
- "description": "邮政编码格式校验函数",
1564
+ "name": "show-header",
1565
+ "default": "`true`",
1566
+ "description": "是否展示标题栏",
1567
1567
  "value": {
1568
- "type": "string => boolean",
1568
+ "type": "boolean",
1569
1569
  "kind": "expression"
1570
1570
  }
1571
1571
  },
1572
1572
  {
1573
- "name": "validator",
1574
- "default": "-",
1575
- "description": "自定义校验函数",
1573
+ "name": "field-names",
1574
+ "default": "`{ text: 'text', value: 'value', children: 'children' }`",
1575
+ "description": "自定义 `options` 结构中的字段",
1576
1576
  "value": {
1577
- "type": "(key, val) => string",
1577
+ "type": "object",
1578
1578
  "kind": "expression"
1579
1579
  }
1580
1580
  }
@@ -5249,105 +5249,288 @@
5249
5249
  "description": "通知文本内容"
5250
5250
  },
5251
5251
  {
5252
- "name": "left-icon",
5253
- "description": "自定义左侧图标"
5252
+ "name": "left-icon",
5253
+ "description": "自定义左侧图标"
5254
+ },
5255
+ {
5256
+ "name": "right-icon",
5257
+ "description": "自定义右侧图标"
5258
+ }
5259
+ ],
5260
+ "events": [
5261
+ {
5262
+ "name": "click",
5263
+ "description": "点击通知栏时触发"
5264
+ },
5265
+ {
5266
+ "name": "close",
5267
+ "description": "关闭通知栏时触发"
5268
+ },
5269
+ {
5270
+ "name": "replay",
5271
+ "description": "每当滚动栏重新开始滚动时触发"
5272
+ }
5273
+ ],
5274
+ "attributes": [
5275
+ {
5276
+ "name": "mode",
5277
+ "default": "`''`",
5278
+ "description": "通知栏模式,可选值为 `closeable` `link`",
5279
+ "value": {
5280
+ "type": "string",
5281
+ "kind": "expression"
5282
+ }
5283
+ },
5284
+ {
5285
+ "name": "text",
5286
+ "default": "`''`",
5287
+ "description": "通知文本内容",
5288
+ "value": {
5289
+ "type": "string",
5290
+ "kind": "expression"
5291
+ }
5292
+ },
5293
+ {
5294
+ "name": "color",
5295
+ "default": "`#f60`",
5296
+ "description": "通知文本颜色",
5297
+ "value": {
5298
+ "type": "string",
5299
+ "kind": "expression"
5300
+ }
5301
+ },
5302
+ {
5303
+ "name": "background",
5304
+ "default": "`#fff7cc`",
5305
+ "description": "滚动条背景",
5306
+ "value": {
5307
+ "type": "string",
5308
+ "kind": "expression"
5309
+ }
5310
+ },
5311
+ {
5312
+ "name": "left-icon",
5313
+ "default": "-",
5314
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
5315
+ "value": {
5316
+ "type": "string",
5317
+ "kind": "expression"
5318
+ }
5319
+ },
5320
+ {
5321
+ "name": "delay",
5322
+ "default": "`1`",
5323
+ "description": "动画延迟时间 (s)",
5324
+ "value": {
5325
+ "type": "number | string",
5326
+ "kind": "expression"
5327
+ }
5328
+ },
5329
+ {
5330
+ "name": "speed",
5331
+ "default": "`60`",
5332
+ "description": "滚动速率 (px/s)",
5333
+ "value": {
5334
+ "type": "number | string",
5335
+ "kind": "expression"
5336
+ }
5337
+ },
5338
+ {
5339
+ "name": "scrollable",
5340
+ "default": "-",
5341
+ "description": "是否开启滚动播放,内容长度溢出时默认开启",
5342
+ "value": {
5343
+ "type": "boolean",
5344
+ "kind": "expression"
5345
+ }
5346
+ },
5347
+ {
5348
+ "name": "wrapable",
5349
+ "default": "`false`",
5350
+ "description": "是否开启文本换行,只在禁用滚动时生效",
5351
+ "value": {
5352
+ "type": "boolean",
5353
+ "kind": "expression"
5354
+ }
5355
+ }
5356
+ ]
5357
+ },
5358
+ {
5359
+ "name": "van-notify",
5360
+ "slots": [],
5361
+ "events": [],
5362
+ "attributes": []
5363
+ },
5364
+ {
5365
+ "name": "van-overlay",
5366
+ "slots": [
5367
+ {
5368
+ "name": "default",
5369
+ "description": "默认插槽,用于在遮罩层上方嵌入内容"
5370
+ }
5371
+ ],
5372
+ "events": [
5373
+ {
5374
+ "name": "click",
5375
+ "description": "点击时触发"
5376
+ }
5377
+ ],
5378
+ "attributes": [
5379
+ {
5380
+ "name": "show",
5381
+ "default": "`false`",
5382
+ "description": "是否展示遮罩层",
5383
+ "value": {
5384
+ "type": "boolean",
5385
+ "kind": "expression"
5386
+ }
5387
+ },
5388
+ {
5389
+ "name": "z-index",
5390
+ "default": "`1`",
5391
+ "description": "z-index 层级",
5392
+ "value": {
5393
+ "type": "number | string",
5394
+ "kind": "expression"
5395
+ }
5396
+ },
5397
+ {
5398
+ "name": "duration",
5399
+ "default": "`0.3`",
5400
+ "description": "动画时长,单位秒",
5401
+ "value": {
5402
+ "type": "number | string",
5403
+ "kind": "expression"
5404
+ }
5405
+ },
5406
+ {
5407
+ "name": "class-name",
5408
+ "default": "-",
5409
+ "description": "自定义类名",
5410
+ "value": {
5411
+ "type": "string",
5412
+ "kind": "expression"
5413
+ }
5414
+ },
5415
+ {
5416
+ "name": "custom-style",
5417
+ "default": "-",
5418
+ "description": "自定义样式",
5419
+ "value": {
5420
+ "type": "object",
5421
+ "kind": "expression"
5422
+ }
5423
+ },
5424
+ {
5425
+ "name": "lock-scroll",
5426
+ "default": "`true`",
5427
+ "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动",
5428
+ "value": {
5429
+ "type": "boolean",
5430
+ "kind": "expression"
5431
+ }
5432
+ }
5433
+ ]
5434
+ },
5435
+ {
5436
+ "name": "van-pagination",
5437
+ "slots": [
5438
+ {
5439
+ "name": "page",
5440
+ "description": "自定义页码"
5441
+ },
5442
+ {
5443
+ "name": "prev-text",
5444
+ "description": "自定义上一页按钮文字"
5254
5445
  },
5255
5446
  {
5256
- "name": "right-icon",
5257
- "description": "自定义右侧图标"
5447
+ "name": "next-text",
5448
+ "description": "自定义下一页按钮文字"
5258
5449
  }
5259
5450
  ],
5260
5451
  "events": [
5261
5452
  {
5262
- "name": "click",
5263
- "description": "点击通知栏时触发"
5264
- },
5265
- {
5266
- "name": "close",
5267
- "description": "关闭通知栏时触发"
5268
- },
5269
- {
5270
- "name": "replay",
5271
- "description": "每当滚动栏重新开始滚动时触发"
5453
+ "name": "change",
5454
+ "description": "页码改变时触发"
5272
5455
  }
5273
5456
  ],
5274
5457
  "attributes": [
5275
5458
  {
5276
- "name": "mode",
5277
- "default": "`''`",
5278
- "description": "通知栏模式,可选值为 `closeable` `link`",
5459
+ "name": "v-model",
5460
+ "default": "-",
5461
+ "description": "当前页码",
5279
5462
  "value": {
5280
- "type": "string",
5463
+ "type": "number",
5281
5464
  "kind": "expression"
5282
5465
  }
5283
5466
  },
5284
5467
  {
5285
- "name": "text",
5286
- "default": "`''`",
5287
- "description": "通知文本内容",
5468
+ "name": "mode",
5469
+ "default": "`multi`",
5470
+ "description": "显示模式,可选值为 `simple`",
5288
5471
  "value": {
5289
5472
  "type": "string",
5290
5473
  "kind": "expression"
5291
5474
  }
5292
5475
  },
5293
5476
  {
5294
- "name": "color",
5295
- "default": "`#f60`",
5296
- "description": "通知文本颜色",
5477
+ "name": "prev-text",
5478
+ "default": "`上一页`",
5479
+ "description": "上一页按钮文字",
5297
5480
  "value": {
5298
5481
  "type": "string",
5299
5482
  "kind": "expression"
5300
5483
  }
5301
5484
  },
5302
5485
  {
5303
- "name": "background",
5304
- "default": "`#fff7cc`",
5305
- "description": "滚动条背景",
5486
+ "name": "next-text",
5487
+ "default": "`下一页`",
5488
+ "description": "下一页按钮文字",
5306
5489
  "value": {
5307
5490
  "type": "string",
5308
5491
  "kind": "expression"
5309
5492
  }
5310
5493
  },
5311
5494
  {
5312
- "name": "left-icon",
5313
- "default": "-",
5314
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
5495
+ "name": "page-count",
5496
+ "default": "根据页数计算",
5497
+ "description": "总页数",
5315
5498
  "value": {
5316
- "type": "string",
5499
+ "type": "number | string",
5317
5500
  "kind": "expression"
5318
5501
  }
5319
5502
  },
5320
5503
  {
5321
- "name": "delay",
5322
- "default": "`1`",
5323
- "description": "动画延迟时间 (s)",
5504
+ "name": "total-items",
5505
+ "default": "`0`",
5506
+ "description": "总记录数",
5324
5507
  "value": {
5325
5508
  "type": "number | string",
5326
5509
  "kind": "expression"
5327
5510
  }
5328
5511
  },
5329
5512
  {
5330
- "name": "speed",
5331
- "default": "`60`",
5332
- "description": "滚动速率 (px/s)",
5513
+ "name": "items-per-page",
5514
+ "default": "`10`",
5515
+ "description": "每页记录数",
5333
5516
  "value": {
5334
5517
  "type": "number | string",
5335
5518
  "kind": "expression"
5336
5519
  }
5337
5520
  },
5338
5521
  {
5339
- "name": "scrollable",
5340
- "default": "-",
5341
- "description": "是否开启滚动播放,内容长度溢出时默认开启",
5522
+ "name": "show-page-size",
5523
+ "default": "`5`",
5524
+ "description": "显示的页码个数",
5342
5525
  "value": {
5343
- "type": "boolean",
5526
+ "type": "number | string",
5344
5527
  "kind": "expression"
5345
5528
  }
5346
5529
  },
5347
5530
  {
5348
- "name": "wrapable",
5531
+ "name": "force-ellipses",
5349
5532
  "default": "`false`",
5350
- "description": "是否开启文本换行,只在禁用滚动时生效",
5533
+ "description": "是否显示省略号",
5351
5534
  "value": {
5352
5535
  "type": "boolean",
5353
5536
  "kind": "expression"
@@ -5355,12 +5538,6 @@
5355
5538
  }
5356
5539
  ]
5357
5540
  },
5358
- {
5359
- "name": "van-notify",
5360
- "slots": [],
5361
- "events": [],
5362
- "attributes": []
5363
- },
5364
5541
  {
5365
5542
  "name": "van-number-keyboard",
5366
5543
  "slots": [
@@ -5456,270 +5633,93 @@
5456
5633
  "value": {
5457
5634
  "type": "boolean",
5458
5635
  "kind": "expression"
5459
- }
5460
- },
5461
- {
5462
- "name": "z-index",
5463
- "default": "`100`",
5464
- "description": "键盘 z-index 层级",
5465
- "value": {
5466
- "type": "number | string",
5467
- "kind": "expression"
5468
- }
5469
- },
5470
- {
5471
- "name": "extra-key",
5472
- "default": "`''`",
5473
- "description": "底部额外按键的内容",
5474
- "value": {
5475
- "type": "string | string[]",
5476
- "kind": "expression"
5477
- }
5478
- },
5479
- {
5480
- "name": "close-button-text",
5481
- "default": "-",
5482
- "description": "关闭按钮文字,空则不展示",
5483
- "value": {
5484
- "type": "string",
5485
- "kind": "expression"
5486
- }
5487
- },
5488
- {
5489
- "name": "delete-button-text",
5490
- "default": "-",
5491
- "description": "删除按钮文字,空则展示删除图标",
5492
- "value": {
5493
- "type": "string",
5494
- "kind": "expression"
5495
- }
5496
- },
5497
- {
5498
- "name": "close-button-loading",
5499
- "default": "`false`",
5500
- "description": "是否将关闭按钮设置为加载中状态,仅在 `theme=\"custom\"` 时有效",
5501
- "value": {
5502
- "type": "boolean",
5503
- "kind": "expression"
5504
- }
5505
- },
5506
- {
5507
- "name": "show-delete-key",
5508
- "default": "`true`",
5509
- "description": "是否展示删除图标",
5510
- "value": {
5511
- "type": "boolean",
5512
- "kind": "expression"
5513
- }
5514
- },
5515
- {
5516
- "name": "hide-on-click-outside",
5517
- "default": "`true`",
5518
- "description": "点击外部时是否收起键盘",
5519
- "value": {
5520
- "type": "boolean",
5521
- "kind": "expression"
5522
- }
5523
- },
5524
- {
5525
- "name": "get-container",
5526
- "default": "-",
5527
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
5528
- "value": {
5529
- "type": "string | () => Element",
5530
- "kind": "expression"
5531
- }
5532
- },
5533
- {
5534
- "name": "safe-area-inset-bottom",
5535
- "default": "`true`",
5536
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
5537
- "value": {
5538
- "type": "boolean",
5539
- "kind": "expression"
5540
- }
5541
- },
5542
- {
5543
- "name": "random-key-order",
5544
- "default": "`false`",
5545
- "description": "是否将通过随机顺序展示按键",
5546
- "value": {
5547
- "type": "boolean",
5548
- "kind": "expression"
5549
- }
5550
- }
5551
- ]
5552
- },
5553
- {
5554
- "name": "van-overlay",
5555
- "slots": [
5556
- {
5557
- "name": "default",
5558
- "description": "默认插槽,用于在遮罩层上方嵌入内容"
5559
- }
5560
- ],
5561
- "events": [
5562
- {
5563
- "name": "click",
5564
- "description": "点击时触发"
5565
- }
5566
- ],
5567
- "attributes": [
5568
- {
5569
- "name": "show",
5570
- "default": "`false`",
5571
- "description": "是否展示遮罩层",
5572
- "value": {
5573
- "type": "boolean",
5574
- "kind": "expression"
5575
- }
5576
- },
5577
- {
5578
- "name": "z-index",
5579
- "default": "`1`",
5580
- "description": "z-index 层级",
5581
- "value": {
5582
- "type": "number | string",
5583
- "kind": "expression"
5584
- }
5585
- },
5586
- {
5587
- "name": "duration",
5588
- "default": "`0.3`",
5589
- "description": "动画时长,单位秒",
5590
- "value": {
5591
- "type": "number | string",
5592
- "kind": "expression"
5593
- }
5594
- },
5595
- {
5596
- "name": "class-name",
5597
- "default": "-",
5598
- "description": "自定义类名",
5599
- "value": {
5600
- "type": "string",
5601
- "kind": "expression"
5602
- }
5603
- },
5604
- {
5605
- "name": "custom-style",
5606
- "default": "-",
5607
- "description": "自定义样式",
5608
- "value": {
5609
- "type": "object",
5610
- "kind": "expression"
5611
- }
5612
- },
5613
- {
5614
- "name": "lock-scroll",
5615
- "default": "`true`",
5616
- "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动",
5617
- "value": {
5618
- "type": "boolean",
5619
- "kind": "expression"
5620
- }
5621
- }
5622
- ]
5623
- },
5624
- {
5625
- "name": "van-pagination",
5626
- "slots": [
5627
- {
5628
- "name": "page",
5629
- "description": "自定义页码"
5636
+ }
5630
5637
  },
5631
5638
  {
5632
- "name": "prev-text",
5633
- "description": "自定义上一页按钮文字"
5639
+ "name": "z-index",
5640
+ "default": "`100`",
5641
+ "description": "键盘 z-index 层级",
5642
+ "value": {
5643
+ "type": "number | string",
5644
+ "kind": "expression"
5645
+ }
5634
5646
  },
5635
5647
  {
5636
- "name": "next-text",
5637
- "description": "自定义下一页按钮文字"
5638
- }
5639
- ],
5640
- "events": [
5641
- {
5642
- "name": "change",
5643
- "description": "页码改变时触发"
5644
- }
5645
- ],
5646
- "attributes": [
5647
- {
5648
- "name": "v-model",
5649
- "default": "-",
5650
- "description": "当前页码",
5648
+ "name": "extra-key",
5649
+ "default": "`''`",
5650
+ "description": "底部额外按键的内容",
5651
5651
  "value": {
5652
- "type": "number",
5652
+ "type": "string | string[]",
5653
5653
  "kind": "expression"
5654
5654
  }
5655
5655
  },
5656
5656
  {
5657
- "name": "mode",
5658
- "default": "`multi`",
5659
- "description": "显示模式,可选值为 `simple`",
5657
+ "name": "close-button-text",
5658
+ "default": "-",
5659
+ "description": "关闭按钮文字,空则不展示",
5660
5660
  "value": {
5661
5661
  "type": "string",
5662
5662
  "kind": "expression"
5663
5663
  }
5664
5664
  },
5665
5665
  {
5666
- "name": "prev-text",
5667
- "default": "`上一页`",
5668
- "description": "上一页按钮文字",
5666
+ "name": "delete-button-text",
5667
+ "default": "-",
5668
+ "description": "删除按钮文字,空则展示删除图标",
5669
5669
  "value": {
5670
5670
  "type": "string",
5671
5671
  "kind": "expression"
5672
5672
  }
5673
5673
  },
5674
5674
  {
5675
- "name": "next-text",
5676
- "default": "`下一页`",
5677
- "description": "下一页按钮文字",
5675
+ "name": "close-button-loading",
5676
+ "default": "`false`",
5677
+ "description": "是否将关闭按钮设置为加载中状态,仅在 `theme=\"custom\"` 时有效",
5678
5678
  "value": {
5679
- "type": "string",
5679
+ "type": "boolean",
5680
5680
  "kind": "expression"
5681
5681
  }
5682
5682
  },
5683
5683
  {
5684
- "name": "page-count",
5685
- "default": "根据页数计算",
5686
- "description": "总页数",
5684
+ "name": "show-delete-key",
5685
+ "default": "`true`",
5686
+ "description": "是否展示删除图标",
5687
5687
  "value": {
5688
- "type": "number | string",
5688
+ "type": "boolean",
5689
5689
  "kind": "expression"
5690
5690
  }
5691
5691
  },
5692
5692
  {
5693
- "name": "total-items",
5694
- "default": "`0`",
5695
- "description": "总记录数",
5693
+ "name": "hide-on-click-outside",
5694
+ "default": "`true`",
5695
+ "description": "点击外部时是否收起键盘",
5696
5696
  "value": {
5697
- "type": "number | string",
5697
+ "type": "boolean",
5698
5698
  "kind": "expression"
5699
5699
  }
5700
5700
  },
5701
5701
  {
5702
- "name": "items-per-page",
5703
- "default": "`10`",
5704
- "description": "每页记录数",
5702
+ "name": "get-container",
5703
+ "default": "-",
5704
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
5705
5705
  "value": {
5706
- "type": "number | string",
5706
+ "type": "string | () => Element",
5707
5707
  "kind": "expression"
5708
5708
  }
5709
5709
  },
5710
5710
  {
5711
- "name": "show-page-size",
5712
- "default": "`5`",
5713
- "description": "显示的页码个数",
5711
+ "name": "safe-area-inset-bottom",
5712
+ "default": "`true`",
5713
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
5714
5714
  "value": {
5715
- "type": "number | string",
5715
+ "type": "boolean",
5716
5716
  "kind": "expression"
5717
5717
  }
5718
5718
  },
5719
5719
  {
5720
- "name": "force-ellipses",
5720
+ "name": "random-key-order",
5721
5721
  "default": "`false`",
5722
- "description": "是否显示省略号",
5722
+ "description": "是否将通过随机顺序展示按键",
5723
5723
  "value": {
5724
5724
  "type": "boolean",
5725
5725
  "kind": "expression"
@@ -6034,326 +6034,326 @@
6034
6034
  ]
6035
6035
  },
6036
6036
  {
6037
- "name": "van-popover",
6038
- "slots": [
6037
+ "name": "van-popup",
6038
+ "slots": [],
6039
+ "events": [
6039
6040
  {
6040
- "name": "default",
6041
- "description": "自定义菜单内容"
6041
+ "name": "click",
6042
+ "description": "点击弹出层时触发"
6042
6043
  },
6043
6044
  {
6044
- "name": "reference",
6045
- "description": "触发 Popover 显示的元素内容"
6046
- }
6047
- ],
6048
- "events": [
6045
+ "name": "click-overlay",
6046
+ "description": "点击遮罩层时触发"
6047
+ },
6049
6048
  {
6050
- "name": "select",
6051
- "description": "点击选项时触发"
6049
+ "name": "click-close-icon",
6050
+ "description": "点击关闭图标时触发"
6052
6051
  },
6053
6052
  {
6054
6053
  "name": "open",
6055
- "description": "打开菜单时触发"
6054
+ "description": "打开弹出层时触发"
6056
6055
  },
6057
6056
  {
6058
6057
  "name": "close",
6059
- "description": "关闭菜单时触发"
6058
+ "description": "关闭弹出层时触发"
6060
6059
  },
6061
6060
  {
6062
6061
  "name": "opened",
6063
- "description": "打开菜单且动画结束后触发"
6062
+ "description": "打开弹出层且动画结束后触发"
6064
6063
  },
6065
6064
  {
6066
6065
  "name": "closed",
6067
- "description": "关闭菜单且动画结束后触发"
6066
+ "description": "关闭弹出层且动画结束后触发"
6068
6067
  }
6069
6068
  ],
6070
6069
  "attributes": [
6071
6070
  {
6072
- "name": "v-model",
6071
+ "name": "v-model (value)",
6073
6072
  "default": "`false`",
6074
- "description": "是否展示气泡弹出层",
6073
+ "description": "是否显示弹出层",
6075
6074
  "value": {
6076
6075
  "type": "boolean",
6077
6076
  "kind": "expression"
6078
6077
  }
6079
6078
  },
6080
6079
  {
6081
- "name": "actions",
6082
- "default": "`[]`",
6083
- "description": "选项列表",
6080
+ "name": "overlay",
6081
+ "default": "`true`",
6082
+ "description": "是否显示遮罩层",
6084
6083
  "value": {
6085
- "type": "Action[]",
6084
+ "type": "boolean",
6086
6085
  "kind": "expression"
6087
6086
  }
6088
6087
  },
6089
6088
  {
6090
- "name": "placement",
6091
- "default": "`bottom`",
6092
- "description": "弹出位置",
6089
+ "name": "position",
6090
+ "default": "`center`",
6091
+ "description": "弹出位置,可选值为 `top` `bottom` `right` `left`",
6093
6092
  "value": {
6094
6093
  "type": "string",
6095
6094
  "kind": "expression"
6096
6095
  }
6097
6096
  },
6098
6097
  {
6099
- "name": "theme",
6100
- "default": "`light`",
6101
- "description": "主题风格,可选值为 `dark`",
6098
+ "name": "overlay-class",
6099
+ "default": "-",
6100
+ "description": "自定义遮罩层类名",
6102
6101
  "value": {
6103
6102
  "type": "string",
6104
6103
  "kind": "expression"
6105
6104
  }
6106
6105
  },
6107
6106
  {
6108
- "name": "trigger",
6109
- "description": "触发方式,可选值为 `click`",
6107
+ "name": "overlay-style",
6108
+ "default": "-",
6109
+ "description": "自定义遮罩层样式",
6110
6110
  "value": {
6111
- "type": "-",
6111
+ "type": "object",
6112
6112
  "kind": "expression"
6113
6113
  }
6114
6114
  },
6115
6115
  {
6116
- "name": "offset",
6117
- "default": "`[0, 8]`",
6118
- "description": "出现位置的偏移量",
6116
+ "name": "duration",
6117
+ "default": "`0.3`",
6118
+ "description": "动画时长,单位秒",
6119
6119
  "value": {
6120
- "type": "[number, number]",
6120
+ "type": "number | string",
6121
6121
  "kind": "expression"
6122
6122
  }
6123
6123
  },
6124
6124
  {
6125
- "name": "overlay",
6125
+ "name": "round",
6126
6126
  "default": "`false`",
6127
- "description": "是否显示遮罩层",
6127
+ "description": "是否显示圆角",
6128
6128
  "value": {
6129
6129
  "type": "boolean",
6130
6130
  "kind": "expression"
6131
6131
  }
6132
6132
  },
6133
6133
  {
6134
- "name": "close-on-click-action",
6134
+ "name": "lock-scroll",
6135
6135
  "default": "`true`",
6136
- "description": "是否在点击选项后关闭",
6136
+ "description": "是否锁定背景滚动",
6137
6137
  "value": {
6138
6138
  "type": "boolean",
6139
6139
  "kind": "expression"
6140
6140
  }
6141
6141
  },
6142
6142
  {
6143
- "name": "close-on-click-outside",
6143
+ "name": "lazy-render",
6144
6144
  "default": "`true`",
6145
- "description": "是否在点击外部元素后关闭菜单",
6145
+ "description": "是否在显示弹层时才渲染节点",
6146
6146
  "value": {
6147
6147
  "type": "boolean",
6148
6148
  "kind": "expression"
6149
6149
  }
6150
6150
  },
6151
6151
  {
6152
- "name": "get-container",
6153
- "default": "`body`",
6154
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
6152
+ "name": "close-on-popstate",
6153
+ "default": "`false`",
6154
+ "description": "是否在页面回退时自动关闭",
6155
6155
  "value": {
6156
- "type": "string | () => Element",
6156
+ "type": "boolean",
6157
6157
  "kind": "expression"
6158
6158
  }
6159
- }
6160
- ]
6161
- },
6162
- {
6163
- "name": "van-popup",
6164
- "slots": [],
6165
- "events": [
6166
- {
6167
- "name": "click",
6168
- "description": "点击弹出层时触发"
6169
- },
6170
- {
6171
- "name": "click-overlay",
6172
- "description": "点击遮罩层时触发"
6173
- },
6174
- {
6175
- "name": "click-close-icon",
6176
- "description": "点击关闭图标时触发"
6177
6159
  },
6178
6160
  {
6179
- "name": "open",
6180
- "description": "打开弹出层时触发"
6181
- },
6182
- {
6183
- "name": "close",
6184
- "description": "关闭弹出层时触发"
6185
- },
6186
- {
6187
- "name": "opened",
6188
- "description": "打开弹出层且动画结束后触发"
6189
- },
6190
- {
6191
- "name": "closed",
6192
- "description": "关闭弹出层且动画结束后触发"
6193
- }
6194
- ],
6195
- "attributes": [
6196
- {
6197
- "name": "v-model (value)",
6198
- "default": "`false`",
6199
- "description": "是否显示弹出层",
6161
+ "name": "close-on-click-overlay",
6162
+ "default": "`true`",
6163
+ "description": "是否在点击遮罩层后关闭",
6200
6164
  "value": {
6201
6165
  "type": "boolean",
6202
6166
  "kind": "expression"
6203
6167
  }
6204
6168
  },
6205
6169
  {
6206
- "name": "overlay",
6207
- "default": "`true`",
6208
- "description": "是否显示遮罩层",
6170
+ "name": "closeable",
6171
+ "default": "`false`",
6172
+ "description": "是否显示关闭图标",
6209
6173
  "value": {
6210
6174
  "type": "boolean",
6211
6175
  "kind": "expression"
6212
6176
  }
6213
6177
  },
6214
6178
  {
6215
- "name": "position",
6216
- "default": "`center`",
6217
- "description": "弹出位置,可选值为 `top` `bottom` `right` `left`",
6179
+ "name": "close-icon",
6180
+ "default": "`cross`",
6181
+ "description": "关闭图标名称或图片链接",
6218
6182
  "value": {
6219
6183
  "type": "string",
6220
6184
  "kind": "expression"
6221
6185
  }
6222
6186
  },
6223
6187
  {
6224
- "name": "overlay-class",
6225
- "default": "-",
6226
- "description": "自定义遮罩层类名",
6188
+ "name": "close-icon-position",
6189
+ "default": "`top-right`",
6190
+ "description": "关闭图标位置,可选值为`top-left`<br>`bottom-left` `bottom-right`",
6227
6191
  "value": {
6228
6192
  "type": "string",
6229
6193
  "kind": "expression"
6230
6194
  }
6231
6195
  },
6232
6196
  {
6233
- "name": "overlay-style",
6197
+ "name": "transition",
6234
6198
  "default": "-",
6235
- "description": "自定义遮罩层样式",
6199
+ "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性",
6236
6200
  "value": {
6237
- "type": "object",
6201
+ "type": "string",
6238
6202
  "kind": "expression"
6239
6203
  }
6240
6204
  },
6241
6205
  {
6242
- "name": "duration",
6243
- "default": "`0.3`",
6244
- "description": "动画时长,单位秒",
6206
+ "name": "transition-appear",
6207
+ "default": "`false`",
6208
+ "description": "是否在初始渲染时启用过渡动画",
6245
6209
  "value": {
6246
- "type": "number | string",
6210
+ "type": "boolean",
6247
6211
  "kind": "expression"
6248
6212
  }
6249
6213
  },
6250
6214
  {
6251
- "name": "round",
6252
- "default": "`false`",
6253
- "description": "是否显示圆角",
6215
+ "name": "get-container",
6216
+ "default": "-",
6217
+ "description": "指定挂载的节点",
6254
6218
  "value": {
6255
- "type": "boolean",
6219
+ "type": "string | () => Element",
6256
6220
  "kind": "expression"
6257
6221
  }
6258
6222
  },
6259
6223
  {
6260
- "name": "lock-scroll",
6261
- "default": "`true`",
6262
- "description": "是否锁定背景滚动",
6224
+ "name": "safe-area-inset-bottom",
6225
+ "default": "`false`",
6226
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
6263
6227
  "value": {
6264
6228
  "type": "boolean",
6265
6229
  "kind": "expression"
6266
6230
  }
6231
+ }
6232
+ ]
6233
+ },
6234
+ {
6235
+ "name": "van-popover",
6236
+ "slots": [
6237
+ {
6238
+ "name": "default",
6239
+ "description": "自定义菜单内容"
6267
6240
  },
6268
6241
  {
6269
- "name": "lazy-render",
6270
- "default": "`true`",
6271
- "description": "是否在显示弹层时才渲染节点",
6272
- "value": {
6273
- "type": "boolean",
6274
- "kind": "expression"
6275
- }
6242
+ "name": "reference",
6243
+ "description": "触发 Popover 显示的元素内容"
6244
+ }
6245
+ ],
6246
+ "events": [
6247
+ {
6248
+ "name": "select",
6249
+ "description": "点击选项时触发"
6276
6250
  },
6277
6251
  {
6278
- "name": "close-on-popstate",
6252
+ "name": "open",
6253
+ "description": "打开菜单时触发"
6254
+ },
6255
+ {
6256
+ "name": "close",
6257
+ "description": "关闭菜单时触发"
6258
+ },
6259
+ {
6260
+ "name": "opened",
6261
+ "description": "打开菜单且动画结束后触发"
6262
+ },
6263
+ {
6264
+ "name": "closed",
6265
+ "description": "关闭菜单且动画结束后触发"
6266
+ }
6267
+ ],
6268
+ "attributes": [
6269
+ {
6270
+ "name": "v-model",
6279
6271
  "default": "`false`",
6280
- "description": "是否在页面回退时自动关闭",
6272
+ "description": "是否展示气泡弹出层",
6281
6273
  "value": {
6282
6274
  "type": "boolean",
6283
6275
  "kind": "expression"
6284
6276
  }
6285
6277
  },
6286
6278
  {
6287
- "name": "close-on-click-overlay",
6288
- "default": "`true`",
6289
- "description": "是否在点击遮罩层后关闭",
6279
+ "name": "actions",
6280
+ "default": "`[]`",
6281
+ "description": "选项列表",
6290
6282
  "value": {
6291
- "type": "boolean",
6283
+ "type": "Action[]",
6292
6284
  "kind": "expression"
6293
6285
  }
6294
6286
  },
6295
6287
  {
6296
- "name": "closeable",
6297
- "default": "`false`",
6298
- "description": "是否显示关闭图标",
6288
+ "name": "placement",
6289
+ "default": "`bottom`",
6290
+ "description": "弹出位置",
6299
6291
  "value": {
6300
- "type": "boolean",
6292
+ "type": "string",
6301
6293
  "kind": "expression"
6302
6294
  }
6303
6295
  },
6304
6296
  {
6305
- "name": "close-icon",
6306
- "default": "`cross`",
6307
- "description": "关闭图标名称或图片链接",
6297
+ "name": "theme",
6298
+ "default": "`light`",
6299
+ "description": "主题风格,可选值为 `dark`",
6308
6300
  "value": {
6309
6301
  "type": "string",
6310
6302
  "kind": "expression"
6311
6303
  }
6312
6304
  },
6313
6305
  {
6314
- "name": "close-icon-position",
6315
- "default": "`top-right`",
6316
- "description": "关闭图标位置,可选值为`top-left`<br>`bottom-left` `bottom-right`",
6306
+ "name": "trigger",
6307
+ "description": "触发方式,可选值为 `click`",
6317
6308
  "value": {
6318
- "type": "string",
6309
+ "type": "-",
6319
6310
  "kind": "expression"
6320
6311
  }
6321
6312
  },
6322
6313
  {
6323
- "name": "transition",
6324
- "default": "-",
6325
- "description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的`name`属性",
6314
+ "name": "offset",
6315
+ "default": "`[0, 8]`",
6316
+ "description": "出现位置的偏移量",
6326
6317
  "value": {
6327
- "type": "string",
6318
+ "type": "[number, number]",
6328
6319
  "kind": "expression"
6329
6320
  }
6330
6321
  },
6331
6322
  {
6332
- "name": "transition-appear",
6323
+ "name": "overlay",
6333
6324
  "default": "`false`",
6334
- "description": "是否在初始渲染时启用过渡动画",
6325
+ "description": "是否显示遮罩层",
6335
6326
  "value": {
6336
6327
  "type": "boolean",
6337
6328
  "kind": "expression"
6338
6329
  }
6339
6330
  },
6340
6331
  {
6341
- "name": "get-container",
6342
- "default": "-",
6343
- "description": "指定挂载的节点",
6332
+ "name": "close-on-click-action",
6333
+ "default": "`true`",
6334
+ "description": "是否在点击选项后关闭",
6344
6335
  "value": {
6345
- "type": "string | () => Element",
6336
+ "type": "boolean",
6346
6337
  "kind": "expression"
6347
6338
  }
6348
6339
  },
6349
6340
  {
6350
- "name": "safe-area-inset-bottom",
6351
- "default": "`false`",
6352
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
6341
+ "name": "close-on-click-outside",
6342
+ "default": "`true`",
6343
+ "description": "是否在点击外部元素后关闭菜单",
6353
6344
  "value": {
6354
6345
  "type": "boolean",
6355
6346
  "kind": "expression"
6356
6347
  }
6348
+ },
6349
+ {
6350
+ "name": "get-container",
6351
+ "default": "`body`",
6352
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
6353
+ "value": {
6354
+ "type": "string | () => Element",
6355
+ "kind": "expression"
6356
+ }
6357
6357
  }
6358
6358
  ]
6359
6359
  },
@@ -8110,6 +8110,49 @@
8110
8110
  }
8111
8111
  ]
8112
8112
  },
8113
+ {
8114
+ "name": "van-sticky",
8115
+ "slots": [],
8116
+ "events": [
8117
+ {
8118
+ "name": "change",
8119
+ "description": "当吸顶状态改变时触发"
8120
+ },
8121
+ {
8122
+ "name": "scroll",
8123
+ "description": "滚动时触发"
8124
+ }
8125
+ ],
8126
+ "attributes": [
8127
+ {
8128
+ "name": "offset-top",
8129
+ "default": "`0`",
8130
+ "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
8131
+ "value": {
8132
+ "type": "number | string",
8133
+ "kind": "expression"
8134
+ }
8135
+ },
8136
+ {
8137
+ "name": "z-index",
8138
+ "default": "`99`",
8139
+ "description": "吸顶时的 z-index",
8140
+ "value": {
8141
+ "type": "number | string",
8142
+ "kind": "expression"
8143
+ }
8144
+ },
8145
+ {
8146
+ "name": "container",
8147
+ "default": "-",
8148
+ "description": "容器对应的 HTML 节点",
8149
+ "value": {
8150
+ "type": "Element",
8151
+ "kind": "expression"
8152
+ }
8153
+ }
8154
+ ]
8155
+ },
8113
8156
  {
8114
8157
  "name": "van-steps",
8115
8158
  "slots": [
@@ -8216,49 +8259,6 @@
8216
8259
  }
8217
8260
  ]
8218
8261
  },
8219
- {
8220
- "name": "van-sticky",
8221
- "slots": [],
8222
- "events": [
8223
- {
8224
- "name": "change",
8225
- "description": "当吸顶状态改变时触发"
8226
- },
8227
- {
8228
- "name": "scroll",
8229
- "description": "滚动时触发"
8230
- }
8231
- ],
8232
- "attributes": [
8233
- {
8234
- "name": "offset-top",
8235
- "default": "`0`",
8236
- "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
8237
- "value": {
8238
- "type": "number | string",
8239
- "kind": "expression"
8240
- }
8241
- },
8242
- {
8243
- "name": "z-index",
8244
- "default": "`99`",
8245
- "description": "吸顶时的 z-index",
8246
- "value": {
8247
- "type": "number | string",
8248
- "kind": "expression"
8249
- }
8250
- },
8251
- {
8252
- "name": "container",
8253
- "default": "-",
8254
- "description": "容器对应的 HTML 节点",
8255
- "value": {
8256
- "type": "Element",
8257
- "kind": "expression"
8258
- }
8259
- }
8260
- ]
8261
- },
8262
8262
  {
8263
8263
  "name": "van-内置样式",
8264
8264
  "slots": [],
@@ -8356,63 +8356,150 @@
8356
8356
  }
8357
8357
  },
8358
8358
  {
8359
- "name": "button-color",
8360
- "default": "-",
8361
- "description": "自定义按钮颜色",
8359
+ "name": "button-color",
8360
+ "default": "-",
8361
+ "description": "自定义按钮颜色",
8362
+ "value": {
8363
+ "type": "string",
8364
+ "kind": "expression"
8365
+ }
8366
+ },
8367
+ {
8368
+ "name": "tip",
8369
+ "default": "-",
8370
+ "description": "在订单栏上方的提示文案",
8371
+ "value": {
8372
+ "type": "string",
8373
+ "kind": "expression"
8374
+ }
8375
+ },
8376
+ {
8377
+ "name": "tip-icon",
8378
+ "default": "-",
8379
+ "description": "提示文案左侧的[图标名称](#/zh-CN/icon)或图片链接",
8380
+ "value": {
8381
+ "type": "string",
8382
+ "kind": "expression"
8383
+ }
8384
+ },
8385
+ {
8386
+ "name": "currency",
8387
+ "default": "`¥`",
8388
+ "description": "货币符号",
8389
+ "value": {
8390
+ "type": "string",
8391
+ "kind": "expression"
8392
+ }
8393
+ },
8394
+ {
8395
+ "name": "disabled",
8396
+ "default": "`false`",
8397
+ "description": "是否禁用按钮",
8398
+ "value": {
8399
+ "type": "boolean",
8400
+ "kind": "expression"
8401
+ }
8402
+ },
8403
+ {
8404
+ "name": "loading",
8405
+ "default": "`false`",
8406
+ "description": "是否显示将按钮显示为加载中状态",
8407
+ "value": {
8408
+ "type": "boolean",
8409
+ "kind": "expression"
8410
+ }
8411
+ },
8412
+ {
8413
+ "name": "safe-area-inset-bottom",
8414
+ "default": "`true`",
8415
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
8362
8416
  "value": {
8363
- "type": "string",
8417
+ "type": "boolean",
8364
8418
  "kind": "expression"
8365
8419
  }
8420
+ }
8421
+ ]
8422
+ },
8423
+ {
8424
+ "name": "van-swipe-cell",
8425
+ "slots": [
8426
+ {
8427
+ "name": "default",
8428
+ "description": "自定义显示内容"
8366
8429
  },
8367
8430
  {
8368
- "name": "tip",
8431
+ "name": "left",
8432
+ "description": "左侧滑动内容"
8433
+ },
8434
+ {
8435
+ "name": "right",
8436
+ "description": "右侧滑动内容"
8437
+ }
8438
+ ],
8439
+ "events": [
8440
+ {
8441
+ "name": "click",
8442
+ "description": "点击时触发"
8443
+ },
8444
+ {
8445
+ "name": "open",
8446
+ "description": "打开时触发"
8447
+ },
8448
+ {
8449
+ "name": "close",
8450
+ "description": "关闭时触发"
8451
+ }
8452
+ ],
8453
+ "attributes": [
8454
+ {
8455
+ "name": "name",
8369
8456
  "default": "-",
8370
- "description": "在订单栏上方的提示文案",
8457
+ "description": "标识符,可以在事件参数中获取到",
8371
8458
  "value": {
8372
- "type": "string",
8459
+ "type": "number | string",
8373
8460
  "kind": "expression"
8374
8461
  }
8375
8462
  },
8376
8463
  {
8377
- "name": "tip-icon",
8378
- "default": "-",
8379
- "description": "提示文案左侧的[图标名称](#/zh-CN/icon)或图片链接",
8464
+ "name": "left-width",
8465
+ "default": "`auto`",
8466
+ "description": "指定左侧滑动区域宽度,单位为`px`",
8380
8467
  "value": {
8381
- "type": "string",
8468
+ "type": "number | string",
8382
8469
  "kind": "expression"
8383
8470
  }
8384
8471
  },
8385
8472
  {
8386
- "name": "currency",
8387
- "default": "`¥`",
8388
- "description": "货币符号",
8473
+ "name": "right-width",
8474
+ "default": "`auto`",
8475
+ "description": "指定右侧滑动区域宽度,单位为`px`",
8389
8476
  "value": {
8390
- "type": "string",
8477
+ "type": "number | string",
8391
8478
  "kind": "expression"
8392
8479
  }
8393
8480
  },
8394
8481
  {
8395
- "name": "disabled",
8396
- "default": "`false`",
8397
- "description": "是否禁用按钮",
8482
+ "name": "before-close",
8483
+ "default": "-",
8484
+ "description": "关闭前的回调函数",
8398
8485
  "value": {
8399
- "type": "boolean",
8486
+ "type": "Function",
8400
8487
  "kind": "expression"
8401
8488
  }
8402
8489
  },
8403
8490
  {
8404
- "name": "loading",
8491
+ "name": "disabled",
8405
8492
  "default": "`false`",
8406
- "description": "是否显示将按钮显示为加载中状态",
8493
+ "description": "是否禁用滑动",
8407
8494
  "value": {
8408
8495
  "type": "boolean",
8409
8496
  "kind": "expression"
8410
8497
  }
8411
8498
  },
8412
8499
  {
8413
- "name": "safe-area-inset-bottom",
8414
- "default": "`true`",
8415
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
8500
+ "name": "stop-propagation",
8501
+ "default": "`false`",
8502
+ "description": "是否阻止滑动事件冒泡",
8416
8503
  "value": {
8417
8504
  "type": "boolean",
8418
8505
  "kind": "expression"
@@ -8554,112 +8641,48 @@
8554
8641
  ]
8555
8642
  },
8556
8643
  {
8557
- "name": "van-swipe-cell",
8558
- "slots": [
8559
- {
8560
- "name": "default",
8561
- "description": "自定义显示内容"
8562
- },
8563
- {
8564
- "name": "left",
8565
- "description": "左侧滑动内容"
8566
- },
8567
- {
8568
- "name": "right",
8569
- "description": "右侧滑动内容"
8570
- }
8571
- ],
8644
+ "name": "van-switch-cell",
8645
+ "slots": [],
8572
8646
  "events": [
8573
8647
  {
8574
- "name": "click",
8575
- "description": "点击时触发"
8576
- },
8577
- {
8578
- "name": "open",
8579
- "description": "打开时触发"
8580
- },
8581
- {
8582
- "name": "close",
8583
- "description": "关闭时触发"
8648
+ "name": "change",
8649
+ "description": "开关状态切换回调"
8584
8650
  }
8585
8651
  ],
8586
8652
  "attributes": [
8587
8653
  {
8588
- "name": "name",
8589
- "default": "-",
8590
- "description": "标识符,可以在事件参数中获取到",
8591
- "value": {
8592
- "type": "number | string",
8593
- "kind": "expression"
8594
- }
8595
- },
8596
- {
8597
- "name": "left-width",
8598
- "default": "`auto`",
8599
- "description": "指定左侧滑动区域宽度,单位为`px`",
8600
- "value": {
8601
- "type": "number | string",
8602
- "kind": "expression"
8603
- }
8604
- },
8605
- {
8606
- "name": "right-width",
8607
- "default": "`auto`",
8608
- "description": "指定右侧滑动区域宽度,单位为`px`",
8609
- "value": {
8610
- "type": "number | string",
8611
- "kind": "expression"
8612
- }
8613
- },
8614
- {
8615
- "name": "before-close",
8616
- "default": "-",
8617
- "description": "关闭前的回调函数",
8654
+ "name": "v-model",
8655
+ "default": "`false`",
8656
+ "description": "开关状态",
8618
8657
  "value": {
8619
- "type": "Function",
8658
+ "type": "any",
8620
8659
  "kind": "expression"
8621
8660
  }
8622
8661
  },
8623
8662
  {
8624
- "name": "disabled",
8625
- "default": "`false`",
8626
- "description": "是否禁用滑动",
8663
+ "name": "title",
8664
+ "default": "`''`",
8665
+ "description": "左侧标题",
8627
8666
  "value": {
8628
- "type": "boolean",
8667
+ "type": "string",
8629
8668
  "kind": "expression"
8630
8669
  }
8631
8670
  },
8632
8671
  {
8633
- "name": "stop-propagation",
8634
- "default": "`false`",
8635
- "description": "是否阻止滑动事件冒泡",
8672
+ "name": "border",
8673
+ "default": "`true`",
8674
+ "description": "是否展示单元格内边框",
8636
8675
  "value": {
8637
8676
  "type": "boolean",
8638
8677
  "kind": "expression"
8639
8678
  }
8640
- }
8641
- ]
8642
- },
8643
- {
8644
- "name": "van-switch",
8645
- "slots": [],
8646
- "events": [
8647
- {
8648
- "name": "change",
8649
- "description": "开关状态切换时触发"
8650
8679
  },
8651
8680
  {
8652
- "name": "click",
8653
- "description": "点击时触发"
8654
- }
8655
- ],
8656
- "attributes": [
8657
- {
8658
- "name": "v-model",
8659
- "default": "`false`",
8660
- "description": "开关选中状态",
8681
+ "name": "cell-size",
8682
+ "default": "-",
8683
+ "description": "单元格大小,可选值为 `large`",
8661
8684
  "value": {
8662
- "type": "any",
8685
+ "type": "string",
8663
8686
  "kind": "expression"
8664
8687
  }
8665
8688
  },
@@ -8683,8 +8706,8 @@
8683
8706
  },
8684
8707
  {
8685
8708
  "name": "size",
8686
- "default": "`30px`",
8687
- "description": "开关尺寸,默认单位为`px`",
8709
+ "default": "`24px`",
8710
+ "description": "开关尺寸",
8688
8711
  "value": {
8689
8712
  "type": "number | string",
8690
8713
  "kind": "expression"
@@ -8693,7 +8716,7 @@
8693
8716
  {
8694
8717
  "name": "active-color",
8695
8718
  "default": "`#1989fa`",
8696
- "description": "打开时的背景色",
8719
+ "description": "开关时的背景色",
8697
8720
  "value": {
8698
8721
  "type": "string",
8699
8722
  "kind": "expression"
@@ -8702,7 +8725,7 @@
8702
8725
  {
8703
8726
  "name": "inactive-color",
8704
8727
  "default": "`white`",
8705
- "description": "关闭时的背景色",
8728
+ "description": "开关时的背景色",
8706
8729
  "value": {
8707
8730
  "type": "string",
8708
8731
  "kind": "expression"
@@ -8711,7 +8734,7 @@
8711
8734
  {
8712
8735
  "name": "active-value",
8713
8736
  "default": "`true`",
8714
- "description": "打开时对应的值",
8737
+ "description": "打开时的值",
8715
8738
  "value": {
8716
8739
  "type": "any",
8717
8740
  "kind": "expression"
@@ -8720,7 +8743,7 @@
8720
8743
  {
8721
8744
  "name": "inactive-value",
8722
8745
  "default": "`false`",
8723
- "description": "关闭时对应的值",
8746
+ "description": "关闭时的值",
8724
8747
  "value": {
8725
8748
  "type": "any",
8726
8749
  "kind": "expression"
@@ -8729,51 +8752,28 @@
8729
8752
  ]
8730
8753
  },
8731
8754
  {
8732
- "name": "van-switch-cell",
8755
+ "name": "van-switch",
8733
8756
  "slots": [],
8734
8757
  "events": [
8735
8758
  {
8736
8759
  "name": "change",
8737
- "description": "开关状态切换回调"
8760
+ "description": "开关状态切换时触发"
8761
+ },
8762
+ {
8763
+ "name": "click",
8764
+ "description": "点击时触发"
8738
8765
  }
8739
8766
  ],
8740
8767
  "attributes": [
8741
8768
  {
8742
8769
  "name": "v-model",
8743
8770
  "default": "`false`",
8744
- "description": "开关状态",
8771
+ "description": "开关选中状态",
8745
8772
  "value": {
8746
8773
  "type": "any",
8747
8774
  "kind": "expression"
8748
8775
  }
8749
8776
  },
8750
- {
8751
- "name": "title",
8752
- "default": "`''`",
8753
- "description": "左侧标题",
8754
- "value": {
8755
- "type": "string",
8756
- "kind": "expression"
8757
- }
8758
- },
8759
- {
8760
- "name": "border",
8761
- "default": "`true`",
8762
- "description": "是否展示单元格内边框",
8763
- "value": {
8764
- "type": "boolean",
8765
- "kind": "expression"
8766
- }
8767
- },
8768
- {
8769
- "name": "cell-size",
8770
- "default": "-",
8771
- "description": "单元格大小,可选值为 `large`",
8772
- "value": {
8773
- "type": "string",
8774
- "kind": "expression"
8775
- }
8776
- },
8777
8777
  {
8778
8778
  "name": "loading",
8779
8779
  "default": "`false`",
@@ -8794,8 +8794,8 @@
8794
8794
  },
8795
8795
  {
8796
8796
  "name": "size",
8797
- "default": "`24px`",
8798
- "description": "开关尺寸",
8797
+ "default": "`30px`",
8798
+ "description": "开关尺寸,默认单位为`px`",
8799
8799
  "value": {
8800
8800
  "type": "number | string",
8801
8801
  "kind": "expression"
@@ -8804,7 +8804,7 @@
8804
8804
  {
8805
8805
  "name": "active-color",
8806
8806
  "default": "`#1989fa`",
8807
- "description": "开关时的背景色",
8807
+ "description": "打开时的背景色",
8808
8808
  "value": {
8809
8809
  "type": "string",
8810
8810
  "kind": "expression"
@@ -8813,7 +8813,7 @@
8813
8813
  {
8814
8814
  "name": "inactive-color",
8815
8815
  "default": "`white`",
8816
- "description": "开关时的背景色",
8816
+ "description": "关闭时的背景色",
8817
8817
  "value": {
8818
8818
  "type": "string",
8819
8819
  "kind": "expression"
@@ -8822,7 +8822,7 @@
8822
8822
  {
8823
8823
  "name": "active-value",
8824
8824
  "default": "`true`",
8825
- "description": "打开时的值",
8825
+ "description": "打开时对应的值",
8826
8826
  "value": {
8827
8827
  "type": "any",
8828
8828
  "kind": "expression"
@@ -8831,7 +8831,7 @@
8831
8831
  {
8832
8832
  "name": "inactive-value",
8833
8833
  "default": "`false`",
8834
- "description": "关闭时的值",
8834
+ "description": "关闭时对应的值",
8835
8835
  "value": {
8836
8836
  "type": "any",
8837
8837
  "kind": "expression"
@@ -9435,12 +9435,6 @@
9435
9435
  }
9436
9436
  ]
9437
9437
  },
9438
- {
9439
- "name": "van-toast",
9440
- "slots": [],
9441
- "events": [],
9442
- "attributes": []
9443
- },
9444
9438
  {
9445
9439
  "name": "van-tree-select",
9446
9440
  "slots": [
@@ -9516,6 +9510,12 @@
9516
9510
  }
9517
9511
  ]
9518
9512
  },
9513
+ {
9514
+ "name": "van-toast",
9515
+ "slots": [],
9516
+ "events": [],
9517
+ "attributes": []
9518
+ },
9519
9519
  {
9520
9520
  "name": "van-uploader",
9521
9521
  "slots": [