vant 3.4.1 → 3.4.5

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 (939) hide show
  1. package/es/action-bar/ActionBar.d.ts +6 -5
  2. package/es/action-bar/index.css +1 -1
  3. package/es/action-bar/index.d.ts +6 -5
  4. package/es/action-bar-button/ActionBarButton.d.ts +11 -21
  5. package/es/action-bar-button/index.css +1 -1
  6. package/es/action-bar-button/index.d.ts +11 -21
  7. package/es/action-bar-icon/ActionBarIcon.d.ts +16 -84
  8. package/es/action-bar-icon/index.css +1 -1
  9. package/es/action-bar-icon/index.d.ts +14 -64
  10. package/es/action-sheet/ActionSheet.d.ts +54 -47
  11. package/es/action-sheet/index.css +1 -1
  12. package/es/action-sheet/index.d.ts +54 -47
  13. package/es/address-edit/AddressEdit.d.ts +48 -48
  14. package/es/address-edit/AddressEditDetail.d.ts +10 -20
  15. package/es/address-edit/AddressEditDetail.js +4 -3
  16. package/es/address-edit/index.css +1 -1
  17. package/es/address-edit/index.d.ts +48 -48
  18. package/es/address-list/AddressList.d.ts +18 -18
  19. package/es/address-list/AddressListItem.d.ts +9 -12
  20. package/es/address-list/index.css +1 -1
  21. package/es/address-list/index.d.ts +18 -18
  22. package/es/address-list/index.less +1 -1
  23. package/es/area/Area.d.ts +41 -33
  24. package/es/area/Area.js +3 -1
  25. package/es/area/index.d.ts +41 -33
  26. package/es/badge/Badge.d.ts +19 -20
  27. package/es/badge/index.css +1 -1
  28. package/es/badge/index.d.ts +19 -20
  29. package/es/button/Button.d.ts +39 -47
  30. package/es/button/index.css +1 -1
  31. package/es/button/index.d.ts +39 -47
  32. package/es/calendar/Calendar.d.ts +85 -62
  33. package/es/calendar/Calendar.js +6 -1
  34. package/es/calendar/CalendarDay.d.ts +13 -14
  35. package/es/calendar/CalendarHeader.d.ts +7 -14
  36. package/es/calendar/CalendarMonth.d.ts +25 -32
  37. package/es/calendar/CalendarMonth.js +1 -1
  38. package/es/calendar/index.css +1 -1
  39. package/es/calendar/index.d.ts +85 -62
  40. package/es/card/Card.d.ts +16 -26
  41. package/es/card/index.css +1 -1
  42. package/es/card/index.d.ts +16 -26
  43. package/es/cascader/Cascader.d.ts +36 -22
  44. package/es/cascader/Cascader.js +3 -2
  45. package/es/cascader/index.css +1 -1
  46. package/es/cascader/index.d.ts +32 -22
  47. package/es/cell/Cell.d.ts +27 -41
  48. package/es/cell/index.css +1 -1
  49. package/es/cell/index.d.ts +27 -41
  50. package/es/cell-group/CellGroup.d.ts +8 -10
  51. package/es/cell-group/index.css +1 -1
  52. package/es/cell-group/index.d.ts +8 -10
  53. package/es/checkbox/Checkbox.d.ts +17 -21
  54. package/es/checkbox/Checker.d.ts +24 -29
  55. package/es/checkbox/index.css +1 -1
  56. package/es/checkbox/index.d.ts +17 -21
  57. package/es/checkbox-group/CheckboxGroup.d.ts +11 -16
  58. package/es/checkbox-group/index.css +1 -1
  59. package/es/checkbox-group/index.d.ts +11 -16
  60. package/es/circle/Circle.d.ts +35 -28
  61. package/es/circle/index.css +1 -1
  62. package/es/circle/index.d.ts +35 -28
  63. package/es/col/Col.d.ts +11 -10
  64. package/es/col/index.css +1 -1
  65. package/es/col/index.d.ts +11 -10
  66. package/es/collapse/Collapse.d.ts +11 -9
  67. package/es/collapse/index.d.ts +11 -9
  68. package/es/collapse-item/CollapseItem.d.ts +44 -41
  69. package/es/collapse-item/CollapseItem.js +3 -2
  70. package/es/collapse-item/index.css +1 -1
  71. package/es/collapse-item/index.d.ts +40 -41
  72. package/es/composables/use-height.js +6 -2
  73. package/es/config-provider/ConfigProvider.d.ts +8 -10
  74. package/es/config-provider/index.d.ts +8 -10
  75. package/es/contact-card/ContactCard.d.ts +13 -14
  76. package/es/contact-card/ContactCard.js +1 -1
  77. package/es/contact-card/index.css +1 -1
  78. package/es/contact-card/index.d.ts +13 -14
  79. package/es/contact-edit/ContactEdit.d.ts +15 -18
  80. package/es/contact-edit/index.css +1 -1
  81. package/es/contact-edit/index.d.ts +15 -18
  82. package/es/contact-list/ContactList.d.ts +6 -11
  83. package/es/contact-list/ContactList.js +1 -1
  84. package/es/contact-list/index.css +1 -1
  85. package/es/contact-list/index.d.ts +6 -11
  86. package/es/count-down/CountDown.d.ts +15 -11
  87. package/es/count-down/index.css +1 -1
  88. package/es/count-down/index.d.ts +15 -11
  89. package/es/coupon/Coupon.d.ts +12 -11
  90. package/es/coupon/index.css +1 -1
  91. package/es/coupon/index.d.ts +12 -11
  92. package/es/coupon-cell/CouponCell.d.ts +23 -16
  93. package/es/coupon-cell/index.css +1 -1
  94. package/es/coupon-cell/index.d.ts +23 -16
  95. package/es/coupon-list/CouponList.d.ts +53 -40
  96. package/es/coupon-list/index.css +1 -1
  97. package/es/coupon-list/index.d.ts +53 -40
  98. package/es/datetime-picker/DatePicker.d.ts +45 -36
  99. package/es/datetime-picker/TimePicker.d.ts +47 -38
  100. package/es/dialog/Dialog.d.ts +53 -59
  101. package/es/dialog/Dialog.js +19 -3
  102. package/es/dialog/function-call.d.ts +53 -59
  103. package/es/dialog/index.css +1 -1
  104. package/es/divider/Divider.d.ts +11 -9
  105. package/es/divider/index.css +1 -1
  106. package/es/divider/index.d.ts +11 -9
  107. package/es/dropdown-item/DropdownItem.d.ts +15 -18
  108. package/es/dropdown-item/index.css +1 -1
  109. package/es/dropdown-item/index.d.ts +15 -18
  110. package/es/dropdown-menu/DropdownMenu.d.ts +24 -18
  111. package/es/dropdown-menu/index.css +1 -1
  112. package/es/dropdown-menu/index.d.ts +24 -18
  113. package/es/dropdown-menu/index.less +0 -1
  114. package/es/empty/Empty.d.ts +8 -10
  115. package/es/empty/index.css +1 -1
  116. package/es/empty/index.d.ts +8 -10
  117. package/es/field/Field.d.ts +80 -90
  118. package/es/field/index.css +1 -1
  119. package/es/field/index.d.ts +80 -90
  120. package/es/field/utils.js +2 -1
  121. package/es/form/Form.d.ts +24 -30
  122. package/es/form/index.d.ts +24 -30
  123. package/es/grid/Grid.d.ts +20 -22
  124. package/es/grid/index.css +1 -1
  125. package/es/grid/index.d.ts +20 -22
  126. package/es/grid-item/GridItem.d.ts +15 -82
  127. package/es/grid-item/index.css +1 -1
  128. package/es/grid-item/index.d.ts +13 -62
  129. package/es/icon/Icon.d.ts +16 -79
  130. package/es/icon/index.css +1 -1
  131. package/es/icon/index.d.ts +14 -59
  132. package/es/icon/index.less +1 -0
  133. package/es/image/Image.d.ts +32 -32
  134. package/es/image/Image.js +13 -4
  135. package/es/image/index.css +1 -1
  136. package/es/image/index.d.ts +30 -32
  137. package/es/image-preview/ImagePreview.d.ts +54 -42
  138. package/es/image-preview/ImagePreviewItem.d.ts +21 -18
  139. package/es/image-preview/ImagePreviewItem.js +12 -4
  140. package/es/image-preview/function-call.d.ts +54 -42
  141. package/es/image-preview/index.css +1 -1
  142. package/es/image-preview/index.less +0 -1
  143. package/es/index-anchor/IndexAnchor.d.ts +3 -5
  144. package/es/index-anchor/index.css +1 -1
  145. package/es/index-anchor/index.d.ts +3 -5
  146. package/es/index-bar/IndexBar.d.ts +20 -19
  147. package/es/index-bar/IndexBar.js +3 -1
  148. package/es/index-bar/index.css +1 -1
  149. package/es/index-bar/index.d.ts +19 -18
  150. package/es/index.d.ts +1 -1
  151. package/es/index.js +1 -1
  152. package/es/list/List.d.ts +20 -22
  153. package/es/list/index.css +1 -1
  154. package/es/list/index.d.ts +20 -22
  155. package/es/loading/Loading.d.ts +11 -16
  156. package/es/loading/index.css +1 -1
  157. package/es/loading/index.d.ts +11 -16
  158. package/es/locale/lang/bn-BD.d.ts +64 -0
  159. package/es/locale/lang/bn-BD.js +74 -0
  160. package/es/locale/lang/de-DE-formal.d.ts +2 -11
  161. package/es/locale/lang/de-DE-formal.js +3 -12
  162. package/es/locale/lang/de-DE.d.ts +2 -11
  163. package/es/locale/lang/de-DE.js +3 -12
  164. package/es/locale/lang/en-US.d.ts +2 -11
  165. package/es/locale/lang/en-US.js +3 -12
  166. package/es/locale/lang/es-ES.d.ts +2 -11
  167. package/es/locale/lang/es-ES.js +3 -12
  168. package/es/locale/lang/fr-FR.d.ts +2 -11
  169. package/es/locale/lang/fr-FR.js +3 -12
  170. package/es/locale/lang/hi-IN.d.ts +64 -0
  171. package/es/locale/lang/hi-IN.js +74 -0
  172. package/es/locale/lang/id-ID.d.ts +64 -0
  173. package/es/locale/lang/id-ID.js +66 -0
  174. package/es/locale/lang/it-IT.d.ts +64 -0
  175. package/es/locale/lang/it-IT.js +74 -0
  176. package/es/locale/lang/ja-JP.d.ts +2 -12
  177. package/es/locale/lang/ja-JP.js +5 -15
  178. package/es/locale/lang/ko-KR.d.ts +64 -0
  179. package/es/locale/lang/ko-KR.js +74 -0
  180. package/es/locale/lang/nb-NO.d.ts +2 -11
  181. package/es/locale/lang/nb-NO.js +3 -12
  182. package/es/locale/lang/pt-BR.d.ts +2 -11
  183. package/es/locale/lang/pt-BR.js +3 -12
  184. package/es/locale/lang/ro-RO.d.ts +2 -11
  185. package/es/locale/lang/ro-RO.js +3 -12
  186. package/es/locale/lang/ru-RU.d.ts +2 -11
  187. package/es/locale/lang/ru-RU.js +3 -12
  188. package/es/locale/lang/th-TH.d.ts +2 -12
  189. package/es/locale/lang/th-TH.js +5 -15
  190. package/es/locale/lang/tr-TR.d.ts +2 -11
  191. package/es/locale/lang/tr-TR.js +2 -11
  192. package/es/locale/lang/uk-UA.d.ts +64 -0
  193. package/es/locale/lang/uk-UA.js +74 -0
  194. package/es/locale/lang/vi-VN.d.ts +64 -0
  195. package/es/locale/lang/vi-VN.js +74 -0
  196. package/es/locale/lang/zh-CN.d.ts +2 -12
  197. package/es/locale/lang/zh-CN.js +6 -16
  198. package/es/locale/lang/zh-HK.d.ts +2 -12
  199. package/es/locale/lang/zh-HK.js +6 -16
  200. package/es/locale/lang/zh-TW.d.ts +2 -12
  201. package/es/locale/lang/zh-TW.js +6 -16
  202. package/es/nav-bar/NavBar.d.ts +14 -22
  203. package/es/nav-bar/index.css +1 -1
  204. package/es/nav-bar/index.d.ts +14 -22
  205. package/es/nav-bar/index.less +0 -1
  206. package/es/notice-bar/NoticeBar.d.ts +20 -22
  207. package/es/notice-bar/index.css +1 -1
  208. package/es/notice-bar/index.d.ts +20 -22
  209. package/es/notify/Notify.d.ts +39 -39
  210. package/es/notify/function-call.d.ts +39 -39
  211. package/es/notify/index.css +1 -1
  212. package/es/number-keyboard/NumberKeyboard.d.ts +46 -38
  213. package/es/number-keyboard/NumberKeyboardKey.d.ts +8 -16
  214. package/es/number-keyboard/index.css +1 -1
  215. package/es/number-keyboard/index.d.ts +46 -38
  216. package/es/number-keyboard/index.less +0 -1
  217. package/es/overlay/Overlay.d.ts +24 -16
  218. package/es/overlay/Overlay.js +2 -1
  219. package/es/overlay/index.css +1 -1
  220. package/es/overlay/index.d.ts +20 -16
  221. package/es/pagination/Pagination.d.ts +29 -22
  222. package/es/pagination/index.css +1 -1
  223. package/es/pagination/index.d.ts +29 -22
  224. package/es/password-input/PasswordInput.d.ts +18 -18
  225. package/es/password-input/index.css +1 -1
  226. package/es/password-input/index.d.ts +18 -18
  227. package/es/picker/Picker.d.ts +38 -33
  228. package/es/picker/PickerColumn.d.ts +29 -22
  229. package/es/picker/index.css +1 -1
  230. package/es/picker/index.d.ts +38 -33
  231. package/es/picker/index.less +0 -1
  232. package/es/popover/Popover.d.ts +48 -36
  233. package/es/popover/index.css +1 -1
  234. package/es/popover/index.d.ts +48 -36
  235. package/es/popup/Popup.d.ts +45 -45
  236. package/es/popup/Popup.js +11 -3
  237. package/es/popup/index.css +1 -1
  238. package/es/popup/index.d.ts +45 -45
  239. package/es/popup/index.less +0 -1
  240. package/es/popup/types.d.ts +5 -2
  241. package/es/progress/Progress.d.ts +18 -22
  242. package/es/progress/index.css +1 -1
  243. package/es/progress/index.d.ts +18 -22
  244. package/es/pull-refresh/PullRefresh.d.ts +21 -24
  245. package/es/pull-refresh/index.css +1 -1
  246. package/es/pull-refresh/index.d.ts +21 -24
  247. package/es/radio/Radio.d.ts +13 -20
  248. package/es/radio/index.css +1 -1
  249. package/es/radio/index.d.ts +13 -20
  250. package/es/radio-group/RadioGroup.d.ts +7 -14
  251. package/es/radio-group/index.css +1 -1
  252. package/es/radio-group/index.d.ts +7 -14
  253. package/es/rate/Rate.d.ts +31 -32
  254. package/es/rate/index.css +1 -1
  255. package/es/rate/index.d.ts +31 -32
  256. package/es/row/Row.d.ts +16 -14
  257. package/es/row/index.css +1 -1
  258. package/es/row/index.d.ts +16 -14
  259. package/es/search/Search.d.ts +58 -51
  260. package/es/search/index.css +1 -1
  261. package/es/search/index.d.ts +58 -51
  262. package/es/share-sheet/ShareSheet.d.ts +45 -41
  263. package/es/share-sheet/index.css +1 -1
  264. package/es/share-sheet/index.d.ts +45 -41
  265. package/es/share-sheet/index.less +0 -1
  266. package/es/sidebar/Sidebar.d.ts +6 -5
  267. package/es/sidebar/index.css +1 -1
  268. package/es/sidebar/index.d.ts +6 -5
  269. package/es/sidebar-item/SidebarItem.d.ts +13 -78
  270. package/es/sidebar-item/index.css +1 -1
  271. package/es/sidebar-item/index.d.ts +11 -58
  272. package/es/skeleton/Skeleton.d.ts +27 -24
  273. package/es/skeleton/Skeleton.js +1 -1
  274. package/es/skeleton/index.css +1 -1
  275. package/es/skeleton/index.d.ts +27 -24
  276. package/es/slider/Slider.d.ts +27 -30
  277. package/es/slider/index.css +1 -1
  278. package/es/slider/index.d.ts +27 -30
  279. package/es/step/Step.d.ts +1 -1
  280. package/es/step/index.css +1 -1
  281. package/es/step/index.d.ts +1 -1
  282. package/es/stepper/Stepper.d.ts +51 -48
  283. package/es/stepper/index.css +1 -1
  284. package/es/stepper/index.d.ts +51 -48
  285. package/es/stepper/index.less +0 -1
  286. package/es/steps/Steps.d.ts +19 -20
  287. package/es/steps/index.css +1 -1
  288. package/es/steps/index.d.ts +19 -20
  289. package/es/sticky/Sticky.d.ts +16 -14
  290. package/es/sticky/index.css +1 -1
  291. package/es/sticky/index.d.ts +16 -14
  292. package/es/style/animation.css +1 -1
  293. package/es/style/base.css +1 -1
  294. package/es/style/base.less +6 -2
  295. package/es/style/css-variables.css +1 -1
  296. package/es/style/normalize.css +1 -1
  297. package/es/submit-bar/SubmitBar.d.ts +28 -32
  298. package/es/submit-bar/index.css +1 -1
  299. package/es/submit-bar/index.d.ts +28 -32
  300. package/es/submit-bar/index.less +1 -0
  301. package/es/swipe/Swipe.d.ts +35 -28
  302. package/es/swipe/index.css +1 -1
  303. package/es/swipe/index.d.ts +35 -28
  304. package/es/swipe-cell/SwipeCell.d.ts +11 -16
  305. package/es/swipe-cell/index.css +1 -1
  306. package/es/swipe-cell/index.d.ts +11 -16
  307. package/es/swipe-item/SwipeItem.d.ts +1 -1
  308. package/es/swipe-item/index.css +1 -1
  309. package/es/swipe-item/index.d.ts +1 -1
  310. package/es/switch/Switch.d.ts +16 -20
  311. package/es/switch/index.css +1 -1
  312. package/es/switch/index.d.ts +16 -20
  313. package/es/tab/Tab.d.ts +16 -25
  314. package/es/tab/index.css +1 -1
  315. package/es/tab/index.d.ts +16 -25
  316. package/es/tabbar/Tabbar.d.ts +24 -24
  317. package/es/tabbar/index.css +1 -1
  318. package/es/tabbar/index.d.ts +24 -24
  319. package/es/tabbar-item/TabbarItem.d.ts +14 -80
  320. package/es/tabbar-item/index.css +1 -1
  321. package/es/tabbar-item/index.d.ts +12 -60
  322. package/es/tabs/Tabs.d.ts +43 -44
  323. package/es/tabs/TabsContent.d.ts +18 -17
  324. package/es/tabs/TabsTitle.d.ts +19 -32
  325. package/es/tabs/index.css +1 -1
  326. package/es/tabs/index.d.ts +43 -44
  327. package/es/tag/Tag.d.ts +17 -22
  328. package/es/tag/Tag.js +2 -2
  329. package/es/tag/index.css +1 -1
  330. package/es/tag/index.d.ts +17 -22
  331. package/es/tag/index.less +0 -1
  332. package/es/toast/Toast.d.ts +34 -38
  333. package/es/toast/Toast.js +2 -1
  334. package/es/toast/index.css +1 -1
  335. package/es/tree-select/TreeSelect.d.ts +26 -15
  336. package/es/tree-select/TreeSelect.js +3 -2
  337. package/es/tree-select/index.css +1 -1
  338. package/es/tree-select/index.d.ts +26 -15
  339. package/es/uploader/Uploader.d.ts +61 -50
  340. package/es/uploader/UploaderPreviewItem.d.ts +13 -20
  341. package/es/uploader/index.css +1 -1
  342. package/es/uploader/index.d.ts +61 -50
  343. package/es/uploader/types.d.ts +1 -3
  344. package/es/utils/interceptor.d.ts +1 -1
  345. package/lib/action-bar/ActionBar.d.ts +6 -5
  346. package/lib/action-bar/ActionBar.js +14 -13
  347. package/lib/action-bar/index.css +1 -1
  348. package/lib/action-bar/index.d.ts +6 -5
  349. package/lib/action-bar/index.js +14 -8
  350. package/lib/action-bar-button/ActionBarButton.d.ts +11 -21
  351. package/lib/action-bar-button/ActionBarButton.js +18 -17
  352. package/lib/action-bar-button/index.css +1 -1
  353. package/lib/action-bar-button/index.d.ts +11 -21
  354. package/lib/action-bar-button/index.js +14 -8
  355. package/lib/action-bar-icon/ActionBarIcon.d.ts +16 -84
  356. package/lib/action-bar-icon/ActionBarIcon.js +18 -17
  357. package/lib/action-bar-icon/index.css +1 -1
  358. package/lib/action-bar-icon/index.d.ts +14 -64
  359. package/lib/action-bar-icon/index.js +14 -8
  360. package/lib/action-sheet/ActionSheet.d.ts +54 -47
  361. package/lib/action-sheet/ActionSheet.js +17 -16
  362. package/lib/action-sheet/index.css +1 -1
  363. package/lib/action-sheet/index.d.ts +54 -47
  364. package/lib/action-sheet/index.js +14 -8
  365. package/lib/address-edit/AddressEdit.d.ts +48 -48
  366. package/lib/address-edit/AddressEdit.js +25 -19
  367. package/lib/address-edit/AddressEditDetail.d.ts +10 -20
  368. package/lib/address-edit/AddressEditDetail.js +19 -17
  369. package/lib/address-edit/index.css +1 -1
  370. package/lib/address-edit/index.d.ts +48 -48
  371. package/lib/address-edit/index.js +14 -8
  372. package/lib/address-edit/types.js +18 -1
  373. package/lib/address-list/AddressList.d.ts +18 -18
  374. package/lib/address-list/AddressList.js +18 -12
  375. package/lib/address-list/AddressListItem.d.ts +9 -12
  376. package/lib/address-list/AddressListItem.js +17 -16
  377. package/lib/address-list/index.css +1 -1
  378. package/lib/address-list/index.d.ts +18 -18
  379. package/lib/address-list/index.js +14 -8
  380. package/lib/address-list/index.less +1 -1
  381. package/lib/area/Area.d.ts +41 -33
  382. package/lib/area/Area.js +20 -17
  383. package/lib/area/index.d.ts +41 -33
  384. package/lib/area/index.js +14 -8
  385. package/lib/area/types.js +18 -1
  386. package/lib/badge/Badge.d.ts +19 -20
  387. package/lib/badge/Badge.js +13 -12
  388. package/lib/badge/index.css +1 -1
  389. package/lib/badge/index.d.ts +19 -20
  390. package/lib/badge/index.js +14 -8
  391. package/lib/button/Button.d.ts +39 -47
  392. package/lib/button/Button.js +16 -15
  393. package/lib/button/index.css +1 -1
  394. package/lib/button/index.d.ts +39 -47
  395. package/lib/button/index.js +14 -8
  396. package/lib/button/types.js +18 -1
  397. package/lib/calendar/Calendar.d.ts +85 -62
  398. package/lib/calendar/Calendar.js +30 -19
  399. package/lib/calendar/CalendarDay.d.ts +13 -14
  400. package/lib/calendar/CalendarDay.js +14 -13
  401. package/lib/calendar/CalendarHeader.d.ts +7 -14
  402. package/lib/calendar/CalendarHeader.js +14 -13
  403. package/lib/calendar/CalendarMonth.d.ts +25 -32
  404. package/lib/calendar/CalendarMonth.js +22 -16
  405. package/lib/calendar/index.css +1 -1
  406. package/lib/calendar/index.d.ts +85 -62
  407. package/lib/calendar/index.js +14 -8
  408. package/lib/calendar/types.js +18 -1
  409. package/lib/calendar/utils.js +11 -10
  410. package/lib/card/Card.d.ts +16 -26
  411. package/lib/card/Card.js +15 -14
  412. package/lib/card/index.css +1 -1
  413. package/lib/card/index.d.ts +16 -26
  414. package/lib/card/index.js +14 -8
  415. package/lib/cascader/Cascader.d.ts +36 -22
  416. package/lib/cascader/Cascader.js +19 -17
  417. package/lib/cascader/index.css +1 -1
  418. package/lib/cascader/index.d.ts +32 -22
  419. package/lib/cascader/index.js +14 -8
  420. package/lib/cascader/types.js +18 -1
  421. package/lib/cell/Cell.d.ts +27 -41
  422. package/lib/cell/Cell.js +15 -14
  423. package/lib/cell/index.css +1 -1
  424. package/lib/cell/index.d.ts +27 -41
  425. package/lib/cell/index.js +14 -8
  426. package/lib/cell-group/CellGroup.d.ts +8 -10
  427. package/lib/cell-group/CellGroup.js +13 -12
  428. package/lib/cell-group/index.css +1 -1
  429. package/lib/cell-group/index.d.ts +8 -10
  430. package/lib/cell-group/index.js +14 -8
  431. package/lib/checkbox/Checkbox.d.ts +17 -21
  432. package/lib/checkbox/Checkbox.js +19 -13
  433. package/lib/checkbox/Checker.d.ts +24 -29
  434. package/lib/checkbox/Checker.js +14 -13
  435. package/lib/checkbox/index.css +1 -1
  436. package/lib/checkbox/index.d.ts +17 -21
  437. package/lib/checkbox/index.js +14 -8
  438. package/lib/checkbox/types.js +18 -1
  439. package/lib/checkbox-group/CheckboxGroup.d.ts +11 -16
  440. package/lib/checkbox-group/CheckboxGroup.js +15 -14
  441. package/lib/checkbox-group/index.css +1 -1
  442. package/lib/checkbox-group/index.d.ts +11 -16
  443. package/lib/checkbox-group/index.js +14 -8
  444. package/lib/checkbox-group/types.js +18 -1
  445. package/lib/circle/Circle.d.ts +35 -28
  446. package/lib/circle/Circle.js +14 -13
  447. package/lib/circle/index.css +1 -1
  448. package/lib/circle/index.d.ts +35 -28
  449. package/lib/circle/index.js +14 -8
  450. package/lib/col/Col.d.ts +11 -10
  451. package/lib/col/Col.js +15 -14
  452. package/lib/col/index.css +1 -1
  453. package/lib/col/index.d.ts +11 -10
  454. package/lib/col/index.js +14 -8
  455. package/lib/collapse/Collapse.d.ts +11 -9
  456. package/lib/collapse/Collapse.js +14 -13
  457. package/lib/collapse/index.d.ts +11 -9
  458. package/lib/collapse/index.js +14 -8
  459. package/lib/collapse-item/CollapseItem.d.ts +44 -41
  460. package/lib/collapse-item/CollapseItem.js +22 -20
  461. package/lib/collapse-item/index.css +1 -1
  462. package/lib/collapse-item/index.d.ts +40 -41
  463. package/lib/collapse-item/index.js +14 -8
  464. package/lib/collapse-item/types.js +18 -1
  465. package/lib/composables/on-popup-reopen.js +11 -10
  466. package/lib/composables/use-expose.js +12 -11
  467. package/lib/composables/use-height.js +18 -13
  468. package/lib/composables/use-id.js +11 -10
  469. package/lib/composables/use-lazy-render.js +11 -10
  470. package/lib/composables/use-lock-scroll.js +14 -13
  471. package/lib/composables/use-placeholder.js +12 -11
  472. package/lib/composables/use-refs.js +11 -10
  473. package/lib/composables/use-route.js +11 -10
  474. package/lib/composables/use-tab-status.js +11 -10
  475. package/lib/composables/use-touch.js +11 -10
  476. package/lib/composables/use-visibility-change.js +13 -12
  477. package/lib/config-provider/ConfigProvider.d.ts +8 -10
  478. package/lib/config-provider/ConfigProvider.js +13 -12
  479. package/lib/config-provider/index.d.ts +8 -10
  480. package/lib/config-provider/index.js +14 -8
  481. package/lib/contact-card/ContactCard.d.ts +13 -14
  482. package/lib/contact-card/ContactCard.js +15 -14
  483. package/lib/contact-card/index.css +1 -1
  484. package/lib/contact-card/index.d.ts +13 -14
  485. package/lib/contact-card/index.js +14 -8
  486. package/lib/contact-edit/ContactEdit.d.ts +15 -18
  487. package/lib/contact-edit/ContactEdit.js +18 -17
  488. package/lib/contact-edit/index.css +1 -1
  489. package/lib/contact-edit/index.d.ts +15 -18
  490. package/lib/contact-edit/index.js +14 -8
  491. package/lib/contact-list/ContactList.d.ts +6 -11
  492. package/lib/contact-list/ContactList.js +20 -19
  493. package/lib/contact-list/index.css +1 -1
  494. package/lib/contact-list/index.d.ts +6 -11
  495. package/lib/contact-list/index.js +14 -8
  496. package/lib/count-down/CountDown.d.ts +15 -11
  497. package/lib/count-down/CountDown.js +16 -15
  498. package/lib/count-down/index.css +1 -1
  499. package/lib/count-down/index.d.ts +15 -11
  500. package/lib/count-down/index.js +14 -8
  501. package/lib/count-down/types.js +18 -1
  502. package/lib/count-down/utils.js +11 -10
  503. package/lib/coupon/Coupon.d.ts +12 -11
  504. package/lib/coupon/Coupon.js +15 -14
  505. package/lib/coupon/index.css +1 -1
  506. package/lib/coupon/index.d.ts +12 -11
  507. package/lib/coupon/index.js +14 -8
  508. package/lib/coupon/utils.js +11 -10
  509. package/lib/coupon-cell/CouponCell.d.ts +23 -16
  510. package/lib/coupon-cell/CouponCell.js +14 -13
  511. package/lib/coupon-cell/index.css +1 -1
  512. package/lib/coupon-cell/index.d.ts +23 -16
  513. package/lib/coupon-cell/index.js +14 -8
  514. package/lib/coupon-list/CouponList.d.ts +53 -40
  515. package/lib/coupon-list/CouponList.js +20 -19
  516. package/lib/coupon-list/index.css +1 -1
  517. package/lib/coupon-list/index.d.ts +53 -40
  518. package/lib/coupon-list/index.js +14 -8
  519. package/lib/datetime-picker/DatePicker.d.ts +45 -36
  520. package/lib/datetime-picker/DatePicker.js +16 -15
  521. package/lib/datetime-picker/DatetimePicker.js +18 -12
  522. package/lib/datetime-picker/TimePicker.d.ts +47 -38
  523. package/lib/datetime-picker/TimePicker.js +16 -15
  524. package/lib/datetime-picker/index.js +14 -8
  525. package/lib/datetime-picker/types.js +18 -1
  526. package/lib/datetime-picker/utils.js +12 -11
  527. package/lib/dialog/Dialog.d.ts +53 -59
  528. package/lib/dialog/Dialog.js +35 -18
  529. package/lib/dialog/function-call.d.ts +53 -59
  530. package/lib/dialog/function-call.js +16 -10
  531. package/lib/dialog/index.css +1 -1
  532. package/lib/dialog/index.js +11 -10
  533. package/lib/dialog/types.js +18 -1
  534. package/lib/divider/Divider.d.ts +11 -9
  535. package/lib/divider/Divider.js +13 -12
  536. package/lib/divider/index.css +1 -1
  537. package/lib/divider/index.d.ts +11 -9
  538. package/lib/divider/index.js +14 -8
  539. package/lib/dropdown-item/DropdownItem.d.ts +15 -18
  540. package/lib/dropdown-item/DropdownItem.js +19 -18
  541. package/lib/dropdown-item/index.css +1 -1
  542. package/lib/dropdown-item/index.d.ts +15 -18
  543. package/lib/dropdown-item/index.js +14 -8
  544. package/lib/dropdown-item/types.js +18 -1
  545. package/lib/dropdown-menu/DropdownMenu.d.ts +24 -18
  546. package/lib/dropdown-menu/DropdownMenu.js +15 -14
  547. package/lib/dropdown-menu/index.css +1 -1
  548. package/lib/dropdown-menu/index.d.ts +24 -18
  549. package/lib/dropdown-menu/index.js +14 -8
  550. package/lib/dropdown-menu/index.less +0 -1
  551. package/lib/dropdown-menu/types.js +18 -1
  552. package/lib/empty/Empty.d.ts +8 -10
  553. package/lib/empty/Empty.js +14 -13
  554. package/lib/empty/Network.js +11 -10
  555. package/lib/empty/index.css +1 -1
  556. package/lib/empty/index.d.ts +8 -10
  557. package/lib/empty/index.js +14 -8
  558. package/lib/field/Field.d.ts +80 -90
  559. package/lib/field/Field.js +20 -19
  560. package/lib/field/index.css +1 -1
  561. package/lib/field/index.d.ts +80 -90
  562. package/lib/field/index.js +14 -8
  563. package/lib/field/types.js +18 -1
  564. package/lib/field/utils.js +13 -11
  565. package/lib/form/Form.d.ts +24 -30
  566. package/lib/form/Form.js +15 -14
  567. package/lib/form/index.d.ts +24 -30
  568. package/lib/form/index.js +14 -8
  569. package/lib/form/types.js +18 -1
  570. package/lib/grid/Grid.d.ts +20 -22
  571. package/lib/grid/Grid.js +15 -14
  572. package/lib/grid/index.css +1 -1
  573. package/lib/grid/index.d.ts +20 -22
  574. package/lib/grid/index.js +14 -8
  575. package/lib/grid-item/GridItem.d.ts +15 -82
  576. package/lib/grid-item/GridItem.js +18 -17
  577. package/lib/grid-item/index.css +1 -1
  578. package/lib/grid-item/index.d.ts +13 -62
  579. package/lib/grid-item/index.js +14 -8
  580. package/lib/icon/Icon.d.ts +16 -79
  581. package/lib/icon/Icon.js +15 -14
  582. package/lib/icon/index.css +1 -1
  583. package/lib/icon/index.d.ts +14 -59
  584. package/lib/icon/index.js +14 -8
  585. package/lib/icon/index.less +1 -0
  586. package/lib/image/Image.d.ts +32 -32
  587. package/lib/image/Image.js +26 -16
  588. package/lib/image/index.css +1 -1
  589. package/lib/image/index.d.ts +30 -32
  590. package/lib/image/index.js +14 -8
  591. package/lib/image-preview/ImagePreview.d.ts +54 -42
  592. package/lib/image-preview/ImagePreview.js +21 -15
  593. package/lib/image-preview/ImagePreviewItem.d.ts +21 -18
  594. package/lib/image-preview/ImagePreviewItem.js +29 -20
  595. package/lib/image-preview/function-call.d.ts +54 -42
  596. package/lib/image-preview/function-call.js +16 -10
  597. package/lib/image-preview/index.css +1 -1
  598. package/lib/image-preview/index.js +11 -10
  599. package/lib/image-preview/index.less +0 -1
  600. package/lib/image-preview/types.js +18 -1
  601. package/lib/index-anchor/IndexAnchor.d.ts +3 -5
  602. package/lib/index-anchor/IndexAnchor.js +17 -16
  603. package/lib/index-anchor/index.css +1 -1
  604. package/lib/index-anchor/index.d.ts +3 -5
  605. package/lib/index-anchor/index.js +14 -8
  606. package/lib/index-bar/IndexBar.d.ts +20 -19
  607. package/lib/index-bar/IndexBar.js +19 -16
  608. package/lib/index-bar/index.css +1 -1
  609. package/lib/index-bar/index.d.ts +19 -18
  610. package/lib/index-bar/index.js +14 -8
  611. package/lib/index-bar/types.js +18 -1
  612. package/lib/index.css +1 -1
  613. package/lib/index.d.ts +1 -1
  614. package/lib/index.js +182 -181
  615. package/lib/lazyload/index.js +11 -10
  616. package/lib/lazyload/vue-lazyload/index.js +16 -10
  617. package/lib/lazyload/vue-lazyload/lazy-component.js +12 -11
  618. package/lib/lazyload/vue-lazyload/lazy-container.js +11 -10
  619. package/lib/lazyload/vue-lazyload/lazy-image.js +13 -12
  620. package/lib/lazyload/vue-lazyload/lazy.js +17 -11
  621. package/lib/lazyload/vue-lazyload/listener.js +13 -12
  622. package/lib/lazyload/vue-lazyload/util.js +11 -10
  623. package/lib/list/List.d.ts +20 -22
  624. package/lib/list/List.js +17 -16
  625. package/lib/list/index.css +1 -1
  626. package/lib/list/index.d.ts +20 -22
  627. package/lib/list/index.js +14 -8
  628. package/lib/list/types.js +18 -1
  629. package/lib/loading/Loading.d.ts +11 -16
  630. package/lib/loading/Loading.js +13 -12
  631. package/lib/loading/index.css +1 -1
  632. package/lib/loading/index.d.ts +11 -16
  633. package/lib/loading/index.js +14 -8
  634. package/lib/locale/index.js +15 -9
  635. package/lib/locale/lang/bn-BD.d.ts +64 -0
  636. package/lib/locale/lang/bn-BD.js +98 -0
  637. package/lib/locale/lang/de-DE-formal.d.ts +2 -11
  638. package/lib/locale/lang/de-DE-formal.js +22 -14
  639. package/lib/locale/lang/de-DE.d.ts +2 -11
  640. package/lib/locale/lang/de-DE.js +22 -14
  641. package/lib/locale/lang/en-US.d.ts +2 -11
  642. package/lib/locale/lang/en-US.js +22 -14
  643. package/lib/locale/lang/es-ES.d.ts +2 -11
  644. package/lib/locale/lang/es-ES.js +22 -14
  645. package/lib/locale/lang/fr-FR.d.ts +2 -11
  646. package/lib/locale/lang/fr-FR.js +22 -14
  647. package/lib/locale/lang/hi-IN.d.ts +64 -0
  648. package/lib/locale/lang/hi-IN.js +98 -0
  649. package/lib/locale/lang/id-ID.d.ts +64 -0
  650. package/lib/locale/lang/id-ID.js +90 -0
  651. package/lib/locale/lang/it-IT.d.ts +64 -0
  652. package/lib/locale/lang/it-IT.js +98 -0
  653. package/lib/locale/lang/ja-JP.d.ts +2 -12
  654. package/lib/locale/lang/ja-JP.js +24 -17
  655. package/lib/locale/lang/ko-KR.d.ts +64 -0
  656. package/lib/locale/lang/ko-KR.js +98 -0
  657. package/lib/locale/lang/nb-NO.d.ts +2 -11
  658. package/lib/locale/lang/nb-NO.js +22 -14
  659. package/lib/locale/lang/pt-BR.d.ts +2 -11
  660. package/lib/locale/lang/pt-BR.js +22 -14
  661. package/lib/locale/lang/ro-RO.d.ts +2 -11
  662. package/lib/locale/lang/ro-RO.js +22 -14
  663. package/lib/locale/lang/ru-RU.d.ts +2 -11
  664. package/lib/locale/lang/ru-RU.js +22 -14
  665. package/lib/locale/lang/th-TH.d.ts +2 -12
  666. package/lib/locale/lang/th-TH.js +24 -17
  667. package/lib/locale/lang/tr-TR.d.ts +2 -11
  668. package/lib/locale/lang/tr-TR.js +21 -13
  669. package/lib/locale/lang/uk-UA.d.ts +64 -0
  670. package/lib/locale/lang/uk-UA.js +98 -0
  671. package/lib/locale/lang/vi-VN.d.ts +64 -0
  672. package/lib/locale/lang/vi-VN.js +98 -0
  673. package/lib/locale/lang/zh-CN.d.ts +2 -12
  674. package/lib/locale/lang/zh-CN.js +25 -18
  675. package/lib/locale/lang/zh-HK.d.ts +2 -12
  676. package/lib/locale/lang/zh-HK.js +25 -18
  677. package/lib/locale/lang/zh-TW.d.ts +2 -12
  678. package/lib/locale/lang/zh-TW.js +25 -18
  679. package/lib/nav-bar/NavBar.d.ts +14 -22
  680. package/lib/nav-bar/NavBar.js +15 -14
  681. package/lib/nav-bar/index.css +1 -1
  682. package/lib/nav-bar/index.d.ts +14 -22
  683. package/lib/nav-bar/index.js +14 -8
  684. package/lib/nav-bar/index.less +0 -1
  685. package/lib/notice-bar/NoticeBar.d.ts +20 -22
  686. package/lib/notice-bar/NoticeBar.js +17 -16
  687. package/lib/notice-bar/index.css +1 -1
  688. package/lib/notice-bar/index.d.ts +20 -22
  689. package/lib/notice-bar/index.js +14 -8
  690. package/lib/notice-bar/types.js +18 -1
  691. package/lib/notify/Notify.d.ts +39 -39
  692. package/lib/notify/Notify.js +15 -14
  693. package/lib/notify/function-call.d.ts +39 -39
  694. package/lib/notify/function-call.js +16 -10
  695. package/lib/notify/index.css +1 -1
  696. package/lib/notify/index.js +11 -10
  697. package/lib/notify/types.js +18 -1
  698. package/lib/number-keyboard/NumberKeyboard.d.ts +46 -38
  699. package/lib/number-keyboard/NumberKeyboard.js +17 -11
  700. package/lib/number-keyboard/NumberKeyboardKey.d.ts +8 -16
  701. package/lib/number-keyboard/NumberKeyboardKey.js +15 -14
  702. package/lib/number-keyboard/index.css +1 -1
  703. package/lib/number-keyboard/index.d.ts +46 -38
  704. package/lib/number-keyboard/index.js +14 -8
  705. package/lib/number-keyboard/index.less +0 -1
  706. package/lib/overlay/Overlay.d.ts +24 -16
  707. package/lib/overlay/Overlay.js +16 -14
  708. package/lib/overlay/index.css +1 -1
  709. package/lib/overlay/index.d.ts +20 -16
  710. package/lib/overlay/index.js +14 -8
  711. package/lib/pagination/Pagination.d.ts +29 -22
  712. package/lib/pagination/Pagination.js +13 -12
  713. package/lib/pagination/index.css +1 -1
  714. package/lib/pagination/index.d.ts +29 -22
  715. package/lib/pagination/index.js +14 -8
  716. package/lib/password-input/PasswordInput.d.ts +18 -18
  717. package/lib/password-input/PasswordInput.js +13 -12
  718. package/lib/password-input/index.css +1 -1
  719. package/lib/password-input/index.d.ts +18 -18
  720. package/lib/password-input/index.js +14 -8
  721. package/lib/picker/Picker.d.ts +38 -33
  722. package/lib/picker/Picker.js +19 -13
  723. package/lib/picker/PickerColumn.d.ts +29 -22
  724. package/lib/picker/PickerColumn.js +17 -16
  725. package/lib/picker/index.css +1 -1
  726. package/lib/picker/index.d.ts +38 -33
  727. package/lib/picker/index.js +14 -8
  728. package/lib/picker/index.less +0 -1
  729. package/lib/picker/types.js +18 -1
  730. package/lib/popover/Popover.d.ts +48 -36
  731. package/lib/popover/Popover.js +17 -16
  732. package/lib/popover/index.css +1 -1
  733. package/lib/popover/index.d.ts +48 -36
  734. package/lib/popover/index.js +14 -8
  735. package/lib/popover/types.js +18 -1
  736. package/lib/popup/Popup.d.ts +45 -45
  737. package/lib/popup/Popup.js +31 -22
  738. package/lib/popup/index.css +1 -1
  739. package/lib/popup/index.d.ts +45 -45
  740. package/lib/popup/index.js +14 -8
  741. package/lib/popup/index.less +0 -1
  742. package/lib/popup/shared.js +11 -10
  743. package/lib/popup/types.d.ts +5 -2
  744. package/lib/popup/types.js +18 -1
  745. package/lib/progress/Progress.d.ts +18 -22
  746. package/lib/progress/Progress.js +13 -12
  747. package/lib/progress/index.css +1 -1
  748. package/lib/progress/index.d.ts +18 -22
  749. package/lib/progress/index.js +14 -8
  750. package/lib/progress/types.js +18 -1
  751. package/lib/pull-refresh/PullRefresh.d.ts +21 -24
  752. package/lib/pull-refresh/PullRefresh.js +16 -15
  753. package/lib/pull-refresh/index.css +1 -1
  754. package/lib/pull-refresh/index.d.ts +21 -24
  755. package/lib/pull-refresh/index.js +14 -8
  756. package/lib/radio/Radio.d.ts +13 -20
  757. package/lib/radio/Radio.js +18 -12
  758. package/lib/radio/index.css +1 -1
  759. package/lib/radio/index.d.ts +13 -20
  760. package/lib/radio/index.js +14 -8
  761. package/lib/radio-group/RadioGroup.d.ts +7 -14
  762. package/lib/radio-group/RadioGroup.js +14 -13
  763. package/lib/radio-group/index.css +1 -1
  764. package/lib/radio-group/index.d.ts +7 -14
  765. package/lib/radio-group/index.js +14 -8
  766. package/lib/rate/Rate.d.ts +31 -32
  767. package/lib/rate/Rate.js +17 -16
  768. package/lib/rate/index.css +1 -1
  769. package/lib/rate/index.d.ts +31 -32
  770. package/lib/rate/index.js +14 -8
  771. package/lib/row/Row.d.ts +16 -14
  772. package/lib/row/Row.js +14 -13
  773. package/lib/row/index.css +1 -1
  774. package/lib/row/index.d.ts +16 -14
  775. package/lib/row/index.js +14 -8
  776. package/lib/search/Search.d.ts +58 -51
  777. package/lib/search/Search.js +17 -16
  778. package/lib/search/index.css +1 -1
  779. package/lib/search/index.d.ts +58 -51
  780. package/lib/search/index.js +14 -8
  781. package/lib/search/types.js +18 -1
  782. package/lib/share-sheet/ShareSheet.d.ts +45 -41
  783. package/lib/share-sheet/ShareSheet.js +15 -14
  784. package/lib/share-sheet/index.css +1 -1
  785. package/lib/share-sheet/index.d.ts +45 -41
  786. package/lib/share-sheet/index.js +14 -8
  787. package/lib/share-sheet/index.less +0 -1
  788. package/lib/sidebar/Sidebar.d.ts +6 -5
  789. package/lib/sidebar/Sidebar.js +14 -13
  790. package/lib/sidebar/index.css +1 -1
  791. package/lib/sidebar/index.d.ts +6 -5
  792. package/lib/sidebar/index.js +14 -8
  793. package/lib/sidebar-item/SidebarItem.d.ts +13 -78
  794. package/lib/sidebar-item/SidebarItem.js +17 -16
  795. package/lib/sidebar-item/index.css +1 -1
  796. package/lib/sidebar-item/index.d.ts +11 -58
  797. package/lib/sidebar-item/index.js +14 -8
  798. package/lib/skeleton/Skeleton.d.ts +27 -24
  799. package/lib/skeleton/Skeleton.js +14 -13
  800. package/lib/skeleton/index.css +1 -1
  801. package/lib/skeleton/index.d.ts +27 -24
  802. package/lib/skeleton/index.js +14 -8
  803. package/lib/slider/Slider.d.ts +27 -30
  804. package/lib/slider/Slider.js +15 -14
  805. package/lib/slider/index.css +1 -1
  806. package/lib/slider/index.d.ts +27 -30
  807. package/lib/slider/index.js +14 -8
  808. package/lib/step/Step.d.ts +1 -1
  809. package/lib/step/Step.js +16 -15
  810. package/lib/step/index.css +1 -1
  811. package/lib/step/index.d.ts +1 -1
  812. package/lib/step/index.js +14 -8
  813. package/lib/stepper/Stepper.d.ts +51 -48
  814. package/lib/stepper/Stepper.js +14 -13
  815. package/lib/stepper/index.css +1 -1
  816. package/lib/stepper/index.d.ts +51 -48
  817. package/lib/stepper/index.js +14 -8
  818. package/lib/stepper/index.less +0 -1
  819. package/lib/steps/Steps.d.ts +19 -20
  820. package/lib/steps/Steps.js +14 -13
  821. package/lib/steps/index.css +1 -1
  822. package/lib/steps/index.d.ts +19 -20
  823. package/lib/steps/index.js +14 -8
  824. package/lib/sticky/Sticky.d.ts +16 -14
  825. package/lib/sticky/Sticky.js +15 -14
  826. package/lib/sticky/index.css +1 -1
  827. package/lib/sticky/index.d.ts +16 -14
  828. package/lib/sticky/index.js +14 -8
  829. package/lib/style/animation.css +1 -1
  830. package/lib/style/base.css +1 -1
  831. package/lib/style/base.less +6 -2
  832. package/lib/style/css-variables.css +1 -1
  833. package/lib/style/normalize.css +1 -1
  834. package/lib/submit-bar/SubmitBar.d.ts +28 -32
  835. package/lib/submit-bar/SubmitBar.js +15 -14
  836. package/lib/submit-bar/index.css +1 -1
  837. package/lib/submit-bar/index.d.ts +28 -32
  838. package/lib/submit-bar/index.js +14 -8
  839. package/lib/submit-bar/index.less +1 -0
  840. package/lib/swipe/Swipe.d.ts +35 -28
  841. package/lib/swipe/Swipe.js +17 -16
  842. package/lib/swipe/index.css +1 -1
  843. package/lib/swipe/index.d.ts +35 -28
  844. package/lib/swipe/index.js +14 -8
  845. package/lib/swipe/types.js +18 -1
  846. package/lib/swipe-cell/SwipeCell.d.ts +11 -16
  847. package/lib/swipe-cell/SwipeCell.js +16 -15
  848. package/lib/swipe-cell/index.css +1 -1
  849. package/lib/swipe-cell/index.d.ts +11 -16
  850. package/lib/swipe-cell/index.js +14 -8
  851. package/lib/swipe-cell/types.js +18 -1
  852. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  853. package/lib/swipe-item/SwipeItem.js +16 -15
  854. package/lib/swipe-item/index.css +1 -1
  855. package/lib/swipe-item/index.d.ts +1 -1
  856. package/lib/swipe-item/index.js +14 -8
  857. package/lib/switch/Switch.d.ts +16 -20
  858. package/lib/switch/Switch.js +15 -14
  859. package/lib/switch/index.css +1 -1
  860. package/lib/switch/index.d.ts +16 -20
  861. package/lib/switch/index.js +14 -8
  862. package/lib/tab/Tab.d.ts +16 -25
  863. package/lib/tab/Tab.js +20 -19
  864. package/lib/tab/index.css +1 -1
  865. package/lib/tab/index.d.ts +16 -25
  866. package/lib/tab/index.js +14 -8
  867. package/lib/tabbar/Tabbar.d.ts +24 -24
  868. package/lib/tabbar/Tabbar.js +15 -14
  869. package/lib/tabbar/index.css +1 -1
  870. package/lib/tabbar/index.d.ts +24 -24
  871. package/lib/tabbar/index.js +14 -8
  872. package/lib/tabbar-item/TabbarItem.d.ts +14 -80
  873. package/lib/tabbar-item/TabbarItem.js +18 -17
  874. package/lib/tabbar-item/index.css +1 -1
  875. package/lib/tabbar-item/index.d.ts +12 -60
  876. package/lib/tabbar-item/index.js +14 -8
  877. package/lib/tabs/Tabs.d.ts +43 -44
  878. package/lib/tabs/Tabs.js +25 -19
  879. package/lib/tabs/TabsContent.d.ts +18 -17
  880. package/lib/tabs/TabsContent.js +14 -13
  881. package/lib/tabs/TabsTitle.d.ts +19 -32
  882. package/lib/tabs/TabsTitle.js +14 -13
  883. package/lib/tabs/index.css +1 -1
  884. package/lib/tabs/index.d.ts +43 -44
  885. package/lib/tabs/index.js +14 -8
  886. package/lib/tabs/types.js +18 -1
  887. package/lib/tabs/utils.js +12 -11
  888. package/lib/tag/Tag.d.ts +17 -22
  889. package/lib/tag/Tag.js +15 -14
  890. package/lib/tag/index.css +1 -1
  891. package/lib/tag/index.d.ts +17 -22
  892. package/lib/tag/index.js +14 -8
  893. package/lib/tag/index.less +0 -1
  894. package/lib/toast/Toast.d.ts +34 -38
  895. package/lib/toast/Toast.js +19 -17
  896. package/lib/toast/function-call.js +17 -11
  897. package/lib/toast/index.css +1 -1
  898. package/lib/toast/index.js +11 -10
  899. package/lib/toast/lock-click.js +19 -2
  900. package/lib/toast/types.js +18 -1
  901. package/lib/tree-select/TreeSelect.d.ts +26 -15
  902. package/lib/tree-select/TreeSelect.js +19 -17
  903. package/lib/tree-select/index.css +1 -1
  904. package/lib/tree-select/index.d.ts +26 -15
  905. package/lib/tree-select/index.js +14 -8
  906. package/lib/uploader/Uploader.d.ts +61 -50
  907. package/lib/uploader/Uploader.js +21 -15
  908. package/lib/uploader/UploaderPreviewItem.d.ts +13 -20
  909. package/lib/uploader/UploaderPreviewItem.js +17 -16
  910. package/lib/uploader/index.css +1 -1
  911. package/lib/uploader/index.d.ts +61 -50
  912. package/lib/uploader/index.js +14 -8
  913. package/lib/uploader/types.d.ts +1 -3
  914. package/lib/uploader/types.js +18 -1
  915. package/lib/uploader/utils.js +11 -10
  916. package/lib/utils/basic.js +19 -2
  917. package/lib/utils/constant.js +19 -2
  918. package/lib/utils/create.js +16 -10
  919. package/lib/utils/deep-assign.js +11 -10
  920. package/lib/utils/deep-clone.js +11 -10
  921. package/lib/utils/dom.js +13 -12
  922. package/lib/utils/format.js +13 -12
  923. package/lib/utils/index.js +18 -17
  924. package/lib/utils/interceptor.d.ts +1 -1
  925. package/lib/utils/interceptor.js +12 -11
  926. package/lib/utils/mount-component.js +13 -12
  927. package/lib/utils/props.js +19 -2
  928. package/lib/utils/validate.js +11 -10
  929. package/lib/utils/with-install.js +11 -10
  930. package/lib/vant.cjs.js +100 -49
  931. package/lib/vant.cjs.min.js +1 -1
  932. package/lib/vant.es.js +101 -50
  933. package/lib/vant.es.min.js +101 -50
  934. package/lib/vant.js +104 -52
  935. package/lib/vant.min.js +1 -1
  936. package/package.json +6 -9
  937. package/vetur/attributes.json +1031 -1027
  938. package/vetur/tags.json +77 -76
  939. package/vetur/web-types.json +1952 -1942
