vant 3.2.7 → 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.
Files changed (191) hide show
  1. package/es/address-edit/AddressEdit.js +154 -180
  2. package/es/address-edit/AddressEditDetail.d.ts +10 -9
  3. package/es/address-edit/AddressEditDetail.js +6 -6
  4. package/es/button/Button.js +2 -2
  5. package/es/calendar/Calendar.js +8 -14
  6. package/es/calendar/CalendarHeader.js +1 -3
  7. package/es/calendar/CalendarMonth.js +11 -10
  8. package/es/calendar/types.d.ts +1 -1
  9. package/es/cascader/Cascader.js +17 -5
  10. package/es/checkbox/Checker.js +1 -1
  11. package/es/checkbox/types.d.ts +2 -6
  12. package/es/composables/use-id.d.ts +1 -0
  13. package/es/composables/use-id.js +14 -0
  14. package/es/composables/use-route.d.ts +1 -1
  15. package/es/composables/use-route.js +4 -4
  16. package/es/count-down/CountDown.js +1 -0
  17. package/es/coupon-list/CouponList.js +40 -24
  18. package/es/coupon-list/index.css +1 -1
  19. package/es/coupon-list/index.less +0 -5
  20. package/es/dropdown-item/DropdownItem.js +7 -2
  21. package/es/dropdown-item/types.d.ts +2 -6
  22. package/es/dropdown-menu/DropdownMenu.js +7 -3
  23. package/es/dropdown-menu/types.d.ts +1 -0
  24. package/es/empty/Network.js +22 -34
  25. package/es/field/Field.d.ts +1 -1
  26. package/es/field/Field.js +13 -5
  27. package/es/field/index.d.ts +2 -2
  28. package/es/field/types.d.ts +7 -6
  29. package/es/form/Form.js +2 -2
  30. package/es/image/Image.js +4 -9
  31. package/es/image-preview/ImagePreview.js +3 -4
  32. package/es/index.d.ts +1 -1
  33. package/es/index.js +1 -1
  34. package/es/lazyload/index.d.ts +1 -1
  35. package/es/lazyload/index.js +1 -1
  36. package/es/lazyload/vue-lazyload/index.d.ts +55 -0
  37. package/es/lazyload/vue-lazyload/index.js +46 -0
  38. package/es/lazyload/vue-lazyload/lazy-component.js +53 -0
  39. package/es/lazyload/vue-lazyload/lazy-container.js +98 -0
  40. package/es/lazyload/vue-lazyload/lazy-image.js +115 -0
  41. package/es/lazyload/vue-lazyload/lazy.js +507 -0
  42. package/es/lazyload/vue-lazyload/listener.js +241 -0
  43. package/es/lazyload/vue-lazyload/util.js +183 -0
  44. package/es/list/List.js +3 -1
  45. package/es/nav-bar/NavBar.d.ts +1 -1
  46. package/es/nav-bar/index.d.ts +1 -1
  47. package/es/number-keyboard/NumberKeyboardKey.js +4 -4
  48. package/es/pagination/Pagination.js +67 -49
  49. package/es/pagination/index.css +1 -1
  50. package/es/pagination/index.less +32 -31
  51. package/es/password-input/PasswordInput.d.ts +21 -1
  52. package/es/password-input/PasswordInput.js +10 -9
  53. package/es/password-input/index.d.ts +2 -1
  54. package/es/popover/Popover.js +2 -0
  55. package/es/popup/Popup.d.ts +1 -2
  56. package/es/popup/Popup.js +2 -5
  57. package/es/popup/index.d.ts +1 -2
  58. package/es/progress/Progress.js +2 -2
  59. package/es/rate/Rate.js +5 -3
  60. package/es/search/Search.js +8 -2
  61. package/es/sidebar/Sidebar.js +1 -0
  62. package/es/sidebar-item/SidebarItem.js +4 -1
  63. package/es/slider/Slider.js +5 -3
  64. package/es/stepper/Stepper.js +11 -8
  65. package/es/submit-bar/SubmitBar.d.ts +4 -3
  66. package/es/submit-bar/index.d.ts +3 -2
  67. package/es/swipe/Swipe.js +11 -6
  68. package/es/swipe/types.d.ts +1 -3
  69. package/es/switch/Switch.js +1 -0
  70. package/es/switch/index.css +1 -1
  71. package/es/switch/index.less +2 -0
  72. package/es/tab/Tab.js +18 -5
  73. package/es/tab/index.css +1 -1
  74. package/es/tab/index.less +1 -1
  75. package/es/tabbar/Tabbar.d.ts +1 -1
  76. package/es/tabbar/Tabbar.js +10 -10
  77. package/es/tabbar-item/TabbarItem.js +16 -7
  78. package/es/tabs/Tabs.js +17 -11
  79. package/es/tabs/TabsTitle.d.ts +6 -0
  80. package/es/tabs/TabsTitle.js +7 -1
  81. package/es/tabs/types.d.ts +1 -0
  82. package/es/uploader/UploaderPreviewItem.js +4 -1
  83. package/es/uploader/utils.d.ts +2 -2
  84. package/es/uploader/utils.js +2 -2
  85. package/es/utils/dom.d.ts +1 -0
  86. package/es/utils/dom.js +6 -2
  87. package/es/utils/format.js +6 -5
  88. package/es/vue-tsx-shim.d.ts +1 -0
  89. package/lib/address-edit/AddressEdit.js +155 -180
  90. package/lib/address-edit/AddressEditDetail.d.ts +10 -9
  91. package/lib/address-edit/AddressEditDetail.js +6 -6
  92. package/lib/button/Button.js +1 -1
  93. package/lib/calendar/Calendar.js +8 -14
  94. package/lib/calendar/CalendarHeader.js +1 -3
  95. package/lib/calendar/CalendarMonth.js +11 -10
  96. package/lib/calendar/types.d.ts +1 -1
  97. package/lib/cascader/Cascader.js +17 -5
  98. package/lib/checkbox/Checker.js +1 -1
  99. package/lib/checkbox/types.d.ts +2 -6
  100. package/lib/composables/use-id.d.ts +1 -0
  101. package/lib/composables/use-id.js +21 -0
  102. package/lib/composables/use-route.d.ts +1 -1
  103. package/lib/composables/use-route.js +4 -4
  104. package/lib/count-down/CountDown.js +1 -0
  105. package/lib/coupon-list/CouponList.js +39 -22
  106. package/lib/coupon-list/index.css +1 -1
  107. package/lib/coupon-list/index.less +0 -5
  108. package/lib/dropdown-item/DropdownItem.js +7 -2
  109. package/lib/dropdown-item/types.d.ts +2 -6
  110. package/lib/dropdown-menu/DropdownMenu.js +7 -2
  111. package/lib/dropdown-menu/types.d.ts +1 -0
  112. package/lib/empty/Network.js +22 -34
  113. package/lib/field/Field.d.ts +1 -1
  114. package/lib/field/Field.js +14 -5
  115. package/lib/field/index.d.ts +2 -2
  116. package/lib/field/types.d.ts +7 -6
  117. package/lib/form/Form.js +1 -1
  118. package/lib/image/Image.js +4 -9
  119. package/lib/image-preview/ImagePreview.js +1 -2
  120. package/lib/index.css +1 -1
  121. package/lib/index.d.ts +1 -1
  122. package/lib/index.js +1 -1
  123. package/lib/lazyload/index.d.ts +1 -1
  124. package/lib/lazyload/index.js +3 -3
  125. package/lib/lazyload/vue-lazyload/index.d.ts +55 -0
  126. package/lib/lazyload/vue-lazyload/index.js +58 -0
  127. package/lib/lazyload/vue-lazyload/lazy-component.js +62 -0
  128. package/lib/lazyload/vue-lazyload/lazy-container.js +106 -0
  129. package/lib/lazyload/vue-lazyload/lazy-image.js +125 -0
  130. package/lib/lazyload/vue-lazyload/lazy.js +520 -0
  131. package/lib/lazyload/vue-lazyload/listener.js +251 -0
  132. package/lib/lazyload/vue-lazyload/util.js +213 -0
  133. package/lib/list/List.js +3 -1
  134. package/lib/nav-bar/NavBar.d.ts +1 -1
  135. package/lib/nav-bar/index.d.ts +1 -1
  136. package/lib/number-keyboard/NumberKeyboardKey.js +3 -3
  137. package/lib/pagination/Pagination.js +65 -47
  138. package/lib/pagination/index.css +1 -1
  139. package/lib/pagination/index.less +32 -31
  140. package/lib/password-input/PasswordInput.d.ts +21 -1
  141. package/lib/password-input/PasswordInput.js +10 -9
  142. package/lib/password-input/index.d.ts +2 -1
  143. package/lib/popover/Popover.js +2 -0
  144. package/lib/popup/Popup.d.ts +1 -2
  145. package/lib/popup/Popup.js +2 -5
  146. package/lib/popup/index.d.ts +1 -2
  147. package/lib/progress/Progress.js +2 -2
  148. package/lib/rate/Rate.js +5 -3
  149. package/lib/search/Search.js +9 -2
  150. package/lib/sidebar/Sidebar.js +1 -0
  151. package/lib/sidebar-item/SidebarItem.js +4 -1
  152. package/lib/slider/Slider.js +5 -3
  153. package/lib/stepper/Stepper.js +11 -8
  154. package/lib/submit-bar/SubmitBar.d.ts +4 -3
  155. package/lib/submit-bar/index.d.ts +3 -2
  156. package/lib/swipe/Swipe.js +9 -4
  157. package/lib/swipe/types.d.ts +1 -3
  158. package/lib/switch/Switch.js +1 -0
  159. package/lib/switch/index.css +1 -1
  160. package/lib/switch/index.less +2 -0
  161. package/lib/tab/Tab.js +20 -5
  162. package/lib/tab/index.css +1 -1
  163. package/lib/tab/index.less +1 -1
  164. package/lib/tabbar/Tabbar.d.ts +1 -1
  165. package/lib/tabbar/Tabbar.js +10 -10
  166. package/lib/tabbar-item/TabbarItem.js +16 -7
  167. package/lib/tabs/Tabs.js +16 -9
  168. package/lib/tabs/TabsTitle.d.ts +6 -0
  169. package/lib/tabs/TabsTitle.js +7 -1
  170. package/lib/tabs/types.d.ts +1 -0
  171. package/lib/uploader/UploaderPreviewItem.js +3 -0
  172. package/lib/uploader/utils.d.ts +2 -2
  173. package/lib/uploader/utils.js +3 -2
  174. package/lib/utils/dom.d.ts +1 -0
  175. package/lib/utils/dom.js +9 -2
  176. package/lib/utils/format.js +7 -5
  177. package/lib/vant.cjs.js +14407 -0
  178. package/lib/vant.cjs.min.js +1 -0
  179. package/lib/vant.es.js +1217 -2203
  180. package/lib/vant.es.min.js +1217 -2203
  181. package/lib/vant.js +1349 -1254
  182. package/lib/vant.min.js +1 -1
  183. package/lib/vue-tsx-shim.d.ts +1 -0
  184. package/package.json +27 -13
  185. package/vetur/attributes.json +115 -115
  186. package/vetur/tags.json +35 -35
  187. package/vetur/web-types.json +370 -366
  188. package/es/composables/use-link-field.d.ts +0 -0
  189. package/es/composables/use-link-field.js +0 -0
  190. package/lib/composables/use-link-field.d.ts +0 -0
  191. package/lib/composables/use-link-field.js +0 -1
