vant 3.3.0 → 3.3.3

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/package.json CHANGED
@@ -1,11 +1,27 @@
1
1
  {
2
2
  "name": "vant",
3
- "version": "3.3.0",
3
+ "version": "3.3.3",
4
4
  "description": "Mobile UI Components built on Vue",
5
- "main": "lib/index.js",
6
- "module": "es/index.js",
5
+ "main": "lib/vant.cjs.js",
6
+ "module": "lib/vant.es.js",
7
7
  "style": "lib/index.css",
8
8
  "typings": "lib/index.d.ts",
9
+ "unpkg": "lib/vant.min.js",
10
+ "jsdelivr": "lib/vant.min.js",
11
+ "exports": {
12
+ ".": {
13
+ "node": {
14
+ "import": "./lib/ssr.mjs",
15
+ "require": "./lib/ssr.js"
16
+ },
17
+ "import": "./lib/vant.es.js",
18
+ "require": "./lib/vant.cjs.js",
19
+ "types": "./lib/index.d.ts"
20
+ },
21
+ "./es/*": "./es/*",
22
+ "./lib/*": "./lib/*",
23
+ "./package.json": "./package.json"
24
+ },
9
25
  "files": [
10
26
  "es",
11
27
  "lib",
@@ -54,10 +70,11 @@
54
70
  "devDependencies": {
55
71
  "@vant/area-data": "^1.1.3",
56
72
  "@vant/cli": "workspace:*",
73
+ "@vant/eslint-config": "workspace:*",
57
74
  "@vue/compiler-sfc": "^3.2.20",
58
75
  "@vue/runtime-core": "^3.2.20",
59
76
  "@vue/test-utils": "^2.0.0-rc.16",
60
- "typescript": "4.x",
77
+ "typescript": "~4.5.2",
61
78
  "vue": "^3.2.20",
62
79
  "vue-router": "^4.0.12"
63
80
  },
@@ -67,11 +84,9 @@
67
84
  "*.css",
68
85
  "*.less"
69
86
  ],
87
+ "web-types": "vetur/web-types.json",
70
88
  "vetur": {
71
89
  "tags": "vetur/tags.json",
72
90
  "attributes": "vetur/attributes.json"
73
- },
74
- "web-types": "vetur/web-types.json",
75
- "unpkg": "lib/vant.min.js",
76
- "jsdelivr": "lib/vant.min.js"
91
+ }
77
92
  }
@@ -165,34 +165,6 @@
165
165
  "type": "(action: string) => boolean | Promise\\<boolean\\>",
166
166
  "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
167
167
  },
168
- "van-address-list/v-model": {
169
- "type": "string",
170
- "description": "当前选中地址的 id, 默认值: -"
171
- },
172
- "van-address-list/list": {
173
- "type": "AddressListAddress[]",
174
- "description": "地址列表, 默认值: `[]`"
175
- },
176
- "van-address-list/disabled-list": {
177
- "type": "AddressListAddress[]",
178
- "description": "不可配送地址列表, 默认值: `[]`"
179
- },
180
- "van-address-list/disabled-text": {
181
- "type": "string",
182
- "description": "不可配送提示文案, 默认值: -"
183
- },
184
- "van-address-list/switchable": {
185
- "type": "boolean",
186
- "description": "是否允许切换地址, 默认值: `true`"
187
- },
188
- "van-address-list/add-button-text": {
189
- "type": "string",
190
- "description": "底部按钮文字, 默认值: `新增地址`"
191
- },
192
- "van-address-list/default-tag-text": {
193
- "type": "string",
194
- "description": "默认地址标签文字, 默认值: -"
195
- },
196
168
  "van-address-edit/area-list": {
197
169
  "type": "object",
198
170
  "description": "地区列表, 默认值: -"
@@ -281,6 +253,34 @@
281
253
  "type": "(key, val) => string",
282
254
  "description": "自定义校验函数, 默认值: -"
283
255
  },
