vant 3.3.1 → 3.3.2

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,23 @@
1
1
  {
2
2
  "name": "vant",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
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
+ "import": "./lib/vant.es.js",
14
+ "require": "./lib/vant.cjs.js",
15
+ "types": "./lib/index.d.ts"
16
+ },
17
+ "./es/*": "./es/*",
18
+ "./lib/*": "./lib/*",
19
+ "./package.json": "./package.json"
20
+ },
9
21
  "files": [
10
22
  "es",
11
23
  "lib",
@@ -54,6 +66,7 @@
54
66
  "devDependencies": {
55
67
  "@vant/area-data": "^1.1.3",
56
68
  "@vant/cli": "workspace:*",
69
+ "@vant/eslint-config": "workspace:*",
57
70
  "@vue/compiler-sfc": "^3.2.20",
58
71
  "@vue/runtime-core": "^3.2.20",
59
72
  "@vue/test-utils": "^2.0.0-rc.16",
@@ -67,11 +80,9 @@
67
80
  "*.css",
68
81
  "*.less"
69
82
  ],
83
+ "web-types": "vetur/web-types.json",
70
84
  "vetur": {
71
85
  "tags": "vetur/tags.json",
72
86
  "attributes": "vetur/attributes.json"
73
- },
74
- "web-types": "vetur/web-types.json",
75
- "unpkg": "lib/vant.min.js",
76
- "jsdelivr": "lib/vant.min.js"
87
+ }
77
88
  }
@@ -170,6 +170,86 @@
170
170
  "type": "(key, val) => string",
171
171
  "description": "自定义校验函数, 默认值: -"
172
172
  },
