vant 3.2.5 → 3.2.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 (375) hide show
  1. package/es/action-bar/index.css +1 -1
  2. package/es/action-bar/index.less +1 -1
  3. package/es/action-bar-icon/ActionBarIcon.js +2 -2
  4. package/es/action-bar-icon/index.css +1 -1
  5. package/es/action-bar-icon/index.less +1 -1
  6. package/es/action-sheet/ActionSheet.d.ts +15 -9
  7. package/es/action-sheet/ActionSheet.js +7 -15
  8. package/es/action-sheet/index.css +1 -1
  9. package/es/action-sheet/index.d.ts +10 -3
  10. package/es/action-sheet/index.less +2 -2
  11. package/es/address-edit/AddressEdit.d.ts +1 -2
  12. package/es/address-edit/AddressEdit.js +3 -8
  13. package/es/address-edit/AddressEditDetail.js +5 -6
  14. package/es/address-edit/index.css +1 -1
  15. package/es/address-edit/index.d.ts +1 -2
  16. package/es/address-edit/index.less +2 -2
  17. package/es/address-edit/style/index.js +0 -3
  18. package/es/address-edit/style/less.js +0 -3
  19. package/es/address-list/AddressList.js +2 -6
  20. package/es/badge/index.css +1 -1
  21. package/es/badge/index.less +4 -2
  22. package/es/calendar/Calendar.js +11 -8
  23. package/es/calendar/index.css +1 -1
  24. package/es/calendar/index.less +3 -3
  25. package/es/card/index.css +1 -1
  26. package/es/card/index.less +1 -1
  27. package/es/cascader/Cascader.d.ts +25 -14
  28. package/es/cascader/Cascader.js +49 -46
  29. package/es/cascader/index.d.ts +8 -6
  30. package/es/cascader/types.d.ts +18 -0
  31. package/es/cascader/types.js +1 -0
  32. package/es/cell/index.css +1 -1
  33. package/es/cell/index.less +1 -1
  34. package/es/cell-group/index.css +1 -1
  35. package/es/cell-group/index.less +1 -1
  36. package/es/checkbox/Checker.js +1 -8
  37. package/es/checkbox/index.d.ts +1 -1
  38. package/es/checkbox/types.d.ts +3 -0
  39. package/es/checkbox-group/index.d.ts +1 -1
  40. package/es/checkbox-group/types.d.ts +2 -1
  41. package/es/collapse-item/index.css +1 -1
  42. package/es/collapse-item/index.less +1 -1
  43. package/es/contact-edit/ContactEdit.js +1 -4
  44. package/es/contact-edit/style/index.js +0 -5
  45. package/es/contact-edit/style/less.js +0 -5
  46. package/es/coupon/index.css +1 -1
  47. package/es/coupon/index.less +1 -1
  48. package/es/coupon-list/CouponList.js +1 -1
  49. package/es/coupon-list/index.css +1 -1
  50. package/es/coupon-list/index.less +1 -1
  51. package/es/dialog/Dialog.js +5 -10
  52. package/es/dialog/function-call.d.ts +2 -2
  53. package/es/dialog/function-call.js +2 -2
  54. package/es/dialog/index.css +1 -1
  55. package/es/dialog/index.less +1 -1
  56. package/es/dropdown-item/DropdownItem.js +1 -1
  57. package/es/dropdown-menu/index.css +1 -1
  58. package/es/dropdown-menu/index.less +1 -1
  59. package/es/empty/Network.js +8 -27
  60. package/es/grid-item/GridItem.js +2 -2
  61. package/es/grid-item/index.css +1 -1
  62. package/es/grid-item/index.less +1 -1
  63. package/es/image/Image.js +7 -20
  64. package/es/image/index.css +1 -1
  65. package/es/image/index.less +1 -1
  66. package/es/image-preview/ImagePreview.js +5 -6
  67. package/es/image-preview/function-call.js +2 -2
  68. package/es/image-preview/index.css +1 -1
  69. package/es/image-preview/index.less +1 -1
  70. package/es/index-anchor/index.css +1 -1
  71. package/es/index-anchor/index.less +2 -2
  72. package/es/index-bar/IndexBar.js +1 -12
  73. package/es/index.d.ts +1 -1
  74. package/es/index.js +1 -1
  75. package/es/locale/lang/de-DE-formal.d.ts +0 -1
  76. package/es/locale/lang/de-DE-formal.js +0 -1
  77. package/es/locale/lang/de-DE.d.ts +0 -1
  78. package/es/locale/lang/de-DE.js +0 -1
  79. package/es/locale/lang/en-US.d.ts +0 -1
  80. package/es/locale/lang/en-US.js +0 -1
  81. package/es/locale/lang/es-ES.d.ts +0 -1
  82. package/es/locale/lang/es-ES.js +0 -1
  83. package/es/locale/lang/fr-FR.d.ts +0 -1
  84. package/es/locale/lang/fr-FR.js +0 -1
  85. package/es/locale/lang/ja-JP.d.ts +0 -1
  86. package/es/locale/lang/ja-JP.js +0 -1
  87. package/es/locale/lang/nb-NO.d.ts +0 -1
  88. package/es/locale/lang/nb-NO.js +0 -1
  89. package/es/locale/lang/ro-RO.d.ts +0 -1
  90. package/es/locale/lang/ro-RO.js +0 -1
  91. package/es/locale/lang/ru-RU.d.ts +0 -1
  92. package/es/locale/lang/ru-RU.js +0 -1
  93. package/es/locale/lang/th-TH.d.ts +0 -1
  94. package/es/locale/lang/th-TH.js +0 -1
  95. package/es/locale/lang/tr-TR.d.ts +0 -1
  96. package/es/locale/lang/tr-TR.js +0 -1
  97. package/es/locale/lang/zh-CN.d.ts +0 -1
  98. package/es/locale/lang/zh-CN.js +0 -1
  99. package/es/locale/lang/zh-HK.d.ts +0 -1
  100. package/es/locale/lang/zh-HK.js +0 -1
  101. package/es/locale/lang/zh-TW.d.ts +0 -1
  102. package/es/locale/lang/zh-TW.js +0 -1
  103. package/es/nav-bar/index.css +1 -1
  104. package/es/nav-bar/index.less +1 -1
  105. package/es/notice-bar/NoticeBar.d.ts +1 -1
  106. package/es/notice-bar/index.css +1 -1
  107. package/es/notice-bar/index.d.ts +1 -1
  108. package/es/notice-bar/index.less +1 -1
  109. package/es/notify/Notify.d.ts +4 -2
  110. package/es/notify/Notify.js +6 -1
  111. package/es/notify/function-call.d.ts +4 -2
  112. package/es/notify/function-call.js +1 -1
  113. package/es/notify/index.css +1 -1
  114. package/es/notify/index.less +4 -4
  115. package/es/number-keyboard/index.css +1 -1
  116. package/es/number-keyboard/index.less +3 -3
  117. package/es/overlay/Overlay.js +2 -2
  118. package/es/overlay/index.css +1 -1
  119. package/es/overlay/index.less +1 -1
  120. package/es/pagination/index.css +1 -1
  121. package/es/pagination/index.less +1 -1
  122. package/es/password-input/index.css +1 -1
  123. package/es/password-input/index.less +3 -3
  124. package/es/picker/index.css +1 -1
  125. package/es/picker/index.less +2 -2
  126. package/es/popover/Popover.js +3 -4
  127. package/es/popover/index.css +1 -1
  128. package/es/popover/index.less +2 -2
  129. package/es/popup/Popup.js +2 -4
  130. package/es/popup/index.css +1 -1
  131. package/es/popup/index.less +1 -1
  132. package/es/progress/Progress.js +7 -3
  133. package/es/progress/index.css +1 -1
  134. package/es/progress/index.less +10 -1
  135. package/es/progress/var.less +1 -0
  136. package/es/pull-refresh/PullRefresh.js +2 -2
  137. package/es/radio/Radio.d.ts +9 -6
  138. package/es/radio/index.d.ts +2 -0
  139. package/es/radio-group/RadioGroup.d.ts +1 -0
  140. package/es/radio-group/index.d.ts +2 -0
  141. package/es/search/Search.js +3 -4
  142. package/es/search/index.css +1 -1
  143. package/es/search/index.less +2 -2
  144. package/es/share-sheet/ShareSheet.d.ts +7 -0
  145. package/es/share-sheet/ShareSheet.js +5 -6
  146. package/es/share-sheet/index.d.ts +7 -0
  147. package/es/sidebar-item/index.css +1 -1
  148. package/es/sidebar-item/index.less +1 -1
  149. package/es/skeleton/index.css +1 -1
  150. package/es/skeleton/index.less +2 -2
  151. package/es/slider/index.css +1 -1
  152. package/es/slider/index.less +3 -3
  153. package/es/stepper/Stepper.d.ts +1 -1
  154. package/es/stepper/Stepper.js +1 -2
  155. package/es/stepper/index.css +1 -1
  156. package/es/stepper/index.d.ts +1 -1
  157. package/es/stepper/index.less +3 -3
  158. package/es/steps/index.d.ts +6 -4
  159. package/es/submit-bar/index.css +1 -1
  160. package/es/submit-bar/index.less +2 -2
  161. package/es/swipe-cell/SwipeCell.js +1 -2
  162. package/es/switch/index.css +1 -1
  163. package/es/switch/index.less +3 -3
  164. package/es/tabbar/Tabbar.js +1 -2
  165. package/es/tabbar/index.css +1 -1
  166. package/es/tabbar/index.less +1 -1
  167. package/es/tabbar-item/TabbarItem.js +2 -2
  168. package/es/tabs/Tabs.js +2 -5
  169. package/es/tabs/index.css +1 -1
  170. package/es/tabs/index.less +2 -2
  171. package/es/tag/index.css +1 -1
  172. package/es/tag/index.less +6 -6
  173. package/es/toast/Toast.js +5 -11
  174. package/es/toast/index.css +1 -1
  175. package/es/toast/index.less +1 -1
  176. package/es/tree-select/index.css +1 -1
  177. package/es/tree-select/index.less +2 -2
  178. package/es/uploader/UploaderPreviewItem.js +3 -4
  179. package/es/uploader/index.css +1 -1
  180. package/es/uploader/index.less +4 -4
  181. package/es/utils/interceptor.d.ts +1 -2
  182. package/es/utils/interceptor.js +6 -9
  183. package/lib/action-bar/index.css +1 -1
  184. package/lib/action-bar/index.less +1 -1
  185. package/lib/action-bar-icon/ActionBarIcon.js +1 -1
  186. package/lib/action-bar-icon/index.css +1 -1
  187. package/lib/action-bar-icon/index.less +1 -1
  188. package/lib/action-sheet/ActionSheet.d.ts +15 -9
  189. package/lib/action-sheet/ActionSheet.js +6 -14
  190. package/lib/action-sheet/index.css +1 -1
  191. package/lib/action-sheet/index.d.ts +10 -3
  192. package/lib/action-sheet/index.less +2 -2
  193. package/lib/address-edit/AddressEdit.d.ts +1 -2
  194. package/lib/address-edit/AddressEdit.js +3 -9
  195. package/lib/address-edit/AddressEditDetail.js +4 -5
  196. package/lib/address-edit/index.css +1 -1
  197. package/lib/address-edit/index.d.ts +1 -2
  198. package/lib/address-edit/index.less +2 -2
  199. package/lib/address-edit/style/index.js +0 -6
  200. package/lib/address-edit/style/less.js +0 -6
  201. package/lib/address-list/AddressList.js +2 -6
  202. package/lib/badge/index.css +1 -1
  203. package/lib/badge/index.less +4 -2
  204. package/lib/calendar/Calendar.js +11 -8
  205. package/lib/calendar/index.css +1 -1
  206. package/lib/calendar/index.less +3 -3
  207. package/lib/card/index.css +1 -1
  208. package/lib/card/index.less +1 -1
  209. package/lib/cascader/Cascader.d.ts +25 -14
  210. package/lib/cascader/Cascader.js +48 -45
  211. package/lib/cascader/index.d.ts +8 -6
  212. package/lib/cascader/types.d.ts +18 -0
  213. package/lib/cascader/types.js +3 -0
  214. package/lib/cell/index.css +1 -1
  215. package/lib/cell/index.less +1 -1
  216. package/lib/cell-group/index.css +1 -1
  217. package/lib/cell-group/index.less +1 -1
  218. package/lib/checkbox/Checker.js +1 -8
  219. package/lib/checkbox/index.d.ts +1 -1
  220. package/lib/checkbox/types.d.ts +3 -0
  221. package/lib/checkbox-group/index.d.ts +1 -1
  222. package/lib/checkbox-group/types.d.ts +2 -1
  223. package/lib/collapse-item/index.css +1 -1
  224. package/lib/collapse-item/index.less +1 -1
  225. package/lib/contact-edit/ContactEdit.js +1 -5
  226. package/lib/contact-edit/style/index.js +0 -10
  227. package/lib/contact-edit/style/less.js +0 -10
  228. package/lib/coupon/index.css +1 -1
  229. package/lib/coupon/index.less +1 -1
  230. package/lib/coupon-list/CouponList.js +1 -1
  231. package/lib/coupon-list/index.css +1 -1
  232. package/lib/coupon-list/index.less +1 -1
  233. package/lib/dialog/Dialog.js +5 -10
  234. package/lib/dialog/function-call.d.ts +2 -2
  235. package/lib/dialog/function-call.js +2 -2
  236. package/lib/dialog/index.css +1 -1
  237. package/lib/dialog/index.less +1 -1
  238. package/lib/dropdown-item/DropdownItem.js +1 -1
  239. package/lib/dropdown-menu/index.css +1 -1
  240. package/lib/dropdown-menu/index.less +1 -1
  241. package/lib/empty/Network.js +8 -27
  242. package/lib/grid-item/GridItem.js +1 -1
  243. package/lib/grid-item/index.css +1 -1
  244. package/lib/grid-item/index.less +1 -1
  245. package/lib/image/Image.js +7 -20
  246. package/lib/image/index.css +1 -1
  247. package/lib/image/index.less +1 -1
  248. package/lib/image-preview/ImagePreview.js +5 -6
  249. package/lib/image-preview/function-call.js +2 -2
  250. package/lib/image-preview/index.css +1 -1
  251. package/lib/image-preview/index.less +1 -1
  252. package/lib/index-anchor/index.css +1 -1
  253. package/lib/index-anchor/index.less +2 -2
  254. package/lib/index-bar/IndexBar.js +1 -12
  255. package/lib/index.css +1 -1
  256. package/lib/index.d.ts +1 -1
  257. package/lib/index.js +1 -1
  258. package/lib/index.less +1 -1
  259. package/lib/locale/lang/de-DE-formal.d.ts +0 -1
  260. package/lib/locale/lang/de-DE-formal.js +0 -1
  261. package/lib/locale/lang/de-DE.d.ts +0 -1
  262. package/lib/locale/lang/de-DE.js +0 -1
  263. package/lib/locale/lang/en-US.d.ts +0 -1
  264. package/lib/locale/lang/en-US.js +0 -1
  265. package/lib/locale/lang/es-ES.d.ts +0 -1
  266. package/lib/locale/lang/es-ES.js +0 -1
  267. package/lib/locale/lang/fr-FR.d.ts +0 -1
  268. package/lib/locale/lang/fr-FR.js +0 -1
  269. package/lib/locale/lang/ja-JP.d.ts +0 -1
  270. package/lib/locale/lang/ja-JP.js +0 -1
  271. package/lib/locale/lang/nb-NO.d.ts +0 -1
  272. package/lib/locale/lang/nb-NO.js +0 -1
  273. package/lib/locale/lang/ro-RO.d.ts +0 -1
  274. package/lib/locale/lang/ro-RO.js +0 -1
  275. package/lib/locale/lang/ru-RU.d.ts +0 -1
  276. package/lib/locale/lang/ru-RU.js +0 -1
  277. package/lib/locale/lang/th-TH.d.ts +0 -1
  278. package/lib/locale/lang/th-TH.js +0 -1
  279. package/lib/locale/lang/tr-TR.d.ts +0 -1
  280. package/lib/locale/lang/tr-TR.js +0 -1
  281. package/lib/locale/lang/zh-CN.d.ts +0 -1
  282. package/lib/locale/lang/zh-CN.js +0 -1
  283. package/lib/locale/lang/zh-HK.d.ts +0 -1
  284. package/lib/locale/lang/zh-HK.js +0 -1
  285. package/lib/locale/lang/zh-TW.d.ts +0 -1
  286. package/lib/locale/lang/zh-TW.js +0 -1
  287. package/lib/nav-bar/index.css +1 -1
  288. package/lib/nav-bar/index.less +1 -1
  289. package/lib/notice-bar/NoticeBar.d.ts +1 -1
  290. package/lib/notice-bar/index.css +1 -1
  291. package/lib/notice-bar/index.d.ts +1 -1
  292. package/lib/notice-bar/index.less +1 -1
  293. package/lib/notify/Notify.d.ts +4 -2
  294. package/lib/notify/Notify.js +6 -1
  295. package/lib/notify/function-call.d.ts +4 -2
  296. package/lib/notify/function-call.js +1 -1
  297. package/lib/notify/index.css +1 -1
  298. package/lib/notify/index.less +4 -4
  299. package/lib/number-keyboard/index.css +1 -1
  300. package/lib/number-keyboard/index.less +3 -3
  301. package/lib/overlay/Overlay.js +1 -1
  302. package/lib/overlay/index.css +1 -1
  303. package/lib/overlay/index.less +1 -1
  304. package/lib/pagination/index.css +1 -1
  305. package/lib/pagination/index.less +1 -1
  306. package/lib/password-input/index.css +1 -1
  307. package/lib/password-input/index.less +3 -3
  308. package/lib/picker/index.css +1 -1
  309. package/lib/picker/index.less +2 -2
  310. package/lib/popover/Popover.js +3 -4
  311. package/lib/popover/index.css +1 -1
  312. package/lib/popover/index.less +2 -2
  313. package/lib/popup/Popup.js +2 -4
  314. package/lib/popup/index.css +1 -1
  315. package/lib/popup/index.less +1 -1
  316. package/lib/progress/Progress.js +7 -3
  317. package/lib/progress/index.css +1 -1
  318. package/lib/progress/index.less +10 -1
  319. package/lib/progress/var.less +1 -0
  320. package/lib/pull-refresh/PullRefresh.js +1 -1
  321. package/lib/radio/Radio.d.ts +9 -6
  322. package/lib/radio/index.d.ts +2 -0
  323. package/lib/radio-group/RadioGroup.d.ts +1 -0
  324. package/lib/radio-group/index.d.ts +2 -0
  325. package/lib/search/Search.js +3 -4
  326. package/lib/search/index.css +1 -1
  327. package/lib/search/index.less +2 -2
  328. package/lib/share-sheet/ShareSheet.d.ts +7 -0
  329. package/lib/share-sheet/ShareSheet.js +5 -6
  330. package/lib/share-sheet/index.d.ts +7 -0
  331. package/lib/sidebar-item/index.css +1 -1
  332. package/lib/sidebar-item/index.less +1 -1
  333. package/lib/skeleton/index.css +1 -1
  334. package/lib/skeleton/index.less +2 -2
  335. package/lib/slider/index.css +1 -1
  336. package/lib/slider/index.less +3 -3
  337. package/lib/stepper/Stepper.d.ts +1 -1
  338. package/lib/stepper/Stepper.js +1 -2
  339. package/lib/stepper/index.css +1 -1
  340. package/lib/stepper/index.d.ts +1 -1
  341. package/lib/stepper/index.less +3 -3
  342. package/lib/steps/index.d.ts +6 -4
  343. package/lib/submit-bar/index.css +1 -1
  344. package/lib/submit-bar/index.less +2 -2
  345. package/lib/swipe-cell/SwipeCell.js +1 -2
  346. package/lib/switch/index.css +1 -1
  347. package/lib/switch/index.less +3 -3
  348. package/lib/tabbar/Tabbar.js +1 -2
  349. package/lib/tabbar/index.css +1 -1
  350. package/lib/tabbar/index.less +1 -1
  351. package/lib/tabbar-item/TabbarItem.js +1 -1
  352. package/lib/tabs/Tabs.js +2 -5
  353. package/lib/tabs/index.css +1 -1
  354. package/lib/tabs/index.less +2 -2
  355. package/lib/tag/index.css +1 -1
  356. package/lib/tag/index.less +6 -6
  357. package/lib/toast/Toast.js +4 -10
  358. package/lib/toast/index.css +1 -1
  359. package/lib/toast/index.less +1 -1
  360. package/lib/tree-select/index.css +1 -1
  361. package/lib/tree-select/index.less +2 -2
  362. package/lib/uploader/UploaderPreviewItem.js +2 -3
  363. package/lib/uploader/index.css +1 -1
  364. package/lib/uploader/index.less +4 -4
  365. package/lib/utils/interceptor.d.ts +1 -2
  366. package/lib/utils/interceptor.js +6 -9
  367. package/lib/vant.es.js +758 -831
  368. package/lib/vant.es.min.js +758 -831
  369. package/lib/vant.js +758 -831
  370. package/lib/vant.min.js +1 -1
  371. package/package.json +1 -1
  372. package/vetur/attributes.json +60 -56
  373. package/vetur/tags.json +18 -17
  374. package/vetur/web-types.json +198 -184
  375. package/changelog.generated.md +0 -148
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vant",
3
- "version": "3.2.5",
3
+ "version": "3.2.6",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -143,7 +143,7 @@
143
143
  },