256
+ "van-address-list/v-model": {
257
+ "type": "string",
258
+ "description": "当前选中地址的 id, 默认值: -"
259
+ },
260
+ "van-address-list/list": {
261
+ "type": "AddressListAddress[]",
262
+ "description": "地址列表, 默认值: `[]`"
263
+ },
264
+ "van-address-list/disabled-list": {
265
+ "type": "AddressListAddress[]",
266
+ "description": "不可配送地址列表, 默认值: `[]`"
267
+ },
268
+ "van-address-list/disabled-text": {
269
+ "type": "string",
270
+ "description": "不可配送提示文案, 默认值: -"
271
+ },
272
+ "van-address-list/switchable": {
273
+ "type": "boolean",
274
+ "description": "是否允许切换地址, 默认值: `true`"
275
+ },
276
+ "van-address-list/add-button-text": {
277
+ "type": "string",
278
+ "description": "底部按钮文字, 默认值: `新增地址`"
279
+ },
280
+ "van-address-list/default-tag-text": {
281
+ "type": "string",
282
+ "description": "默认地址标签文字, 默认值: -"
283
+ },
284
284
  "van-area/value": {
285
285
  "type": "string",
286
286
  "description": "当前选中项对应的地区码, 默认值: -"
package/vetur/tags.json CHANGED
@@ -55,17 +55,6 @@
55
55
  "before-close"
56
56
  ]
57
57
  },
58
- "van-address-list": {
59
- "attributes": [
60
- "v-model",
61
- "list",
62
- "disabled-list",
63
- "disabled-text",
64
- "switchable",
65
- "add-button-text",
66
- "default-tag-text"
67
- ]
68
- },
69
58
  "van-address-edit": {
70
59
  "attributes": [
71
60
  "area-list",
@@ -92,6 +81,17 @@
92
81
  "validator"
93
82
  ]
94
83
  },
84
+ "van-address-list": {
85
+ "attributes": [
86
+ "v-model",
87
+ "list",
88
+ "disabled-list",
89
+ "disabled-text",
90
+ "switchable",
91
+ "add-button-text",
92
+ "default-tag-text"
93
+ ]
94
+ },
95
95
  "van-area": {
96
96
  "attributes": [
97
97
  "value",
@@ -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": "3.3.0",
5
+ "version": "3.3.3",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -494,125 +494,6 @@
494
494
  }
495
495
  ]
496
496
  },
497
- {
498
- "name": "van-address-list",
499
- "slots": [
500
- {
501
- "name": "default",
502
- "description": "在列表下方插入内容"
503
- },
504
- {
505
- "name": "top",
506
- "description": "在顶部插入内容"
507
- },
508
- {
509
- "name": "item-bottom",
510
- "description": "在列表项底部插入内容"
511
- },
512
- {
513
- "name": "tag",
514
- "description": "自定义列表项标签内容"
515
- }
516
- ],
517
- "events": [
518
- {
519
- "name": "add",
520
- "description": "点击新增按钮时触发"
521
- },
522
- {
523
- "name": "edit",
524
- "description": "点击编辑按钮时触发"
525
- },
526
- {
527
- "name": "select",
528
- "description": "切换选中的地址时触发"
529
- },
530
- {
531
- "name": "edit-disabled",
532
- "description": "编辑不可配送的地址时触发"
533
- },
534
- {
535
- "name": "select-disabled",
536
- "description": "选中不可配送的地址时触发"
537
- },
538
- {
539
- "name": "click-item",
540
- "description": "点击任意地址时触发"
541
- }
542
- ],
543
- "attributes": [
544
- {
545
- "name": "v-model",
546
- "default": "-",
547
- "description": "当前选中地址的 id",
548
- "options": [],
549
- "value": {
550
- "type": "string",
551
- "kind": "expression"
552
- }
553
- },
554
- {
555
- "name": "list",
556
- "default": "`[]`",
557
- "description": "地址列表",
558
- "options": [],
559
- "value": {
560
- "type": "AddressListAddress[]",
561
- "kind": "expression"
562
- }
563
- },
564
- {
565
- "name": "disabled-list",
566
- "default": "`[]`",
567
- "description": "不可配送地址列表",
568
- "options": [],
569
- "value": {
570
- "type": "AddressListAddress[]",
571
- "kind": "expression"
572
- }
573
- },
574
- {
575
- "name": "disabled-text",
576
- "default": "-",
577
- "description": "不可配送提示文案",
578
- "options": [],
579
- "value": {
580
- "type": "string",
581
- "kind": "expression"
582
- }
583
- },
584
- {
585
- "name": "switchable",
586
- "default": "`true`",
587
- "description": "是否允许切换地址",
588
- "options": [],
589
- "value": {
590
- "type": "boolean",
591
- "kind": "expression"
592
- }
593
- },
594
- {
595
- "name": "add-button-text",
596
- "default": "`新增地址`",
597
- "description": "底部按钮文字",
598
- "options": [],
599
- "value": {
600
- "type": "string",
601
- "kind": "expression"
602
- }
603
- },
604
- {
605
- "name": "default-tag-text",
606
- "default": "-",
607
- "description": "默认地址标签文字",
608
- "options": [],
609
- "value": {
610
- "type": "string",
611
- "kind": "expression"
612
- }
613
- }
614
- ]
615
- },
616
497
  {
617
498
  "name": "van-address-edit",
618
499
  "slots": [
@@ -878,6 +759,125 @@
878
759
  }
879
760
  ]
