vant 3.4.3 → 3.4.6

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 (380) hide show
  1. package/changelog.generated.md +92 -0
  2. package/es/area/Area.js +3 -1
  3. package/es/calendar/Calendar.d.ts +4 -0
  4. package/es/calendar/Calendar.js +2 -0
  5. package/es/calendar/index.d.ts +3 -0
  6. package/es/collapse-item/CollapseItem.d.ts +13 -0
  7. package/es/collapse-item/CollapseItem.js +3 -2
  8. package/es/collapse-item/index.d.ts +9 -0
  9. package/es/dialog/Dialog.d.ts +2 -1
  10. package/es/dialog/Dialog.js +19 -3
  11. package/es/dialog/function-call.d.ts +2 -1
  12. package/es/field/utils.js +2 -1
  13. package/es/index-bar/IndexBar.d.ts +4 -4
  14. package/es/index-bar/IndexBar.js +3 -1
  15. package/es/index-bar/index.d.ts +3 -3
  16. package/es/index.d.ts +1 -1
  17. package/es/index.js +1 -1
  18. package/es/locale/lang/bn-BD.d.ts +64 -0
  19. package/es/locale/lang/bn-BD.js +74 -0
  20. package/es/locale/lang/de-DE-formal.js +1 -1
  21. package/es/locale/lang/de-DE.js +1 -1
  22. package/es/locale/lang/en-US.js +1 -1
  23. package/es/locale/lang/es-ES.js +1 -1
  24. package/es/locale/lang/fr-FR.js +1 -1
  25. package/es/locale/lang/hi-IN.js +1 -1
  26. package/es/locale/lang/id-ID.d.ts +64 -0
  27. package/es/locale/lang/id-ID.js +66 -0
  28. package/es/locale/lang/it-IT.d.ts +64 -0
  29. package/es/locale/lang/it-IT.js +74 -0
  30. package/es/locale/lang/ja-JP.js +1 -1
  31. package/es/locale/lang/ko-KR.js +1 -1
  32. package/es/locale/lang/nb-NO.js +1 -1
  33. package/es/locale/lang/pt-BR.js +1 -1
  34. package/es/locale/lang/ro-RO.js +1 -1
  35. package/es/locale/lang/ru-RU.js +1 -1
  36. package/es/locale/lang/th-TH.js +1 -1
  37. package/es/locale/lang/uk-UA.d.ts +64 -0
  38. package/es/locale/lang/uk-UA.js +74 -0
  39. package/es/locale/lang/vi-VN.d.ts +64 -0
  40. package/es/locale/lang/vi-VN.js +74 -0
  41. package/es/locale/lang/zh-CN.js +1 -1
  42. package/es/locale/lang/zh-HK.js +1 -1
  43. package/es/locale/lang/zh-TW.js +1 -1
  44. package/es/nav-bar/NavBar.d.ts +1 -1
  45. package/es/nav-bar/NavBar.js +3 -3
  46. package/es/nav-bar/index.d.ts +1 -1
  47. package/es/popup/Popup.d.ts +6 -1
  48. package/es/popup/Popup.js +14 -3
  49. package/es/popup/index.d.ts +5 -1
  50. package/es/popup/types.d.ts +5 -2
  51. package/es/skeleton/Skeleton.js +6 -4
  52. package/es/style/base.css +1 -1
  53. package/es/style/base.less +5 -0
  54. package/es/submit-bar/index.css +1 -1
  55. package/es/submit-bar/index.less +1 -0
  56. package/es/swipe-cell/SwipeCell.js +1 -1
  57. package/es/toast/Toast.d.ts +3 -0
  58. package/es/toast/Toast.js +3 -1
  59. package/es/uploader/types.d.ts +1 -3
  60. package/es/utils/interceptor.d.ts +1 -1
  61. package/lib/action-bar/ActionBar.js +14 -13
  62. package/lib/action-bar/index.js +14 -8
  63. package/lib/action-bar-button/ActionBarButton.js +18 -17
  64. package/lib/action-bar-button/index.js +14 -8
  65. package/lib/action-bar-icon/ActionBarIcon.js +18 -17
  66. package/lib/action-bar-icon/index.js +14 -8
  67. package/lib/action-sheet/ActionSheet.js +17 -16
  68. package/lib/action-sheet/index.js +14 -8
  69. package/lib/address-edit/AddressEdit.js +25 -19
  70. package/lib/address-edit/AddressEditDetail.js +15 -14
  71. package/lib/address-edit/index.js +14 -8
  72. package/lib/address-edit/types.js +18 -1
  73. package/lib/address-list/AddressList.js +18 -12
  74. package/lib/address-list/AddressListItem.js +17 -16
  75. package/lib/address-list/index.js +14 -8
  76. package/lib/area/Area.js +20 -17
  77. package/lib/area/index.js +14 -8
  78. package/lib/area/types.js +18 -1
  79. package/lib/badge/Badge.js +13 -12
  80. package/lib/badge/index.js +14 -8
  81. package/lib/button/Button.js +16 -15
  82. package/lib/button/index.js +14 -8
  83. package/lib/button/types.js +18 -1
  84. package/lib/calendar/Calendar.d.ts +4 -0
  85. package/lib/calendar/Calendar.js +26 -18
  86. package/lib/calendar/CalendarDay.js +14 -13
  87. package/lib/calendar/CalendarHeader.js +14 -13
  88. package/lib/calendar/CalendarMonth.js +21 -15
  89. package/lib/calendar/index.d.ts +3 -0
  90. package/lib/calendar/index.js +14 -8
  91. package/lib/calendar/types.js +18 -1
  92. package/lib/calendar/utils.js +11 -10
  93. package/lib/card/Card.js +15 -14
  94. package/lib/card/index.js +14 -8
  95. package/lib/cascader/Cascader.js +16 -15
  96. package/lib/cascader/index.js +14 -8
  97. package/lib/cascader/types.js +18 -1
  98. package/lib/cell/Cell.js +15 -14
  99. package/lib/cell/index.js +14 -8
  100. package/lib/cell-group/CellGroup.js +13 -12
  101. package/lib/cell-group/index.js +14 -8
  102. package/lib/checkbox/Checkbox.js +19 -13
  103. package/lib/checkbox/Checker.js +14 -13
  104. package/lib/checkbox/index.js +14 -8
  105. package/lib/checkbox/types.js +18 -1
  106. package/lib/checkbox-group/CheckboxGroup.js +15 -14
  107. package/lib/checkbox-group/index.js +14 -8
  108. package/lib/checkbox-group/types.js +18 -1
  109. package/lib/circle/Circle.js +14 -13
  110. package/lib/circle/index.js +14 -8
  111. package/lib/col/Col.js +15 -14
  112. package/lib/col/index.js +14 -8
  113. package/lib/collapse/Collapse.js +14 -13
  114. package/lib/collapse/index.js +14 -8
  115. package/lib/collapse-item/CollapseItem.d.ts +13 -0
  116. package/lib/collapse-item/CollapseItem.js +22 -20
  117. package/lib/collapse-item/index.d.ts +9 -0
  118. package/lib/collapse-item/index.js +14 -8
  119. package/lib/collapse-item/types.js +18 -1
  120. package/lib/composables/on-popup-reopen.js +11 -10
  121. package/lib/composables/use-expose.js +12 -11
  122. package/lib/composables/use-height.js +12 -11
  123. package/lib/composables/use-id.js +11 -10
  124. package/lib/composables/use-lazy-render.js +11 -10
  125. package/lib/composables/use-lock-scroll.js +14 -13
  126. package/lib/composables/use-placeholder.js +12 -11
  127. package/lib/composables/use-refs.js +11 -10
  128. package/lib/composables/use-route.js +11 -10
  129. package/lib/composables/use-tab-status.js +11 -10
  130. package/lib/composables/use-touch.js +11 -10
  131. package/lib/composables/use-visibility-change.js +13 -12
  132. package/lib/config-provider/ConfigProvider.js +13 -12
  133. package/lib/config-provider/index.js +14 -8
  134. package/lib/contact-card/ContactCard.js +14 -13
  135. package/lib/contact-card/index.js +14 -8
  136. package/lib/contact-edit/ContactEdit.js +18 -17
  137. package/lib/contact-edit/index.js +14 -8
  138. package/lib/contact-list/ContactList.js +19 -18
  139. package/lib/contact-list/index.js +14 -8
  140. package/lib/count-down/CountDown.js +16 -15
  141. package/lib/count-down/index.js +14 -8
  142. package/lib/count-down/types.js +18 -1
  143. package/lib/count-down/utils.js +11 -10
  144. package/lib/coupon/Coupon.js +15 -14
  145. package/lib/coupon/index.js +14 -8
  146. package/lib/coupon/utils.js +11 -10
  147. package/lib/coupon-cell/CouponCell.js +14 -13
  148. package/lib/coupon-cell/index.js +14 -8
  149. package/lib/coupon-list/CouponList.js +20 -19
  150. package/lib/coupon-list/index.js +14 -8
  151. package/lib/datetime-picker/DatePicker.js +16 -15
  152. package/lib/datetime-picker/DatetimePicker.js +18 -12
  153. package/lib/datetime-picker/TimePicker.js +16 -15
  154. package/lib/datetime-picker/index.js +14 -8
  155. package/lib/datetime-picker/types.js +18 -1
  156. package/lib/datetime-picker/utils.js +12 -11
  157. package/lib/dialog/Dialog.d.ts +2 -1
  158. package/lib/dialog/Dialog.js +35 -18
  159. package/lib/dialog/function-call.d.ts +2 -1
  160. package/lib/dialog/function-call.js +16 -10
  161. package/lib/dialog/index.js +11 -10
  162. package/lib/dialog/types.js +18 -1
  163. package/lib/divider/Divider.js +13 -12
  164. package/lib/divider/index.js +14 -8
  165. package/lib/dropdown-item/DropdownItem.js +19 -18
  166. package/lib/dropdown-item/index.js +14 -8
  167. package/lib/dropdown-item/types.js +18 -1
  168. package/lib/dropdown-menu/DropdownMenu.js +15 -14
  169. package/lib/dropdown-menu/index.js +14 -8
  170. package/lib/dropdown-menu/types.js +18 -1
  171. package/lib/empty/Empty.js +14 -13
  172. package/lib/empty/Network.js +11 -10
  173. package/lib/empty/index.js +14 -8
  174. package/lib/field/Field.js +20 -19
  175. package/lib/field/index.js +14 -8
  176. package/lib/field/types.js +18 -1
  177. package/lib/field/utils.js +13 -11
  178. package/lib/form/Form.js +15 -14
  179. package/lib/form/index.js +14 -8
  180. package/lib/form/types.js +18 -1
  181. package/lib/grid/Grid.js +15 -14
  182. package/lib/grid/index.js +14 -8
  183. package/lib/grid-item/GridItem.js +18 -17
  184. package/lib/grid-item/index.js +14 -8
  185. package/lib/icon/Icon.js +15 -14
  186. package/lib/icon/index.js +14 -8
  187. package/lib/image/Image.js +14 -13
  188. package/lib/image/index.js +14 -8
  189. package/lib/image-preview/ImagePreview.js +21 -15
  190. package/lib/image-preview/ImagePreviewItem.js +17 -16
  191. package/lib/image-preview/function-call.js +16 -10
  192. package/lib/image-preview/index.js +11 -10
  193. package/lib/image-preview/types.js +18 -1
  194. package/lib/index-anchor/IndexAnchor.js +17 -16
  195. package/lib/index-anchor/index.js +14 -8
  196. package/lib/index-bar/IndexBar.d.ts +4 -4
  197. package/lib/index-bar/IndexBar.js +19 -16
  198. package/lib/index-bar/index.d.ts +3 -3
  199. package/lib/index-bar/index.js +14 -8
  200. package/lib/index-bar/types.js +18 -1
  201. package/lib/index.css +1 -1
  202. package/lib/index.d.ts +1 -1
  203. package/lib/index.js +182 -181
  204. package/lib/lazyload/index.js +11 -10
  205. package/lib/lazyload/vue-lazyload/index.js +16 -10
  206. package/lib/lazyload/vue-lazyload/lazy-component.js +12 -11
  207. package/lib/lazyload/vue-lazyload/lazy-container.js +11 -10
  208. package/lib/lazyload/vue-lazyload/lazy-image.js +13 -12
  209. package/lib/lazyload/vue-lazyload/lazy.js +17 -11
  210. package/lib/lazyload/vue-lazyload/listener.js +13 -12
  211. package/lib/lazyload/vue-lazyload/util.js +11 -10
  212. package/lib/list/List.js +17 -16
  213. package/lib/list/index.js +14 -8
  214. package/lib/list/types.js +18 -1
  215. package/lib/loading/Loading.js +13 -12
  216. package/lib/loading/index.js +14 -8
  217. package/lib/locale/index.js +15 -9
  218. package/lib/locale/lang/bn-BD.d.ts +64 -0
  219. package/lib/locale/lang/bn-BD.js +98 -0
  220. package/lib/locale/lang/de-DE-formal.js +20 -3
  221. package/lib/locale/lang/de-DE.js +20 -3
  222. package/lib/locale/lang/en-US.js +20 -3
  223. package/lib/locale/lang/es-ES.js +20 -3
  224. package/lib/locale/lang/fr-FR.js +20 -3
  225. package/lib/locale/lang/hi-IN.js +20 -3
  226. package/lib/locale/lang/id-ID.d.ts +64 -0
  227. package/lib/locale/lang/id-ID.js +90 -0
  228. package/lib/locale/lang/it-IT.d.ts +64 -0
  229. package/lib/locale/lang/it-IT.js +98 -0
  230. package/lib/locale/lang/ja-JP.js +20 -3
  231. package/lib/locale/lang/ko-KR.js +20 -3
  232. package/lib/locale/lang/nb-NO.js +20 -3
  233. package/lib/locale/lang/pt-BR.js +20 -3
  234. package/lib/locale/lang/ro-RO.js +20 -3
  235. package/lib/locale/lang/ru-RU.js +20 -3
  236. package/lib/locale/lang/th-TH.js +20 -3
  237. package/lib/locale/lang/tr-TR.js +19 -2
  238. package/lib/locale/lang/uk-UA.d.ts +64 -0
  239. package/lib/locale/lang/uk-UA.js +98 -0
  240. package/lib/locale/lang/vi-VN.d.ts +64 -0
  241. package/lib/locale/lang/vi-VN.js +98 -0
  242. package/lib/locale/lang/zh-CN.js +20 -3
  243. package/lib/locale/lang/zh-HK.js +20 -3
  244. package/lib/locale/lang/zh-TW.js +20 -3
  245. package/lib/nav-bar/NavBar.d.ts +1 -1
  246. package/lib/nav-bar/NavBar.js +18 -17
  247. package/lib/nav-bar/index.d.ts +1 -1
  248. package/lib/nav-bar/index.js +14 -8
  249. package/lib/notice-bar/NoticeBar.js +17 -16
  250. package/lib/notice-bar/index.js +14 -8
  251. package/lib/notice-bar/types.js +18 -1
  252. package/lib/notify/Notify.js +15 -14
  253. package/lib/notify/function-call.js +16 -10
  254. package/lib/notify/index.js +11 -10
  255. package/lib/notify/types.js +18 -1
  256. package/lib/number-keyboard/NumberKeyboard.js +17 -11
  257. package/lib/number-keyboard/NumberKeyboardKey.js +15 -14
  258. package/lib/number-keyboard/index.js +14 -8
  259. package/lib/overlay/Overlay.js +14 -13
  260. package/lib/overlay/index.js +14 -8
  261. package/lib/pagination/Pagination.js +13 -12
  262. package/lib/pagination/index.js +14 -8
  263. package/lib/password-input/PasswordInput.js +13 -12
  264. package/lib/password-input/index.js +14 -8
  265. package/lib/picker/Picker.js +19 -13
  266. package/lib/picker/PickerColumn.js +17 -16
  267. package/lib/picker/index.js +14 -8
  268. package/lib/picker/types.js +18 -1
  269. package/lib/popover/Popover.js +17 -16
  270. package/lib/popover/index.js +14 -8
  271. package/lib/popover/types.js +18 -1
  272. package/lib/popup/Popup.d.ts +6 -1
  273. package/lib/popup/Popup.js +34 -22
  274. package/lib/popup/index.d.ts +5 -1
  275. package/lib/popup/index.js +14 -8
  276. package/lib/popup/shared.js +11 -10
  277. package/lib/popup/types.d.ts +5 -2
  278. package/lib/popup/types.js +18 -1
  279. package/lib/progress/Progress.js +13 -12
  280. package/lib/progress/index.js +14 -8
  281. package/lib/progress/types.js +18 -1
  282. package/lib/pull-refresh/PullRefresh.js +16 -15
  283. package/lib/pull-refresh/index.js +14 -8
  284. package/lib/radio/Radio.js +18 -12
  285. package/lib/radio/index.js +14 -8
  286. package/lib/radio-group/RadioGroup.js +14 -13
  287. package/lib/radio-group/index.js +14 -8
  288. package/lib/rate/Rate.js +17 -16
  289. package/lib/rate/index.js +14 -8
  290. package/lib/row/Row.js +14 -13
  291. package/lib/row/index.js +14 -8
  292. package/lib/search/Search.js +17 -16
  293. package/lib/search/index.js +14 -8
  294. package/lib/search/types.js +18 -1
  295. package/lib/share-sheet/ShareSheet.js +15 -14
  296. package/lib/share-sheet/index.js +14 -8
  297. package/lib/sidebar/Sidebar.js +14 -13
  298. package/lib/sidebar/index.js +14 -8
  299. package/lib/sidebar-item/SidebarItem.js +17 -16
  300. package/lib/sidebar-item/index.js +14 -8
  301. package/lib/skeleton/Skeleton.js +18 -15
  302. package/lib/skeleton/index.js +14 -8
  303. package/lib/slider/Slider.js +15 -14
  304. package/lib/slider/index.js +14 -8
  305. package/lib/step/Step.js +16 -15
  306. package/lib/step/index.js +14 -8
  307. package/lib/stepper/Stepper.js +14 -13
  308. package/lib/stepper/index.js +14 -8
  309. package/lib/steps/Steps.js +14 -13
  310. package/lib/steps/index.js +14 -8
  311. package/lib/sticky/Sticky.js +15 -14
  312. package/lib/sticky/index.js +14 -8
  313. package/lib/style/base.css +1 -1
  314. package/lib/style/base.less +5 -0
  315. package/lib/submit-bar/SubmitBar.js +15 -14
  316. package/lib/submit-bar/index.css +1 -1
  317. package/lib/submit-bar/index.js +14 -8
  318. package/lib/submit-bar/index.less +1 -0
  319. package/lib/swipe/Swipe.js +17 -16
  320. package/lib/swipe/index.js +14 -8
  321. package/lib/swipe/types.js +18 -1
  322. package/lib/swipe-cell/SwipeCell.js +17 -16
  323. package/lib/swipe-cell/index.js +14 -8
  324. package/lib/swipe-cell/types.js +18 -1
  325. package/lib/swipe-item/SwipeItem.js +16 -15
  326. package/lib/swipe-item/index.js +14 -8
  327. package/lib/switch/Switch.js +15 -14
  328. package/lib/switch/index.js +14 -8
  329. package/lib/tab/Tab.js +20 -19
  330. package/lib/tab/index.js +14 -8
  331. package/lib/tabbar/Tabbar.js +15 -14
  332. package/lib/tabbar/index.js +14 -8
  333. package/lib/tabbar-item/TabbarItem.js +18 -17
  334. package/lib/tabbar-item/index.js +14 -8
  335. package/lib/tabs/Tabs.js +25 -19
  336. package/lib/tabs/TabsContent.js +14 -13
  337. package/lib/tabs/TabsTitle.js +14 -13
  338. package/lib/tabs/index.js +14 -8
  339. package/lib/tabs/types.js +18 -1
  340. package/lib/tabs/utils.js +12 -11
  341. package/lib/tag/Tag.js +14 -13
  342. package/lib/tag/index.js +14 -8
  343. package/lib/toast/Toast.d.ts +3 -0
  344. package/lib/toast/Toast.js +20 -17
  345. package/lib/toast/function-call.js +17 -11
  346. package/lib/toast/index.js +11 -10
  347. package/lib/toast/lock-click.js +19 -2
  348. package/lib/toast/types.js +18 -1
  349. package/lib/tree-select/TreeSelect.js +16 -15
  350. package/lib/tree-select/index.js +14 -8
  351. package/lib/uploader/Uploader.js +21 -15
  352. package/lib/uploader/UploaderPreviewItem.js +17 -16
  353. package/lib/uploader/index.js +14 -8
  354. package/lib/uploader/types.d.ts +1 -3
  355. package/lib/uploader/types.js +18 -1
  356. package/lib/uploader/utils.js +11 -10
  357. package/lib/utils/basic.js +19 -2
  358. package/lib/utils/constant.js +19 -2
  359. package/lib/utils/create.js +16 -10
  360. package/lib/utils/deep-assign.js +11 -10
  361. package/lib/utils/deep-clone.js +11 -10
  362. package/lib/utils/dom.js +13 -12
  363. package/lib/utils/format.js +13 -12
  364. package/lib/utils/index.js +18 -17
  365. package/lib/utils/interceptor.d.ts +1 -1
  366. package/lib/utils/interceptor.js +12 -11
  367. package/lib/utils/mount-component.js +13 -12
  368. package/lib/utils/props.js +19 -2
  369. package/lib/utils/validate.js +11 -10
  370. package/lib/utils/with-install.js +11 -10
  371. package/lib/vant.cjs.js +57 -18
  372. package/lib/vant.cjs.min.js +1 -1
  373. package/lib/vant.es.js +58 -19
  374. package/lib/vant.es.min.js +58 -19
  375. package/lib/vant.js +60 -21
  376. package/lib/vant.min.js +1 -1
  377. package/package.json +4 -7
  378. package/vetur/attributes.json +180 -168
  379. package/vetur/tags.json +57 -54
  380. package/vetur/web-types.json +611 -581