144
144
  "van-action-sheet/close-on-popstate": {
145
145
  "type": "boolean",
146
- "description": "是否在页面回退时自动关闭, 默认值: `false`"
146
+ "description": "是否在页面回退时自动关闭, 默认值: `true`"
147
147
  },
148
148
  "van-action-sheet/close-on-click-action": {
149
149
  "type": "boolean",
@@ -193,6 +193,58 @@
193
193
  "type": "string",
194
194
  "description": "默认地址标签文字, 默认值: -"
195
195
  },
196
+ "van-area/value": {
197
+ "type": "string",
198
+ "description": "当前选中项对应的地区码, 默认值: -"
199
+ },
200
+ "van-area/title": {
201
+ "type": "string",
202
+ "description": "顶部栏标题, 默认值: -"
203
+ },
204
+ "van-area/confirm-button-text": {
205
+ "type": "string",
206
+ "description": "确认按钮文字, 默认值: `确认`"
207
+ },
208
+ "van-area/cancel-button-text": {
209
+ "type": "string",
210
+ "description": "取消按钮文字, 默认值: `取消`"
211
+ },
212
+ "van-area/area-list": {
213
+ "type": "object",
214
+ "description": "省市区数据,格式见下方, 默认值: -"
215
+ },
216
+ "van-area/columns-placeholder": {
217
+ "type": "string[]",
218
+ "description": "列占位提示文字, 默认值: `[]`"
219
+ },
220
+ "van-area/loading": {
221
+ "type": "boolean",
222
+ "description": "是否显示加载状态, 默认值: `false`"
223
+ },
224
+ "van-area/readonly": {
225
+ "type": "boolean",
226
+ "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
227
+ },
228
+ "van-area/item-height": {
229
+ "type": "number | string",
230
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
231
+ },
232
+ "van-area/columns-num": {
233
+ "type": "number | string",
234
+ "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
235
+ },
236
+ "van-area/visible-item-count": {
237
+ "type": "number | string",
238
+ "description": "可见的选项个数, 默认值: `6`"
239
+ },
240
+ "van-area/swipe-duration": {
241
+ "type": "number | string",
242
+ "description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
243
+ },
244
+ "van-area/is-oversea-code": {
245
+ "type": "() => boolean",
246
+ "description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
247
+ },
196
248
  "van-address-edit/area-list": {
197
249
  "type": "object",
198
250
  "description": "地区列表, 默认值: -"
@@ -281,58 +333,6 @@
281
333
  "type": "(key, val) => string",
282
334
  "description": "自定义校验函数, 默认值: -"
283
335
  },
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": "徽标内容, 默认值: -"
@@ -2439,7 +2439,7 @@
2439
2439
  },