@@ -18,24 +18,27 @@ declare const _default: import("vue").DefineComponent<{
18
18
  type: NumberConstructor;
19
19
  required: true;
20
20
  };
21
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "scale")[], "close" | "scale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
22
- src?: unknown;
23
- show?: unknown;
24
- active?: unknown;
25
- minZoom?: unknown;
26
- maxZoom?: unknown;
27
- rootWidth?: unknown;
28
- rootHeight?: unknown;
29
- } & {
30
- show: boolean;
31
- minZoom: string | number;
32
- maxZoom: string | number;
33
- rootWidth: number;
34
- rootHeight: number;
35
- } & {
36
- src?: string | undefined;
37
- active?: number | undefined;
38
- }> & {
21
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "scale")[], "close" | "scale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ src: StringConstructor;
23
+ show: BooleanConstructor;
24
+ active: NumberConstructor;
25
+ minZoom: {
26
+ type: (NumberConstructor | StringConstructor)[];
27
+ required: true;
28
+ };
29
+ maxZoom: {
30
+ type: (NumberConstructor | StringConstructor)[];
31
+ required: true;
32
+ };
33
+ rootWidth: {
34
+ type: NumberConstructor;
35
+ required: true;
36
+ };
37
+ rootHeight: {
38
+ type: NumberConstructor;
39
+ required: true;
40
+ };
41
+ }>> & {
39
42
  onClose?: ((...args: any[]) => any) | undefined;
40
43
  onScale?: ((...args: any[]) => any) | undefined;
41
44
  }, {
@@ -81,7 +81,7 @@ var stdin_default = defineComponent({
81
81
  return 0;
82
82
  });
83
83
  const setScale = (scale) => {
84
- scale = clamp(scale, +props.minZoom, +props.maxZoom);
84
+ scale = clamp(scale, +props.minZoom, +props.maxZoom + 1);
85
85
  if (scale !== state.scale) {
86
86
  state.scale = scale;
87
87
  emit("scale", {
@@ -101,6 +101,7 @@ var stdin_default = defineComponent({
101
101
  state.moveX = 0;
102
102
  state.moveY = 0;
103
103
  };
104
+ let fingerNum;
104
105
  let startMoveX;
105
106
  let startMoveY;
106
107
  let startScale;
@@ -115,11 +116,12 @@ var stdin_default = defineComponent({
115
116
  offsetX
116
117
  } = touch;
117
118
  touch.start(event);
119
+ fingerNum = touches.length;
118
120
  startMoveX = state.moveX;
119
121
  startMoveY = state.moveY;
120
122
  touchStartTime = Date.now();
121
- state.moving = touches.length === 1 && state.scale !== 1;
122
- state.zooming = touches.length === 2 && !offsetX.value;
123
+ state.moving = fingerNum === 1 && state.scale !== 1;
124
+ state.zooming = fingerNum === 2 && !offsetX.value;
123
125
  if (state.zooming) {
124
126
  startScale = state.scale;
125
127
  startDistance = getDistance(event.touches);
@@ -150,13 +152,16 @@ var stdin_default = defineComponent({
150
152
  }
151
153
  };
152
154
  const checkTap = () => {
155
+ if (fingerNum > 1) {
156
+ return;
157
+ }
153
158
  const {
154
159
  offsetX,
155
160
  offsetY
156
161
  } = touch;
157
162
  const deltaTime = Date.now() - touchStartTime;
158
163
  const TAP_TIME = 250;
159
- const TAP_OFFSET = 10;
164
+ const TAP_OFFSET = 5;
160
165
  if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET && deltaTime < TAP_TIME) {
161
166
  if (doubleTapTimer) {
162
167
  clearTimeout(doubleTapTimer);
@@ -190,6 +195,9 @@ var stdin_default = defineComponent({
190
195
  if (state.scale < 1) {
191
196
  resetScale();
192
197
  }
198
+ if (state.scale > props.maxZoom) {
199
+ state.scale = +props.maxZoom;
200
+ }
193
201
  }
194
202
  }
195
203
  preventDefault(event, stopPropagation);
@@ -56,48 +56,60 @@ declare const ImagePreview: {
56
56
  type: import("vue").PropType<import("..").PopupCloseIconPosition>;
57
57
  default: import("..").PopupCloseIconPosition;
58
58
  };
59
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale")[], "change" | "close" | "closed" | "update:show" | "scale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
60
- show?: unknown;
61
- loop?: unknown;
62
- images?: unknown;
63
- minZoom?: unknown;
64
- maxZoom?: unknown;
65
- overlay?: unknown;
66
- closeable?: unknown;
67
- showIndex?: unknown;
68
- className?: unknown;
69
- closeIcon?: unknown;
70
- transition?: unknown;
71
- beforeClose?: unknown;
72
- overlayClass?: unknown;
73
- overlayStyle?: unknown;
74
- swipeDuration?: unknown;
75
- startPosition?: unknown;
76
- showIndicators?: unknown;
77
- closeOnPopstate?: unknown;
78
- closeIconPosition?: unknown;
79
- } & {
80
- loop: boolean;
81
- overlay: boolean;
82
- show: boolean;
83
- closeIcon: string;
84
- closeable: boolean;
85
- closeOnPopstate: boolean;
86
- closeIconPosition: import("..").PopupCloseIconPosition;
87
- swipeDuration: string | number;
88
- showIndicators: boolean;
89
- startPosition: string | number;
90
- minZoom: string | number;
91
- maxZoom: string | number;
92
- images: string[];
93
- showIndex: boolean;
94
- } & {
95
- beforeClose?: import("../utils").Interceptor | undefined;
96
- overlayStyle?: import("vue").CSSProperties | undefined;
97
- overlayClass?: unknown;
98
- className?: unknown;
99
- transition?: string | undefined;
100
- }> & {
59
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale")[], "change" | "close" | "closed" | "update:show" | "scale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
60
+ show: BooleanConstructor;
61
+ loop: {
62
+ type: BooleanConstructor;
63
+ default: true;
64
+ };
65
+ images: {
66
+ type: import("vue").PropType<string[]>;
67
+ default: () => never[];
68
+ };
69
+ minZoom: {
70
+ type: (NumberConstructor | StringConstructor)[];
71
+ default: number;
72
+ };
73
+ maxZoom: {
74
+ type: (NumberConstructor | StringConstructor)[];
75
+ default: number;
76
+ };
77
+ overlay: {
78
+ type: BooleanConstructor;
79
+ default: true;
80
+ };
81
+ closeable: BooleanConstructor;
82
+ showIndex: {
83
+ type: BooleanConstructor;
84
+ default: true;
85
+ };
86
+ className: import("vue").PropType<unknown>;
87
+ closeIcon: {
88
+ type: import("vue").PropType<string>;
89
+ default: string;
90
+ };
91
+ transition: StringConstructor;
92
+ beforeClose: import("vue").PropType<import("../utils").Interceptor>;
93
+ overlayClass: import("vue").PropType<unknown>;
94
+ overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
95
+ swipeDuration: {
96
+ type: (NumberConstructor | StringConstructor)[];
97
+ default: number;
98
+ };
99
+ startPosition: {
100
+ type: (NumberConstructor | StringConstructor)[];
101
+ default: number;
102
+ };
103
+ showIndicators: BooleanConstructor;
104
+ closeOnPopstate: {
105
+ type: BooleanConstructor;
106
+ default: true;
107
+ };
108
+ closeIconPosition: {
109
+ type: import("vue").PropType<import("..").PopupCloseIconPosition>;
110
+ default: import("..").PopupCloseIconPosition;
111
+ };
112
+ }>> & {
101
113
  onChange?: ((...args: any[]) => any) | undefined;
102
114
  onClose?: ((...args: any[]) => any) | undefined;
103
115
  onClosed?: ((...args: any[]) => any) | undefined;
@@ -1 +1 @@
1
- :root{--van-image-preview-index-text-color:var(--van-white);--van-image-preview-index-font-size:var(--van-font-size-md);--van-image-preview-index-line-height:var(--van-line-height-md);--van-image-preview-index-text-shadow:0 1px 1px var(--van-gray-8);--van-image-preview-overlay-background-color:rgba(0, 0, 0, 0.9);--van-image-preview-close-icon-size:22px;--van-image-preview-close-icon-color:var(--van-gray-5);--van-image-preview-close-icon-margin:var(--van-padding-md);--van-image-preview-close-icon-z-index:1}.van-image-preview{position:fixed;top:0;left:0;width:100%;height:100%;background-color:transparent;transform:none}.van-image-preview__swipe{height:100%}.van-image-preview__swipe-item{display:flex;align-items:center;justify-content:center;overflow:hidden}.van-image-preview__cover{position:absolute;top:0;left:0}.van-image-preview__image{width:100%;transition-property:transform}.van-image-preview__image--vertical{width:auto;height:100%}.van-image-preview__image img{-webkit-user-drag:none}.van-image-preview__image .van-image__error{top:30%;height:40%}.van-image-preview__image .van-image__error-icon{font-size:36px}.van-image-preview__image .van-image__loading{background-color:transparent}.van-image-preview__index{position:absolute;top:var(--van-padding-md);left:50%;color:var(--van-image-preview-index-text-color);font-size:var(--van-image-preview-index-font-size);line-height:var(--van-image-preview-index-line-height);text-shadow:var(--van-image-preview-index-text-shadow);transform:translate(-50%,0)}.van-image-preview__overlay{background:var(--van-image-preview-overlay-background-color)}.van-image-preview__close-icon{position:absolute;z-index:var(--van-image-preview-close-icon-z-index);color:var(--van-image-preview-close-icon-color);font-size:var(--van-image-preview-close-icon-size);cursor:pointer}.van-image-preview__close-icon--top-left{top:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--top-right{top:var(--van-image-preview-close-icon-margin);right:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-left{bottom:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-right{right:var(--van-image-preview-close-icon-margin);bottom:var(--van-image-preview-close-icon-margin)}
1
+ :root{--van-image-preview-index-text-color: var(--van-white);--van-image-preview-index-font-size: var(--van-font-size-md);--van-image-preview-index-line-height: var(--van-line-height-md);--van-image-preview-index-text-shadow: 0 1px 1px var(--van-gray-8);--van-image-preview-overlay-background-color: rgba(0, 0, 0, .9);--van-image-preview-close-icon-size: 22px;--van-image-preview-close-icon-color: var(--van-gray-5);--van-image-preview-close-icon-margin: var(--van-padding-md);--van-image-preview-close-icon-z-index: 1}.van-image-preview{position:fixed;top:0;left:0;width:100%;height:100%;background-color:transparent;transform:none}.van-image-preview__swipe{height:100%}.van-image-preview__swipe-item{display:flex;align-items:center;justify-content:center;overflow:hidden}.van-image-preview__cover{position:absolute;top:0;left:0}.van-image-preview__image{width:100%;transition-property:transform}.van-image-preview__image--vertical{width:auto;height:100%}.van-image-preview__image img{-webkit-user-drag:none}.van-image-preview__image .van-image__error{top:30%;height:40%}.van-image-preview__image .van-image__error-icon{font-size:36px}.van-image-preview__image .van-image__loading{background-color:transparent}.van-image-preview__index{position:absolute;top:var(--van-padding-md);left:50%;color:var(--van-image-preview-index-text-color);font-size:var(--van-image-preview-index-font-size);line-height:var(--van-image-preview-index-line-height);text-shadow:var(--van-image-preview-index-text-shadow);transform:translate(-50%)}.van-image-preview__overlay{background:var(--van-image-preview-overlay-background-color)}.van-image-preview__close-icon{position:absolute;z-index:var(--van-image-preview-close-icon-z-index);color:var(--van-image-preview-close-icon-color);font-size:var(--van-image-preview-close-icon-size)}.van-image-preview__close-icon--top-left{top:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--top-right{top:var(--van-image-preview-close-icon-margin);right:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-left{bottom:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-right{right:var(--van-image-preview-close-icon-margin);bottom:var(--van-image-preview-close-icon-margin)}
@@ -88,7 +88,6 @@
88
88
  z-index: var(--van-image-preview-close-icon-z-index);
89
89
  color: var(--van-image-preview-close-icon-color);
90
90
  font-size: var(--van-image-preview-close-icon-size);
91
- cursor: pointer;
92
91
 
93
92
  &--top-left {
94
93
  top: var(--van-image-preview-close-icon-margin);
@@ -5,9 +5,7 @@ declare const indexAnchorProps: {
5
5
  export declare type IndexAnchorProps = ExtractPropTypes<typeof indexAnchorProps>;
6
6
  declare const _default: import("vue").DefineComponent<{
7
7
  index: (NumberConstructor | StringConstructor)[];
8
- }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
9
- index?: unknown;
10
- } & {} & {
11
- index?: string | number | undefined;
12
- }>, {}>;
8
+ }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
9
+ index: (NumberConstructor | StringConstructor)[];
10
+ }>>, {}>;
13
11
  export default _default;
@@ -1 +1 @@
1
- :root{--van-index-anchor-z-index:1;--van-index-anchor-padding:0 var(--van-padding-md);--van-index-anchor-text-color:var(--van-text-color);--van-index-anchor-font-weight:var(--van-font-weight-bold);--van-index-anchor-font-size:var(--van-font-size-md);--van-index-anchor-line-height:32px;--van-index-anchor-background-color:transparent;--van-index-anchor-sticky-text-color:var(--van-danger-color);--van-index-anchor-sticky-background-color:var(--van-background-color-light)}.van-index-anchor{z-index:var(--van-index-anchor-z-index);box-sizing:border-box;padding:var(--van-index-anchor-padding);color:var(--van-index-anchor-text-color);font-weight:var(--van-index-anchor-font-weight);font-size:var(--van-index-anchor-font-size);line-height:var(--van-index-anchor-line-height);background:var(--van-index-anchor-background-color)}.van-index-anchor--sticky{position:fixed;top:0;right:0;left:0;color:var(--van-index-anchor-sticky-text-color);background:var(--van-index-anchor-sticky-background-color)}
1
+ :root{--van-index-anchor-z-index: 1;--van-index-anchor-padding: 0 var(--van-padding-md);--van-index-anchor-text-color: var(--van-text-color);--van-index-anchor-font-weight: var(--van-font-weight-bold);--van-index-anchor-font-size: var(--van-font-size-md);--van-index-anchor-line-height: 32px;--van-index-anchor-background-color: transparent;--van-index-anchor-sticky-text-color: var(--van-danger-color);--van-index-anchor-sticky-background-color: var(--van-background-color-light)}.van-index-anchor{z-index:var(--van-index-anchor-z-index);box-sizing:border-box;padding:var(--van-index-anchor-padding);color:var(--van-index-anchor-text-color);font-weight:var(--van-index-anchor-font-weight);font-size:var(--van-index-anchor-font-size);line-height:var(--van-index-anchor-line-height);background:var(--van-index-anchor-background-color)}.van-index-anchor--sticky{position:fixed;top:0;right:0;left:0;color:var(--van-index-anchor-sticky-text-color);background:var(--van-index-anchor-sticky-background-color)}
@@ -1,10 +1,8 @@
1
1
  export declare const IndexAnchor: import("../utils").WithInstall<import("vue").DefineComponent<{
2
2
  index: (NumberConstructor | StringConstructor)[];
3
- }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
4
- index?: unknown;
5
- } & {} & {
6
- index?: string | number | undefined;
7
- }>, {}>>;
3
+ }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
4
+ index: (NumberConstructor | StringConstructor)[];
5
+ }>>, {}>>;
8
6
  export default IndexAnchor;
9
7
  export type { IndexAnchorProps } from './IndexAnchor';
10
8
  declare module 'vue' {
@@ -14,7 +14,7 @@ declare const indexBarProps: {
14
14
  default: number;
15
15
  };
16
16
  indexList: {
17
- type: PropType<string[]>;
17
+ type: PropType<(string | number)[]>;
18
18
  default: typeof genAlphabet;
19
19
  };
20
20
  };
@@ -33,30 +33,31 @@ declare const _default: import("vue").DefineComponent<{
33
33
  default: number;
34
34
  };
35
35
  indexList: {
36
- type: PropType<string[]>;
36
+ type: PropType<(string | number)[]>;
37
37
  default: typeof genAlphabet;
38
38
  };
39
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change")[], "select" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
40
- sticky?: unknown;
41
- zIndex?: unknown;
42
- teleport?: unknown;
43
- highlightColor?: unknown;
44
- stickyOffsetTop?: unknown;
45
- indexList?: unknown;
46
- } & {
47
- sticky: boolean;
48
- stickyOffsetTop: number;
49
- indexList: string[];
50
- } & {
51
- zIndex?: string | number | undefined;
52
- teleport?: string | import("vue").RendererElement | null | undefined;
53
- highlightColor?: string | undefined;
54
- }> & {
39
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change")[], "select" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
40
+ sticky: {
41
+ type: BooleanConstructor;
42
+ default: true;
43
+ };
44
+ zIndex: (NumberConstructor | StringConstructor)[];
45
+ teleport: PropType<string | import("vue").RendererElement | null | undefined>;
46
+ highlightColor: StringConstructor;
47
+ stickyOffsetTop: {
48
+ type: NumberConstructor;
49
+ default: number;
50
+ };
51
+ indexList: {
52
+ type: PropType<(string | number)[]>;
53
+ default: typeof genAlphabet;
54
+ };
55
+ }>> & {
55
56
  onChange?: ((...args: any[]) => any) | undefined;
56
57
  onSelect?: ((...args: any[]) => any) | undefined;
57
58
  }, {
58
59
  sticky: boolean;
59
60
  stickyOffsetTop: number;
60
- indexList: string[];
61
+ indexList: (string | number)[];
61
62
  }>;
62
63
  export default _default;
@@ -105,7 +105,9 @@ var stdin_default = defineComponent({
105
105
  });
106
106
  }
107
107
  };
108
- const init = () => nextTick(onScroll);
108
+ const init = () => {
109
+ nextTick(onScroll);
110
+ };
109
111
  useEventListener("scroll", onScroll, {
110
112
  target: scrollParent
111
113
  });
@@ -1 +1 @@
1
- :root{--van-index-bar-sidebar-z-index:2;--van-index-bar-index-font-size:var(--van-font-size-xs);--van-index-bar-index-line-height:var(--van-line-height-xs);--van-index-bar-index-active-color:var(--van-danger-color)}.van-index-bar__sidebar{position:fixed;top:50%;right:0;z-index:var(--van-index-bar-sidebar-z-index);display:flex;flex-direction:column;text-align:center;transform:translateY(-50%);cursor:pointer;-webkit-user-select:none;user-select:none}.van-index-bar__index{padding:0 var(--van-padding-xs) 0 var(--van-padding-md);font-weight:var(--van-font-weight-bold);font-size:var(--van-index-bar-index-font-size);line-height:var(--van-index-bar-index-line-height)}.van-index-bar__index--active{color:var(--van-index-bar-index-active-color)}
1
+ :root{--van-index-bar-sidebar-z-index: 2;--van-index-bar-index-font-size: var(--van-font-size-xs);--van-index-bar-index-line-height: var(--van-line-height-xs);--van-index-bar-index-active-color: var(--van-danger-color)}.van-index-bar__sidebar{position:fixed;top:50%;right:0;z-index:var(--van-index-bar-sidebar-z-index);display:flex;flex-direction:column;text-align:center;transform:translateY(-50%);cursor:pointer;-webkit-user-select:none;user-select:none}.van-index-bar__index{padding:0 var(--van-padding-xs) 0 var(--van-padding-md);font-weight:var(--van-font-weight-bold);font-size:var(--van-index-bar-index-font-size);line-height:var(--van-index-bar-index-line-height)}.van-index-bar__index--active{color:var(--van-index-bar-index-active-color)}
@@ -12,31 +12,32 @@ export declare const IndexBar: import("../utils").WithInstall<import("vue").Defi
12
12
  default: number;
13
13
  };
14
14
  indexList: {
15
- type: import("vue").PropType<string[]>;
15
+ type: import("vue").PropType<(string | number)[]>;
16
16
  default: () => string[];
17
17
  };
18
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change")[], "select" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
19
- sticky?: unknown;
20
- zIndex?: unknown;
21
- teleport?: unknown;
22
- highlightColor?: unknown;
23
- stickyOffsetTop?: unknown;
24
- indexList?: unknown;
25
- } & {
26
- sticky: boolean;
27
- stickyOffsetTop: number;
28
- indexList: string[];
29
- } & {
30
- zIndex?: string | number | undefined;
31
- teleport?: string | import("vue").RendererElement | null | undefined;
32
- highlightColor?: string | undefined;
33
- }> & {
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change")[], "select" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ sticky: {
20
+ type: BooleanConstructor;
21
+ default: true;
22
+ };
23
+ zIndex: (NumberConstructor | StringConstructor)[];
24
+ teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
25
+ highlightColor: StringConstructor;
26
+ stickyOffsetTop: {
27
+ type: NumberConstructor;
28
+ default: number;
29
+ };
30
+ indexList: {
31
+ type: import("vue").PropType<(string | number)[]>;
32
+ default: () => string[];
33
+ };
34
+ }>> & {
34
35
  onChange?: ((...args: any[]) => any) | undefined;
35
36
  onSelect?: ((...args: any[]) => any) | undefined;
36
37
  }, {
37
38
  sticky: boolean;
38
39
  stickyOffsetTop: number;
39
- indexList: string[];
40
+ indexList: (string | number)[];
40
41
  }>>;
41
42
  export default IndexBar;
42
43
  export type { IndexBarProps };
package/es/index.d.ts CHANGED
@@ -90,4 +90,4 @@ declare namespace _default {
90
90
  }
91
91
  export default _default;
92
92
  export function install(app: any): void;
93
- export const version: "3.4.1";
93
+ export const version: "3.4.5";
package/es/index.js CHANGED
@@ -83,7 +83,7 @@ import { Tag } from "./tag";
83
83
  import { Toast } from "./toast";
84
84
  import { TreeSelect } from "./tree-select";
85
85
  import { Uploader } from "./uploader";
86
- const version = "3.4.1";
86
+ const version = "3.4.5";
87
87
  function install(app) {
88
88
  const components = [
89
89
  ActionBar,
package/es/list/List.d.ts CHANGED
@@ -40,28 +40,26 @@ declare const _default: import("vue").DefineComponent<{
40
40
  type: BooleanConstructor;
41
41
  default: true;
42
42
  };
43
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("load" | "update:error" | "update:loading")[], "load" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
44
- error?: unknown;
45
- offset?: unknown;
46
- loading?: unknown;
47
- finished?: unknown;
48
- errorText?: unknown;
49
- direction?: unknown;
50
- loadingText?: unknown;
51
- finishedText?: unknown;
52
- immediateCheck?: unknown;
53
- } & {
54
- offset: string | number;
55
- error: boolean;
56
- loading: boolean;
57
- direction: ListDirection;
58
- finished: boolean;
59
- immediateCheck: boolean;
60
- } & {
61
- loadingText?: string | undefined;
62
- errorText?: string | undefined;
63
- finishedText?: string | undefined;
64
- }> & {
43
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("load" | "update:error" | "update:loading")[], "load" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
44
+ error: BooleanConstructor;
45
+ offset: {
46
+ type: (NumberConstructor | StringConstructor)[];
47
+ default: number;
48
+ };
49
+ loading: BooleanConstructor;
50
+ finished: BooleanConstructor;
51
+ errorText: StringConstructor;
52
+ direction: {
53
+ type: import("vue").PropType<ListDirection>;
54
+ default: ListDirection;
55
+ };
56
+ loadingText: StringConstructor;
57
+ finishedText: StringConstructor;
58
+ immediateCheck: {
59
+ type: BooleanConstructor;
60
+ default: true;
61
+ };
62
+ }>> & {
65
63
  onLoad?: ((...args: any[]) => any) | undefined;
66
64
  "onUpdate:error"?: ((...args: any[]) => any) | undefined;
67
65
  "onUpdate:loading"?: ((...args: any[]) => any) | undefined;
package/es/list/index.css CHANGED
@@ -1 +1 @@
1
- :root{--van-list-text-color:var(--van-text-color-2);--van-list-text-font-size:var(--van-font-size-md);--van-list-text-line-height:50px;--van-list-loading-icon-size:16px}.van-list__error-text,.van-list__finished-text,.van-list__loading{color:var(--van-list-text-color);font-size:var(--van-list-text-font-size);line-height:var(--van-list-text-line-height);text-align:center}.van-list__placeholder{height:0;pointer-events:none}.van-list__loading-icon .van-loading__spinner{width:var(--van-list-loading-icon-size);height:var(--van-list-loading-icon-size)}
1
+ :root{--van-list-text-color: var(--van-text-color-2);--van-list-text-font-size: var(--van-font-size-md);--van-list-text-line-height: 50px;--van-list-loading-icon-size: 16px}.van-list__loading,.van-list__finished-text,.van-list__error-text{color:var(--van-list-text-color);font-size:var(--van-list-text-font-size);line-height:var(--van-list-text-line-height);text-align:center}.van-list__placeholder{height:0;pointer-events:none}.van-list__loading-icon .van-loading__spinner{width:var(--van-list-loading-icon-size);height:var(--van-list-loading-icon-size)}
@@ -18,28 +18,26 @@ export declare const List: import("../utils").WithInstall<import("vue").DefineCo
18
18
  type: BooleanConstructor;
19
19
  default: true;
20
20
  };
21
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("load" | "update:error" | "update:loading")[], "load" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
22
- error?: unknown;
23
- offset?: unknown;
24
- loading?: unknown;
25
- finished?: unknown;
26
- errorText?: unknown;
27
- direction?: unknown;
28
- loadingText?: unknown;
29
- finishedText?: unknown;
30
- immediateCheck?: unknown;
31
- } & {
32
- offset: string | number;
33
- error: boolean;
34
- loading: boolean;
35
- direction: import("./types").ListDirection;
36
- finished: boolean;
37
- immediateCheck: boolean;
38
- } & {
39
- loadingText?: string | undefined;
40
- errorText?: string | undefined;
41
- finishedText?: string | undefined;
42
- }> & {
21
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("load" | "update:error" | "update:loading")[], "load" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ error: BooleanConstructor;
23
+ offset: {
24
+ type: (NumberConstructor | StringConstructor)[];
25
+ default: number;
26
+ };
27
+ loading: BooleanConstructor;
28
+ finished: BooleanConstructor;
29
+ errorText: StringConstructor;
30
+ direction: {
31
+ type: import("vue").PropType<import("./types").ListDirection>;
32
+ default: import("./types").ListDirection;
33
+ };
34
+ loadingText: StringConstructor;
35
+ finishedText: StringConstructor;
36
+ immediateCheck: {
37
+ type: BooleanConstructor;
38
+ default: true;
39
+ };
40
+ }>> & {
43
41
  onLoad?: ((...args: any[]) => any) | undefined;
44
42
  "onUpdate:error"?: ((...args: any[]) => any) | undefined;
45
43
  "onUpdate:loading"?: ((...args: any[]) => any) | undefined;
@@ -22,22 +22,17 @@ declare const _default: import("vue").DefineComponent<{
22
22
  vertical: BooleanConstructor;
23
23
  textSize: (NumberConstructor | StringConstructor)[];
24
24
  textColor: StringConstructor;
25
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
26
- size?: unknown;
27
- type?: unknown;
28
- color?: unknown;
29
- vertical?: unknown;
30
- textSize?: unknown;
31
- textColor?: unknown;
32
- } & {
33
- type: LoadingType;
34
- vertical: boolean;
35
- } & {
36
- color?: string | undefined;
37
- size?: string | number | undefined;
38
- textSize?: string | number | undefined;
39
- textColor?: string | undefined;
40
- }>, {
25
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
26
+ size: (NumberConstructor | StringConstructor)[];
27
+ type: {
28
+ type: import("vue").PropType<LoadingType>;
29
+ default: LoadingType;
30
+ };
31
+ color: StringConstructor;
32
+ vertical: BooleanConstructor;
33
+ textSize: (NumberConstructor | StringConstructor)[];
34
+ textColor: StringConstructor;
35
+ }>>, {
41
36
  type: LoadingType;
42
37
  vertical: boolean;
43
38
  }>;
@@ -1 +1 @@
1
- :root{--van-loading-text-color:var(--van-text-color-2);--van-loading-text-font-size:var(--van-font-size-md);--van-loading-spinner-color:var(--van-gray-5);--van-loading-spinner-size:30px;--van-loading-spinner-animation-duration:0.8s}.van-loading{position:relative;color:var(--van-loading-spinner-color);font-size:0;vertical-align:middle}.van-loading__spinner{position:relative;display:inline-block;width:var(--van-loading-spinner-size);max-width:100%;height:var(--van-loading-spinner-size);max-height:100%;vertical-align:middle;animation:van-rotate var(--van-loading-spinner-animation-duration) linear infinite}.van-loading__spinner--spinner{animation-timing-function:steps(12)}.van-loading__spinner--circular{animation-duration:2s}.van-loading__line{position:absolute;top:0;left:0;width:100%;height:100%}.van-loading__line::before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:' '}.van-loading__circular{display:block;width:100%;height:100%}.van-loading__circular circle{animation:van-circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}.van-loading__text{display:inline-block;margin-left:var(--van-padding-xs);color:var(--van-loading-text-color);font-size:var(--van-loading-text-font-size);vertical-align:middle}.van-loading--vertical{display:flex;flex-direction:column;align-items:center}.van-loading--vertical .van-loading__text{margin:var(--van-padding-xs) 0 0}@keyframes van-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}100%{stroke-dasharray:90,150;stroke-dashoffset:-120}}.van-loading__line--1{transform:rotate(30deg);opacity:1}.van-loading__line--2{transform:rotate(60deg);opacity:.9375}.van-loading__line--3{transform:rotate(90deg);opacity:.875}.van-loading__line--4{transform:rotate(120deg);opacity:.8125}.van-loading__line--5{transform:rotate(150deg);opacity:.75}.van-loading__line--6{transform:rotate(180deg);opacity:.6875}.van-loading__line--7{transform:rotate(210deg);opacity:.625}.van-loading__line--8{transform:rotate(240deg);opacity:.5625}.van-loading__line--9{transform:rotate(270deg);opacity:.5}.van-loading__line--10{transform:rotate(300deg);opacity:.4375}.van-loading__line--11{transform:rotate(330deg);opacity:.375}.van-loading__line--12{transform:rotate(360deg);opacity:.3125}
1
+ :root{--van-loading-text-color: var(--van-text-color-2);--van-loading-text-font-size: var(--van-font-size-md);--van-loading-spinner-color: var(--van-gray-5);--van-loading-spinner-size: 30px;--van-loading-spinner-animation-duration: .8s}.van-loading{position:relative;color:var(--van-loading-spinner-color);font-size:0;vertical-align:middle}.van-loading__spinner{position:relative;display:inline-block;width:var(--van-loading-spinner-size);max-width:100%;height:var(--van-loading-spinner-size);max-height:100%;vertical-align:middle;animation:van-rotate var(--van-loading-spinner-animation-duration) linear infinite}.van-loading__spinner--spinner{animation-timing-function:steps(12)}.van-loading__spinner--circular{animation-duration:2s}.van-loading__line{position:absolute;top:0;left:0;width:100%;height:100%}.van-loading__line:before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.van-loading__circular{display:block;width:100%;height:100%}.van-loading__circular circle{animation:van-circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}.van-loading__text{display:inline-block;margin-left:var(--van-padding-xs);color:var(--van-loading-text-color);font-size:var(--van-loading-text-font-size);vertical-align:middle}.van-loading--vertical{display:flex;flex-direction:column;align-items:center}.van-loading--vertical .van-loading__text{margin:var(--van-padding-xs) 0 0}@keyframes van-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}.van-loading__line--1{transform:rotate(30deg);opacity:1}.van-loading__line--2{transform:rotate(60deg);opacity:.9375}.van-loading__line--3{transform:rotate(90deg);opacity:.875}.van-loading__line--4{transform:rotate(120deg);opacity:.8125}.van-loading__line--5{transform:rotate(150deg);opacity:.75}.van-loading__line--6{transform:rotate(180deg);opacity:.6875}.van-loading__line--7{transform:rotate(210deg);opacity:.625}.van-loading__line--8{transform:rotate(240deg);opacity:.5625}.van-loading__line--9{transform:rotate(270deg);opacity:.5}.van-loading__line--10{transform:rotate(300deg);opacity:.4375}.van-loading__line--11{transform:rotate(330deg);opacity:.375}.van-loading__line--12{transform:rotate(360deg);opacity:.3125}
@@ -8,22 +8,17 @@ export declare const Loading: import("../utils").WithInstall<import("vue").Defin
8
8
  vertical: BooleanConstructor;
9
9
  textSize: (NumberConstructor | StringConstructor)[];
10
10
  textColor: StringConstructor;
11
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
12
- size?: unknown;
13
- type?: unknown;
14
- color?: unknown;
15
- vertical?: unknown;
16
- textSize?: unknown;
17
- textColor?: unknown;
18
- } & {
19
- type: import("./Loading").LoadingType;
20
- vertical: boolean;
21
- } & {
22
- color?: string | undefined;
23
- size?: string | number | undefined;
24
- textSize?: string | number | undefined;
25
- textColor?: string | undefined;
26
- }>, {
11
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ size: (NumberConstructor | StringConstructor)[];
13
+ type: {
14
+ type: import("vue").PropType<import("./Loading").LoadingType>;
15
+ default: import("./Loading").LoadingType;
16
+ };
17
+ color: StringConstructor;
18
+ vertical: BooleanConstructor;
19
+ textSize: (NumberConstructor | StringConstructor)[];
20
+ textColor: StringConstructor;
21
+ }>>, {
27
22
  type: import("./Loading").LoadingType;
28
23
  vertical: boolean;
29
24
  }>>;