@@ -4,6 +4,7 @@ type EventHandler = (...args: any[]) => void;
4
4
 
5
5
  declare module 'vue' {
6
6
  interface ComponentCustomProps {
7
+ id?: string;
7
8
  role?: string;
8
9
  tabindex?: number;
9
10
  onClick?: EventHandler;
package/package.json CHANGED
@@ -1,11 +1,23 @@
1
1
  {
2
2
  "name": "vant",
3
- "version": "3.2.7",
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",
@@ -21,7 +33,7 @@
21
33
  "build": "vant-cli build",
22
34
  "build:site": "vant-cli build-site",
23
35
  "release": "vant-cli release --tag next",
24
- "release:site": "yarn build:site && gh-pages -d site-dist --add --dest v3",
36
+ "release:site": "pnpm build:site && gh-pages -d site-dist --add --dest v3",
25
37
  "test:watch": "vant-cli test --watch",
26
38
  "test:coverage": "open test/coverage/index.html"
27
39
  },
@@ -45,18 +57,22 @@
45
57
  "license": "MIT",
46
58
  "dependencies": {
47
59
  "@vant/icons": "^1.7.1",
48
- "@vant/lazyload": "^1.4.0",
49
60
  "@vant/popperjs": "^1.1.0",
50
- "@vant/use": "^1.3.2"
61
+ "@vant/use": "^1.3.4"
51
62
  },
52
63
  "peerDependencies": {
53
64
  "vue": "^3.0.0"
54
65
  },
55
66
  "devDependencies": {
56
67
  "@vant/area-data": "^1.1.3",
57
- "@vant/cli": "^4.0.0-beta.5",
58
- "@vue/compiler-sfc": "^3.2.19",
59
- "vue": "^3.2.20"
68
+ "@vant/cli": "workspace:*",
69
+ "@vant/eslint-config": "workspace:*",
70
+ "@vue/compiler-sfc": "^3.2.20",
71
+ "@vue/runtime-core": "^3.2.20",
72
+ "@vue/test-utils": "^2.0.0-rc.16",
73
+ "typescript": "4.x",
74
+ "vue": "^3.2.20",
75
+ "vue-router": "^4.0.12"
60
76
  },
61
77
  "sideEffects": [
62
78
  "es/**/style/*",
@@ -64,11 +80,9 @@
64
80
  "*.css",
65
81
  "*.less"
66
82
  ],
83
+ "web-types": "vetur/web-types.json",
67
84
  "vetur": {
68
85
  "tags": "vetur/tags.json",
69
86
  "attributes": "vetur/attributes.json"
70
- },
71
- "web-types": "vetur/web-types.json",
72
- "unpkg": "lib/vant.min.js",
73
- "jsdelivr": "lib/vant.min.js"
87
+ }
74
88
  }