@@ -2,65 +2,77 @@
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.4.3",
5
+ "version": "3.4.6",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
9
9
  {
10
- "name": "van-action-bar",
11
- "slots": [],
12
- "events": [],
13
- "attributes": [
14
- {
15
- "name": "safe-area-inset-bottom",
16
- "default": "`true`",
17
- "description": "Whether to enable bottom safe area adaptation",
18
- "options": [],
19
- "value": {
20
- "type": "boolean",
21
- "kind": "expression"
22
- }
23
- }
24
- ]
25
- },
26
- {
27
- "name": "van-action-bar-icon",
10
+ "name": "van-address-edit",
28
11
  "slots": [
29
12
  {
30
13
  "name": "default",
31
- "description": "Text"
14
+ "description": "Custom content below postal"
15
+ }
16
+ ],
17
+ "events": [
18
+ {
19
+ "name": "save",
20
+ "description": "Emitted when the save button is clicked"
32
21
  },
33
22
  {
34
- "name": "icon",
35
- "description": "Custom icon"
23
+ "name": "focus",
24
+ "description": "Emitted when field is focused"
25
+ },
26
+ {
27
+ "name": "delete",
28
+ "description": "Emitted when confirming delete"
29
+ },
30
+ {
31
+ "name": "select-search",
32
+ "description": "Emitted when a search result is selected"
33
+ },
34
+ {
35
+ "name": "click-area",
36
+ "description": "Emitted when the area field is clicked"
37
+ },
38
+ {
39
+ "name": "change-area",
40
+ "description": "Emitted when area changed"
41
+ },
42
+ {
43
+ "name": "change-detail",
44
+ "description": "Emitted when address detail changed"
45
+ },
46
+ {
47
+ "name": "change-default",
48
+ "description": "Emitted when switching default address"
36
49
  }
37
50
  ],
38
- "events": [],
39
51
  "attributes": [
40
52
  {
41
- "name": "text",
53
+ "name": "area-list",
42
54
  "default": "-",
43
- "description": "Button text",
55
+ "description": "Area List",
44
56
  "options": [],
45
57
  "value": {
46
- "type": "string",
58
+ "type": "object",
47
59
  "kind": "expression"
48
60
  }
49
61
  },
50
62
  {
51
- "name": "icon",
52
- "default": "-",
53
- "description": "Icon",
63
+ "name": "area-columns-placeholder",
64
+ "default": "`[]`",
65
+ "description": "placeholder of area columns",
54
66
  "options": [],
55
67
  "value": {
56
- "type": "string",
68
+ "type": "string[]",
57
69
  "kind": "expression"
58
70
  }
59
71
  },
60
72
  {
61
- "name": "color",
62
- "default": "`#323233`",
63
- "description": "Icon color",
73
+ "name": "area-placeholder",
74
+ "default": "`Area`",
75
+ "description": "placeholder of area input field",
64
76
  "options": [],
65
77
  "value": {
66
78
  "type": "string",
@@ -68,31 +80,29 @@
68
80
  }
69
81
  },
70
82
  {
71
- "name": "icon-class",
72
- "default": "object_",
73
- "description": "Icon class name",
74
- "options": [
75
- "''"
76
- ],
83
+ "name": "address-info",
84
+ "default": "`{}`",
85
+ "description": "Address Info",
86
+ "options": [],
77
87
  "value": {
78
- "type": "string | Array \\",
88
+ "type": "AddressEditInfo",
79
89
  "kind": "expression"
80
90
  }
81
91
  },
82
92
  {
83
- "name": "icon-prefix",
84
- "default": "`van-icon`",
85
- "description": "Icon className prefix",
93
+ "name": "search-result",
94
+ "default": "`[]`",
95
+ "description": "Address search result",
86
96
  "options": [],
87
97
  "value": {
88
- "type": "string",
98
+ "type": "AddressEditSearchItem[]",
89
99
  "kind": "expression"
90
100
  }
91
101
  },
92
102
  {
93
- "name": "dot",
94
- "default": "-",
95
- "description": "Whether to show red dot",
103
+ "name": "show-postal",
104
+ "default": "`false`",
105
+ "description": "Whether to show postal field",
96
106
  "options": [],
97
107
  "value": {
98
108
  "type": "boolean",
@@ -100,71 +110,69 @@
100
110
  }
101
111
  },
102
112
  {
103
- "name": "badge",
104
- "default": "-",
105
- "description": "Content of the badge",
113
+ "name": "show-delete",
114
+ "default": "`false`",
115
+ "description": "Whether to show delete button",
106
116
  "options": [],
107
117
  "value": {
108
- "type": "number | string",
118
+ "type": "boolean",
109
119
  "kind": "expression"
110
120
  }
111
121
  },
112
122
  {
113
- "name": "badge-props",
114
- "default": "-",
115
- "description": "Props of Badge,see [Badge - props](#/en-US/badge#props)",
123
+ "name": "show-set-default",
124
+ "default": "`false`",
125
+ "description": "Whether to show default address switch",
116
126
  "options": [],
117
127
  "value": {
118
- "type": "BadgeProps",
128
+ "type": "boolean",
119
129
  "kind": "expression"
120
130
  }
121
131
  },
122
132
  {
123
- "name": "url",
124
- "default": "-",
125
- "description": "Link URL",
133
+ "name": "show-search-result",
134
+ "default": "`false`",
135
+ "description": "Whether to show address search result",
126
136
  "options": [],
127
137
  "value": {
128
- "type": "string",
138
+ "type": "boolean",
129
139
  "kind": "expression"
130
140
  }
131
141
  },
132
142
  {
133
- "name": "to",
134
- "default": "-",
135
- "description": "Target route of the link, same as to of vue-router",
143
+ "name": "show-area",
144
+ "default": "`true`",
145
+ "description": "Whether to show area cell",
136
146
  "options": [],
137
147
  "value": {
138
- "type": "string | object",
148
+ "type": "boolean",
139
149
  "kind": "expression"
140
150
  }
141
151
  },
142
152
  {
143
- "name": "replace",
144
- "default": "`false`",
145
- "description": "If true, the navigation will not leave a history record",
153
+ "name": "show-detail",
154
+ "default": "`true`",
155
+ "description": "Whether to show detail field",
146
156
  "options": [],
147
157
  "value": {
148
158
  "type": "boolean",
149
159
  "kind": "expression"
150
160
  }
151
- }
152
- ]
153
- },
154
- {
155
- "name": "van-action-bar-button",
156
- "slots": [
161
+ },
157
162
  {
158
- "name": "default",
159
- "description": "Button content"
160
- }
161
- ],
162
- "events": [],
163
- "attributes": [
163
+ "name": "disable-area",
164
+ "default": "`false`",
165
+ "description": "Whether to disable area select",
166
+ "options": [],
167
+ "value": {
168
+ "type": "boolean",
169
+ "kind": "expression"
170
+ }
171
+ },
164
172
  {
165
- "name": "text",
166
- "default": "-",
167
- "description": "Button text",
173
+ "name": "save-button-text",
174
+ "default": "`Save`",
175
+ "description": "Save button text",
168
176
  "options": [],
169
177
  "value": {
170
178
  "type": "string",
@@ -172,9 +180,9 @@
172
180
  }
173
181
  },