880
761
  },
762
+ {
763
+ "name": "van-address-list",
764
+ "slots": [
765
+ {
766
+ "name": "default",
767
+ "description": "在列表下方插入内容"
768
+ },
769
+ {
770
+ "name": "top",
771
+ "description": "在顶部插入内容"
772
+ },
773
+ {
774
+ "name": "item-bottom",
775
+ "description": "在列表项底部插入内容"
776
+ },
777
+ {
778
+ "name": "tag",
779
+ "description": "自定义列表项标签内容"
780
+ }
781
+ ],
782
+ "events": [
783
+ {
784
+ "name": "add",
785
+ "description": "点击新增按钮时触发"
786
+ },
787
+ {
788
+ "name": "edit",
789
+ "description": "点击编辑按钮时触发"
790
+ },
791
+ {
792
+ "name": "select",
793
+ "description": "切换选中的地址时触发"
794
+ },
795
+ {
796
+ "name": "edit-disabled",
797
+ "description": "编辑不可配送的地址时触发"
798
+ },
799
+ {
800
+ "name": "select-disabled",
801
+ "description": "选中不可配送的地址时触发"
802
+ },
803
+ {
804
+ "name": "click-item",
805
+ "description": "点击任意地址时触发"
806
+ }
807
+ ],
808
+ "attributes": [
809
+ {
810
+ "name": "v-model",
811
+ "default": "-",
812
+ "description": "当前选中地址的 id",
813
+ "options": [],
814
+ "value": {
815
+ "type": "string",
816
+ "kind": "expression"
817
+ }
818
+ },
819
+ {
820
+ "name": "list",
821
+ "default": "`[]`",
822
+ "description": "地址列表",
823
+ "options": [],
824
+ "value": {
825
+ "type": "AddressListAddress[]",
826
+ "kind": "expression"
827
+ }
828
+ },
829
+ {
830
+ "name": "disabled-list",
831
+ "default": "`[]`",
832
+ "description": "不可配送地址列表",
833
+ "options": [],
834
+ "value": {
835
+ "type": "AddressListAddress[]",
836
+ "kind": "expression"
837
+ }
838
+ },
839
+ {
840
+ "name": "disabled-text",
841
+ "default": "-",
842
+ "description": "不可配送提示文案",
843
+ "options": [],
844
+ "value": {
845
+ "type": "string",
846
+ "kind": "expression"
847
+ }
848
+ },
849
+ {
850
+ "name": "switchable",
851
+ "default": "`true`",
852
+ "description": "是否允许切换地址",
853
+ "options": [],
854
+ "value": {
855
+ "type": "boolean",
856
+ "kind": "expression"
857
+ }
858
+ },
859
+ {
860
+ "name": "add-button-text",
861
+ "default": "`新增地址`",
862
+ "description": "底部按钮文字",
863
+ "options": [],
864
+ "value": {
865
+ "type": "string",
866
+ "kind": "expression"
867
+ }
868
+ },
869
+ {
870
+ "name": "default-tag-text",
871
+ "default": "-",
872
+ "description": "默认地址标签文字",
873
+ "options": [],
874
+ "value": {
875
+ "type": "string",
876
+ "kind": "expression"
877
+ }
878
+ }
879
+ ]
880
+ },
881
881
  {
882
882
  "name": "van-area",
883
883
  "slots": [