2440
2440
  "van-radio/icon-size": {
2441
2441
  "type": "number | string",
2442
- "description": "图标大小,默认单位为`px`, 默认值: `20px`"
2442
+ "description": "图标大小,默认单位为 `px`, 默认值: `20px`"
2443
2443
  },
2444
2444
  "van-radio/checked-color": {
2445
2445
  "type": "string",
@@ -2455,11 +2455,11 @@
2455
2455
  },
2456
2456
  "van-radio-group/direction": {
2457
2457
  "type": "string",
2458
- "description": "排列方向,可选值为`horizontal`, 默认值: `vertical`"
2458
+ "description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
2459
2459
  },
2460
2460
  "van-radio-group/icon-size": {
2461
2461
  "type": "number | string",
2462
- "description": "所有单选框的图标大小,默认单位为`px`, 默认值: `20px`"
2462
+ "description": "所有单选框的图标大小,默认单位为 `px`, 默认值: `20px`"
2463
2463
  },
2464
2464
  "van-radio-group/checked-color": {
2465
2465
  "type": "string",
@@ -2641,6 +2641,10 @@
2641
2641
  "type": "number | string",
2642
2642
  "description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
2643
2643
  },
2644
+ "van-share-sheet/round": {
2645
+ "type": "boolean",
2646
+ "description": "是否显示圆角, 默认值: `true`"
2647
+ },
2644
2648
  "van-share-sheet/overlay": {
2645
2649
  "type": "boolean",
2646
2650
  "description": "是否显示遮罩层, 默认值: `true`"
package/vetur/tags.json CHANGED
@@ -66,6 +66,23 @@
66
66
  "default-tag-text"
67
67
  ]