174
182
  {
175
- "name": "type",
176
- "default": "`default`",
177
- "description": "Button type, Can be set to `primary` `info` `warning` `danger`",
183
+ "name": "delete-button-text",
184
+ "default": "`Delete`",
185
+ "description": "Delete button text",
178
186
  "options": [],
179
187
  "value": {
180
188
  "type": "string",
@@ -182,29 +190,29 @@
182
190
  }
183
191
  },
184
192
  {
185
- "name": "color",
186
- "default": "-",
187
- "description": "Button color, support linear-gradient",
193
+ "name": "detail-rows",
194
+ "default": "`1`",
195
+ "description": "Detail input rows",
188
196
  "options": [],
189
197
  "value": {
190
- "type": "string",
198
+ "type": "number | string",
191
199
  "kind": "expression"
192
200
  }
193
201
  },
194
202
  {
195
- "name": "icon",
196
- "default": "-",
197
- "description": "Left Icon",
203
+ "name": "detail-maxlength",
204
+ "default": "`200`",
205
+ "description": "Detail maxlength",
198
206
  "options": [],
199
207
  "value": {
200
- "type": "string",
208
+ "type": "number | string",
201
209
  "kind": "expression"
202
210
  }
203
211
  },
204
212
  {
205
- "name": "disabled",
213
+ "name": "is-saving",
206
214
  "default": "`false`",
207
- "description": "Whether to disable button",
215
+ "description": "Whether to show save button loading status",
208
216
  "options": [],
209
217
  "value": {
210
218
  "type": "boolean",
@@ -212,9 +220,9 @@
212
220
  }
213
221
  },
