vant 2.12.41 → 2.12.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/vant.js +2 -2
- package/lib/vant.min.js +1 -1
- package/package.json +3 -3
- package/vetur/attributes.json +133 -133
- package/vetur/tags.json +48 -48
- package/vetur/web-types.json +446 -446
package/vetur/web-types.json
CHANGED
@@ -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.
|
5
|
+
"version": "2.12.42",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
@@ -204,6 +204,156 @@
|
|
204
204
|
}
|
205
205
|
]
|
206
206
|
},
|
207
|
+
{
|
208
|
+
"name": "van-area",
|
209
|
+
"slots": [
|
210
|
+
{
|
211
|
+
"name": "title",
|
212
|
+
"description": "自定义标题内容"
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"name": "columns-top",
|
216
|
+
"description": "自定义选项上方内容"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"name": "columns-bottom",
|
220
|
+
"description": "自定义选项下方内容"
|
221
|
+
}
|
222
|
+
],
|
223
|
+
"events": [
|
224
|
+
{
|
225
|
+
"name": "confirm",
|
226
|
+
"description": "点击右上方完成按钮"
|
227
|
+
},
|
228
|
+
{
|
229
|
+
"name": "cancel",
|
230
|
+
"description": "点击取消按钮时"
|
231
|
+
},
|
232
|
+
{
|
233
|
+
"name": "change",
|
234
|
+
"description": "选项改变时触发"
|
235
|
+
}
|
236
|
+
],
|
237
|
+
"attributes": [
|
238
|
+
{
|
239
|
+
"name": "value",
|
240
|
+
"default": "-",
|
241
|
+
"description": "当前选中的省市区`code`",
|
242
|
+
"value": {
|
243
|
+
"type": "string",
|
244
|
+
"kind": "expression"
|
245
|
+
}
|
246
|
+
},
|
247
|
+
{
|
248
|
+
"name": "title",
|
249
|
+
"default": "-",
|
250
|
+
"description": "顶部栏标题",
|
251
|
+
"value": {
|
252
|
+
"type": "string",
|
253
|
+
"kind": "expression"
|
254
|
+
}
|
255
|
+
},
|
256
|
+
{
|
257
|
+
"name": "confirm-button-text",
|
258
|
+
"default": "`确认`",
|
259
|
+
"description": "确认按钮文字",
|
260
|
+
"value": {
|
261
|
+
"type": "string",
|
262
|
+
"kind": "expression"
|
263
|
+
}
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"name": "cancel-button-text",
|
267
|
+
"default": "`取消`",
|
268
|
+
"description": "取消按钮文字",
|
269
|
+
"value": {
|
270
|
+
"type": "string",
|
271
|
+
"kind": "expression"
|
272
|
+
}
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"name": "area-list",
|
276
|
+
"default": "-",
|
277
|
+
"description": "省市区数据,格式见下方",
|
278
|
+
"value": {
|
279
|
+
"type": "object",
|
280
|
+
"kind": "expression"
|
281
|
+
}
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"name": "columns-placeholder",
|
285
|
+
"default": "`[]`",
|
286
|
+
"description": "列占位提示文字",
|
287
|
+
"value": {
|
288
|
+
"type": "string[]",
|
289
|
+
"kind": "expression"
|
290
|
+
}
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"name": "loading",
|
294
|
+
"default": "`false`",
|
295
|
+
"description": "是否显示加载状态",
|
296
|
+
"value": {
|
297
|
+
"type": "boolean",
|
298
|
+
"kind": "expression"
|
299
|
+
}
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"name": "readonly",
|
303
|
+
"default": "`false`",
|
304
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
305
|
+
"value": {
|
306
|
+
"type": "boolean",
|
307
|
+
"kind": "expression"
|
308
|
+
}
|
309
|
+
},
|
310
|
+
{
|
311
|
+
"name": "item-height",
|
312
|
+
"default": "`44`",
|
313
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
314
|
+
"value": {
|
315
|
+
"type": "number | string",
|
316
|
+
"kind": "expression"
|
317
|
+
}
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"name": "columns-num",
|
321
|
+
"default": "`3`",
|
322
|
+
"description": "显示列数,3-省市区,2-省市,1-省",
|
323
|
+
"value": {
|
324
|
+
"type": "number | string",
|
325
|
+
"kind": "expression"
|
326
|
+
}
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"name": "visible-item-count",
|
330
|
+
"default": "`6`",
|
331
|
+
"description": "可见的选项个数",
|
332
|
+
"value": {
|
333
|
+
"type": "number | string",
|
334
|
+
"kind": "expression"
|
335
|
+
}
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"name": "swipe-duration",
|
339
|
+
"default": "`1000`",
|
340
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
341
|
+
"value": {
|
342
|
+
"type": "number | string",
|
343
|
+
"kind": "expression"
|
344
|
+
}
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"name": "is-oversea-code",
|
348
|
+
"default": "-",
|
349
|
+
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
|
350
|
+
"value": {
|
351
|
+
"type": "() => boolean",
|
352
|
+
"kind": "expression"
|
353
|
+
}
|
354
|
+
}
|
355
|
+
]
|
356
|
+
},
|
207
357
|
{
|
208
358
|
"name": "van-address-edit",
|
209
359
|
"slots": [
|
@@ -564,301 +714,99 @@
|
|
564
714
|
]
|
565
715
|
},
|
566
716
|
{
|
567
|
-
"name": "van-
|
717
|
+
"name": "van-button",
|
568
718
|
"slots": [
|
569
719
|
{
|
570
720
|
"name": "default",
|
571
|
-
"description": "
|
721
|
+
"description": "按钮内容"
|
572
722
|
},
|
573
723
|
{
|
574
|
-
"name": "
|
575
|
-
"description": "
|
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": "开始触摸按钮时触发"
|
576
740
|
}
|
577
741
|
],
|
578
|
-
"events": [],
|
579
742
|
"attributes": [
|
580
743
|
{
|
581
|
-
"name": "
|
582
|
-
"default": "
|
583
|
-
"description": "
|
744
|
+
"name": "type",
|
745
|
+
"default": "`default`",
|
746
|
+
"description": "类型,可选值为 `primary` `info` `warning` `danger`",
|
584
747
|
"value": {
|
585
|
-
"type": "
|
748
|
+
"type": "string",
|
586
749
|
"kind": "expression"
|
587
750
|
}
|
588
751
|
},
|
589
752
|
{
|
590
|
-
"name": "
|
591
|
-
"default": "
|
592
|
-
"description": "
|
753
|
+
"name": "size",
|
754
|
+
"default": "`normal`",
|
755
|
+
"description": "尺寸,可选值为 `large` `small` `mini`",
|
593
756
|
"value": {
|
594
757
|
"type": "string",
|
595
758
|
"kind": "expression"
|
596
759
|
}
|
597
760
|
},
|
598
761
|
{
|
599
|
-
"name": "
|
600
|
-
"default": "
|
601
|
-
"description": "
|
762
|
+
"name": "text",
|
763
|
+
"default": "-",
|
764
|
+
"description": "按钮文字",
|
602
765
|
"value": {
|
603
|
-
"type": "
|
766
|
+
"type": "string",
|
604
767
|
"kind": "expression"
|
605
768
|
}
|
606
769
|
},
|
607
770
|
{
|
608
|
-
"name": "
|
771
|
+
"name": "color",
|
609
772
|
"default": "-",
|
610
|
-
"description": "
|
773
|
+
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
|
611
774
|
"value": {
|
612
|
-
"type": "
|
775
|
+
"type": "string",
|
613
776
|
"kind": "expression"
|
614
777
|
}
|
615
|
-
}
|
616
|
-
]
|
617
|
-
},
|
618
|
-
{
|
619
|
-
"name": "van-area",
|
620
|
-
"slots": [
|
621
|
-
{
|
622
|
-
"name": "title",
|
623
|
-
"description": "自定义标题内容"
|
624
|
-
},
|
625
|
-
{
|
626
|
-
"name": "columns-top",
|
627
|
-
"description": "自定义选项上方内容"
|
628
|
-
},
|
629
|
-
{
|
630
|
-
"name": "columns-bottom",
|
631
|
-
"description": "自定义选项下方内容"
|
632
|
-
}
|
633
|
-
],
|
634
|
-
"events": [
|
635
|
-
{
|
636
|
-
"name": "confirm",
|
637
|
-
"description": "点击右上方完成按钮"
|
638
778
|
},
|
639
779
|
{
|
640
|
-
"name": "
|
641
|
-
"description": "点击取消按钮时"
|
642
|
-
},
|
643
|
-
{
|
644
|
-
"name": "change",
|
645
|
-
"description": "选项改变时触发"
|
646
|
-
}
|
647
|
-
],
|
648
|
-
"attributes": [
|
649
|
-
{
|
650
|
-
"name": "value",
|
780
|
+
"name": "icon",
|
651
781
|
"default": "-",
|
652
|
-
"description": "
|
782
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
653
783
|
"value": {
|
654
784
|
"type": "string",
|
655
785
|
"kind": "expression"
|
656
786
|
}
|
657
787
|
},
|
658
788
|
{
|
659
|
-
"name": "
|
660
|
-
"default": "-",
|
661
|
-
"description": "
|
789
|
+
"name": "icon-prefix",
|
790
|
+
"default": "`van-icon`",
|
791
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
662
792
|
"value": {
|
663
793
|
"type": "string",
|
664
794
|
"kind": "expression"
|
665
795
|
}
|
666
796
|
},
|
667
797
|
{
|
668
|
-
"name": "
|
669
|
-
"default": "
|
670
|
-
"description": "
|
798
|
+
"name": "icon-position",
|
799
|
+
"default": "`left`",
|
800
|
+
"description": "图标展示位置,可选值为 `right`",
|
671
801
|
"value": {
|
672
802
|
"type": "string",
|
673
803
|
"kind": "expression"
|
674
804
|
}
|
675
805
|
},
|
676
806
|
{
|
677
|
-
"name": "
|
678
|
-
"default": "
|
679
|
-
"description": "
|
680
|
-
"value": {
|
681
|
-
"type": "string",
|
682
|
-
"kind": "expression"
|
683
|
-
}
|
684
|
-
},
|
685
|
-
{
|
686
|
-
"name": "area-list",
|
687
|
-
"default": "-",
|
688
|
-
"description": "省市区数据,格式见下方",
|
689
|
-
"value": {
|
690
|
-
"type": "object",
|
691
|
-
"kind": "expression"
|
692
|
-
}
|
693
|
-
},
|
694
|
-
{
|
695
|
-
"name": "columns-placeholder",
|
696
|
-
"default": "`[]`",
|
697
|
-
"description": "列占位提示文字",
|
698
|
-
"value": {
|
699
|
-
"type": "string[]",
|
700
|
-
"kind": "expression"
|
701
|
-
}
|
702
|
-
},
|
703
|
-
{
|
704
|
-
"name": "loading",
|
705
|
-
"default": "`false`",
|
706
|
-
"description": "是否显示加载状态",
|
707
|
-
"value": {
|
708
|
-
"type": "boolean",
|
709
|
-
"kind": "expression"
|
710
|
-
}
|
711
|
-
},
|
712
|
-
{
|
713
|
-
"name": "readonly",
|
714
|
-
"default": "`false`",
|
715
|
-
"description": "是否为只读状态,只读状态下无法切换选项",
|
716
|
-
"value": {
|
717
|
-
"type": "boolean",
|
718
|
-
"kind": "expression"
|
719
|
-
}
|
720
|
-
},
|
721
|
-
{
|
722
|
-
"name": "item-height",
|
723
|
-
"default": "`44`",
|
724
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
725
|
-
"value": {
|
726
|
-
"type": "number | string",
|
727
|
-
"kind": "expression"
|
728
|
-
}
|
729
|
-
},
|
730
|
-
{
|
731
|
-
"name": "columns-num",
|
732
|
-
"default": "`3`",
|
733
|
-
"description": "显示列数,3-省市区,2-省市,1-省",
|
734
|
-
"value": {
|
735
|
-
"type": "number | string",
|
736
|
-
"kind": "expression"
|
737
|
-
}
|
738
|
-
},
|
739
|
-
{
|
740
|
-
"name": "visible-item-count",
|
741
|
-
"default": "`6`",
|
742
|
-
"description": "可见的选项个数",
|
743
|
-
"value": {
|
744
|
-
"type": "number | string",
|
745
|
-
"kind": "expression"
|
746
|
-
}
|
747
|
-
},
|
748
|
-
{
|
749
|
-
"name": "swipe-duration",
|
750
|
-
"default": "`1000`",
|
751
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
752
|
-
"value": {
|
753
|
-
"type": "number | string",
|
754
|
-
"kind": "expression"
|
755
|
-
}
|
756
|
-
},
|
757
|
-
{
|
758
|
-
"name": "is-oversea-code",
|
759
|
-
"default": "-",
|
760
|
-
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
|
761
|
-
"value": {
|
762
|
-
"type": "() => boolean",
|
763
|
-
"kind": "expression"
|
764
|
-
}
|
765
|
-
}
|
766
|
-
]
|
767
|
-
},
|
768
|
-
{
|
769
|
-
"name": "van-button",
|
770
|
-
"slots": [
|
771
|
-
{
|
772
|
-
"name": "default",
|
773
|
-
"description": "按钮内容"
|
774
|
-
},
|
775
|
-
{
|
776
|
-
"name": "icon",
|
777
|
-
"description": "自定义图标"
|
778
|
-
},
|
779
|
-
{
|
780
|
-
"name": "loading",
|
781
|
-
"description": "自定义加载图标"
|
782
|
-
}
|
783
|
-
],
|
784
|
-
"events": [
|
785
|
-
{
|
786
|
-
"name": "click",
|
787
|
-
"description": "点击按钮,且按钮状态不为加载或禁用时触发"
|
788
|
-
},
|
789
|
-
{
|
790
|
-
"name": "touchstart",
|
791
|
-
"description": "开始触摸按钮时触发"
|
792
|
-
}
|
793
|
-
],
|
794
|
-
"attributes": [
|
795
|
-
{
|
796
|
-
"name": "type",
|
797
|
-
"default": "`default`",
|
798
|
-
"description": "类型,可选值为 `primary` `info` `warning` `danger`",
|
799
|
-
"value": {
|
800
|
-
"type": "string",
|
801
|
-
"kind": "expression"
|
802
|
-
}
|
803
|
-
},
|
804
|
-
{
|
805
|
-
"name": "size",
|
806
|
-
"default": "`normal`",
|
807
|
-
"description": "尺寸,可选值为 `large` `small` `mini`",
|
808
|
-
"value": {
|
809
|
-
"type": "string",
|
810
|
-
"kind": "expression"
|
811
|
-
}
|
812
|
-
},
|
813
|
-
{
|
814
|
-
"name": "text",
|
815
|
-
"default": "-",
|
816
|
-
"description": "按钮文字",
|
817
|
-
"value": {
|
818
|
-
"type": "string",
|
819
|
-
"kind": "expression"
|
820
|
-
}
|
821
|
-
},
|
822
|
-
{
|
823
|
-
"name": "color",
|
824
|
-
"default": "-",
|
825
|
-
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
|
826
|
-
"value": {
|
827
|
-
"type": "string",
|
828
|
-
"kind": "expression"
|
829
|
-
}
|
830
|
-
},
|
831
|
-
{
|
832
|
-
"name": "icon",
|
833
|
-
"default": "-",
|
834
|
-
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
835
|
-
"value": {
|
836
|
-
"type": "string",
|
837
|
-
"kind": "expression"
|
838
|
-
}
|
839
|
-
},
|
840
|
-
{
|
841
|
-
"name": "icon-prefix",
|
842
|
-
"default": "`van-icon`",
|
843
|
-
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
844
|
-
"value": {
|
845
|
-
"type": "string",
|
846
|
-
"kind": "expression"
|
847
|
-
}
|
848
|
-
},
|
849
|
-
{
|
850
|
-
"name": "icon-position",
|
851
|
-
"default": "`left`",
|
852
|
-
"description": "图标展示位置,可选值为 `right`",
|
853
|
-
"value": {
|
854
|
-
"type": "string",
|
855
|
-
"kind": "expression"
|
856
|
-
}
|
857
|
-
},
|
858
|
-
{
|
859
|
-
"name": "tag",
|
860
|
-
"default": "`button`",
|
861
|
-
"description": "按钮根节点的 HTML 标签",
|
807
|
+
"name": "tag",
|
808
|
+
"default": "`button`",
|
809
|
+
"description": "按钮根节点的 HTML 标签",
|
862
810
|
"value": {
|
863
811
|
"type": "string",
|
864
812
|
"kind": "expression"
|
@@ -992,166 +940,6 @@
|
|
992
940
|
}
|
993
941
|
]
|
994
942
|
},
|
995
|
-
{
|
996
|
-
"name": "van-card",
|
997
|
-
"slots": [
|
998
|
-
{
|
999
|
-
"name": "title",
|
1000
|
-
"description": "自定义标题"
|
1001
|
-
},
|
1002
|
-
{
|
1003
|
-
"name": "desc",
|
1004
|
-
"description": "自定义描述"
|
1005
|
-
},
|
1006
|
-
{
|
1007
|
-
"name": "num",
|
1008
|
-
"description": "自定义数量"
|
1009
|
-
},
|
1010
|
-
{
|
1011
|
-
"name": "price",
|
1012
|
-
"description": "自定义价格"
|
1013
|
-
},
|
1014
|
-
{
|
1015
|
-
"name": "origin-price",
|
1016
|
-
"description": "自定义商品原价"
|
1017
|
-
},
|
1018
|
-
{
|
1019
|
-
"name": "price-top",
|
1020
|
-
"description": "自定义价格上方区域"
|
1021
|
-
},
|
1022
|
-
{
|
1023
|
-
"name": "bottom",
|
1024
|
-
"description": "自定义价格下方区域"
|
1025
|
-
},
|
1026
|
-
{
|
1027
|
-
"name": "thumb",
|
1028
|
-
"description": "自定义图片"
|
1029
|
-
},
|
1030
|
-
{
|
1031
|
-
"name": "tag",
|
1032
|
-
"description": "自定义图片角标"
|
1033
|
-
},
|
1034
|
-
{
|
1035
|
-
"name": "tags",
|
1036
|
-
"description": "自定义描述下方标签区域"
|
1037
|
-
},
|
1038
|
-
{
|
1039
|
-
"name": "footer",
|
1040
|
-
"description": "自定义右下角内容"
|
1041
|
-
}
|
1042
|
-
],
|
1043
|
-
"events": [
|
1044
|
-
{
|
1045
|
-
"name": "click",
|
1046
|
-
"description": "点击时触发"
|
1047
|
-
},
|
1048
|
-
{
|
1049
|
-
"name": "click-thumb",
|
1050
|
-
"description": "点击自定义图片时触发"
|
1051
|
-
}
|
1052
|
-
],
|
1053
|
-
"attributes": [
|
1054
|
-
{
|
1055
|
-
"name": "thumb",
|
1056
|
-
"default": "-",
|
1057
|
-
"description": "左侧图片 URL",
|
1058
|
-
"value": {
|
1059
|
-
"type": "string",
|
1060
|
-
"kind": "expression"
|
1061
|
-
}
|
1062
|
-
},
|
1063
|
-
{
|
1064
|
-
"name": "title",
|
1065
|
-
"default": "-",
|
1066
|
-
"description": "标题",
|
1067
|
-
"value": {
|
1068
|
-
"type": "string",
|
1069
|
-
"kind": "expression"
|
1070
|
-
}
|
1071
|
-
},
|
1072
|
-
{
|
1073
|
-
"name": "desc",
|
1074
|
-
"default": "-",
|
1075
|
-
"description": "描述",
|
1076
|
-
"value": {
|
1077
|
-
"type": "string",
|
1078
|
-
"kind": "expression"
|
1079
|
-
}
|
1080
|
-
},
|
1081
|
-
{
|
1082
|
-
"name": "tag",
|
1083
|
-
"default": "-",
|
1084
|
-
"description": "图片角标",
|
1085
|
-
"value": {
|
1086
|
-
"type": "string",
|
1087
|
-
"kind": "expression"
|
1088
|
-
}
|
1089
|
-
},
|
1090
|
-
{
|
1091
|
-
"name": "num",
|
1092
|
-
"default": "-",
|
1093
|
-
"description": "商品数量",
|
1094
|
-
"value": {
|
1095
|
-
"type": "number | string",
|
1096
|
-
"kind": "expression"
|
1097
|
-
}
|
1098
|
-
},
|
1099
|
-
{
|
1100
|
-
"name": "price",
|
1101
|
-
"default": "-",
|
1102
|
-
"description": "商品价格",
|
1103
|
-
"value": {
|
1104
|
-
"type": "number | string",
|
1105
|
-
"kind": "expression"
|
1106
|
-
}
|
1107
|
-
},
|
1108
|
-
{
|
1109
|
-
"name": "origin-price",
|
1110
|
-
"default": "-",
|
1111
|
-
"description": "商品划线原价",
|
1112
|
-
"value": {
|
1113
|
-
"type": "number | string",
|
1114
|
-
"kind": "expression"
|
1115
|
-
}
|
1116
|
-
},
|
1117
|
-
{
|
1118
|
-
"name": "centered",
|
1119
|
-
"default": "`false`",
|
1120
|
-
"description": "内容是否垂直居中",
|
1121
|
-
"value": {
|
1122
|
-
"type": "boolean",
|
1123
|
-
"kind": "expression"
|
1124
|
-
}
|
1125
|
-
},
|
1126
|
-
{
|
1127
|
-
"name": "currency",
|
1128
|
-
"default": "`¥`",
|
1129
|
-
"description": "货币符号",
|
1130
|
-
"value": {
|
1131
|
-
"type": "string",
|
1132
|
-
"kind": "expression"
|
1133
|
-
}
|
1134
|
-
},
|
1135
|
-
{
|
1136
|
-
"name": "thumb-link",
|
1137
|
-
"default": "-",
|
1138
|
-
"description": "点击左侧图片后跳转的链接地址",
|
1139
|
-
"value": {
|
1140
|
-
"type": "string",
|
1141
|
-
"kind": "expression"
|
1142
|
-
}
|
1143
|
-
},
|
1144
|
-
{
|
1145
|
-
"name": "lazy-load",
|
1146
|
-
"default": "`false`",
|
1147
|
-
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
|
1148
|
-
"value": {
|
1149
|
-
"type": "boolean",
|
1150
|
-
"kind": "expression"
|
1151
|
-
}
|
1152
|
-
}
|
1153
|
-
]
|
1154
|
-
},
|
1155
943
|
{
|
1156
944
|
"name": "van-calendar",
|
1157
945
|
"slots": [
|
@@ -1501,101 +1289,160 @@
|
|
1501
1289
|
]
|
1502
1290
|
},
|
1503
1291
|
{
|
1504
|
-
"name": "van-
|
1292
|
+
"name": "van-card",
|
1505
1293
|
"slots": [
|
1506
1294
|
{
|
1507
|
-
"name": "title",
|
1508
|
-
"description": "
|
1295
|
+
"name": "title",
|
1296
|
+
"description": "自定义标题"
|
1297
|
+
},
|
1298
|
+
{
|
1299
|
+
"name": "desc",
|
1300
|
+
"description": "自定义描述"
|
1301
|
+
},
|
1302
|
+
{
|
1303
|
+
"name": "num",
|
1304
|
+
"description": "自定义数量"
|
1305
|
+
},
|
1306
|
+
{
|
1307
|
+
"name": "price",
|
1308
|
+
"description": "自定义价格"
|
1309
|
+
},
|
1310
|
+
{
|
1311
|
+
"name": "origin-price",
|
1312
|
+
"description": "自定义商品原价"
|
1313
|
+
},
|
1314
|
+
{
|
1315
|
+
"name": "price-top",
|
1316
|
+
"description": "自定义价格上方区域"
|
1317
|
+
},
|
1318
|
+
{
|
1319
|
+
"name": "bottom",
|
1320
|
+
"description": "自定义价格下方区域"
|
1321
|
+
},
|
1322
|
+
{
|
1323
|
+
"name": "thumb",
|
1324
|
+
"description": "自定义图片"
|
1325
|
+
},
|
1326
|
+
{
|
1327
|
+
"name": "tag",
|
1328
|
+
"description": "自定义图片角标"
|
1329
|
+
},
|
1330
|
+
{
|
1331
|
+
"name": "tags",
|
1332
|
+
"description": "自定义描述下方标签区域"
|
1509
1333
|
},
|
1510
1334
|
{
|
1511
|
-
"name": "
|
1512
|
-
"description": "
|
1335
|
+
"name": "footer",
|
1336
|
+
"description": "自定义右下角内容"
|
1513
1337
|
}
|
1514
1338
|
],
|
1515
1339
|
"events": [
|
1516
1340
|
{
|
1517
|
-
"name": "
|
1518
|
-
"description": "
|
1519
|
-
},
|
1520
|
-
{
|
1521
|
-
"name": "finish",
|
1522
|
-
"description": "全部选项选择完成后触发"
|
1341
|
+
"name": "click",
|
1342
|
+
"description": "点击时触发"
|
1523
1343
|
},
|
1524
1344
|
{
|
1525
|
-
"name": "
|
1526
|
-
"description": "
|
1345
|
+
"name": "click-thumb",
|
1346
|
+
"description": "点击自定义图片时触发"
|
1527
1347
|
}
|
1528
1348
|
],
|
1529
1349
|
"attributes": [
|
1530
1350
|
{
|
1531
|
-
"name": "
|
1351
|
+
"name": "thumb",
|
1532
1352
|
"default": "-",
|
1533
|
-
"description": "
|
1353
|
+
"description": "左侧图片 URL",
|
1534
1354
|
"value": {
|
1535
1355
|
"type": "string",
|
1536
1356
|
"kind": "expression"
|
1537
1357
|
}
|
1538
1358
|
},
|
1539
1359
|
{
|
1540
|
-
"name": "
|
1360
|
+
"name": "title",
|
1541
1361
|
"default": "-",
|
1542
|
-
"description": "
|
1362
|
+
"description": "标题",
|
1543
1363
|
"value": {
|
1544
|
-
"type": "string
|
1364
|
+
"type": "string",
|
1545
1365
|
"kind": "expression"
|
1546
1366
|
}
|
1547
1367
|
},
|
1548
1368
|
{
|
1549
|
-
"name": "
|
1550
|
-
"default": "
|
1551
|
-
"description": "
|
1369
|
+
"name": "desc",
|
1370
|
+
"default": "-",
|
1371
|
+
"description": "描述",
|
1552
1372
|
"value": {
|
1553
|
-
"type": "
|
1373
|
+
"type": "string",
|
1554
1374
|
"kind": "expression"
|
1555
1375
|
}
|
1556
1376
|
},
|
1557
1377
|
{
|
1558
|
-
"name": "
|
1559
|
-
"default": "
|
1560
|
-
"description": "
|
1378
|
+
"name": "tag",
|
1379
|
+
"default": "-",
|
1380
|
+
"description": "图片角标",
|
1561
1381
|
"value": {
|
1562
1382
|
"type": "string",
|
1563
1383
|
"kind": "expression"
|
1564
1384
|
}
|
1565
1385
|
},
|
1566
1386
|
{
|
1567
|
-
"name": "
|
1568
|
-
"default": "
|
1569
|
-
"description": "
|
1387
|
+
"name": "num",
|
1388
|
+
"default": "-",
|
1389
|
+
"description": "商品数量",
|
1570
1390
|
"value": {
|
1571
|
-
"type": "string",
|
1391
|
+
"type": "number | string",
|
1572
1392
|
"kind": "expression"
|
1573
1393
|
}
|
1574
1394
|
},
|
1575
1395
|
{
|
1576
|
-
"name": "
|
1577
|
-
"default": "
|
1578
|
-
"description": "
|
1396
|
+
"name": "price",
|
1397
|
+
"default": "-",
|
1398
|
+
"description": "商品价格",
|
1579
1399
|
"value": {
|
1580
|
-
"type": "
|
1400
|
+
"type": "number | string",
|
1581
1401
|
"kind": "expression"
|
1582
1402
|
}
|
1583
1403
|
},
|
1584
1404
|
{
|
1585
|
-
"name": "
|
1586
|
-
"default": "
|
1587
|
-
"description": "
|
1405
|
+
"name": "origin-price",
|
1406
|
+
"default": "-",
|
1407
|
+
"description": "商品划线原价",
|
1408
|
+
"value": {
|
1409
|
+
"type": "number | string",
|
1410
|
+
"kind": "expression"
|
1411
|
+
}
|
1412
|
+
},
|
1413
|
+
{
|
1414
|
+
"name": "centered",
|
1415
|
+
"default": "`false`",
|
1416
|
+
"description": "内容是否垂直居中",
|
1588
1417
|
"value": {
|
1589
1418
|
"type": "boolean",
|
1590
1419
|
"kind": "expression"
|
1591
1420
|
}
|
1592
1421
|
},
|
1593
1422
|
{
|
1594
|
-
"name": "
|
1595
|
-
"default": "
|
1596
|
-
"description": "
|
1423
|
+
"name": "currency",
|
1424
|
+
"default": "`¥`",
|
1425
|
+
"description": "货币符号",
|
1597
1426
|
"value": {
|
1598
|
-
"type": "
|
1427
|
+
"type": "string",
|
1428
|
+
"kind": "expression"
|
1429
|
+
}
|
1430
|
+
},
|
1431
|
+
{
|
1432
|
+
"name": "thumb-link",
|
1433
|
+
"default": "-",
|
1434
|
+
"description": "点击左侧图片后跳转的链接地址",
|
1435
|
+
"value": {
|
1436
|
+
"type": "string",
|
1437
|
+
"kind": "expression"
|
1438
|
+
}
|
1439
|
+
},
|
1440
|
+
{
|
1441
|
+
"name": "lazy-load",
|
1442
|
+
"default": "`false`",
|
1443
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
|
1444
|
+
"value": {
|
1445
|
+
"type": "boolean",
|
1599
1446
|
"kind": "expression"
|
1600
1447
|
}
|
1601
1448
|
}
|
@@ -1843,6 +1690,159 @@
|
|
1843
1690
|
}
|
1844
1691
|
]
|
1845
1692
|
},
|
1693
|
+
{
|
1694
|
+
"name": "van-cascader",
|
1695
|
+
"slots": [
|
1696
|
+
{
|
1697
|
+
"name": "title",
|
1698
|
+
"description": "自定义顶部标题"
|
1699
|
+
},
|
1700
|
+
{
|
1701
|
+
"name": "option",
|
1702
|
+
"description": "自定义选项文字"
|
1703
|
+
}
|
1704
|
+
],
|
1705
|
+
"events": [
|
1706
|
+
{
|
1707
|
+
"name": "change",
|
1708
|
+
"description": "选中项变化时触发"
|
1709
|
+
},
|
1710
|
+
{
|
1711
|
+
"name": "finish",
|
1712
|
+
"description": "全部选项选择完成后触发"
|
1713
|
+
},
|
1714
|
+
{
|
1715
|
+
"name": "close",
|
1716
|
+
"description": "点击关闭图标时触发"
|
1717
|
+
}
|
1718
|
+
],
|
1719
|
+
"attributes": [
|
1720
|
+
{
|
1721
|
+
"name": "title",
|
1722
|
+
"default": "-",
|
1723
|
+
"description": "顶部标题",
|
1724
|
+
"value": {
|
1725
|
+
"type": "string",
|
1726
|
+
"kind": "expression"
|
1727
|
+
}
|
1728
|
+
},
|
1729
|
+
{
|
1730
|
+
"name": "value",
|
1731
|
+
"default": "-",
|
1732
|
+
"description": "选中项的值",
|
1733
|
+
"value": {
|
1734
|
+
"type": "string | number",
|
1735
|
+
"kind": "expression"
|
1736
|
+
}
|
1737
|
+
},
|
1738
|
+
{
|
1739
|
+
"name": "options",
|
1740
|
+
"default": "`[]`",
|
1741
|
+
"description": "可选项数据源",
|
1742
|
+
"value": {
|
1743
|
+
"type": "Option[]",
|
1744
|
+
"kind": "expression"
|
1745
|
+
}
|
1746
|
+
},
|
1747
|
+
{
|
1748
|
+
"name": "placeholder",
|
1749
|
+
"default": "`请选择`",
|
1750
|
+
"description": "未选中时的提示文案",
|
1751
|
+
"value": {
|
1752
|
+
"type": "string",
|
1753
|
+
"kind": "expression"
|
1754
|
+
}
|
1755
|
+
},
|
1756
|
+
{
|
1757
|
+
"name": "active-color",
|
1758
|
+
"default": "`#ee0a24`",
|
1759
|
+
"description": "选中状态的高亮颜色",
|
1760
|
+
"value": {
|
1761
|
+
"type": "string",
|
1762
|
+
"kind": "expression"
|
1763
|
+
}
|
1764
|
+
},
|
1765
|
+
{
|
1766
|
+
"name": "closeable",
|
1767
|
+
"default": "`true`",
|
1768
|
+
"description": "是否显示关闭图标",
|
1769
|
+
"value": {
|
1770
|
+
"type": "boolean",
|
1771
|
+
"kind": "expression"
|
1772
|
+
}
|
1773
|
+
},
|
1774
|
+
{
|
1775
|
+
"name": "show-header",
|
1776
|
+
"default": "`true`",
|
1777
|
+
"description": "是否展示标题栏",
|
1778
|
+
"value": {
|
1779
|
+
"type": "boolean",
|
1780
|
+
"kind": "expression"
|
1781
|
+
}
|
1782
|
+
},
|
1783
|
+
{
|
1784
|
+
"name": "field-names",
|
1785
|
+
"default": "`{ text: 'text', value: 'value', children: 'children' }`",
|
1786
|
+
"description": "自定义 `options` 结构中的字段",
|
1787
|
+
"value": {
|
1788
|
+
"type": "object",
|
1789
|
+
"kind": "expression"
|
1790
|
+
}
|
1791
|
+
}
|
1792
|
+
]
|
1793
|
+
},
|
1794
|
+
{
|
1795
|
+
"name": "van-badge",
|
1796
|
+
"slots": [
|
1797
|
+
{
|
1798
|
+
"name": "default",
|
1799
|
+
"description": "徽标包裹的子元素"
|
1800
|
+
},
|
1801
|
+
{
|
1802
|
+
"name": "content",
|
1803
|
+
"description": "自定义徽标内容"
|
1804
|
+
}
|
1805
|
+
],
|
1806
|
+
"events": [],
|
1807
|
+
"attributes": [
|
1808
|
+
{
|
1809
|
+
"name": "content",
|
1810
|
+
"default": "-",
|
1811
|
+
"description": "徽标内容",
|
1812
|
+
"value": {
|
1813
|
+
"type": "number | string",
|
1814
|
+
"kind": "expression"
|
1815
|
+
}
|
1816
|
+
},
|
1817
|
+
{
|
1818
|
+
"name": "color",
|
1819
|
+
"default": "`#ee0a24`",
|
1820
|
+
"description": "徽标背景颜色",
|
1821
|
+
"value": {
|
1822
|
+
"type": "string",
|
1823
|
+
"kind": "expression"
|
1824
|
+
}
|
1825
|
+
},
|
1826
|
+
{
|
1827
|
+
"name": "dot",
|
1828
|
+
"default": "`false`",
|
1829
|
+
"description": "是否展示为小红点",
|
1830
|
+
"value": {
|
1831
|
+
"type": "boolean",
|
1832
|
+
"kind": "expression"
|
1833
|
+
}
|
1834
|
+
},
|
1835
|
+
{
|
1836
|
+
"name": "max",
|
1837
|
+
"default": "-",
|
1838
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
|
1839
|
+
"value": {
|
1840
|
+
"type": "number | string",
|
1841
|
+
"kind": "expression"
|
1842
|
+
}
|
1843
|
+
}
|
1844
|
+
]
|
1845
|
+
},
|
1846
1846
|
{
|
1847
1847
|
"name": "van-checkbox",
|
1848
1848
|
"slots": [
|