68
68
  },
69
+ "van-area": {
70
+ "attributes": [
71
+ "value",
72
+ "title",
73
+ "confirm-button-text",
74
+ "cancel-button-text",
75
+ "area-list",
76
+ "columns-placeholder",
77
+ "loading",
78
+ "readonly",
79
+ "item-height",
80
+ "columns-num",
81
+ "visible-item-count",
82
+ "swipe-duration",
83
+ "is-oversea-code"
84
+ ]
85
+ },
69
86
  "van-address-edit": {
70
87
  "attributes": [
71
88
  "area-list",
@@ -92,23 +109,6 @@
92
109
  "validator"
93
110
  ]
94
111
  },
95
- "van-area": {
96
- "attributes": [
97
- "value",
98
- "title",
99
- "confirm-button-text",
100
- "cancel-button-text",
101
- "area-list",
102
- "columns-placeholder",
103
- "loading",
104
- "readonly",
105
- "item-height",
106
- "columns-num",
107
- "visible-item-count",
108
- "swipe-duration",
109
- "is-oversea-code"
110
- ]
111
- },
112
112
  "van-badge": {
113
113
  "attributes": [
114
114
  "content",
@@ -901,6 +901,7 @@
901
901
  "cancel-text",
902
902
  "description",
903
903
  "duration",
904
+ "round",
904
905
  "overlay",
905
906
  "overlay-class",
906
907
  "overlay-style",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "vant",
5
- "version": "3.2.5",
5
+ "version": "3.2.6",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -434,7 +434,7 @@
434
434
  },
435
435
  {
436
436
  "name": "close-on-popstate",
437
- "default": "`false`",
437
+ "default": "`true`",
438
438
  "description": "是否在页面回退时自动关闭",
439
439
  "options": [],
440
440
  "value": {
@@ -613,6 +613,181 @@
613
613
  }
614
614
  ]
615
615
  },