214
222
  {
215
- "name": "loading",
223
+ "name": "is-deleting",
216
224
  "default": "`false`",
217
- "description": "Whether to show loading status",
225
+ "description": "Whether to show delete button loading status",
218
226
  "options": [],
219
227
  "value": {
220
228
  "type": "boolean",
@@ -222,29 +230,56 @@
222
230
  }
223
231
  },
224
232
  {
225
- "name": "url",
233
+ "name": "tel-validator",
226
234
  "default": "-",
227
- "description": "Link",
235
+ "description": "The method to validate tel",
228
236
  "options": [],
229
237
  "value": {
230
- "type": "string",
238
+ "type": "(tel: string) => boolean",
231
239
  "kind": "expression"
232
240
  }
233
241
  },
234
242
  {
235
- "name": "to",
243
+ "name": "tel-maxlength",
236
244
  "default": "-",
237
- "description": "Target route of the link, same as to of vue-router",
245
+ "description": "Tel maxlength",
238
246
  "options": [],
239
247
  "value": {
240
- "type": "string | object",
248
+ "type": "number | string",
241
249
  "kind": "expression"
242
250
  }
243
251
  },
244
252
  {
245
- "name": "replace",
246
- "default": "`false`",
247
- "description": "If true, the navigation will not leave a history record",
253
+ "name": "postal-validator",
254
+ "default": "-",
255
+ "description": "The method to validate postal",
256
+ "options": [],
257
+ "value": {
258
+ "type": "(tel: string) => boolean",
259
+ "kind": "expression"
260
+ }
261
+ },
262
+ {
263
+ "name": "validator",
264
+ "default": "-",
265
+ "description": "Custom validator",
266
+ "options": [],
267
+ "value": {
268
+ "type": "(key, val) => string",
269
+ "kind": "expression"
270
+ }
271
+ }
272
+ ]
273
+ },
274
+ {
275
+ "name": "van-action-bar",
276
+ "slots": [],
277
+ "events": [],
278
+ "attributes": [
279
+ {
280
+ "name": "safe-area-inset-bottom",
281
+ "default": "`true`",
282
+ "description": "Whether to enable bottom safe area adaptation",
248
283
  "options": [],
249
284
  "value": {
250
285
  "type": "boolean",
@@ -254,80 +289,43 @@
254
289
  ]
255
290
  },
256
291
  {
257
- "name": "van-action-sheet",
292
+ "name": "van-action-bar-icon",
258
293
  "slots": [
259
294
  {
260
295
  "name": "default",
261
- "description": "Custom content"
296
+ "description": "Text"
262
297
  },
263
298
  {
264
- "name": "description",
265
- "description": "Custom description above the options"
266
- },
299
+ "name": "icon",
300
+ "description": "Custom icon"
301
+ }
302
+ ],
303
+ "events": [],
304
+ "attributes": [
267
305
  {
268
- "name": "cancel",
269
- "description": "Custom the content of cancel button"
270
- },
271
- {
272
- "name": "action",
273
- "description": "Custom the content of action"
274
- }
275
- ],
276
- "events": [
277
- {
278
- "name": "select",
279
- "description": "Emitted when an option is clicked"
280
- },
281
- {
282
- "name": "cancel",
283
- "description": "Emitted when the cancel button is clicked"
284
- },
285
- {
286
- "name": "open",
287
- "description": "Emitted when opening ActionSheet"
288
- },
289
- {
290
- "name": "close",
291
- "description": "Emitted when closing ActionSheet"
292
- },
293
- {
294
- "name": "opened",
295
- "description": "Emitted when ActionSheet is opened"
296
- },
297
- {
298
- "name": "closed",
299
- "description": "Emitted when ActionSheet is closed"
300
- },
301
- {
302
- "name": "click-overlay",
303
- "description": "Emitted when overlay is clicked"
304
- }
305
- ],
306
- "attributes": [
307
- {
308
- "name": "v-model:show",
309
- "default": "`false`",
310
- "description": "Whether to show ActionSheet",
306
+ "name": "text",
307
+ "default": "-",
308
+ "description": "Button text",
311
309
  "options": [],
312
310
  "value": {
313
- "type": "boolean",
311
+ "type": "string",
314
312
  "kind": "expression"
315
313
  }
316
314
  },
317
315
  {
318
- "name": "actions",
319
- "default": "`[]`",
320
- "description": "Options",
316
+ "name": "icon",
317
+ "default": "-",
318
+ "description": "Icon",
321
319
  "options": [],
322
320
  "value": {
323
- "type": "ActionSheetAction[]",
321
+ "type": "string",
324
322
  "kind": "expression"
325
323
  }
326
324
  },
327
325
  {
328
- "name": "title",
329
- "default": "-",
330
- "description": "Title",
326
+ "name": "color",
327
+ "default": "`#323233`",
328
+ "description": "Icon color",
331
329
  "options": [],
332
330
  "value": {
333
331
  "type": "string",
@@ -335,19 +333,21 @@
335
333
  }
336
334
  },
337
335
  {
338
- "name": "cancel-text",
339
- "default": "-",
340
- "description": "Text of cancel button",
341
- "options": [],
336
+ "name": "icon-class",
337
+ "default": "object_",
338
+ "description": "Icon class name",
339
+ "options": [
340
+ "''"
341
+ ],
342
342
  "value": {
343
- "type": "string",
343
+ "type": "string | Array \\",
344
344
  "kind": "expression"
345
345
  }
346
346
  },
347
347
  {
348
- "name": "description",
349
- "default": "-",
350
- "description": "Description above the options",
348
+ "name": "icon-prefix",
349
+ "default": "`van-icon`",
350
+ "description": "Icon className prefix",
351
351
  "options": [],
352
352
  "value": {
353
353
  "type": "string",
@@ -355,9 +355,9 @@
355
355
  }
356
356
  },
357
357
  {
358
- "name": "closeable",
359
- "default": "`true`",
360
- "description": "Whether to show close icon",
358
+ "name": "dot",
359
+ "default": "-",
360
+ "description": "Whether to show red dot",
361
361
  "options": [],
362
362
  "value": {
363
363
  "type": "boolean",
@@ -365,101 +365,111 @@
365
365
  }
366
366
  },
367
367
  {
368
- "name": "close-icon",
369
- "default": "`cross`",
370
- "description": "Close icon name",
368
+ "name": "badge",
369
+ "default": "-",
370
+ "description": "Content of the badge",
371
371
  "options": [],
372
372
  "value": {
373
- "type": "string",
373
+ "type": "number | string",
374
374
  "kind": "expression"
375
375
  }
376
376
  },
377
377
  {
378
- "name": "duration",
379
- "default": "`0.3`",
380
- "description": "Transition duration, unit second",
378
+ "name": "badge-props",
379
+ "default": "-",
380
+ "description": "Props of Badge,see [Badge - props](#/en-US/badge#props)",
381
381
  "options": [],
382
382
  "value": {
383
- "type": "number | string",
383
+ "type": "BadgeProps",
384
384
  "kind": "expression"
385
385
  }
386
386
  },
387
387
  {
388
- "name": "round",
389
- "default": "`true`",
390
- "description": "Whether to show round corner",
388
+ "name": "url",
389
+ "default": "-",
390
+ "description": "Link URL",
391
391
  "options": [],
392
392
  "value": {
393
- "type": "boolean",
393
+ "type": "string",
394
394
  "kind": "expression"
395
395
  }
396
396
  },
397
397
  {
398
- "name": "overlay",
399
- "default": "`true`",
400
- "description": "Whether to show overlay",
398
+ "name": "to",
399
+ "default": "-",
400
+ "description": "Target route of the link, same as to of vue-router",
401
401
  "options": [],
402
402
  "value": {
403
- "type": "boolean",
403
+ "type": "string | object",
404
404
  "kind": "expression"
405
405
  }
406
406
  },
407
407
  {
408
- "name": "overlay-class",
409
- "default": "object_",
410
- "description": "Custom overlay class",
411
- "options": [
412
- "-"
413
- ],
408
+ "name": "replace",
409
+ "default": "`false`",
410
+ "description": "If true, the navigation will not leave a history record",
411
+ "options": [],
414
412
  "value": {
415
- "type": "string | Array \\",
413
+ "type": "boolean",
416
414
  "kind": "expression"
417
415
  }
418
- },
416
+ }
417
+ ]
418
+ },
419
+ {
420
+ "name": "van-action-bar-button",
421
+ "slots": [
419
422
  {
420
- "name": "overlay-style",
423
+ "name": "default",
424
+ "description": "Button content"
425
+ }
426
+ ],
427
+ "events": [],
428
+ "attributes": [
429
+ {
430
+ "name": "text",
421
431
  "default": "-",
422
- "description": "Custom overlay style",
432
+ "description": "Button text",
423
433
  "options": [],
424
434
  "value": {
425
- "type": "object",
435
+ "type": "string",
426
436
  "kind": "expression"
427
437
  }
428
438
  },
429
439
  {
430
- "name": "lock-scroll",
431
- "default": "`true`",
432
- "description": "Whether to lock background scroll",
440
+ "name": "type",
441
+ "default": "`default`",
442
+ "description": "Button type, Can be set to `primary` `info` `warning` `danger`",
433
443
  "options": [],
434
444
  "value": {
435
- "type": "boolean",
445
+ "type": "string",
436
446
  "kind": "expression"
437
447
  }
438
448
  },
439
449
  {
440
- "name": "lazy-render",
441
- "default": "`true`",
442
- "description": "Whether to lazy render util appeared",
450
+ "name": "color",
451
+ "default": "-",
452
+ "description": "Button color, support linear-gradient",
443
453
  "options": [],
444
454
  "value": {
445
- "type": "boolean",
455
+ "type": "string",
446
456
  "kind": "expression"
447
457
  }
448
458
  },
449
459
  {
450
- "name": "close-on-popstate",
451
- "default": "`true`",
452
- "description": "Whether to close when popstate",
460
+ "name": "icon",
461
+ "default": "-",
462
+ "description": "Left Icon",
453
463
  "options": [],
454
464
  "value": {
455
- "type": "boolean",
465
+ "type": "string",
456
466
  "kind": "expression"
457
467
  }
458
468
  },
459
469
  {
460
- "name": "close-on-click-action",
470
+ "name": "disabled",
461
471
  "default": "`false`",
462
- "description": "Whether to close when an action is clicked",
472
+ "description": "Whether to disable button",
463
473
  "options": [],
464
474
  "value": {
465
475
  "type": "boolean",
@@ -467,9 +477,9 @@
467
477
  }
468
478
  },
469
479
  {
470
- "name": "close-on-click-overlay",
471
- "default": "`true`",
472
- "description": "Whether to close when overlay is clicked",
480
+ "name": "loading",
481
+ "default": "`false`",
482
+ "description": "Whether to show loading status",
473
483
  "options": [],
474
484
  "value": {
475
485
  "type": "boolean",
@@ -477,88 +487,84 @@
477
487
  }
478
488
  },
479
489
  {
480
- "name": "safe-area-inset-bottom",
481
- "default": "`true`",
482
- "description": "Whether to enable bottom safe area adaptation",
490
+ "name": "url",
491
+ "default": "-",
492
+ "description": "Link",
483
493
  "options": [],
484
494
  "value": {
485
- "type": "boolean",
495
+ "type": "string",
486
496
  "kind": "expression"
487
497
  }
488
498
  },
489
499
  {
490
- "name": "teleport",
500
+ "name": "to",
491
501
  "default": "-",
492
- "description": "Specifies a target element where ActionSheet will be mounted",
502
+ "description": "Target route of the link, same as to of vue-router",
493
503
  "options": [],
494
504
  "value": {
495
- "type": "string | Element",
505
+ "type": "string | object",
496
506
  "kind": "expression"
497
507
  }
498
508
  },
499
509
  {
500
- "name": "before-close",
501
- "default": "-",
502
- "description": "Callback function before close",
510
+ "name": "replace",
511
+ "default": "`false`",
512
+ "description": "If true, the navigation will not leave a history record",
503
513
  "options": [],
504
514
  "value": {
505
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
515
+ "type": "boolean",
506
516
  "kind": "expression"
507
517
  }
508
518
  }
509
519
  ]
510
520
  },
