vant 3.4.3 → 3.4.4
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/area/Area.js +3 -1
- package/es/field/utils.js +2 -1
- package/es/index-bar/IndexBar.js +3 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/area/Area.js +3 -1
- package/lib/field/utils.js +2 -1
- package/lib/index-bar/IndexBar.js +3 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/vant.cjs.js +9 -4
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +9 -4
- package/lib/vant.es.min.js +9 -4
- package/lib/vant.js +9 -4
- package/lib/vant.min.js +1 -1
- package/package.json +3 -6
- package/vetur/attributes.json +138 -138
- package/vetur/tags.json +43 -43
- package/vetur/web-types.json +651 -651
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vant",
|
3
|
-
"version": "3.4.
|
3
|
+
"version": "3.4.4",
|
4
4
|
"description": "Mobile UI Components built on Vue",
|
5
5
|
"main": "lib/vant.cjs.js",
|
6
6
|
"module": "es/index.js",
|
@@ -35,8 +35,8 @@
|
|
35
35
|
"test": "vant-cli test",
|
36
36
|
"build": "vant-cli build",
|
37
37
|
"build:site": "vant-cli build-site",
|
38
|
-
"release": "vant-cli release
|
39
|
-
"release:site": "pnpm build:site && gh-pages -d site-dist --add
|
38
|
+
"release": "vant-cli release",
|
39
|
+
"release:site": "pnpm build:site && gh-pages -d site-dist --add",
|
40
40
|
"test:watch": "vant-cli test --watch",
|
41
41
|
"test:coverage": "open test/coverage/index.html"
|
42
42
|
},
|
@@ -51,9 +51,6 @@
|
|
51
51
|
"bugs": "https://github.com/youzan/vant/issues",
|
52
52
|
"author": "chenjiahan",
|
53
53
|
"license": "MIT",
|
54
|
-
"npm": {
|
55
|
-
"tag": "next"
|
56
|
-
},
|
57
54
|
"keywords": [
|
58
55
|
"ui",
|
59
56
|
"vue",
|
package/vetur/attributes.json
CHANGED
@@ -169,121 +169,85 @@
|
|
169
169
|
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
170
170
|
"description": "Callback function before close, Default: -"
|
171
171
|
},
|
172
|
-
"van-
|
172
|
+
"van-area/value": {
|
173
173
|
"type": "string",
|
174
|
-
"description": "
|
175
|
-
},
|
176
|
-
"van-address-list/list": {
|
177
|
-
"type": "Address[]",
|
178
|
-
"description": "Address list, Default: `[]`"
|
179
|
-
},
|
180
|
-
"van-address-list/disabled-list": {
|
181
|
-
"type": "Address[]",
|
182
|
-
"description": "Disabled address list, Default: `[]`"
|
174
|
+
"description": "the `code` of selected area, Default: -"
|
183
175
|
},
|
184
|
-
"van-
|
176
|
+
"van-area/title": {
|
185
177
|
"type": "string",
|
186
|
-
"description": "
|
187
|
-
},
|
188
|
-
"van-address-list/switchable": {
|
189
|
-
"type": "boolean",
|
190
|
-
"description": "Whether to allow switch address, Default: `true`"
|
178
|
+
"description": "Toolbar title, Default: -"
|
191
179
|
},
|
192
|
-
"van-
|
180
|
+
"van-area/confirm-button-text": {
|
193
181
|
"type": "string",
|
194
|
-
"description": "
|
182
|
+
"description": "Text of confirm button, Default: `Confirm`"
|
195
183
|
},
|
196
|
-
"van-
|
184
|
+
"van-area/cancel-button-text": {
|
197
185
|
"type": "string",
|
198
|
-
"description": "
|
186
|
+
"description": "Text of cancel button, Default: `Cancel`"
|
199
187
|
},
|
200
|
-
"van-
|
188
|
+
"van-area/area-list": {
|
201
189
|
"type": "object",
|
202
|
-
"description": "Area
|
190
|
+
"description": "Area list data, Default: -"
|
203
191
|
},
|
204
|
-
"van-
|
192
|
+
"van-area/columns-placeholder": {
|
205
193
|
"type": "string[]",
|
206
|
-
"description": "
|
207
|
-
},
|
208
|
-
"van-address-edit/area-placeholder": {
|
209
|
-
"type": "string",
|
210
|
-
"description": "placeholder of area input field, Default: `Area`"
|
211
|
-
},
|
212
|
-
"van-address-edit/address-info": {
|
213
|
-
"type": "AddressEditInfo",
|
214
|
-
"description": "Address Info, Default: `{}`"
|
215
|
-
},
|
216
|
-
"van-address-edit/search-result": {
|
217
|
-
"type": "AddressEditSearchItem[]",
|
218
|
-
"description": "Address search result, Default: `[]`"
|
219
|
-
},
|
220
|
-
"van-address-edit/show-postal": {
|
221
|
-
"type": "boolean",
|
222
|
-
"description": "Whether to show postal field, Default: `false`"
|
194
|
+
"description": "Placeholder of columns, Default: `[]`"
|
223
195
|
},
|
224
|
-
"van-
|
196
|
+
"van-area/loading": {
|
225
197
|
"type": "boolean",
|
226
|
-
"description": "Whether to show
|
198
|
+
"description": "Whether to show loading prompt, Default: `false`"
|
227
199
|
},
|
228
|
-
"van-
|
200
|
+
"van-area/readonly": {
|
229
201
|
"type": "boolean",
|
230
|
-
"description": "Whether to
|
202
|
+
"description": "Whether to be readonly, Default: `false`"
|
231
203
|
},
|
232
|
-
"van-
|
233
|
-
"type": "
|
234
|
-
"description": "
|
204
|
+
"van-area/item-height": {
|
205
|
+
"type": "number | string",
|
206
|
+
"description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`, Default: `44`"
|
235
207
|
},
|
236
|
-
"van-
|
237
|
-
"type": "
|
238
|
-
"description": "
|
208
|
+
"van-area/columns-num": {
|
209
|
+
"type": "number | string",
|
210
|
+
"description": "Level of picker, Default: `3`"
|
239
211
|
},
|
240
|
-
"van-
|
241
|
-
"type": "
|
242
|
-
"description": "
|
212
|
+
"van-area/visible-item-count": {
|
213
|
+
"type": "number | string",
|
214
|
+
"description": "Count of visible columns, Default: `6`"
|
243
215
|
},
|
244
|
-
"van-
|
245
|
-
"type": "
|
246
|
-
"description": "
|
216
|
+
"van-area/swipe-duration": {
|
217
|
+
"type": "number | string",
|
218
|
+
"description": "Duration of the momentum animation,unit `ms`, Default: `1000`"
|
247
219
|
},
|
248
|
-
"van-
|
249
|
-
"type": "
|
250
|
-
"description": "
|
220
|
+
"van-area/is-oversea-code": {
|
221
|
+
"type": "() => boolean",
|
222
|
+
"description": "The method to validate oversea code, Default: -"
|
251
223
|
},
|
252
|
-
"van-address-
|
224
|
+
"van-address-list/v-model": {
|
253
225
|
"type": "string",
|
254
|
-
"description": "
|
226
|
+
"description": "Id of chosen address, Default: -"
|
255
227
|
},
|
256
|
-
"van-address-
|
257
|
-
"type": "
|
258
|
-
"description": "
|
228
|
+
"van-address-list/list": {
|
229
|
+
"type": "Address[]",
|
230
|
+
"description": "Address list, Default: `[]`"
|
259
231
|
},
|
260
|
-
"van-address-
|
261
|
-
"type": "
|
262
|
-
"description": "
|
232
|
+
"van-address-list/disabled-list": {
|
233
|
+
"type": "Address[]",
|
234
|
+
"description": "Disabled address list, Default: `[]`"
|
263
235
|
},
|
264
|
-
"van-address-
|
265
|
-
"type": "
|
266
|
-
"description": "
|
236
|
+
"van-address-list/disabled-text": {
|
237
|
+
"type": "string",
|
238
|
+
"description": "Disabled text, Default: -"
|
267
239
|
},
|
268
|
-
"van-address-
|
240
|
+
"van-address-list/switchable": {
|
269
241
|
"type": "boolean",
|
270
|
-
"description": "Whether to
|
271
|
-
},
|
272
|
-
"van-address-edit/tel-validator": {
|
273
|
-
"type": "(tel: string) => boolean",
|
274
|
-
"description": "The method to validate tel, Default: -"
|
275
|
-
},
|
276
|
-
"van-address-edit/tel-maxlength": {
|
277
|
-
"type": "number | string",
|
278
|
-
"description": "Tel maxlength, Default: -"
|
242
|
+
"description": "Whether to allow switch address, Default: `true`"
|
279
243
|
},
|
280
|
-
"van-address-
|
281
|
-
"type": "
|
282
|
-
"description": "
|
244
|
+
"van-address-list/add-button-text": {
|
245
|
+
"type": "string",
|
246
|
+
"description": "Add button text, Default: `Add new address`"
|
283
247
|
},
|
284
|
-
"van-address-
|
285
|
-
"type": "
|
286
|
-
"description": "
|
248
|
+
"van-address-list/default-tag-text": {
|
249
|
+
"type": "string",
|
250
|
+
"description": "Default tag text, Default: -"
|
287
251
|
},
|
288
252
|
"van-badge/content": {
|
289
253
|
"type": "number | string",
|
@@ -316,58 +280,6 @@
|
|
316
280
|
"type": "string",
|
317
281
|
"description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`, Default: `top-right`"
|
318
282
|
},
|
319
|
-
"van-area/value": {
|
320
|
-
"type": "string",
|
321
|
-
"description": "the `code` of selected area, Default: -"
|
322
|
-
},
|
323
|
-
"van-area/title": {
|
324
|
-
"type": "string",
|
325
|
-
"description": "Toolbar title, Default: -"
|
326
|
-
},
|
327
|
-
"van-area/confirm-button-text": {
|
328
|
-
"type": "string",
|
329
|
-
"description": "Text of confirm button, Default: `Confirm`"
|
330
|
-
},
|
331
|
-
"van-area/cancel-button-text": {
|
332
|
-
"type": "string",
|
333
|
-
"description": "Text of cancel button, Default: `Cancel`"
|
334
|
-
},
|
335
|
-
"van-area/area-list": {
|
336
|
-
"type": "object",
|
337
|
-
"description": "Area list data, Default: -"
|
338
|
-
},
|
339
|
-
"van-area/columns-placeholder": {
|
340
|
-
"type": "string[]",
|
341
|
-
"description": "Placeholder of columns, Default: `[]`"
|
342
|
-
},
|
343
|
-
"van-area/loading": {
|
344
|
-
"type": "boolean",
|
345
|
-
"description": "Whether to show loading prompt, Default: `false`"
|
346
|
-
},
|
347
|
-
"van-area/readonly": {
|
348
|
-
"type": "boolean",
|
349
|
-
"description": "Whether to be readonly, Default: `false`"
|
350
|
-
},
|
351
|
-
"van-area/item-height": {
|
352
|
-
"type": "number | string",
|
353
|
-
"description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`, Default: `44`"
|
354
|
-
},
|
355
|
-
"van-area/columns-num": {
|
356
|
-
"type": "number | string",
|
357
|
-
"description": "Level of picker, Default: `3`"
|
358
|
-
},
|
359
|
-
"van-area/visible-item-count": {
|
360
|
-
"type": "number | string",
|
361
|
-
"description": "Count of visible columns, Default: `6`"
|
362
|
-
},
|
363
|
-
"van-area/swipe-duration": {
|
364
|
-
"type": "number | string",
|
365
|
-
"description": "Duration of the momentum animation,unit `ms`, Default: `1000`"
|
366
|
-
},
|
367
|
-
"van-area/is-oversea-code": {
|
368
|
-
"type": "() => boolean",
|
369
|
-
"description": "The method to validate oversea code, Default: -"
|
370
|
-
},
|
371
283
|
"van-button/type": {
|
372
284
|
"type": "string",
|
373
285
|
"description": "Can be set to `primary` `success` `warning` `danger`, Default: `default`"
|
@@ -615,6 +527,94 @@
|
|
615
527
|
"type": "boolean",
|
616
528
|
"description": "Whether to enable thumb lazy load,should register [Lazyload](#/en-US/lazyload) component, Default: `false`"
|
617
529
|
},
|
530
|
+
"van-address-edit/area-list": {
|
531
|
+
"type": "object",
|
532
|
+
"description": "Area List, Default: -"
|
533
|
+
},
|
534
|
+
"van-address-edit/area-columns-placeholder": {
|
535
|
+
"type": "string[]",
|
536
|
+
"description": "placeholder of area columns, Default: `[]`"
|
537
|
+
},
|
538
|
+
"van-address-edit/area-placeholder": {
|
539
|
+
"type": "string",
|
540
|
+
"description": "placeholder of area input field, Default: `Area`"
|
541
|
+
},
|
542
|
+
"van-address-edit/address-info": {
|
543
|
+
"type": "AddressEditInfo",
|
544
|
+
"description": "Address Info, Default: `{}`"
|
545
|
+
},
|
546
|
+
"van-address-edit/search-result": {
|
547
|
+
"type": "AddressEditSearchItem[]",
|
548
|
+
"description": "Address search result, Default: `[]`"
|
549
|
+
},
|
550
|
+
"van-address-edit/show-postal": {
|
551
|
+
"type": "boolean",
|
552
|
+
"description": "Whether to show postal field, Default: `false`"
|
553
|
+
},
|
554
|
+
"van-address-edit/show-delete": {
|
555
|
+
"type": "boolean",
|
556
|
+
"description": "Whether to show delete button, Default: `false`"
|
557
|
+
},
|
558
|
+
"van-address-edit/show-set-default": {
|
559
|
+
"type": "boolean",
|
560
|
+
"description": "Whether to show default address switch, Default: `false`"
|
561
|
+
},
|
562
|
+
"van-address-edit/show-search-result": {
|
563
|
+
"type": "boolean",
|
564
|
+
"description": "Whether to show address search result, Default: `false`"
|
565
|
+
},
|
566
|
+
"van-address-edit/show-area": {
|
567
|
+
"type": "boolean",
|
568
|
+
"description": "Whether to show area cell, Default: `true`"
|
569
|
+
},
|
570
|
+
"van-address-edit/show-detail": {
|
571
|
+
"type": "boolean",
|
572
|
+
"description": "Whether to show detail field, Default: `true`"
|
573
|
+
},
|
574
|
+
"van-address-edit/disable-area": {
|
575
|
+
"type": "boolean",
|
576
|
+
"description": "Whether to disable area select, Default: `false`"
|
577
|
+
},
|
578
|
+
"van-address-edit/save-button-text": {
|
579
|
+
"type": "string",
|
580
|
+
"description": "Save button text, Default: `Save`"
|
581
|
+
},
|
582
|
+
"van-address-edit/delete-button-text": {
|
583
|
+
"type": "string",
|
584
|
+
"description": "Delete button text, Default: `Delete`"
|
585
|
+
},
|
586
|
+
"van-address-edit/detail-rows": {
|
587
|
+
"type": "number | string",
|
588
|
+
"description": "Detail input rows, Default: `1`"
|
589
|
+
},
|
590
|
+
"van-address-edit/detail-maxlength": {
|
591
|
+
"type": "number | string",
|
592
|
+
"description": "Detail maxlength, Default: `200`"
|
593
|
+
},
|
594
|
+
"van-address-edit/is-saving": {
|
595
|
+
"type": "boolean",
|
596
|
+
"description": "Whether to show save button loading status, Default: `false`"
|
597
|
+
},
|
598
|
+
"van-address-edit/is-deleting": {
|
599
|
+
"type": "boolean",
|
600
|
+
"description": "Whether to show delete button loading status, Default: `false`"
|
601
|
+
},
|
602
|
+
"van-address-edit/tel-validator": {
|
603
|
+
"type": "(tel: string) => boolean",
|
604
|
+
"description": "The method to validate tel, Default: -"
|
605
|
+
},
|
606
|
+
"van-address-edit/tel-maxlength": {
|
607
|
+
"type": "number | string",
|
608
|
+
"description": "Tel maxlength, Default: -"
|
609
|
+
},
|
610
|
+
"van-address-edit/postal-validator": {
|
611
|
+
"type": "(tel: string) => boolean",
|
612
|
+
"description": "The method to validate postal, Default: -"
|
613
|
+
},
|
614
|
+
"van-address-edit/validator": {
|
615
|
+
"type": "(key, val) => string",
|
616
|
+
"description": "Custom validator, Default: -"
|
617
|
+
},
|
618
618
|
"van-cascader/title": {
|
619
619
|
"type": "string",
|
620
620
|
"description": "Title, Default: -"
|
package/vetur/tags.json
CHANGED
@@ -56,6 +56,23 @@
|
|
56
56
|
"before-close"
|
57
57
|
]
|
58
58
|
},
|
59
|
+
"van-area": {
|
60
|
+
"attributes": [
|
61
|
+
"value",
|
62
|
+
"title",
|
63
|
+
"confirm-button-text",
|
64
|
+
"cancel-button-text",
|
65
|
+
"area-list",
|
66
|
+
"columns-placeholder",
|
67
|
+
"loading",
|
68
|
+
"readonly",
|
69
|
+
"item-height",
|
70
|
+
"columns-num",
|
71
|
+
"visible-item-count",
|
72
|
+
"swipe-duration",
|
73
|
+
"is-oversea-code"
|
74
|
+
]
|
75
|
+
},
|
59
76
|
"van-address-list": {
|
60
77
|
"attributes": [
|
61
78
|
"v-model",
|
@@ -67,32 +84,6 @@
|
|
67
84
|
"default-tag-text"
|
68
85
|
]
|
69
86
|
},
|
70
|
-
"van-address-edit": {
|
71
|
-
"attributes": [
|
72
|
-
"area-list",
|
73
|
-
"area-columns-placeholder",
|
74
|
-
"area-placeholder",
|
75
|
-
"address-info",
|
76
|
-
"search-result",
|
77
|
-
"show-postal",
|
78
|
-
"show-delete",
|
79
|
-
"show-set-default",
|
80
|
-
"show-search-result",
|
81
|
-
"show-area",
|
82
|
-
"show-detail",
|
83
|
-
"disable-area",
|
84
|
-
"save-button-text",
|
85
|
-
"delete-button-text",
|
86
|
-
"detail-rows",
|
87
|
-
"detail-maxlength",
|
88
|
-
"is-saving",
|
89
|
-
"is-deleting",
|
90
|
-
"tel-validator",
|
91
|
-
"tel-maxlength",
|
92
|
-
"postal-validator",
|
93
|
-
"validator"
|
94
|
-
]
|
95
|
-
},
|
96
87
|
"van-badge": {
|
97
88
|
"attributes": [
|
98
89
|
"content",
|
@@ -104,23 +95,6 @@
|
|
104
95
|
"position"
|
105
96
|
]
|
106
97
|
},
|
107
|
-
"van-area": {
|
108
|
-
"attributes": [
|
109
|
-
"value",
|
110
|
-
"title",
|
111
|
-
"confirm-button-text",
|
112
|
-
"cancel-button-text",
|
113
|
-
"area-list",
|
114
|
-
"columns-placeholder",
|
115
|
-
"loading",
|
116
|
-
"readonly",
|
117
|
-
"item-height",
|
118
|
-
"columns-num",
|
119
|
-
"visible-item-count",
|
120
|
-
"swipe-duration",
|
121
|
-
"is-oversea-code"
|
122
|
-
]
|
123
|
-
},
|
124
98
|
"van-button": {
|
125
99
|
"attributes": [
|
126
100
|
"type",
|
@@ -196,6 +170,32 @@
|
|
196
170
|
"lazy-load"
|
197
171
|
]
|
198
172
|
},
|
173
|
+
"van-address-edit": {
|
174
|
+
"attributes": [
|
175
|
+
"area-list",
|
176
|
+
"area-columns-placeholder",
|
177
|
+
"area-placeholder",
|
178
|
+
"address-info",
|
179
|
+
"search-result",
|
180
|
+
"show-postal",
|
181
|
+
"show-delete",
|
182
|
+
"show-set-default",
|
183
|
+
"show-search-result",
|
184
|
+
"show-area",
|
185
|
+
"show-detail",
|
186
|
+
"disable-area",
|
187
|
+
"save-button-text",
|
188
|
+
"delete-button-text",
|
189
|
+
"detail-rows",
|
190
|
+
"detail-maxlength",
|
191
|
+
"is-saving",
|
192
|
+
"is-deleting",
|
193
|
+
"tel-validator",
|
194
|
+
"tel-maxlength",
|
195
|
+
"postal-validator",
|
196
|
+
"validator"
|
197
|
+
]
|
198
|
+
},
|
199
199
|
"van-cascader": {
|
200
200
|
"attributes": [
|
201
201
|
"title",
|