616
+ {
617
+ "name": "van-area",
618
+ "slots": [
619
+ {
620
+ "name": "toolbar",
621
+ "description": "自定义整个顶部栏的内容"
622
+ },
623
+ {
624
+ "name": "title",
625
+ "description": "自定义标题内容"
626
+ },
627
+ {
628
+ "name": "confirm",
629
+ "description": "自定义确认按钮内容"
630
+ },
631
+ {
632
+ "name": "cancel",
633
+ "description": "自定义取消按钮内容"
634
+ },
635
+ {
636
+ "name": "columns-top",
637
+ "description": "自定义选项上方内容"
638
+ },
639
+ {
640
+ "name": "columns-bottom",
641
+ "description": "自定义选项下方内容"
642
+ }
643
+ ],
644
+ "events": [
645
+ {
646
+ "name": "confirm",
647
+ "description": "点击完成按钮时触发"
648
+ },
649
+ {
650
+ "name": "cancel",
651
+ "description": "点击取消按钮时触发"
652
+ },
653
+ {
654
+ "name": "change",
655
+ "description": "选项改变时触发"
656
+ }
657
+ ],
658
+ "attributes": [
659
+ {
660
+ "name": "value",
661
+ "default": "-",
662
+ "description": "当前选中项对应的地区码",
663
+ "options": [],
664
+ "value": {
665
+ "type": "string",
666
+ "kind": "expression"
667
+ }
668
+ },
669
+ {
670
+ "name": "title",
671
+ "default": "-",
672
+ "description": "顶部栏标题",
673
+ "options": [],
674
+ "value": {
675
+ "type": "string",
676
+ "kind": "expression"
677
+ }
678
+ },
679
+ {
680
+ "name": "confirm-button-text",
681
+ "default": "`确认`",
682
+ "description": "确认按钮文字",
683
+ "options": [],
684
+ "value": {
685
+ "type": "string",
686
+ "kind": "expression"
687
+ }
688
+ },
689
+ {
690
+ "name": "cancel-button-text",
691
+ "default": "`取消`",
692
+ "description": "取消按钮文字",
693
+ "options": [],
694
+ "value": {
695
+ "type": "string",
696
+ "kind": "expression"
697
+ }
698
+ },
699
+ {
700
+ "name": "area-list",
701
+ "default": "-",
702
+ "description": "省市区数据,格式见下方",
703
+ "options": [],
704
+ "value": {
705
+ "type": "object",
706
+ "kind": "expression"
707
+ }
708
+ },
709
+ {
710
+ "name": "columns-placeholder",
711
+ "default": "`[]`",
712
+ "description": "列占位提示文字",
713
+ "options": [],
714
+ "value": {
715
+ "type": "string[]",
716
+ "kind": "expression"
717
+ }
718
+ },
719
+ {
720
+ "name": "loading",
721
+ "default": "`false`",
722
+ "description": "是否显示加载状态",
723
+ "options": [],
724
+ "value": {
725
+ "type": "boolean",
726
+ "kind": "expression"
727
+ }
728
+ },
729
+ {
730
+ "name": "readonly",
731
+ "default": "`false`",
732
+ "description": "是否为只读状态,只读状态下无法切换选项",
733
+ "options": [],
734
+ "value": {
735
+ "type": "boolean",
736
+ "kind": "expression"
737
+ }
738
+ },
739
+ {
740
+ "name": "item-height",
741
+ "default": "`44`",
742
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
743
+ "options": [],
744
+ "value": {
745
+ "type": "number | string",
746
+ "kind": "expression"
747
+ }
748
+ },
749
+ {
750
+ "name": "columns-num",
751
+ "default": "`3`",
752
+ "description": "显示列数,3-省市区,2-省市,1-省",
753
+ "options": [],
754
+ "value": {
755
+ "type": "number | string",
756
+ "kind": "expression"
757
+ }
758
+ },
759
+ {
760
+ "name": "visible-item-count",
761
+ "default": "`6`",
762
+ "description": "可见的选项个数",
763
+ "options": [],
764
+ "value": {
765
+ "type": "number | string",
766
+ "kind": "expression"
767
+ }
768
+ },
769
+ {
770
+ "name": "swipe-duration",
771
+ "default": "`1000`",
772
+ "description": "快速滑动时惯性滚动的时长,单位 `ms`",
773
+ "options": [],
774
+ "value": {
775
+ "type": "number | string",
776
+ "kind": "expression"
777
+ }
778
+ },
779
+ {
780
+ "name": "is-oversea-code",
781
+ "default": "-",
782
+ "description": "根据地区码校验海外地址,海外地址会划分至单独的分类",
783
+ "options": [],
784
+ "value": {
785
+ "type": "() => boolean",
786
+ "kind": "expression"
787
+ }
788
+ }
789
+ ]
790
+ },
616
791
  {
617
792
  "name": "van-address-edit",
618
793
  "slots": [
@@ -634,10 +809,6 @@
634
809
  "name": "delete",
635
810
  "description": "确认删除地址时触发"
636
811
  },
637
- {
638
- "name": "cancel-delete",
639
- "description": "取消删除地址时触发"
640
- },
641
812
  {
642
813
  "name": "select-search",
643
814
  "description": "选中搜索结果时触发"
@@ -882,181 +1053,6 @@
882
1053
  }
883
1054
  ]