511
521
  {
512
- "name": "van-address-list",
522
+ "name": "van-area",
513
523
  "slots": [
514
524
  {
515
- "name": "default",
516
- "description": "Custom content after list"
525
+ "name": "toolbar",
526
+ "description": "Custom toolbar content"
517
527
  },
518
528
  {
519
- "name": "top",
520
- "description": "Custom content before list"
529
+ "name": "title",
530
+ "description": "Custom title"
521
531
  },
522
532
  {
523
- "name": "item-bottom",
524
- "description": "Custom content after list item"
533
+ "name": "confirm",
534
+ "description": "Custom confirm button text"
525
535
  },
526
536
  {
527
- "name": "tag",
528
- "description": "Custom tag of list item"
529
- }
530
- ],
531
- "events": [
532
- {
533
- "name": "add",
534
- "description": "Emitted when the add button is clicked"
537
+ "name": "cancel",
538
+ "description": "Custom cancel button text"
535
539
  },
536
540
  {
537
- "name": "edit",
538
- "description": "Emitted when the edit icon of address is clicked"
541
+ "name": "columns-top",
542
+ "description": "Custom content above columns"
539
543
  },
540
544
  {
541
- "name": "select",
542
- "description": "Emitted when an address is selected"
543
- },
545
+ "name": "columns-bottom",
546
+ "description": "Custom content below columns"
547
+ }
548
+ ],
549
+ "events": [
544
550
  {
545
- "name": "edit-disabled",
546
- "description": "Emitted when the edit icon of disabled address is clicked"
551
+ "name": "confirm",
552
+ "description": "Emitted when the confirm button is clicked"
547
553
  },
548
554
  {
549
- "name": "select-disabled",
550
- "description": "Emitted when a disabled address is selected"
555
+ "name": "cancel",
556
+ "description": "Emitted when the cancel button is clicked"
551
557
  },
552
558
  {
553
- "name": "click-item",
554
- "description": "Emitted when an address item is clicked"
559
+ "name": "change",
560
+ "description": "Emitted when current option changed"
555
561
  }
556
562
  ],