@@ -82,117 +82,6 @@
82
82
  "type": "boolean",
83
83
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
84
84
  },
85
- "van-action-sheet/v-model:show": {
86
- "type": "boolean",
87
- "description": "是否显示动作面板, 默认值: `false`"
88
- },
89
- "van-action-sheet/actions": {
90
- "type": "ActionSheetAction[]",
91
- "description": "面板选项列表, 默认值: `[]`"
92
- },
93
- "van-action-sheet/title": {
94
- "type": "string",
95
- "description": "顶部标题, 默认值: -"
96
- },
97
- "van-action-sheet/cancel-text": {
98
- "type": "string",
99
- "description": "取消按钮文字, 默认值: -"
100
- },
101
- "van-action-sheet/description": {
102
- "type": "string",
103
- "description": "选项上方的描述信息, 默认值: -"
104
- },
105
- "van-action-sheet/closeable": {
106
- "type": "boolean",
107
- "description": "是否显示关闭图标, 默认值: `true`"
108
- },
109
- "van-action-sheet/close-icon": {
110
- "type": "string",
111
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
112
- },
113
- "van-action-sheet/duration": {
114
- "type": "number | string",
115
- "description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
116
- },
117
- "van-action-sheet/round": {
118
- "type": "boolean",
119
- "description": "是否显示圆角, 默认值: `true`"
120
- },
121
- "van-action-sheet/overlay": {
122
- "type": "boolean",
123
- "description": "是否显示遮罩层, 默认值: `true`"
124
- },
125
- "van-action-sheet/overlay-class": {
126
- "type": "string | Array \\",
127
- "description": "自定义遮罩层类名, 默认值: object_",
128
- "options": [
129
- "-"
130
- ]
131
- },
132
- "van-action-sheet/overlay-style": {
133
- "type": "object",
134
- "description": "自定义遮罩层样式, 默认值: -"
135
- },
136
- "van-action-sheet/lock-scroll": {
137
- "type": "boolean",
138
- "description": "是否锁定背景滚动, 默认值: `true`"
139
- },
140
- "van-action-sheet/lazy-render": {
141
- "type": "boolean",
142
- "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
143
- },
144
- "van-action-sheet/close-on-popstate": {
145
- "type": "boolean",
146
- "description": "是否在页面回退时自动关闭, 默认值: `true`"
147
- },
148
- "van-action-sheet/close-on-click-action": {
149
- "type": "boolean",
150
- "description": "是否在点击选项后关闭, 默认值: `false`"
151
- },
152
- "van-action-sheet/close-on-click-overlay": {
153
- "type": "boolean",
154
- "description": "是否在点击遮罩层后关闭, 默认值: `true`"
155
- },
156
- "van-action-sheet/safe-area-inset-bottom": {
157
- "type": "boolean",
158
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
159
- },
160
- "van-action-sheet/teleport": {
161
- "type": "string | Element",
162
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
163
- },
164
- "van-action-sheet/before-close": {
165
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
166
- "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
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
85
  "van-address-edit/area-list": {
197
86
  "type": "object",
198
87
  "description": "地区列表, 默认值: -"
@@ -281,6 +170,34 @@
281
170
  "type": "(key, val) => string",
282
171
  "description": "自定义校验函数, 默认值: -"
283
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
+ },
284
201
  "van-area/value": {
285
202
  "type": "string",
286
203
  "description": "当前选中项对应的地区码, 默认值: -"
@@ -333,6 +250,89 @@
333
250
  "type": "() => boolean",
334
251
  "description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
335
252
  },
253
+ "van-action-sheet/v-model:show": {
254
+ "type": "boolean",
255
+ "description": "是否显示动作面板, 默认值: `false`"
256
+ },
257
+ "van-action-sheet/actions": {
258
+ "type": "ActionSheetAction[]",
259
+ "description": "面板选项列表, 默认值: `[]`"
260
+ },
261
+ "van-action-sheet/title": {
262
+ "type": "string",
263
+ "description": "顶部标题, 默认值: -"
264
+ },
265
+ "van-action-sheet/cancel-text": {
266
+ "type": "string",
267
+ "description": "取消按钮文字, 默认值: -"
268
+ },
269
+ "van-action-sheet/description": {
270
+ "type": "string",
271
+ "description": "选项上方的描述信息, 默认值: -"
272
+ },
273
+ "van-action-sheet/closeable": {
274
+ "type": "boolean",
275
+ "description": "是否显示关闭图标, 默认值: `true`"
276
+ },
277
+ "van-action-sheet/close-icon": {
278
+ "type": "string",
279
+ "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
280
+ },
281
+ "van-action-sheet/duration": {
282
+ "type": "number | string",
283
+ "description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
284
+ },
285
+ "van-action-sheet/round": {
286
+ "type": "boolean",
287
+ "description": "是否显示圆角, 默认值: `true`"
288
+ },
289
+ "van-action-sheet/overlay": {
290
+ "type": "boolean",
291
+ "description": "是否显示遮罩层, 默认值: `true`"
292
+ },
293
+ "van-action-sheet/overlay-class": {
294
+ "type": "string | Array \\",
295
+ "description": "自定义遮罩层类名, 默认值: object_",
296
+ "options": [
297
+ "-"
298
+ ]
299
+ },
300
+ "van-action-sheet/overlay-style": {
301
+ "type": "object",
302
+ "description": "自定义遮罩层样式, 默认值: -"
303
+ },
304
+ "van-action-sheet/lock-scroll": {
305
+ "type": "boolean",
306
+ "description": "是否锁定背景滚动, 默认值: `true`"
307
+ },
308
+ "van-action-sheet/lazy-render": {
309
+ "type": "boolean",
310
+ "description": "是否在显示弹层时才渲染节点, 默认值: `true`"
311
+ },
312
+ "van-action-sheet/close-on-popstate": {
313
+ "type": "boolean",
314
+ "description": "是否在页面回退时自动关闭, 默认值: `true`"
315
+ },
316
+ "van-action-sheet/close-on-click-action": {
317
+ "type": "boolean",
318
+ "description": "是否在点击选项后关闭, 默认值: `false`"
319
+ },
320
+ "van-action-sheet/close-on-click-overlay": {
321
+ "type": "boolean",
322
+ "description": "是否在点击遮罩层后关闭, 默认值: `true`"
323
+ },
324
+ "van-action-sheet/safe-area-inset-bottom": {
325
+ "type": "boolean",
326
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
327
+ },
328
+ "van-action-sheet/teleport": {
329
+ "type": "string | Element",
330
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
331
+ },
332
+ "van-action-sheet/before-close": {
333
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
334
+ "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
335
+ },
336
336
  "van-badge/content": {
337
337
  "type": "number | string",
338
338
  "description": "徽标内容, 默认值: -"
@@ -1403,7 +1403,7 @@
1403
1403
  },
1404
1404
  "van-field/id": {
1405
1405
  "type": "string",
1406
- "description": "输入框 id,同时会设置 label 的 for 属性, 默认值: -"
1406
+ "description": "输入框 id,同时会设置 label 的 for 属性, 默认值: `van-field-n-input`"
1407
1407
  },
1408
1408
  "van-field/type": {
1409
1409
  "type": "string",
@@ -1957,11 +1957,11 @@
1957
1957
  },
1958
1958
  "van-notice-bar/color": {
1959
1959
  "type": "string",
1960
- "description": "通知文本颜色, 默认值: `#f60`"
1960
+ "description": "通知文本颜色, 默认值: `#ed6a0c`"
1961
1961
  },
1962
1962
  "van-notice-bar/background": {
1963
1963
  "type": "string",
1964
- "description": "滚动条背景, 默认值: `#fff7cc`"
1964
+ "description": "滚动条背景, 默认值: `#fffbe8`"
1965
1965
  },
1966
1966
  "van-notice-bar/left-icon": {
1967
1967
  "type": "string",
@@ -2539,7 +2539,7 @@
2539
2539
  },
2540
2540
  "van-search/id": {
2541
2541
  "type": "string",
2542
- "description": "搜索框 id,同时会设置 label 的 for 属性, 默认值: -"
2542
+ "description": "搜索框 id,同时会设置 label 的 for 属性, 默认值: `van-search-n-input`"
2543
2543
  },
2544
2544
  "van-search/background": {
2545
2545
  "type": "string",
package/vetur/tags.json CHANGED
@@ -31,41 +31,6 @@
31
31
  "replace"
32
32
  ]
33
33
  },
34
- "van-action-sheet": {
35
- "attributes": [
36
- "v-model:show",
37
- "actions",
38
- "title",
39
- "cancel-text",
40
- "description",
41
- "closeable",
42
- "close-icon",
43
- "duration",
44
- "round",
45
- "overlay",
46
- "overlay-class",
47
- "overlay-style",
48
- "lock-scroll",
49
- "lazy-render",
50
- "close-on-popstate",
51
- "close-on-click-action",
52
- "close-on-click-overlay",
53
- "safe-area-inset-bottom",
54
- "teleport",
55
- "before-close"
56
- ]
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
34
  "van-address-edit": {
70
35
  "attributes": [
71
36
  "area-list",
@@ -92,6 +57,17 @@
92
57
  "validator"
93
58
  ]
94
59
  },
60
+ "van-address-list": {
61
+ "attributes": [
62
+ "v-model",
63
+ "list",
64
+ "disabled-list",
65
+ "disabled-text",
66
+ "switchable",
67
+ "add-button-text",
68
+ "default-tag-text"
69
+ ]
70
+ },
95
71
  "van-area": {
96
72
  "attributes": [
97
73
  "value",
@@ -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",