884
1055
  },
885
- {
886
- "name": "van-area",
887
- "slots": [
888
- {
889
- "name": "toolbar",
890
- "description": "自定义整个顶部栏的内容"
891
- },
892
- {
893
- "name": "title",
894
- "description": "自定义标题内容"
895
- },
896
- {
897
- "name": "confirm",
898
- "description": "自定义确认按钮内容"
899
- },
900
- {
901
- "name": "cancel",
902
- "description": "自定义取消按钮内容"
903
- },
904
- {
905
- "name": "columns-top",
906
- "description": "自定义选项上方内容"
907
- },
908
- {
909
- "name": "columns-bottom",
910
- "description": "自定义选项下方内容"
911
- }
912
- ],
913
- "events": [
914
- {
915
- "name": "confirm",
916
- "description": "点击完成按钮时触发"
917
- },
918
- {
919
- "name": "cancel",
920
- "description": "点击取消按钮时触发"
921
- },
922
- {
923
- "name": "change",
924
- "description": "选项改变时触发"
925
- }
926
- ],
927
- "attributes": [
928
- {
929
- "name": "value",
930
- "default": "-",
931
- "description": "当前选中项对应的地区码",
932
- "options": [],
933
- "value": {
934
- "type": "string",
935
- "kind": "expression"
936
- }
937
- },
938
- {
939
- "name": "title",
940
- "default": "-",
941
- "description": "顶部栏标题",
942
- "options": [],
943
- "value": {
944
- "type": "string",
945
- "kind": "expression"
946
- }
947
- },
948
- {
949
- "name": "confirm-button-text",
950
- "default": "`确认`",
951
- "description": "确认按钮文字",
952
- "options": [],
953
- "value": {
954
- "type": "string",
955
- "kind": "expression"
956
- }
957
- },
958
- {
959
- "name": "cancel-button-text",
960
- "default": "`取消`",
961
- "description": "取消按钮文字",
962
- "options": [],
963
- "value": {
964
- "type": "string",
965
- "kind": "expression"
966
- }
967
- },
968
- {
969
- "name": "area-list",
970
- "default": "-",
971
- "description": "省市区数据,格式见下方",
972
- "options": [],
973
- "value": {
974
- "type": "object",
975
- "kind": "expression"
976
- }
977
- },
978
- {
979
- "name": "columns-placeholder",
980
- "default": "`[]`",
981
- "description": "列占位提示文字",
982
- "options": [],
983
- "value": {
984
- "type": "string[]",
985
- "kind": "expression"
986
- }
987
- },
988
- {
989
- "name": "loading",
990
- "default": "`false`",
991
- "description": "是否显示加载状态",
992
- "options": [],
993
- "value": {
994
- "type": "boolean",
995
- "kind": "expression"
996
- }
997
- },
998
- {
999
- "name": "readonly",
1000
- "default": "`false`",
1001
- "description": "是否为只读状态,只读状态下无法切换选项",
1002
- "options": [],
1003
- "value": {
1004
- "type": "boolean",
1005
- "kind": "expression"
1006
- }
1007
- },
1008
- {
1009
- "name": "item-height",
1010
- "default": "`44`",
1011
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
1012
- "options": [],
1013
- "value": {
1014
- "type": "number | string",
1015
- "kind": "expression"
1016
- }
1017
- },
1018
- {
1019
- "name": "columns-num",
1020
- "default": "`3`",
1021
- "description": "显示列数,3-省市区,2-省市,1-省",
1022
- "options": [],
1023
- "value": {
1024
- "type": "number | string",
1025
- "kind": "expression"
1026
- }
1027
- },
1028
- {
1029
- "name": "visible-item-count",
1030
- "default": "`6`",
1031
- "description": "可见的选项个数",
1032
- "options": [],
1033
- "value": {
1034
- "type": "number | string",
1035
- "kind": "expression"
1036
- }
1037
- },
1038
- {
1039
- "name": "swipe-duration",
1040
- "default": "`1000`",
1041
- "description": "快速滑动时惯性滚动的时长,单位 `ms`",
1042
- "options": [],
1043
- "value": {
1044
- "type": "number | string",
1045
- "kind": "expression"
1046
- }
1047
- },
1048
- {
1049
- "name": "is-oversea-code",
1050
- "default": "-",
1051
- "description": "根据地区码校验海外地址,海外地址会划分至单独的分类",
1052
- "options": [],
1053
- "value": {
1054
- "type": "() => boolean",
1055
- "kind": "expression"
1056
- }
1057
- }
1058
- ]
1059
- },
1060
1056
  {
1061
1057
  "name": "van-badge",
1062
1058
  "slots": [
@@ -1399,6 +1395,10 @@
1399
1395
  "name": "footer",
1400
1396
  "description": "自定义底部区域内容"
1401
1397
  },
1398
+ {
1399
+ "name": "confirm-text",
1400
+ "description": "自定义确认按钮的内容"
1401
+ },
1402
1402
  {
1403
1403
  "name": "top-info",
1404
1404
  "description": "自定义日期上方的提示信息"
@@ -7572,7 +7572,7 @@
7572
7572
  {
7573
7573
  "name": "icon-size",
7574
7574
  "default": "`20px`",
7575
- "description": "图标大小,默认单位为`px`",
7575
+ "description": "图标大小,默认单位为 `px`",
7576
7576
  "options": [],
7577
7577
  "value": {
7578
7578
  "type": "number | string",
@@ -7624,7 +7624,7 @@
7624
7624
  {
7625
7625
  "name": "direction",
7626
7626
  "default": "`vertical`",
7627
- "description": "排列方向,可选值为`horizontal`",
7627
+ "description": "排列方向,可选值为 `horizontal`",
7628
7628
  "options": [],
7629
7629
  "value": {
7630
7630
  "type": "string",
@@ -7634,7 +7634,7 @@
7634
7634
  {
7635
7635
  "name": "icon-size",
7636
7636
  "default": "`20px`",
7637
- "description": "所有单选框的图标大小,默认单位为`px`",
7637
+ "description": "所有单选框的图标大小,默认单位为 `px`",
7638
7638
  "options": [],
7639
7639
  "value": {
7640
7640
  "type": "number | string",
@@ -8209,6 +8209,16 @@
8209
8209
  "kind": "expression"
8210
8210
  }
8211
8211
  },
8212
+ {
8213
+ "name": "round",
8214
+ "default": "`true`",
8215
+ "description": "是否显示圆角",
8216
+ "options": [],
8217
+ "value": {
8218
+ "type": "boolean",
8219
+ "kind": "expression"
8220
+ }
8221
+ },
8212
8222
  {
8213
8223
  "name": "overlay",
8214
8224
  "default": "`true`",
@@ -9046,6 +9056,10 @@
9046
9056
  {
9047
9057
  "name": "van-step",
9048
9058
  "slots": [
9059
+ {
9060
+ "name": "default",
9061
+ "description": "步骤内容"
9062
+ },
9049
9063
  {
9050
9064
  "name": "active-icon",
9051
9065
  "description": "自定义激活状态图标"