557
563
  "attributes": [
558
564
  {
559
- "name": "v-model",
565
+ "name": "value",
560
566
  "default": "-",
561
- "description": "Id of chosen address",
567
+ "description": "the `code` of selected area",
562
568
  "options": [],
563
569
  "value": {
564
570
  "type": "string",
@@ -566,29 +572,9 @@
566
572
  }
567
573
  },
568
574
  {
569
- "name": "list",
570
- "default": "`[]`",
571
- "description": "Address list",
572
- "options": [],
573
- "value": {
574
- "type": "Address[]",
575
- "kind": "expression"
576
- }
577
- },
578
- {
579
- "name": "disabled-list",
580
- "default": "`[]`",
581
- "description": "Disabled address list",
582
- "options": [],
583
- "value": {
584
- "type": "Address[]",
585
- "kind": "expression"
586
- }
587
- },
588
- {
589
- "name": "disabled-text",
575
+ "name": "title",
590
576
  "default": "-",
591
- "description": "Disabled text",
577
+ "description": "Toolbar title",
592
578
  "options": [],
593
579
  "value": {
594
580
  "type": "string",
@@ -596,19 +582,9 @@
596
582
  }
597
583
  },
598
584
  {
599
- "name": "switchable",
600
- "default": "`true`",
601
- "description": "Whether to allow switch address",
602
- "options": [],
603
- "value": {
604
- "type": "boolean",
605
- "kind": "expression"
606
- }
607
- },
608
- {
609
- "name": "add-button-text",
610
- "default": "`Add new address`",
611
- "description": "Add button text",
585
+ "name": "confirm-button-text",
586
+ "default": "`Confirm`",
587
+ "description": "Text of confirm button",
612
588
  "options": [],
613
589
  "value": {
614
590
  "type": "string",
@@ -616,64 +592,19 @@
616
592
  }
617
593
  },
618
594
  {
619
- "name": "default-tag-text",
620
- "default": "-",
621
- "description": "Default tag text",
595
+ "name": "cancel-button-text",
596
+ "default": "`Cancel`",
597
+ "description": "Text of cancel button",
622
598
  "options": [],
623
599
  "value": {
624
600
  "type": "string",
625
601
  "kind": "expression"
626
602
  }
627
- }
628
- ]
629
- },
630
- {
631
- "name": "van-address-edit",
632
- "slots": [
633
- {
634
- "name": "default",
635
- "description": "Custom content below postal"
636
- }
637
- ],
638
- "events": [
639
- {
640
- "name": "save",
641
- "description": "Emitted when the save button is clicked"
642
- },
643
- {
644
- "name": "focus",
645
- "description": "Emitted when field is focused"
646
603
  },
647
- {
648
- "name": "delete",
649
- "description": "Emitted when confirming delete"
650
- },
651
- {
652
- "name": "select-search",
653
- "description": "Emitted when a search result is selected"
654
- },
655
- {
656
- "name": "click-area",
657
- "description": "Emitted when the area field is clicked"
658
- },
659
- {
660
- "name": "change-area",
661
- "description": "Emitted when area changed"
662
- },
663
- {
664
- "name": "change-detail",
665
- "description": "Emitted when address detail changed"
666
- },
667
- {
668
- "name": "change-default",
669
- "description": "Emitted when switching default address"
670
- }
671
- ],
672
- "attributes": [
673
604
  {
674
605
  "name": "area-list",
675
606
  "default": "-",
676
- "description": "Area List",
607
+ "description": "Area list data",
677
608
  "options": [],
678
609
  "value": {
679
610
  "type": "object",
@@ -681,9 +612,9 @@
681
612
  }
682
613
  },
683
614
  {
684
- "name": "area-columns-placeholder",
615
+ "name": "columns-placeholder",
685
616
  "default": "`[]`",
686
- "description": "placeholder of area columns",
617
+ "description": "Placeholder of columns",
687
618
  "options": [],
688
619
  "value": {
689
620
  "type": "string[]",
@@ -691,149 +622,132 @@
691
622
  }
692
623
  },
693
624
  {
694
- "name": "area-placeholder",
695
- "default": "`Area`",
696
- "description": "placeholder of area input field",
625
+ "name": "loading",
626
+ "default": "`false`",
627
+ "description": "Whether to show loading prompt",
697
628
  "options": [],
698
629
  "value": {
699
- "type": "string",
630
+ "type": "boolean",
700
631
  "kind": "expression"
701
632
  }
702
633
  },
703
634
  {
704
- "name": "address-info",
705
- "default": "`{}`",
706
- "description": "Address Info",
635
+ "name": "readonly",
636
+ "default": "`false`",
637
+ "description": "Whether to be readonly",
707
638
  "options": [],
708
639
  "value": {
709
- "type": "AddressEditInfo",
640
+ "type": "boolean",
710
641
  "kind": "expression"
711
642
  }
712
643
  },
713
644
  {
714
- "name": "search-result",
715
- "default": "`[]`",
716
- "description": "Address search result",
645
+ "name": "item-height",
646
+ "default": "`44`",
647
+ "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
717
648
  "options": [],
718
649
  "value": {
719
- "type": "AddressEditSearchItem[]",
650
+ "type": "number | string",
720
651
  "kind": "expression"
721
652
  }
722
653
  },
723
654
  {
724
- "name": "show-postal",
725
- "default": "`false`",
726
- "description": "Whether to show postal field",
655
+ "name": "columns-num",
656
+ "default": "`3`",
657
+ "description": "Level of picker",
727
658
  "options": [],
728
659
  "value": {
729
- "type": "boolean",
660
+ "type": "number | string",
730
661
  "kind": "expression"
731
662
  }
732
663
  },
733
664
  {
734
- "name": "show-delete",
735
- "default": "`false`",
736
- "description": "Whether to show delete button",
665
+ "name": "visible-item-count",
666
+ "default": "`6`",
667
+ "description": "Count of visible columns",
737
668
  "options": [],
738
669
  "value": {
739
- "type": "boolean",
670
+ "type": "number | string",
740
671
  "kind": "expression"
741
672
  }
742
673
  },
743
674
  {
744
- "name": "show-set-default",
745
- "default": "`false`",
746
- "description": "Whether to show default address switch",
675
+ "name": "swipe-duration",
676
+ "default": "`1000`",
677
+ "description": "Duration of the momentum animation,unit `ms`",
747
678
  "options": [],
748
679
  "value": {
749
- "type": "boolean",
680
+ "type": "number | string",
750
681
  "kind": "expression"
751
682
  }
752
683
  },
753
684
  {
754
- "name": "show-search-result",
755
- "default": "`false`",
756
- "description": "Whether to show address search result",
685
+ "name": "is-oversea-code",
686
+ "default": "-",
687
+ "description": "The method to validate oversea code",
757
688
  "options": [],
758
689
  "value": {
759
- "type": "boolean",
690
+ "type": "() => boolean",
760
691
  "kind": "expression"
761
692
  }
693
+ }
694
+ ]
695
+ },
696
+ {
697
+ "name": "van-action-sheet",
698
+ "slots": [
699
+ {
700
+ "name": "default",
701
+ "description": "Custom content"
762
702
  },
763
703
  {
764
- "name": "show-area",
765
- "default": "`true`",
766
- "description": "Whether to show area cell",
767
- "options": [],
768
- "value": {
769
- "type": "boolean",
770
- "kind": "expression"
771
- }
704
+ "name": "description",
705
+ "description": "Custom description above the options"
772
706
  },
773
707
  {
774
- "name": "show-detail",
775
- "default": "`true`",
776
- "description": "Whether to show detail field",
777
- "options": [],
778
- "value": {
779
- "type": "boolean",
780
- "kind": "expression"
781
- }
708
+ "name": "cancel",
709
+ "description": "Custom the content of cancel button"
782
710
  },
783
711
  {
784
- "name": "disable-area",
785
- "default": "`false`",
786
- "description": "Whether to disable area select",
787
- "options": [],
788
- "value": {
789
- "type": "boolean",
790
- "kind": "expression"
791
- }
712
+ "name": "action",
713
+ "description": "Custom the content of action"
714
+ }
715
+ ],
716
+ "events": [
717
+ {
718
+ "name": "select",
719
+ "description": "Emitted when an option is clicked"
792
720
  },
793
721
  {
794
- "name": "save-button-text",
795
- "default": "`Save`",
796
- "description": "Save button text",
797
- "options": [],
798
- "value": {
799
- "type": "string",
800
- "kind": "expression"
801
- }
722
+ "name": "cancel",
723
+ "description": "Emitted when the cancel button is clicked"
802
724
  },
803
725
  {
804
- "name": "delete-button-text",
805
- "default": "`Delete`",
806
- "description": "Delete button text",
807
- "options": [],
808
- "value": {
809
- "type": "string",
810
- "kind": "expression"
811
- }
726
+ "name": "open",
727
+ "description": "Emitted when opening ActionSheet"
812
728
  },
813
729
  {
814
- "name": "detail-rows",
815
- "default": "`1`",
816
- "description": "Detail input rows",
817
- "options": [],
818
- "value": {
819
- "type": "number | string",
820
- "kind": "expression"
821
- }
730
+ "name": "close",
731
+ "description": "Emitted when closing ActionSheet"
822
732
  },
823
733
  {
824
- "name": "detail-maxlength",
825
- "default": "`200`",
826
- "description": "Detail maxlength",
827
- "options": [],
828
- "value": {
829
- "type": "number | string",
830
- "kind": "expression"
831
- }
734
+ "name": "opened",
735
+ "description": "Emitted when ActionSheet is opened"
832
736
  },
833
737
  {
834
- "name": "is-saving",
738
+ "name": "closed",
739
+ "description": "Emitted when ActionSheet is closed"
740
+ },
741
+ {
742
+ "name": "click-overlay",
743
+ "description": "Emitted when overlay is clicked"
744
+ }
745
+ ],
746
+ "attributes": [
747
+ {
748
+ "name": "v-model:show",
835
749
  "default": "`false`",
836
- "description": "Whether to show save button loading status",
750
+ "description": "Whether to show ActionSheet",
837
751
  "options": [],
838
752
  "value": {
839
753
  "type": "boolean",
@@ -841,95 +755,79 @@
841
755
  }
842
756
  },
843
757
  {
844
- "name": "is-deleting",
845
- "default": "`false`",
846
- "description": "Whether to show delete button loading status",
758
+ "name": "actions",
759
+ "default": "`[]`",
760
+ "description": "Options",
847
761
  "options": [],
848
762
  "value": {
849
- "type": "boolean",
763
+ "type": "ActionSheetAction[]",
850
764
  "kind": "expression"
851
765
  }
852
766
  },
853
767
  {
854
- "name": "tel-validator",
768
+ "name": "title",
855
769
  "default": "-",
856
- "description": "The method to validate tel",
770
+ "description": "Title",
857
771
  "options": [],
858
772
  "value": {
859
- "type": "(tel: string) => boolean",
773
+ "type": "string",
860
774
  "kind": "expression"
861
775
  }
862
776
  },
863
777
  {
864
- "name": "tel-maxlength",
778
+ "name": "cancel-text",
865
779
  "default": "-",
866
- "description": "Tel maxlength",
780
+ "description": "Text of cancel button",
867
781
  "options": [],
868
782
  "value": {
869
- "type": "number | string",
783
+ "type": "string",
870
784
  "kind": "expression"
871
785
  }
872
786
  },
873
787
  {
874
- "name": "postal-validator",
788
+ "name": "description",
875
789
  "default": "-",
876
- "description": "The method to validate postal",
790
+ "description": "Description above the options",
877
791
  "options": [],
878
792
  "value": {
879
- "type": "(tel: string) => boolean",
793
+ "type": "string",
880
794
  "kind": "expression"
881
795
  }
882
796
  },
883
797
  {
884
- "name": "validator",
885
- "default": "-",
886
- "description": "Custom validator",
798
+ "name": "closeable",
799
+ "default": "`true`",
800
+ "description": "Whether to show close icon",
887
801
  "options": [],
888
802
  "value": {
889
- "type": "(key, val) => string",
803
+ "type": "boolean",
890
804
  "kind": "expression"
891
805
  }
892
- }
893
- ]
894
- },
895
- {
896
- "name": "van-badge",
897
- "slots": [
898
- {
899
- "name": "default",
900
- "description": "Default slot"
901
806
  },
902
807
  {
903
- "name": "content",
904
- "description": "Custom badge content"
905
- }
906
- ],
907
- "events": [],
908
- "attributes": [
909
- {
910
- "name": "content",
911
- "default": "-",
912
- "description": "Badge content",
808
+ "name": "close-icon",
809
+ "default": "`cross`",
810
+ "description": "Close icon name",
913
811
  "options": [],
914
812
  "value": {
915
- "type": "number | string",
813
+ "type": "string",
916
814
  "kind": "expression"
917
815
  }
918
816
  },
919
817
  {
920
- "name": "color",
921
- "default": "`#ee0a24`",
922
- "description": "Background color",
818
+ "name": "duration",
819
+ "default": "`0.3`",
820
+ "description": "Transition duration, unit second",
923
821
  "options": [],
924
822
  "value": {
925
- "type": "string",
823
+ "type": "number | string",
926
824
  "kind": "expression"
927
825
  }
928
826
  },
929
827
  {
930
- "name": "dot",
931
- "default": "`false`",
932
- "description": "Whether to show dot",
828
+ "name": "round",
829
+ "default": "`true`",
830
+ "description": "Whether to show round corner",
933
831
  "options": [],
934
832
  "value": {
935
833
  "type": "boolean",
@@ -937,186 +835,167 @@
937
835
  }
938
836
  },
939
837
  {
940
- "name": "max",
941
- "default": "-",
942
- "description": "Max value,show `{max}+` when exceed,only works when content is number",
838
+ "name": "overlay",
839
+ "default": "`true`",
840
+ "description": "Whether to show overlay",
943
841
  "options": [],
944
842
  "value": {
945
- "type": "number | string",
843
+ "type": "boolean",
946
844
  "kind": "expression"
947
845
  }
948
846
  },
949
847
  {
950
- "name": "offset",
951
- "default": "string]_",
952
- "description": "Offset of badge dot",
848
+ "name": "overlay-class",
849
+ "default": "object_",
850
+ "description": "Custom overlay class",
953
851
  "options": [
954
852
  "-"
955
853
  ],
956
854
  "value": {
957
- "type": "[number | string, number \\",
855
+ "type": "string | Array \\",
958
856
  "kind": "expression"
959
857
  }
960
858
  },
961
859
  {
962
- "name": "show-zero",
963
- "default": "`true`",
964
- "description": "Whether to show badge when content is zero",
860
+ "name": "overlay-style",
861
+ "default": "-",
862
+ "description": "Custom overlay style",
965
863
  "options": [],
966
864
  "value": {
967
- "type": "boolean",
865
+ "type": "object",
968
866
  "kind": "expression"
969
867
  }
970
868
  },
971
869
  {
972
- "name": "position",
973
- "default": "`top-right`",
974
- "description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`",
870
+ "name": "lock-scroll",
871
+ "default": "`true`",
872
+ "description": "Whether to lock background scroll",
975
873
  "options": [],
976
874
  "value": {
977
- "type": "string",
875
+ "type": "boolean",
978
876
  "kind": "expression"
979
877
  }
980
- }
981
- ]
982
- },
983
- {
984
- "name": "van-area",
985
- "slots": [
986
- {
987
- "name": "toolbar",
988
- "description": "Custom toolbar content"
989
878
  },
990
879
  {
991
- "name": "title",
992
- "description": "Custom title"
993
- },
994
- {
995
- "name": "confirm",
996
- "description": "Custom confirm button text"
997
- },
998
- {
999
- "name": "cancel",
1000
- "description": "Custom cancel button text"
1001
- },
1002
- {
1003
- "name": "columns-top",
1004
- "description": "Custom content above columns"
1005
- },
1006
- {
1007
- "name": "columns-bottom",
1008
- "description": "Custom content below columns"
1009
- }
1010
- ],
1011
- "events": [
1012
- {
1013
- "name": "confirm",
1014
- "description": "Emitted when the confirm button is clicked"
1015
- },
1016
- {
1017
- "name": "cancel",
1018
- "description": "Emitted when the cancel button is clicked"
880
+ "name": "lazy-render",
881
+ "default": "`true`",
882
+ "description": "Whether to lazy render util appeared",
883
+ "options": [],
884
+ "value": {
885
+ "type": "boolean",
886
+ "kind": "expression"
887
+ }
1019
888
  },
1020
889
  {
1021
- "name": "change",
1022
- "description": "Emitted when current option changed"
1023
- }
1024
- ],
1025
- "attributes": [
1026
- {
1027
- "name": "value",
1028
- "default": "-",
1029
- "description": "the `code` of selected area",
890
+ "name": "close-on-popstate",
891
+ "default": "`true`",
892
+ "description": "Whether to close when popstate",
1030
893
  "options": [],
1031
894
  "value": {
1032
- "type": "string",
895
+ "type": "boolean",
1033
896
  "kind": "expression"
1034
897
  }
1035
898
  },
1036
899
  {
1037
- "name": "title",
1038
- "default": "-",
1039
- "description": "Toolbar title",
900
+ "name": "close-on-click-action",
901
+ "default": "`false`",
902
+ "description": "Whether to close when an action is clicked",
1040
903
  "options": [],
1041
904
  "value": {
1042
- "type": "string",
905
+ "type": "boolean",
1043
906
  "kind": "expression"
1044
907
  }
1045
908
  },
1046
909
  {
1047
- "name": "confirm-button-text",
1048
- "default": "`Confirm`",
1049
- "description": "Text of confirm button",
910
+ "name": "close-on-click-overlay",
911
+ "default": "`true`",
912
+ "description": "Whether to close when overlay is clicked",
1050
913
  "options": [],
1051
914
  "value": {
1052
- "type": "string",
915
+ "type": "boolean",
1053
916
  "kind": "expression"
1054
917
  }
1055
918
  },
1056
919
  {
1057
- "name": "cancel-button-text",
1058
- "default": "`Cancel`",
1059
- "description": "Text of cancel button",
920
+ "name": "safe-area-inset-bottom",
921
+ "default": "`true`",
922
+ "description": "Whether to enable bottom safe area adaptation",
1060
923
  "options": [],
1061
924
  "value": {
1062
- "type": "string",
925
+ "type": "boolean",
1063
926
  "kind": "expression"
1064
927
  }
1065
928
  },
1066
929
  {
1067
- "name": "area-list",
930
+ "name": "teleport",
1068
931
  "default": "-",
1069
- "description": "Area list data",
932
+ "description": "Specifies a target element where ActionSheet will be mounted",
1070
933
  "options": [],
1071
934
  "value": {
1072
- "type": "object",
935
+ "type": "string | Element",
1073
936
  "kind": "expression"
1074
937
  }
1075
938
  },
1076
939
  {
1077
- "name": "columns-placeholder",
1078
- "default": "`[]`",
1079
- "description": "Placeholder of columns",
940
+ "name": "before-close",
941
+ "default": "-",
942
+ "description": "Callback function before close",
1080
943
  "options": [],
1081
944
  "value": {
1082
- "type": "string[]",
945
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
1083
946
  "kind": "expression"
1084
947
  }
948
+ }
949
+ ]
950
+ },
951
+ {
952
+ "name": "van-badge",
953
+ "slots": [
954
+ {
955
+ "name": "default",
956
+ "description": "Default slot"
1085
957
  },
1086
958
  {
1087
- "name": "loading",
1088
- "default": "`false`",
1089
- "description": "Whether to show loading prompt",
959
+ "name": "content",
960
+ "description": "Custom badge content"
961
+ }
962
+ ],
963
+ "events": [],
964
+ "attributes": [
965
+ {
966
+ "name": "content",
967
+ "default": "-",
968
+ "description": "Badge content",
1090
969
  "options": [],
1091
970
  "value": {
1092
- "type": "boolean",
971
+ "type": "number | string",
1093
972
  "kind": "expression"
1094
973
  }
1095
974
  },
1096
975
  {
1097
- "name": "readonly",
1098
- "default": "`false`",
1099
- "description": "Whether to be readonly",
976
+ "name": "color",
977
+ "default": "`#ee0a24`",
978
+ "description": "Background color",
1100
979
  "options": [],
1101
980
  "value": {
1102
- "type": "boolean",
981
+ "type": "string",
1103
982
  "kind": "expression"
1104
983
  }
1105
984
  },
1106
985
  {
1107
- "name": "item-height",
1108
- "default": "`44`",
1109
- "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
986
+ "name": "dot",
987
+ "default": "`false`",
988
+ "description": "Whether to show dot",
1110
989
  "options": [],
1111
990
  "value": {
1112
- "type": "number | string",
991
+ "type": "boolean",
1113
992
  "kind": "expression"
1114
993
  }
1115
994
  },
1116
995
  {
1117
- "name": "columns-num",
1118
- "default": "`3`",
1119
- "description": "Level of picker",
996
+ "name": "max",
997
+ "default": "-",
998
+ "description": "Max value,show `{max}+` when exceed,only works when content is number",
1120
999
  "options": [],
1121
1000
  "value": {
1122
1001
  "type": "number | string",
@@ -1124,32 +1003,34 @@
1124
1003
  }
1125
1004
  },
1126
1005
  {
1127
- "name": "visible-item-count",
1128
- "default": "`6`",
1129
- "description": "Count of visible columns",
1130
- "options": [],
1006
+ "name": "offset",
1007
+ "default": "string]_",
1008
+ "description": "Offset of badge dot",
1009
+ "options": [
1010
+ "-"
1011
+ ],
1131
1012
  "value": {
1132
- "type": "number | string",
1013
+ "type": "[number | string, number \\",
1133
1014
  "kind": "expression"
1134
1015
  }
1135
1016
  },
1136
1017
  {
1137
- "name": "swipe-duration",
1138
- "default": "`1000`",
1139
- "description": "Duration of the momentum animation,unit `ms`",
1018
+ "name": "show-zero",
1019
+ "default": "`true`",
1020
+ "description": "Whether to show badge when content is zero",
1140
1021
  "options": [],
1141
1022
  "value": {
1142
- "type": "number | string",
1023
+ "type": "boolean",
1143
1024
  "kind": "expression"
1144
1025
  }
1145
1026
  },
1146
1027
  {
1147
- "name": "is-oversea-code",
1148
- "default": "-",
1149
- "description": "The method to validate oversea code",
1028
+ "name": "position",
1029
+ "default": "`top-right`",
1030
+ "description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`",
1150
1031
  "options": [],
1151
1032
  "value": {
1152
- "type": "() => boolean",
1033
+ "type": "string",
1153
1034
  "kind": "expression"
1154
1035
  }
1155
1036
  }
@@ -1394,6 +1275,125 @@
1394
1275
  }
1395
1276
  ]