173
+ "van-address-list/v-model": {
174
+ "type": "string",
175
+ "description": "当前选中地址的 id, 默认值: -"
176
+ },
177
+ "van-address-list/list": {
178
+ "type": "AddressListAddress[]",
179
+ "description": "地址列表, 默认值: `[]`"
180
+ },
181
+ "van-address-list/disabled-list": {
182
+ "type": "AddressListAddress[]",
183
+ "description": "不可配送地址列表, 默认值: `[]`"
184
+ },
185
+ "van-address-list/disabled-text": {
186
+ "type": "string",
187
+ "description": "不可配送提示文案, 默认值: -"
188
+ },
189
+ "van-address-list/switchable": {
190
+ "type": "boolean",
191
+ "description": "是否允许切换地址, 默认值: `true`"
192
+ },
193
+ "van-address-list/add-button-text": {
194
+ "type": "string",
195
+ "description": "底部按钮文字, 默认值: `新增地址`"
196
+ },
197
+ "van-address-list/default-tag-text": {
198
+ "type": "string",
199
+ "description": "默认地址标签文字, 默认值: -"
200
+ },
201
+ "van-area/value": {
202
+ "type": "string",
203
+ "description": "当前选中项对应的地区码, 默认值: -"
204
+ },
205
+ "van-area/title": {
206
+ "type": "string",
207
+ "description": "顶部栏标题, 默认值: -"
208
+ },
209
+ "van-area/confirm-button-text": {
210
+ "type": "string",
211
+ "description": "确认按钮文字, 默认值: `确认`"
212
+ },
213
+ "van-area/cancel-button-text": {
214
+ "type": "string",
215
+ "description": "取消按钮文字, 默认值: `取消`"
216
+ },
217
+ "van-area/area-list": {
218
+ "type": "object",
219
+ "description": "省市区数据,格式见下方, 默认值: -"
220
+ },
221
+ "van-area/columns-placeholder": {
222
+ "type": "string[]",
223
+ "description": "列占位提示文字, 默认值: `[]`"
224
+ },
225
+ "van-area/loading": {
226
+ "type": "boolean",
227
+ "description": "是否显示加载状态, 默认值: `false`"
228
+ },
229
+ "van-area/readonly": {
230
+ "type": "boolean",
231
+ "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
232
+ },
233
+ "van-area/item-height": {
234
+ "type": "number | string",
235
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
236
+ },
237
+ "van-area/columns-num": {
238
+ "type": "number | string",
239
+ "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
240
+ },
241
+ "van-area/visible-item-count": {
242
+ "type": "number | string",
243
+ "description": "可见的选项个数, 默认值: `6`"
244
+ },
245
+ "van-area/swipe-duration": {
246
+ "type": "number | string",
247
+ "description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
248
+ },
249
+ "van-area/is-oversea-code": {
250
+ "type": "() => boolean",
251
+ "description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
252
+ },
173
253
  "van-action-sheet/v-model:show": {
174
254
  "type": "boolean",
175
255
  "description": "是否显示动作面板, 默认值: `false`"
@@ -253,86 +333,6 @@
253
333
  "type": "(action: string) => boolean | Promise\\<boolean\\>",
254
334
  "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
255
335
  },
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
- "van-area/value": {
285
- "type": "string",
286
- "description": "当前选中项对应的地区码, 默认值: -"
287
- },
288
- "van-area/title": {
289
- "type": "string",
290
- "description": "顶部栏标题, 默认值: -"
291
- },
292
- "van-area/confirm-button-text": {
293
- "type": "string",
294
- "description": "确认按钮文字, 默认值: `确认`"
295
- },
296
- "van-area/cancel-button-text": {
297
- "type": "string",
298
- "description": "取消按钮文字, 默认值: `取消`"
299
- },
300
- "van-area/area-list": {
301
- "type": "object",
302
- "description": "省市区数据,格式见下方, 默认值: -"
303
- },
304
- "van-area/columns-placeholder": {
305
- "type": "string[]",
306
- "description": "列占位提示文字, 默认值: `[]`"
307
- },
308
- "van-area/loading": {
309
- "type": "boolean",
310
- "description": "是否显示加载状态, 默认值: `false`"
311
- },
312
- "van-area/readonly": {
313
- "type": "boolean",
314
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
315
- },
316
- "van-area/item-height": {
317
- "type": "number | string",
318
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
319
- },
320
- "van-area/columns-num": {
321
- "type": "number | string",
322
- "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
323
- },
324
- "van-area/visible-item-count": {
325
- "type": "number | string",
326
- "description": "可见的选项个数, 默认值: `6`"
327
- },
328
- "van-area/swipe-duration": {
329
- "type": "number | string",
330
- "description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
331
- },
332
- "van-area/is-oversea-code": {
333
- "type": "() => boolean",
334
- "description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
335
- },
336
336
  "van-badge/content": {
337
337
  "type": "number | string",
338
338
  "description": "徽标内容, 默认值: -"
package/vetur/tags.json CHANGED
@@ -57,30 +57,6 @@
57
57
  "validator"
58
58
  ]
59
59
  },
60
- "van-action-sheet": {
61
- "attributes": [
62
- "v-model:show",
63
- "actions",
64
- "title",
65
- "cancel-text",
66
- "description",
67
- "closeable",
68
- "close-icon",
69
- "duration",
70
- "round",
71
- "overlay",
72
- "overlay-class",
73
- "overlay-style",
74
- "lock-scroll",
75
- "lazy-render",
76
- "close-on-popstate",
77
- "close-on-click-action",
78
- "close-on-click-overlay",
79
- "safe-area-inset-bottom",
80
- "teleport",
81
- "before-close"
82
- ]
83
- },
84
60
  "van-address-list": {
85
61
  "attributes": [
86
62
  "v-model",
@@ -109,6 +85,30 @@
109
85
  "is-oversea-code"
110
86
  ]
111
87
  },
88
+ "van-action-sheet": {
89
+ "attributes": [
90
+ "v-model:show",
91
+ "actions",
92
+ "title",
93
+ "cancel-text",
94
+ "description",
95
+ "closeable",
96
+ "close-icon",
97
+ "duration",
98
+ "round",
99
+ "overlay",
100
+ "overlay-class",
101
+ "overlay-style",
102
+ "lock-scroll",
103
+ "lazy-render",
104
+ "close-on-popstate",
105
+ "close-on-click-action",
106
+ "close-on-click-overlay",
107
+ "safe-area-inset-bottom",
108
+ "teleport",
109
+ "before-close"
110
+ ]
111
+ },
112
112
  "van-badge": {
113
113
  "attributes": [
114
114
  "content",