1396
1277
  },
1278
+ {
1279
+ "name": "van-address-list",
1280
+ "slots": [
1281
+ {
1282
+ "name": "default",
1283
+ "description": "Custom content after list"
1284
+ },
1285
+ {
1286
+ "name": "top",
1287
+ "description": "Custom content before list"
1288
+ },
1289
+ {
1290
+ "name": "item-bottom",
1291
+ "description": "Custom content after list item"
1292
+ },
1293
+ {
1294
+ "name": "tag",
1295
+ "description": "Custom tag of list item"
1296
+ }
1297
+ ],
1298
+ "events": [
1299
+ {
1300
+ "name": "add",
1301
+ "description": "Emitted when the add button is clicked"
1302
+ },
1303
+ {
1304
+ "name": "edit",
1305
+ "description": "Emitted when the edit icon of address is clicked"
1306
+ },
1307
+ {
1308
+ "name": "select",
1309
+ "description": "Emitted when an address is selected"
1310
+ },
1311
+ {
1312
+ "name": "edit-disabled",
1313
+ "description": "Emitted when the edit icon of disabled address is clicked"
1314
+ },
1315
+ {
1316
+ "name": "select-disabled",
1317
+ "description": "Emitted when a disabled address is selected"
1318
+ },
1319
+ {
1320
+ "name": "click-item",
1321
+ "description": "Emitted when an address item is clicked"
1322
+ }
1323
+ ],
1324
+ "attributes": [
1325
+ {
1326
+ "name": "v-model",
1327
+ "default": "-",
1328
+ "description": "Id of chosen address",
1329
+ "options": [],
1330
+ "value": {
1331
+ "type": "string",
1332
+ "kind": "expression"
1333
+ }
1334
+ },
1335
+ {
1336
+ "name": "list",
1337
+ "default": "`[]`",
1338
+ "description": "Address list",
1339
+ "options": [],
1340
+ "value": {
1341
+ "type": "Address[]",
1342
+ "kind": "expression"
1343
+ }
1344
+ },
1345
+ {
1346
+ "name": "disabled-list",
1347
+ "default": "`[]`",
1348
+ "description": "Disabled address list",
1349
+ "options": [],
1350
+ "value": {
1351
+ "type": "Address[]",
1352
+ "kind": "expression"
1353
+ }
1354
+ },
1355
+ {
1356
+ "name": "disabled-text",
1357
+ "default": "-",
1358
+ "description": "Disabled text",
1359
+ "options": [],
1360
+ "value": {
1361
+ "type": "string",
1362
+ "kind": "expression"
1363
+ }
1364
+ },
1365
+ {
1366
+ "name": "switchable",
1367
+ "default": "`true`",
1368
+ "description": "Whether to allow switch address",
1369
+ "options": [],
1370
+ "value": {
1371
+ "type": "boolean",
1372
+ "kind": "expression"
1373
+ }
1374
+ },
1375
+ {
1376
+ "name": "add-button-text",
1377
+ "default": "`Add new address`",
1378
+ "description": "Add button text",
1379
+ "options": [],
1380
+ "value": {
1381
+ "type": "string",
1382
+ "kind": "expression"
1383
+ }
1384
+ },
1385
+ {
1386
+ "name": "default-tag-text",
1387
+ "default": "-",
1388
+ "description": "Default tag text",
1389
+ "options": [],
1390
+ "value": {
1391
+ "type": "string",
1392
+ "kind": "expression"
1393
+ }
1394
+ }
1395
+ ]
1396
+ },
1397
1397
  {
1398
1398
  "name": "van-calendar",
1399
1399
  "slots": [
@@ -1697,6 +1697,16 @@
1697
1697
  "kind": "expression"
1698
1698
  }
1699
1699
  },
1700
+ {
1701
+ "name": "safe-area-inset-top",
1702
+ "default": "`false`",
1703
+ "description": "Whether to enable top safe area adaptation",
1704
+ "options": [],
1705
+ "value": {
1706
+ "type": "boolean",
1707
+ "kind": "expression"
1708
+ }
1709
+ },
1700
1710
  {
1701
1711
  "name": "safe-area-inset-bottom",
1702
1712
  "default": "`true`",
@@ -2969,6 +2979,16 @@
2969
2979
  "kind": "expression"
2970
2980
  }
2971
2981
  },
2982
+ {
2983
+ "name": "lazy-render",
2984
+ "default": "`true`",
2985
+ "description": "Whether to lazy render util opened",
2986
+ "options": [],
2987
+ "value": {
2988
+ "type": "boolean",
2989
+ "kind": "expression"
2990
+ }
2991
+ },
2972
2992
  {
2973
2993
  "name": "title-class",
2974
2994
  "default": "-",
@@ -7322,6 +7342,16 @@
7322
7342
  "kind": "expression"
7323
7343
  }
7324
7344
  },
7345
+ {
7346
+ "name": "safe-area-inset-top",
7347
+ "default": "`false`",
7348
+ "description": "Whether to enable top safe area adaptation",
7349
+ "options": [],
7350
+ "value": {
7351
+ "type": "boolean",
7352
+ "kind": "expression"
7353
+ }
7354
+ },
7325
7355
  {
7326
7356
  "name": "safe-area-inset-bottom",
7327
7357
  "default": "`false`",