vant 3.3.7 → 3.4.3

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 (1533) hide show
  1. package/es/action-bar/ActionBar.d.ts +7 -6
  2. package/es/action-bar/ActionBar.js +24 -20
  3. package/es/action-bar/index.css +1 -1
  4. package/es/action-bar/index.d.ts +11 -5
  5. package/es/action-bar/index.js +8 -4
  6. package/es/action-bar/style/index.js +2 -2
  7. package/es/action-bar/style/less.js +2 -2
  8. package/es/action-bar-button/ActionBarButton.d.ts +12 -22
  9. package/es/action-bar-button/ActionBarButton.js +26 -28
  10. package/es/action-bar-button/index.css +1 -1
  11. package/es/action-bar-button/index.d.ts +16 -21
  12. package/es/action-bar-button/index.js +8 -4
  13. package/es/action-bar-button/style/index.js +7 -7
  14. package/es/action-bar-button/style/less.js +7 -7
  15. package/es/action-bar-icon/ActionBarIcon.d.ts +21 -28
  16. package/es/action-bar-icon/ActionBarIcon.js +29 -32
  17. package/es/action-bar-icon/index.css +1 -1
  18. package/es/action-bar-icon/index.d.ts +19 -23
  19. package/es/action-bar-icon/index.js +8 -4
  20. package/es/action-bar-icon/style/index.js +5 -5
  21. package/es/action-bar-icon/style/less.js +5 -5
  22. package/es/action-sheet/ActionSheet.d.ts +55 -48
  23. package/es/action-sheet/ActionSheet.js +64 -66
  24. package/es/action-sheet/index.css +1 -1
  25. package/es/action-sheet/index.d.ts +59 -47
  26. package/es/action-sheet/index.js +8 -4
  27. package/es/action-sheet/style/index.js +7 -7
  28. package/es/action-sheet/style/less.js +7 -7
  29. package/es/address-edit/AddressEdit.d.ts +49 -49
  30. package/es/address-edit/AddressEdit.js +186 -219
  31. package/es/address-edit/AddressEditDetail.d.ts +11 -21
  32. package/es/address-edit/AddressEditDetail.js +32 -43
  33. package/es/address-edit/index.css +1 -1
  34. package/es/address-edit/index.d.ts +53 -48
  35. package/es/address-edit/index.js +8 -4
  36. package/es/address-edit/style/index.js +13 -13
  37. package/es/address-edit/style/less.js +13 -13
  38. package/es/address-edit/types.js +0 -1
  39. package/es/address-list/AddressList.d.ts +19 -19
  40. package/es/address-list/AddressList.js +38 -49
  41. package/es/address-list/AddressListItem.d.ts +10 -13
  42. package/es/address-list/AddressListItem.js +39 -49
  43. package/es/address-list/index.css +1 -1
  44. package/es/address-list/index.d.ts +23 -18
  45. package/es/address-list/index.js +8 -4
  46. package/es/address-list/index.less +1 -1
  47. package/es/address-list/style/index.js +11 -11
  48. package/es/address-list/style/less.js +11 -11
  49. package/es/area/Area.d.ts +42 -34
  50. package/es/area/Area.js +99 -161
  51. package/es/area/index.d.ts +46 -33
  52. package/es/area/index.js +8 -4
  53. package/es/area/style/index.js +3 -3
  54. package/es/area/style/less.js +3 -3
  55. package/es/area/types.js +0 -1
  56. package/es/badge/Badge.d.ts +20 -21
  57. package/es/badge/Badge.js +33 -47
  58. package/es/badge/index.css +1 -1
  59. package/es/badge/index.d.ts +24 -20
  60. package/es/badge/index.js +8 -4
  61. package/es/badge/style/index.js +2 -2
  62. package/es/badge/style/less.js +2 -2
  63. package/es/button/Button.d.ts +40 -48
  64. package/es/button/Button.js +43 -63
  65. package/es/button/index.css +1 -1
  66. package/es/button/index.d.ts +44 -47
  67. package/es/button/index.js +8 -4
  68. package/es/button/style/index.js +5 -5
  69. package/es/button/style/less.js +5 -5
  70. package/es/button/types.js +0 -1
  71. package/es/calendar/Calendar.d.ts +86 -63
  72. package/es/calendar/Calendar.js +129 -222
  73. package/es/calendar/CalendarDay.d.ts +14 -15
  74. package/es/calendar/CalendarDay.js +54 -70
  75. package/es/calendar/CalendarHeader.d.ts +7 -14
  76. package/es/calendar/CalendarHeader.js +30 -35
  77. package/es/calendar/CalendarMonth.d.ts +26 -33
  78. package/es/calendar/CalendarMonth.js +97 -140
  79. package/es/calendar/index.css +1 -1
  80. package/es/calendar/index.d.ts +90 -62
  81. package/es/calendar/index.js +8 -4
  82. package/es/calendar/style/index.js +10 -10
  83. package/es/calendar/style/less.js +10 -10
  84. package/es/calendar/types.js +0 -1
  85. package/es/calendar/utils.js +40 -30
  86. package/es/card/Card.d.ts +17 -27
  87. package/es/card/Card.js +53 -72
  88. package/es/card/index.css +1 -1
  89. package/es/card/index.d.ts +21 -26
  90. package/es/card/index.js +8 -4
  91. package/es/card/style/index.js +6 -6
  92. package/es/card/style/less.js +6 -6
  93. package/es/cascader/Cascader.d.ts +37 -23
  94. package/es/cascader/Cascader.js +87 -120
  95. package/es/cascader/index.css +1 -1
  96. package/es/cascader/index.d.ts +37 -22
  97. package/es/cascader/index.js +8 -4
  98. package/es/cascader/index.less +0 -10
  99. package/es/cascader/style/index.js +9 -9
  100. package/es/cascader/style/less.js +9 -9
  101. package/es/cascader/types.js +0 -1
  102. package/es/cell/Cell.d.ts +28 -42
  103. package/es/cell/Cell.js +42 -59
  104. package/es/cell/index.css +1 -1
  105. package/es/cell/index.d.ts +32 -41
  106. package/es/cell/index.js +8 -4
  107. package/es/cell/style/index.js +4 -4
  108. package/es/cell/style/less.js +4 -4
  109. package/es/cell-group/CellGroup.d.ts +9 -11
  110. package/es/cell-group/CellGroup.js +25 -26
  111. package/es/cell-group/index.css +1 -1
  112. package/es/cell-group/index.d.ts +13 -10
  113. package/es/cell-group/index.js +8 -4
  114. package/es/cell-group/style/index.js +2 -2
  115. package/es/cell-group/style/less.js +2 -2
  116. package/es/checkbox/Checkbox.d.ts +18 -22
  117. package/es/checkbox/Checkbox.js +35 -53
  118. package/es/checkbox/Checker.d.ts +25 -30
  119. package/es/checkbox/Checker.js +37 -45
  120. package/es/checkbox/index.css +1 -1
  121. package/es/checkbox/index.d.ts +22 -21
  122. package/es/checkbox/index.js +8 -4
  123. package/es/checkbox/style/index.js +5 -5
  124. package/es/checkbox/style/less.js +5 -5
  125. package/es/checkbox/types.js +0 -1
  126. package/es/checkbox-group/CheckboxGroup.d.ts +12 -17
  127. package/es/checkbox-group/CheckboxGroup.js +32 -41
  128. package/es/checkbox-group/index.css +1 -1
  129. package/es/checkbox-group/index.d.ts +16 -16
  130. package/es/checkbox-group/index.js +8 -4
  131. package/es/checkbox-group/style/index.js +2 -2
  132. package/es/checkbox-group/style/less.js +2 -2
  133. package/es/checkbox-group/types.js +0 -1
  134. package/es/circle/Circle.d.ts +36 -29
  135. package/es/circle/Circle.js +60 -76
  136. package/es/circle/index.css +1 -1
  137. package/es/circle/index.d.ts +40 -28
  138. package/es/circle/index.js +8 -4
  139. package/es/circle/style/index.js +2 -2
  140. package/es/circle/style/less.js +2 -2
  141. package/es/col/Col.d.ts +12 -11
  142. package/es/col/Col.js +27 -26
  143. package/es/col/index.css +1 -1
  144. package/es/col/index.d.ts +16 -10
  145. package/es/col/index.js +8 -4
  146. package/es/col/style/index.js +3 -3
  147. package/es/col/style/less.js +3 -3
  148. package/es/collapse/Collapse.d.ts +12 -10
  149. package/es/collapse/Collapse.js +39 -46
  150. package/es/collapse/index.d.ts +16 -9
  151. package/es/collapse/index.js +8 -4
  152. package/es/collapse/style/index.js +1 -1
  153. package/es/collapse/style/less.js +1 -1
  154. package/es/collapse-item/CollapseItem.d.ts +32 -42
  155. package/es/collapse-item/CollapseItem.js +57 -81
  156. package/es/collapse-item/index.css +1 -1
  157. package/es/collapse-item/index.d.ts +36 -41
  158. package/es/collapse-item/index.js +8 -4
  159. package/es/collapse-item/style/index.js +5 -5
  160. package/es/collapse-item/style/less.js +5 -5
  161. package/es/collapse-item/types.js +0 -1
  162. package/es/composables/on-popup-reopen.js +10 -8
  163. package/es/composables/use-expose.js +8 -7
  164. package/es/composables/use-height.js +14 -7
  165. package/es/composables/use-id.js +11 -12
  166. package/es/composables/use-lazy-render.js +10 -9
  167. package/es/composables/use-lock-scroll.js +29 -43
  168. package/es/composables/use-placeholder.js +10 -7
  169. package/es/composables/use-refs.js +15 -8
  170. package/es/composables/use-route.d.ts +1 -1
  171. package/es/composables/use-route.js +19 -17
  172. package/es/composables/use-tab-status.js +7 -4
  173. package/es/composables/use-touch.js +27 -36
  174. package/es/composables/use-visibility-change.js +12 -18
  175. package/es/config-provider/ConfigProvider.d.ts +9 -11
  176. package/es/config-provider/ConfigProvider.js +23 -21
  177. package/es/config-provider/index.d.ts +13 -10
  178. package/es/config-provider/index.js +8 -4
  179. package/es/config-provider/style/index.js +1 -1
  180. package/es/config-provider/style/less.js +1 -1
  181. package/es/contact-card/ContactCard.d.ts +14 -15
  182. package/es/contact-card/ContactCard.js +24 -28
  183. package/es/contact-card/index.css +1 -1
  184. package/es/contact-card/index.d.ts +18 -14
  185. package/es/contact-card/index.js +8 -4
  186. package/es/contact-card/style/index.js +5 -5
  187. package/es/contact-card/style/less.js +5 -5
  188. package/es/contact-edit/ContactEdit.d.ts +16 -19
  189. package/es/contact-edit/ContactEdit.js +48 -56
  190. package/es/contact-edit/index.css +1 -1
  191. package/es/contact-edit/index.d.ts +20 -18
  192. package/es/contact-edit/index.js +8 -4
  193. package/es/contact-edit/style/index.js +9 -9
  194. package/es/contact-edit/style/less.js +9 -9
  195. package/es/contact-list/ContactList.d.ts +7 -12
  196. package/es/contact-list/ContactList.js +41 -51
  197. package/es/contact-list/index.css +1 -1
  198. package/es/contact-list/index.d.ts +11 -11
  199. package/es/contact-list/index.js +8 -4
  200. package/es/contact-list/style/index.js +11 -11
  201. package/es/contact-list/style/less.js +11 -11
  202. package/es/count-down/CountDown.d.ts +16 -12
  203. package/es/count-down/CountDown.js +23 -28
  204. package/es/count-down/index.css +1 -1
  205. package/es/count-down/index.d.ts +20 -11
  206. package/es/count-down/index.js +8 -4
  207. package/es/count-down/style/index.js +2 -2
  208. package/es/count-down/style/less.js +2 -2
  209. package/es/count-down/types.js +0 -1
  210. package/es/count-down/utils.js +24 -35
  211. package/es/coupon/Coupon.d.ts +13 -12
  212. package/es/coupon/Coupon.js +35 -38
  213. package/es/coupon/index.css +1 -1
  214. package/es/coupon/index.d.ts +17 -11
  215. package/es/coupon/index.js +8 -4
  216. package/es/coupon/style/index.js +6 -6
  217. package/es/coupon/style/less.js +6 -6
  218. package/es/coupon/utils.js +11 -6
  219. package/es/coupon-cell/CouponCell.d.ts +24 -17
  220. package/es/coupon-cell/CouponCell.js +23 -32
  221. package/es/coupon-cell/index.css +1 -1
  222. package/es/coupon-cell/index.d.ts +28 -16
  223. package/es/coupon-cell/index.js +8 -4
  224. package/es/coupon-cell/style/index.js +5 -5
  225. package/es/coupon-cell/style/less.js +5 -5
  226. package/es/coupon-list/CouponList.d.ts +54 -41
  227. package/es/coupon-list/CouponList.js +101 -112
  228. package/es/coupon-list/index.css +1 -1
  229. package/es/coupon-list/index.d.ts +58 -40
  230. package/es/coupon-list/index.js +8 -4
  231. package/es/coupon-list/style/index.js +16 -16
  232. package/es/coupon-list/style/less.js +16 -16
  233. package/es/datetime-picker/DatePicker.d.ts +45 -36
  234. package/es/datetime-picker/DatePicker.js +112 -157
  235. package/es/datetime-picker/DatetimePicker.d.ts +2 -2
  236. package/es/datetime-picker/DatetimePicker.js +25 -26
  237. package/es/datetime-picker/TimePicker.d.ts +47 -38
  238. package/es/datetime-picker/TimePicker.js +51 -69
  239. package/es/datetime-picker/index.d.ts +6 -1
  240. package/es/datetime-picker/index.js +8 -4
  241. package/es/datetime-picker/style/index.js +3 -3
  242. package/es/datetime-picker/style/less.js +3 -3
  243. package/es/datetime-picker/types.js +0 -1
  244. package/es/datetime-picker/utils.d.ts +1 -1
  245. package/es/datetime-picker/utils.js +30 -20
  246. package/es/dialog/Dialog.d.ts +53 -60
  247. package/es/dialog/Dialog.js +58 -83
  248. package/es/dialog/function-call.d.ts +52 -59
  249. package/es/dialog/function-call.js +25 -37
  250. package/es/dialog/index.css +1 -1
  251. package/es/dialog/index.d.ts +5 -0
  252. package/es/dialog/index.js +6 -3
  253. package/es/dialog/style/index.js +10 -10
  254. package/es/dialog/style/less.js +10 -10
  255. package/es/dialog/types.js +0 -1
  256. package/es/divider/Divider.d.ts +12 -10
  257. package/es/divider/Divider.js +24 -21
  258. package/es/divider/index.css +1 -1
  259. package/es/divider/index.d.ts +16 -9
  260. package/es/divider/index.js +8 -4
  261. package/es/divider/style/index.js +2 -2
  262. package/es/divider/style/less.js +2 -2
  263. package/es/dropdown-item/DropdownItem.d.ts +16 -19
  264. package/es/dropdown-item/DropdownItem.js +62 -94
  265. package/es/dropdown-item/index.css +1 -1
  266. package/es/dropdown-item/index.d.ts +20 -18
  267. package/es/dropdown-item/index.js +8 -4
  268. package/es/dropdown-item/style/index.js +8 -8
  269. package/es/dropdown-item/style/less.js +8 -8
  270. package/es/dropdown-item/types.js +0 -1
  271. package/es/dropdown-menu/DropdownMenu.d.ts +25 -19
  272. package/es/dropdown-menu/DropdownMenu.js +55 -61
  273. package/es/dropdown-menu/index.css +1 -1
  274. package/es/dropdown-menu/index.d.ts +29 -18
  275. package/es/dropdown-menu/index.js +8 -4
  276. package/es/dropdown-menu/index.less +0 -1
  277. package/es/dropdown-menu/style/index.js +2 -2
  278. package/es/dropdown-menu/style/less.js +2 -2
  279. package/es/dropdown-menu/types.js +0 -1
  280. package/es/empty/Empty.d.ts +9 -11
  281. package/es/empty/Empty.js +25 -34
  282. package/es/empty/Network.js +24 -23
  283. package/es/empty/index.css +1 -1
  284. package/es/empty/index.d.ts +13 -10
  285. package/es/empty/index.js +8 -4
  286. package/es/empty/style/index.js +2 -2
  287. package/es/empty/style/less.js +2 -2
  288. package/es/field/Field.d.ts +81 -91
  289. package/es/field/Field.js +154 -243
  290. package/es/field/index.css +1 -1
  291. package/es/field/index.d.ts +85 -90
  292. package/es/field/index.js +8 -4
  293. package/es/field/style/index.js +5 -5
  294. package/es/field/style/less.js +5 -5
  295. package/es/field/types.d.ts +1 -1
  296. package/es/field/types.js +0 -1
  297. package/es/field/utils.js +50 -69
  298. package/es/form/Form.d.ts +25 -31
  299. package/es/form/Form.js +55 -74
  300. package/es/form/index.d.ts +29 -30
  301. package/es/form/index.js +8 -4
  302. package/es/form/style/index.js +1 -1
  303. package/es/form/style/less.js +1 -1
  304. package/es/form/types.js +0 -1
  305. package/es/grid/Grid.d.ts +21 -23
  306. package/es/grid/Grid.js +28 -24
  307. package/es/grid/index.css +1 -1
  308. package/es/grid/index.d.ts +25 -22
  309. package/es/grid/index.js +8 -4
  310. package/es/grid/style/index.js +2 -2
  311. package/es/grid/style/less.js +2 -2
  312. package/es/grid-item/GridItem.d.ts +18 -24
  313. package/es/grid-item/GridItem.js +47 -62
  314. package/es/grid-item/index.css +1 -1
  315. package/es/grid-item/index.d.ts +18 -21
  316. package/es/grid-item/index.js +8 -4
  317. package/es/grid-item/style/index.js +5 -5
  318. package/es/grid-item/style/less.js +5 -5
  319. package/es/icon/Icon.d.ts +19 -21
  320. package/es/icon/Icon.js +34 -32
  321. package/es/icon/index.css +1 -1
  322. package/es/icon/index.d.ts +19 -18
  323. package/es/icon/index.js +8 -4
  324. package/es/icon/index.less +1 -0
  325. package/es/icon/style/index.js +3 -3
  326. package/es/icon/style/less.js +3 -3
  327. package/es/image/Image.d.ts +33 -33
  328. package/es/image/Image.js +71 -81
  329. package/es/image/index.css +1 -1
  330. package/es/image/index.d.ts +35 -32
  331. package/es/image/index.js +8 -4
  332. package/es/image/style/index.js +4 -4
  333. package/es/image/style/less.js +4 -4
  334. package/es/image-preview/ImagePreview.d.ts +57 -41
  335. package/es/image-preview/ImagePreview.js +52 -69
  336. package/es/image-preview/ImagePreviewItem.d.ts +21 -18
  337. package/es/image-preview/ImagePreviewItem.js +83 -108
  338. package/es/image-preview/function-call.d.ts +55 -40
  339. package/es/image-preview/function-call.js +23 -35
  340. package/es/image-preview/index.css +1 -1
  341. package/es/image-preview/index.d.ts +5 -0
  342. package/es/image-preview/index.js +6 -3
  343. package/es/image-preview/index.less +0 -1
  344. package/es/image-preview/style/index.js +10 -10
  345. package/es/image-preview/style/less.js +10 -10
  346. package/es/image-preview/types.d.ts +1 -0
  347. package/es/image-preview/types.js +0 -1
  348. package/es/index-anchor/IndexAnchor.d.ts +4 -6
  349. package/es/index-anchor/IndexAnchor.js +31 -42
  350. package/es/index-anchor/index.css +1 -1
  351. package/es/index-anchor/index.d.ts +8 -5
  352. package/es/index-anchor/index.js +8 -4
  353. package/es/index-anchor/style/index.js +3 -3
  354. package/es/index-anchor/style/less.js +3 -3
  355. package/es/index-bar/IndexBar.d.ts +18 -17
  356. package/es/index-bar/IndexBar.js +73 -98
  357. package/es/index-bar/index.css +1 -1
  358. package/es/index-bar/index.d.ts +22 -16
  359. package/es/index-bar/index.js +8 -4
  360. package/es/index-bar/style/index.js +2 -2
  361. package/es/index-bar/style/less.js +2 -2
  362. package/es/index-bar/types.js +0 -1
  363. package/es/index.d.ts +1 -1
  364. package/es/index.js +267 -180
  365. package/es/lazyload/index.js +6 -3
  366. package/es/lazyload/style/index.js +1 -1
  367. package/es/lazyload/style/less.js +1 -1
  368. package/es/lazyload/vue-lazyload/index.js +17 -32
  369. package/es/lazyload/vue-lazyload/lazy-component.js +11 -16
  370. package/es/lazyload/vue-lazyload/lazy-container.js +28 -56
  371. package/es/lazyload/vue-lazyload/lazy-image.js +21 -46
  372. package/es/lazyload/vue-lazyload/lazy.js +113 -264
  373. package/es/lazyload/vue-lazyload/listener.js +50 -130
  374. package/es/lazyload/vue-lazyload/util.js +67 -87
  375. package/es/list/List.d.ts +21 -23
  376. package/es/list/List.js +52 -74
  377. package/es/list/index.css +1 -1
  378. package/es/list/index.d.ts +25 -22
  379. package/es/list/index.js +8 -4
  380. package/es/list/style/index.js +3 -3
  381. package/es/list/style/less.js +3 -3
  382. package/es/list/types.js +0 -1
  383. package/es/loading/Loading.d.ts +12 -17
  384. package/es/loading/Loading.js +25 -30
  385. package/es/loading/index.css +1 -1
  386. package/es/loading/index.d.ts +16 -16
  387. package/es/loading/index.js +8 -4
  388. package/es/loading/style/index.js +2 -2
  389. package/es/loading/style/less.js +2 -2
  390. package/es/locale/index.js +14 -19
  391. package/es/locale/lang/de-DE-formal.d.ts +2 -11
  392. package/es/locale/lang/de-DE-formal.js +46 -52
  393. package/es/locale/lang/de-DE.d.ts +2 -11
  394. package/es/locale/lang/de-DE.js +46 -52
  395. package/es/locale/lang/en-US.d.ts +2 -11
  396. package/es/locale/lang/en-US.js +46 -52
  397. package/es/locale/lang/es-ES.d.ts +2 -11
  398. package/es/locale/lang/es-ES.js +46 -52
  399. package/es/locale/lang/fr-FR.d.ts +2 -11
  400. package/es/locale/lang/fr-FR.js +46 -52
  401. package/es/locale/lang/hi-IN.d.ts +64 -0
  402. package/es/locale/lang/hi-IN.js +74 -0
  403. package/es/locale/lang/ja-JP.d.ts +2 -12
  404. package/es/locale/lang/ja-JP.js +46 -53
  405. package/es/locale/lang/ko-KR.d.ts +64 -0
  406. package/es/locale/lang/ko-KR.js +74 -0
  407. package/es/locale/lang/nb-NO.d.ts +2 -11
  408. package/es/locale/lang/nb-NO.js +46 -52
  409. package/es/locale/lang/pt-BR.d.ts +2 -11
  410. package/es/locale/lang/pt-BR.js +46 -52
  411. package/es/locale/lang/ro-RO.d.ts +2 -11
  412. package/es/locale/lang/ro-RO.js +46 -52
  413. package/es/locale/lang/ru-RU.d.ts +2 -11
  414. package/es/locale/lang/ru-RU.js +46 -52
  415. package/es/locale/lang/th-TH.d.ts +2 -12
  416. package/es/locale/lang/th-TH.js +46 -53
  417. package/es/locale/lang/tr-TR.d.ts +2 -11
  418. package/es/locale/lang/tr-TR.js +46 -52
  419. package/es/locale/lang/zh-CN.d.ts +2 -12
  420. package/es/locale/lang/zh-CN.js +46 -53
  421. package/es/locale/lang/zh-HK.d.ts +2 -12
  422. package/es/locale/lang/zh-HK.js +46 -53
  423. package/es/locale/lang/zh-TW.d.ts +2 -12
  424. package/es/locale/lang/zh-TW.js +46 -53
  425. package/es/locale/style/index.js +1 -1
  426. package/es/locale/style/less.js +1 -1
  427. package/es/nav-bar/NavBar.d.ts +15 -23
  428. package/es/nav-bar/NavBar.js +35 -47
  429. package/es/nav-bar/index.css +1 -1
  430. package/es/nav-bar/index.d.ts +19 -22
  431. package/es/nav-bar/index.js +8 -4
  432. package/es/nav-bar/index.less +0 -1
  433. package/es/nav-bar/style/index.js +4 -4
  434. package/es/nav-bar/style/less.js +4 -4
  435. package/es/notice-bar/NoticeBar.d.ts +21 -23
  436. package/es/notice-bar/NoticeBar.js +62 -85
  437. package/es/notice-bar/index.css +1 -1
  438. package/es/notice-bar/index.d.ts +25 -22
  439. package/es/notice-bar/index.js +8 -4
  440. package/es/notice-bar/style/index.js +4 -4
  441. package/es/notice-bar/style/less.js +4 -4
  442. package/es/notice-bar/types.js +0 -1
  443. package/es/notify/Notify.d.ts +50 -39
  444. package/es/notify/Notify.js +20 -21
  445. package/es/notify/function-call.d.ts +45 -38
  446. package/es/notify/function-call.js +23 -36
  447. package/es/notify/index.css +1 -1
  448. package/es/notify/index.d.ts +5 -0
  449. package/es/notify/index.js +6 -3
  450. package/es/notify/style/index.js +6 -6
  451. package/es/notify/style/less.js +6 -6
  452. package/es/notify/types.d.ts +2 -0
  453. package/es/notify/types.js +0 -1
  454. package/es/number-keyboard/NumberKeyboard.d.ts +47 -39
  455. package/es/number-keyboard/NumberKeyboard.js +81 -114
  456. package/es/number-keyboard/NumberKeyboardKey.d.ts +9 -17
  457. package/es/number-keyboard/NumberKeyboardKey.js +32 -48
  458. package/es/number-keyboard/index.css +1 -1
  459. package/es/number-keyboard/index.d.ts +51 -38
  460. package/es/number-keyboard/index.js +8 -4
  461. package/es/number-keyboard/index.less +0 -1
  462. package/es/number-keyboard/style/index.js +3 -3
  463. package/es/number-keyboard/style/less.js +3 -3
  464. package/es/overlay/Overlay.d.ts +25 -17
  465. package/es/overlay/Overlay.js +22 -24
  466. package/es/overlay/index.css +1 -1
  467. package/es/overlay/index.d.ts +25 -16
  468. package/es/overlay/index.js +8 -4
  469. package/es/overlay/style/index.js +2 -2
  470. package/es/overlay/style/less.js +2 -2
  471. package/es/pagination/Pagination.d.ts +30 -23
  472. package/es/pagination/Pagination.js +62 -84
  473. package/es/pagination/index.css +1 -1
  474. package/es/pagination/index.d.ts +34 -22
  475. package/es/pagination/index.js +8 -4
  476. package/es/pagination/style/index.js +2 -2
  477. package/es/pagination/style/less.js +2 -2
  478. package/es/password-input/PasswordInput.d.ts +19 -19
  479. package/es/password-input/PasswordInput.js +30 -37
  480. package/es/password-input/index.css +1 -1
  481. package/es/password-input/index.d.ts +23 -18
  482. package/es/password-input/index.js +8 -4
  483. package/es/password-input/style/index.js +2 -2
  484. package/es/password-input/style/less.js +2 -2
  485. package/es/picker/Picker.d.ts +39 -34
  486. package/es/picker/Picker.js +136 -198
  487. package/es/picker/PickerColumn.d.ts +32 -24
  488. package/es/picker/PickerColumn.js +86 -133
  489. package/es/picker/index.css +1 -1
  490. package/es/picker/index.d.ts +43 -33
  491. package/es/picker/index.js +8 -4
  492. package/es/picker/index.less +0 -1
  493. package/es/picker/style/index.js +3 -3
  494. package/es/picker/style/less.js +3 -3
  495. package/es/picker/types.d.ts +13 -0
  496. package/es/picker/types.js +0 -1
  497. package/es/popover/Popover.d.ts +49 -37
  498. package/es/popover/Popover.js +84 -90
  499. package/es/popover/index.css +1 -1
  500. package/es/popover/index.d.ts +53 -36
  501. package/es/popover/index.js +8 -4
  502. package/es/popover/index.less +8 -4
  503. package/es/popover/style/index.js +6 -6
  504. package/es/popover/style/less.js +6 -6
  505. package/es/popover/types.js +0 -1
  506. package/es/popup/Popup.d.ts +46 -48
  507. package/es/popup/Popup.js +70 -88
  508. package/es/popup/index.css +1 -1
  509. package/es/popup/index.d.ts +57 -52
  510. package/es/popup/index.js +8 -4
  511. package/es/popup/index.less +0 -1
  512. package/es/popup/shared.d.ts +1 -1
  513. package/es/popup/shared.js +7 -15
  514. package/es/popup/style/index.js +5 -5
  515. package/es/popup/style/less.js +5 -5
  516. package/es/popup/types.d.ts +5 -0
  517. package/es/popup/types.js +0 -0
  518. package/es/progress/Progress.d.ts +19 -23
  519. package/es/progress/Progress.js +23 -25
  520. package/es/progress/index.css +1 -1
  521. package/es/progress/index.d.ts +23 -22
  522. package/es/progress/index.js +8 -4
  523. package/es/progress/style/index.js +2 -2
  524. package/es/progress/style/less.js +2 -2
  525. package/es/progress/types.js +0 -1
  526. package/es/pull-refresh/PullRefresh.d.ts +22 -25
  527. package/es/pull-refresh/PullRefresh.js +66 -96
  528. package/es/pull-refresh/index.css +1 -1
  529. package/es/pull-refresh/index.d.ts +26 -24
  530. package/es/pull-refresh/index.js +8 -4
  531. package/es/pull-refresh/index.less +0 -1
  532. package/es/pull-refresh/style/index.js +3 -3
  533. package/es/pull-refresh/style/less.js +3 -3
  534. package/es/radio/Radio.d.ts +14 -21
  535. package/es/radio/Radio.js +23 -29
  536. package/es/radio/index.css +1 -1
  537. package/es/radio/index.d.ts +18 -20
  538. package/es/radio/index.js +8 -4
  539. package/es/radio/style/index.js +6 -6
  540. package/es/radio/style/less.js +6 -6
  541. package/es/radio-group/RadioGroup.d.ts +8 -15
  542. package/es/radio-group/RadioGroup.js +27 -25
  543. package/es/radio-group/index.css +1 -1
  544. package/es/radio-group/index.d.ts +12 -14
  545. package/es/radio-group/index.js +8 -4
  546. package/es/radio-group/style/index.js +2 -2
  547. package/es/radio-group/style/less.js +2 -2
  548. package/es/rate/Rate.d.ts +32 -33
  549. package/es/rate/Rate.js +53 -77
  550. package/es/rate/index.css +1 -1
  551. package/es/rate/index.d.ts +36 -32
  552. package/es/rate/index.js +8 -4
  553. package/es/rate/style/index.js +4 -4
  554. package/es/rate/style/less.js +4 -4
  555. package/es/row/Row.d.ts +17 -15
  556. package/es/row/Row.js +41 -40
  557. package/es/row/index.css +1 -1
  558. package/es/row/index.d.ts +21 -14
  559. package/es/row/index.js +8 -4
  560. package/es/row/style/index.js +2 -2
  561. package/es/row/style/less.js +2 -2
  562. package/es/search/Search.d.ts +65 -52
  563. package/es/search/Search.js +73 -77
  564. package/es/search/index.css +1 -1
  565. package/es/search/index.d.ts +69 -51
  566. package/es/search/index.js +8 -4
  567. package/es/search/style/index.js +6 -6
  568. package/es/search/style/less.js +6 -6
  569. package/es/search/types.js +0 -1
  570. package/es/share-sheet/ShareSheet.d.ts +46 -42
  571. package/es/share-sheet/ShareSheet.js +46 -65
  572. package/es/share-sheet/index.css +1 -1
  573. package/es/share-sheet/index.d.ts +50 -41
  574. package/es/share-sheet/index.js +8 -4
  575. package/es/share-sheet/index.less +0 -1
  576. package/es/share-sheet/style/index.js +6 -6
  577. package/es/share-sheet/style/less.js +6 -6
  578. package/es/sidebar/Sidebar.d.ts +7 -6
  579. package/es/sidebar/Sidebar.js +29 -28
  580. package/es/sidebar/index.css +1 -1
  581. package/es/sidebar/index.d.ts +11 -5
  582. package/es/sidebar/index.js +8 -4
  583. package/es/sidebar/style/index.js +2 -2
  584. package/es/sidebar/style/less.js +2 -2
  585. package/es/sidebar-item/SidebarItem.d.ts +16 -20
  586. package/es/sidebar-item/SidebarItem.js +34 -41
  587. package/es/sidebar-item/index.css +1 -1
  588. package/es/sidebar-item/index.d.ts +16 -17
  589. package/es/sidebar-item/index.js +8 -4
  590. package/es/sidebar-item/style/index.js +4 -4
  591. package/es/sidebar-item/style/less.js +4 -4
  592. package/es/skeleton/Skeleton.d.ts +28 -25
  593. package/es/skeleton/Skeleton.js +26 -34
  594. package/es/skeleton/index.css +1 -1
  595. package/es/skeleton/index.d.ts +32 -24
  596. package/es/skeleton/index.js +8 -4
  597. package/es/skeleton/style/index.js +2 -2
  598. package/es/skeleton/style/less.js +2 -2
  599. package/es/slider/Slider.d.ts +29 -32
  600. package/es/slider/Slider.js +99 -158
  601. package/es/slider/index.css +1 -1
  602. package/es/slider/index.d.ts +33 -31
  603. package/es/slider/index.js +8 -4
  604. package/es/slider/style/index.js +2 -2
  605. package/es/slider/style/less.js +2 -2
  606. package/es/step/Step.d.ts +1 -1
  607. package/es/step/Step.js +47 -68
  608. package/es/step/index.css +1 -1
  609. package/es/step/index.d.ts +6 -1
  610. package/es/step/index.js +8 -4
  611. package/es/step/style/index.js +5 -5
  612. package/es/step/style/less.js +5 -5
  613. package/es/stepper/Stepper.d.ts +52 -49
  614. package/es/stepper/Stepper.js +82 -123
  615. package/es/stepper/index.css +1 -1
  616. package/es/stepper/index.d.ts +56 -48
  617. package/es/stepper/index.js +8 -4
  618. package/es/stepper/index.less +0 -1
  619. package/es/stepper/style/index.js +2 -2
  620. package/es/stepper/style/less.js +2 -2
  621. package/es/steps/Steps.d.ts +20 -21
  622. package/es/steps/Steps.js +29 -27
  623. package/es/steps/index.css +1 -1
  624. package/es/steps/index.d.ts +24 -20
  625. package/es/steps/index.js +8 -4
  626. package/es/steps/style/index.js +2 -2
  627. package/es/steps/style/less.js +2 -2
  628. package/es/sticky/Sticky.d.ts +17 -15
  629. package/es/sticky/Sticky.js +58 -73
  630. package/es/sticky/index.css +1 -1
  631. package/es/sticky/index.d.ts +21 -14
  632. package/es/sticky/index.js +8 -4
  633. package/es/sticky/style/index.js +2 -2
  634. package/es/sticky/style/less.js +2 -2
  635. package/es/style/animation.css +1 -1
  636. package/es/style/base.css +1 -1
  637. package/es/style/base.less +6 -2
  638. package/es/style/css-variables.css +1 -1
  639. package/es/style/normalize.css +1 -1
  640. package/es/submit-bar/SubmitBar.d.ts +29 -33
  641. package/es/submit-bar/SubmitBar.js +48 -53
  642. package/es/submit-bar/index.css +1 -1
  643. package/es/submit-bar/index.d.ts +33 -32
  644. package/es/submit-bar/index.js +8 -4
  645. package/es/submit-bar/style/index.js +6 -6
  646. package/es/submit-bar/style/less.js +6 -6
  647. package/es/swipe/Swipe.d.ts +36 -29
  648. package/es/swipe/Swipe.js +140 -203
  649. package/es/swipe/index.css +1 -1
  650. package/es/swipe/index.d.ts +40 -28
  651. package/es/swipe/index.js +8 -4
  652. package/es/swipe/style/index.js +2 -2
  653. package/es/swipe/style/less.js +2 -2
  654. package/es/swipe/types.js +0 -1
  655. package/es/swipe-cell/SwipeCell.d.ts +12 -17
  656. package/es/swipe-cell/SwipeCell.js +66 -92
  657. package/es/swipe-cell/index.css +1 -1
  658. package/es/swipe-cell/index.d.ts +16 -16
  659. package/es/swipe-cell/index.js +8 -4
  660. package/es/swipe-cell/style/index.js +2 -2
  661. package/es/swipe-cell/style/less.js +2 -2
  662. package/es/swipe-cell/types.js +0 -1
  663. package/es/swipe-item/SwipeItem.d.ts +1 -1
  664. package/es/swipe-item/SwipeItem.js +40 -51
  665. package/es/swipe-item/index.css +1 -1
  666. package/es/swipe-item/index.d.ts +6 -1
  667. package/es/swipe-item/index.js +8 -4
  668. package/es/swipe-item/style/index.js +3 -3
  669. package/es/swipe-item/style/less.js +3 -3
  670. package/es/switch/Switch.d.ts +17 -21
  671. package/es/switch/Switch.js +28 -32
  672. package/es/switch/index.css +1 -1
  673. package/es/switch/index.d.ts +21 -20
  674. package/es/switch/index.js +8 -4
  675. package/es/switch/style/index.js +3 -3
  676. package/es/switch/style/less.js +3 -3
  677. package/es/tab/Tab.d.ts +17 -26
  678. package/es/tab/Tab.js +44 -56
  679. package/es/tab/index.css +1 -1
  680. package/es/tab/index.d.ts +21 -25
  681. package/es/tab/index.js +8 -4
  682. package/es/tab/style/index.js +7 -7
  683. package/es/tab/style/less.js +7 -7
  684. package/es/tabbar/Tabbar.d.ts +25 -25
  685. package/es/tabbar/Tabbar.js +32 -40
  686. package/es/tabbar/index.css +1 -1
  687. package/es/tabbar/index.d.ts +29 -24
  688. package/es/tabbar/index.js +8 -4
  689. package/es/tabbar/style/index.js +2 -2
  690. package/es/tabbar/style/less.js +2 -2
  691. package/es/tabbar-item/TabbarItem.d.ts +17 -22
  692. package/es/tabbar-item/TabbarItem.js +53 -66
  693. package/es/tabbar-item/index.css +1 -1
  694. package/es/tabbar-item/index.d.ts +17 -19
  695. package/es/tabbar-item/index.js +8 -4
  696. package/es/tabbar-item/style/index.js +5 -5
  697. package/es/tabbar-item/style/less.js +5 -5
  698. package/es/tabs/Tabs.d.ts +47 -43
  699. package/es/tabs/Tabs.js +146 -198
  700. package/es/tabs/TabsContent.d.ts +18 -17
  701. package/es/tabs/TabsContent.js +24 -30
  702. package/es/tabs/TabsTitle.d.ts +21 -33
  703. package/es/tabs/TabsTitle.js +34 -38
  704. package/es/tabs/index.css +1 -1
  705. package/es/tabs/index.d.ts +50 -42
  706. package/es/tabs/index.js +8 -4
  707. package/es/tabs/index.less +43 -35
  708. package/es/tabs/style/index.js +5 -5
  709. package/es/tabs/style/less.js +5 -5
  710. package/es/tabs/types.js +0 -1
  711. package/es/tabs/utils.js +16 -20
  712. package/es/tag/Tag.d.ts +18 -23
  713. package/es/tag/Tag.js +27 -34
  714. package/es/tag/index.css +1 -1
  715. package/es/tag/index.d.ts +22 -22
  716. package/es/tag/index.js +8 -4
  717. package/es/tag/index.less +0 -1
  718. package/es/tag/style/index.js +4 -4
  719. package/es/tag/style/less.js +4 -4
  720. package/es/toast/Toast.d.ts +32 -39
  721. package/es/toast/Toast.js +41 -56
  722. package/es/toast/function-call.d.ts +2 -2
  723. package/es/toast/function-call.js +55 -85
  724. package/es/toast/index.css +1 -1
  725. package/es/toast/index.js +6 -3
  726. package/es/toast/lock-click.js +8 -7
  727. package/es/toast/style/index.js +7 -7
  728. package/es/toast/style/less.js +7 -7
  729. package/es/toast/types.js +0 -1
  730. package/es/tree-select/TreeSelect.d.ts +27 -16
  731. package/es/tree-select/TreeSelect.js +39 -53
  732. package/es/tree-select/index.css +1 -1
  733. package/es/tree-select/index.d.ts +31 -15
  734. package/es/tree-select/index.js +8 -4
  735. package/es/tree-select/index.less +1 -1
  736. package/es/tree-select/style/index.js +6 -6
  737. package/es/tree-select/style/less.js +6 -6
  738. package/es/uploader/Uploader.d.ts +63 -52
  739. package/es/uploader/Uploader.js +87 -134
  740. package/es/uploader/UploaderPreviewItem.d.ts +14 -21
  741. package/es/uploader/UploaderPreviewItem.js +47 -60
  742. package/es/uploader/index.css +1 -1
  743. package/es/uploader/index.d.ts +66 -50
  744. package/es/uploader/index.js +8 -4
  745. package/es/uploader/style/index.js +11 -11
  746. package/es/uploader/style/less.js +11 -11
  747. package/es/uploader/types.js +0 -1
  748. package/es/uploader/utils.js +35 -39
  749. package/es/utils/basic.js +20 -15
  750. package/es/utils/constant.js +20 -9
  751. package/es/utils/create.js +32 -43
  752. package/es/utils/deep-assign.js +9 -13
  753. package/es/utils/deep-clone.js +9 -9
  754. package/es/utils/dom.js +36 -38
  755. package/es/utils/format.js +56 -82
  756. package/es/utils/index.js +9 -9
  757. package/es/utils/interceptor.js +13 -14
  758. package/es/utils/mount-component.js +18 -26
  759. package/es/utils/props.js +19 -13
  760. package/es/utils/validate.js +20 -11
  761. package/es/utils/with-install.js +9 -10
  762. package/lib/action-bar/ActionBar.d.ts +7 -6
  763. package/lib/action-bar/ActionBar.js +49 -33
  764. package/lib/action-bar/index.css +1 -1
  765. package/lib/action-bar/index.d.ts +11 -5
  766. package/lib/action-bar/index.js +31 -15
  767. package/lib/action-bar/style/index.js +2 -5
  768. package/lib/action-bar/style/less.js +2 -5
  769. package/lib/action-bar-button/ActionBarButton.d.ts +12 -22
  770. package/lib/action-bar-button/ActionBarButton.js +52 -45
  771. package/lib/action-bar-button/index.css +1 -1
  772. package/lib/action-bar-button/index.d.ts +16 -21
  773. package/lib/action-bar-button/index.js +31 -15
  774. package/lib/action-bar-button/style/index.js +7 -15
  775. package/lib/action-bar-button/style/less.js +7 -15
  776. package/lib/action-bar-icon/ActionBarIcon.d.ts +21 -28
  777. package/lib/action-bar-icon/ActionBarIcon.js +56 -50
  778. package/lib/action-bar-icon/index.css +1 -1
  779. package/lib/action-bar-icon/index.d.ts +19 -23
  780. package/lib/action-bar-icon/index.js +31 -15
  781. package/lib/action-bar-icon/style/index.js +5 -11
  782. package/lib/action-bar-icon/style/less.js +5 -11
  783. package/lib/action-sheet/ActionSheet.d.ts +55 -48
  784. package/lib/action-sheet/ActionSheet.js +100 -92
  785. package/lib/action-sheet/index.css +1 -1
  786. package/lib/action-sheet/index.d.ts +59 -47
  787. package/lib/action-sheet/index.js +31 -15
  788. package/lib/action-sheet/style/index.js +7 -15
  789. package/lib/action-sheet/style/less.js +7 -15
  790. package/lib/address-edit/AddressEdit.d.ts +49 -49
  791. package/lib/address-edit/AddressEdit.js +223 -253
  792. package/lib/address-edit/AddressEditDetail.d.ts +11 -21
  793. package/lib/address-edit/AddressEditDetail.js +58 -56
  794. package/lib/address-edit/index.css +1 -1
  795. package/lib/address-edit/index.d.ts +53 -48
  796. package/lib/address-edit/index.js +31 -15
  797. package/lib/address-edit/style/index.js +13 -27
  798. package/lib/address-edit/style/less.js +13 -27
  799. package/lib/address-edit/types.js +3 -3
  800. package/lib/address-list/AddressList.d.ts +19 -19
  801. package/lib/address-list/AddressList.js +67 -67
  802. package/lib/address-list/AddressListItem.d.ts +10 -13
  803. package/lib/address-list/AddressListItem.js +66 -66
  804. package/lib/address-list/index.css +1 -1
  805. package/lib/address-list/index.d.ts +23 -18
  806. package/lib/address-list/index.js +31 -15
  807. package/lib/address-list/index.less +1 -1
  808. package/lib/address-list/style/index.js +11 -23
  809. package/lib/address-list/style/less.js +11 -23
  810. package/lib/area/Area.d.ts +42 -34
  811. package/lib/area/Area.js +130 -181
  812. package/lib/area/index.d.ts +46 -33
  813. package/lib/area/index.js +31 -15
  814. package/lib/area/style/index.js +3 -7
  815. package/lib/area/style/less.js +3 -7
  816. package/lib/area/types.js +3 -3
  817. package/lib/badge/Badge.d.ts +20 -21
  818. package/lib/badge/Badge.js +62 -62
  819. package/lib/badge/index.css +1 -1
  820. package/lib/badge/index.d.ts +24 -20
  821. package/lib/badge/index.js +31 -15
  822. package/lib/badge/style/index.js +2 -5
  823. package/lib/badge/style/less.js +2 -5
  824. package/lib/button/Button.d.ts +40 -48
  825. package/lib/button/Button.js +75 -83
  826. package/lib/button/index.css +1 -1
  827. package/lib/button/index.d.ts +44 -47
  828. package/lib/button/index.js +31 -15
  829. package/lib/button/style/index.js +5 -11
  830. package/lib/button/style/less.js +5 -11
  831. package/lib/button/types.js +3 -3
  832. package/lib/calendar/Calendar.d.ts +86 -63
  833. package/lib/calendar/Calendar.js +188 -277
  834. package/lib/calendar/CalendarDay.d.ts +14 -15
  835. package/lib/calendar/CalendarDay.js +84 -87
  836. package/lib/calendar/CalendarHeader.d.ts +7 -14
  837. package/lib/calendar/CalendarHeader.js +57 -49
  838. package/lib/calendar/CalendarMonth.d.ts +26 -33
  839. package/lib/calendar/CalendarMonth.js +130 -166
  840. package/lib/calendar/index.css +1 -1
  841. package/lib/calendar/index.d.ts +90 -62
  842. package/lib/calendar/index.js +31 -15
  843. package/lib/calendar/style/index.js +10 -21
  844. package/lib/calendar/style/less.js +10 -21
  845. package/lib/calendar/types.js +3 -3
  846. package/lib/calendar/utils.js +59 -63
  847. package/lib/card/Card.d.ts +17 -27
  848. package/lib/card/Card.js +91 -92
  849. package/lib/card/index.css +1 -1
  850. package/lib/card/index.d.ts +21 -26
  851. package/lib/card/index.js +31 -15
  852. package/lib/card/style/index.js +6 -13
  853. package/lib/card/style/less.js +6 -13
  854. package/lib/cascader/Cascader.d.ts +37 -23
  855. package/lib/cascader/Cascader.js +125 -146
  856. package/lib/cascader/index.css +1 -1
  857. package/lib/cascader/index.d.ts +37 -22
  858. package/lib/cascader/index.js +31 -15
  859. package/lib/cascader/index.less +0 -10
  860. package/lib/cascader/style/index.js +9 -19
  861. package/lib/cascader/style/less.js +9 -19
  862. package/lib/cascader/types.js +3 -3
  863. package/lib/cell/Cell.d.ts +28 -42
  864. package/lib/cell/Cell.js +81 -87
  865. package/lib/cell/index.css +1 -1
  866. package/lib/cell/index.d.ts +32 -41
  867. package/lib/cell/index.js +31 -15
  868. package/lib/cell/style/index.js +4 -9
  869. package/lib/cell/style/less.js +4 -9
  870. package/lib/cell-group/CellGroup.d.ts +9 -11
  871. package/lib/cell-group/CellGroup.js +50 -37
  872. package/lib/cell-group/index.css +1 -1
  873. package/lib/cell-group/index.d.ts +13 -10
  874. package/lib/cell-group/index.js +31 -15
  875. package/lib/cell-group/style/index.js +2 -5
  876. package/lib/cell-group/style/less.js +2 -5
  877. package/lib/checkbox/Checkbox.d.ts +18 -22
  878. package/lib/checkbox/Checkbox.js +62 -73
  879. package/lib/checkbox/Checker.d.ts +25 -30
  880. package/lib/checkbox/Checker.js +71 -67
  881. package/lib/checkbox/index.css +1 -1
  882. package/lib/checkbox/index.d.ts +22 -21
  883. package/lib/checkbox/index.js +31 -15
  884. package/lib/checkbox/style/index.js +5 -11
  885. package/lib/checkbox/style/less.js +5 -11
  886. package/lib/checkbox/types.js +3 -3
  887. package/lib/checkbox-group/CheckboxGroup.d.ts +12 -17
  888. package/lib/checkbox-group/CheckboxGroup.js +61 -58
  889. package/lib/checkbox-group/index.css +1 -1
  890. package/lib/checkbox-group/index.d.ts +16 -16
  891. package/lib/checkbox-group/index.js +31 -15
  892. package/lib/checkbox-group/style/index.js +2 -5
  893. package/lib/checkbox-group/style/less.js +2 -5
  894. package/lib/checkbox-group/types.js +3 -3
  895. package/lib/circle/Circle.d.ts +36 -29
  896. package/lib/circle/Circle.js +100 -103
  897. package/lib/circle/index.css +1 -1
  898. package/lib/circle/index.d.ts +40 -28
  899. package/lib/circle/index.js +31 -15
  900. package/lib/circle/style/index.js +2 -5
  901. package/lib/circle/style/less.js +2 -5
  902. package/lib/col/Col.d.ts +12 -11
  903. package/lib/col/Col.js +54 -41
  904. package/lib/col/index.css +1 -1
  905. package/lib/col/index.d.ts +16 -10
  906. package/lib/col/index.js +31 -15
  907. package/lib/col/style/index.js +3 -7
  908. package/lib/col/style/less.js +3 -7
  909. package/lib/collapse/Collapse.d.ts +12 -10
  910. package/lib/collapse/Collapse.js +64 -58
  911. package/lib/collapse/index.d.ts +16 -9
  912. package/lib/collapse/index.js +31 -15
  913. package/lib/collapse/style/index.js +1 -3
  914. package/lib/collapse/style/less.js +1 -3
  915. package/lib/collapse-item/CollapseItem.d.ts +32 -42
  916. package/lib/collapse-item/CollapseItem.js +88 -104
  917. package/lib/collapse-item/index.css +1 -1
  918. package/lib/collapse-item/index.d.ts +36 -41
  919. package/lib/collapse-item/index.js +31 -15
  920. package/lib/collapse-item/style/index.js +5 -11
  921. package/lib/collapse-item/style/less.js +5 -11
  922. package/lib/collapse-item/types.js +3 -3
  923. package/lib/composables/on-popup-reopen.js +32 -16
  924. package/lib/composables/use-expose.js +31 -14
  925. package/lib/composables/use-height.js +37 -16
  926. package/lib/composables/use-id.js +33 -18
  927. package/lib/composables/use-lazy-render.js +32 -14
  928. package/lib/composables/use-lock-scroll.js +55 -56
  929. package/lib/composables/use-placeholder.js +33 -14
  930. package/lib/composables/use-refs.js +38 -14
  931. package/lib/composables/use-route.d.ts +1 -1
  932. package/lib/composables/use-route.js +39 -27
  933. package/lib/composables/use-tab-status.js +30 -14
  934. package/lib/composables/use-touch.js +49 -41
  935. package/lib/composables/use-visibility-change.js +38 -29
  936. package/lib/config-provider/ConfigProvider.d.ts +9 -11
  937. package/lib/config-provider/ConfigProvider.js +48 -32
  938. package/lib/config-provider/index.d.ts +13 -10
  939. package/lib/config-provider/index.js +31 -15
  940. package/lib/config-provider/style/index.js +1 -3
  941. package/lib/config-provider/style/less.js +1 -3
  942. package/lib/contact-card/ContactCard.d.ts +14 -15
  943. package/lib/contact-card/ContactCard.js +48 -39
  944. package/lib/contact-card/index.css +1 -1
  945. package/lib/contact-card/index.d.ts +18 -14
  946. package/lib/contact-card/index.js +31 -15
  947. package/lib/contact-card/style/index.js +5 -11
  948. package/lib/contact-card/style/less.js +5 -11
  949. package/lib/contact-edit/ContactEdit.d.ts +16 -19
  950. package/lib/contact-edit/ContactEdit.js +79 -78
  951. package/lib/contact-edit/index.css +1 -1
  952. package/lib/contact-edit/index.d.ts +20 -18
  953. package/lib/contact-edit/index.js +31 -15
  954. package/lib/contact-edit/style/index.js +9 -19
  955. package/lib/contact-edit/style/less.js +9 -19
  956. package/lib/contact-list/ContactList.d.ts +7 -12
  957. package/lib/contact-list/ContactList.js +70 -72
  958. package/lib/contact-list/index.css +1 -1
  959. package/lib/contact-list/index.d.ts +11 -11
  960. package/lib/contact-list/index.js +31 -15
  961. package/lib/contact-list/style/index.js +11 -23
  962. package/lib/contact-list/style/less.js +11 -23
  963. package/lib/count-down/CountDown.d.ts +16 -12
  964. package/lib/count-down/CountDown.js +52 -46
  965. package/lib/count-down/index.css +1 -1
  966. package/lib/count-down/index.d.ts +20 -11
  967. package/lib/count-down/index.js +31 -15
  968. package/lib/count-down/style/index.js +2 -5
  969. package/lib/count-down/style/less.js +2 -5
  970. package/lib/count-down/types.js +3 -3
  971. package/lib/count-down/utils.js +46 -40
  972. package/lib/coupon/Coupon.d.ts +13 -12
  973. package/lib/coupon/Coupon.js +69 -60
  974. package/lib/coupon/index.css +1 -1
  975. package/lib/coupon/index.d.ts +17 -11
  976. package/lib/coupon/index.js +31 -15
  977. package/lib/coupon/style/index.js +6 -13
  978. package/lib/coupon/style/less.js +6 -13
  979. package/lib/coupon/utils.js +33 -18
  980. package/lib/coupon-cell/CouponCell.d.ts +24 -17
  981. package/lib/coupon-cell/CouponCell.js +53 -47
  982. package/lib/coupon-cell/index.css +1 -1
  983. package/lib/coupon-cell/index.d.ts +28 -16
  984. package/lib/coupon-cell/index.js +31 -15
  985. package/lib/coupon-cell/style/index.js +5 -11
  986. package/lib/coupon-cell/style/less.js +5 -11
  987. package/lib/coupon-list/CouponList.d.ts +54 -41
  988. package/lib/coupon-list/CouponList.js +149 -153
  989. package/lib/coupon-list/index.css +1 -1
  990. package/lib/coupon-list/index.d.ts +58 -40
  991. package/lib/coupon-list/index.js +31 -15
  992. package/lib/coupon-list/style/index.js +16 -33
  993. package/lib/coupon-list/style/less.js +16 -33
  994. package/lib/datetime-picker/DatePicker.d.ts +45 -36
  995. package/lib/datetime-picker/DatePicker.js +152 -185
  996. package/lib/datetime-picker/DatetimePicker.d.ts +2 -2
  997. package/lib/datetime-picker/DatetimePicker.js +49 -41
  998. package/lib/datetime-picker/TimePicker.d.ts +47 -38
  999. package/lib/datetime-picker/TimePicker.js +92 -99
  1000. package/lib/datetime-picker/index.d.ts +6 -1
  1001. package/lib/datetime-picker/index.js +31 -15
  1002. package/lib/datetime-picker/style/index.js +3 -7
  1003. package/lib/datetime-picker/style/less.js +3 -7
  1004. package/lib/datetime-picker/types.js +3 -3
  1005. package/lib/datetime-picker/utils.d.ts +1 -1
  1006. package/lib/datetime-picker/utils.js +50 -37
  1007. package/lib/dialog/Dialog.d.ts +53 -60
  1008. package/lib/dialog/Dialog.js +99 -114
  1009. package/lib/dialog/function-call.d.ts +52 -59
  1010. package/lib/dialog/function-call.js +59 -57
  1011. package/lib/dialog/index.css +1 -1
  1012. package/lib/dialog/index.d.ts +5 -0
  1013. package/lib/dialog/index.js +29 -10
  1014. package/lib/dialog/style/index.js +10 -21
  1015. package/lib/dialog/style/less.js +10 -21
  1016. package/lib/dialog/types.js +3 -3
  1017. package/lib/divider/Divider.d.ts +12 -10
  1018. package/lib/divider/Divider.js +48 -31
  1019. package/lib/divider/index.css +1 -1
  1020. package/lib/divider/index.d.ts +16 -9
  1021. package/lib/divider/index.js +31 -15
  1022. package/lib/divider/style/index.js +2 -5
  1023. package/lib/divider/style/less.js +2 -5
  1024. package/lib/dropdown-item/DropdownItem.d.ts +16 -19
  1025. package/lib/dropdown-item/DropdownItem.js +96 -119
  1026. package/lib/dropdown-item/index.css +1 -1
  1027. package/lib/dropdown-item/index.d.ts +20 -18
  1028. package/lib/dropdown-item/index.js +31 -15
  1029. package/lib/dropdown-item/style/index.js +8 -17
  1030. package/lib/dropdown-item/style/less.js +8 -17
  1031. package/lib/dropdown-item/types.js +3 -3
  1032. package/lib/dropdown-menu/DropdownMenu.d.ts +25 -19
  1033. package/lib/dropdown-menu/DropdownMenu.js +91 -85
  1034. package/lib/dropdown-menu/index.css +1 -1
  1035. package/lib/dropdown-menu/index.d.ts +29 -18
  1036. package/lib/dropdown-menu/index.js +31 -15
  1037. package/lib/dropdown-menu/index.less +0 -1
  1038. package/lib/dropdown-menu/style/index.js +2 -5
  1039. package/lib/dropdown-menu/style/less.js +2 -5
  1040. package/lib/dropdown-menu/types.js +3 -3
  1041. package/lib/empty/Empty.d.ts +9 -11
  1042. package/lib/empty/Empty.js +56 -52
  1043. package/lib/empty/Network.js +62 -45
  1044. package/lib/empty/index.css +1 -1
  1045. package/lib/empty/index.d.ts +13 -10
  1046. package/lib/empty/index.js +31 -15
  1047. package/lib/empty/style/index.js +2 -5
  1048. package/lib/empty/style/less.js +2 -5
  1049. package/lib/field/Field.d.ts +81 -91
  1050. package/lib/field/Field.js +220 -302
  1051. package/lib/field/index.css +1 -1
  1052. package/lib/field/index.d.ts +85 -90
  1053. package/lib/field/index.js +31 -15
  1054. package/lib/field/style/index.js +5 -11
  1055. package/lib/field/style/less.js +5 -11
  1056. package/lib/field/types.d.ts +1 -1
  1057. package/lib/field/types.js +3 -3
  1058. package/lib/field/utils.js +64 -87
  1059. package/lib/form/Form.d.ts +25 -31
  1060. package/lib/form/Form.js +84 -90
  1061. package/lib/form/index.d.ts +29 -30
  1062. package/lib/form/index.js +31 -15
  1063. package/lib/form/style/index.js +1 -3
  1064. package/lib/form/style/less.js +1 -3
  1065. package/lib/form/types.js +3 -3
  1066. package/lib/grid/Grid.d.ts +21 -23
  1067. package/lib/grid/Grid.js +57 -42
  1068. package/lib/grid/index.css +1 -1
  1069. package/lib/grid/index.d.ts +25 -22
  1070. package/lib/grid/index.js +31 -15
  1071. package/lib/grid/style/index.js +2 -5
  1072. package/lib/grid/style/less.js +2 -5
  1073. package/lib/grid-item/GridItem.d.ts +18 -24
  1074. package/lib/grid-item/GridItem.js +76 -82
  1075. package/lib/grid-item/index.css +1 -1
  1076. package/lib/grid-item/index.d.ts +18 -21
  1077. package/lib/grid-item/index.js +31 -15
  1078. package/lib/grid-item/style/index.js +5 -11
  1079. package/lib/grid-item/style/less.js +5 -11
  1080. package/lib/icon/Icon.d.ts +19 -21
  1081. package/lib/icon/Icon.js +59 -45
  1082. package/lib/icon/index.css +1 -1
  1083. package/lib/icon/index.d.ts +19 -18
  1084. package/lib/icon/index.js +31 -15
  1085. package/lib/icon/index.less +1 -0
  1086. package/lib/icon/style/index.js +3 -7
  1087. package/lib/icon/style/less.js +3 -7
  1088. package/lib/image/Image.d.ts +33 -33
  1089. package/lib/image/Image.js +113 -110
  1090. package/lib/image/index.css +1 -1
  1091. package/lib/image/index.d.ts +35 -32
  1092. package/lib/image/index.js +31 -15
  1093. package/lib/image/style/index.js +4 -9
  1094. package/lib/image/style/less.js +4 -9
  1095. package/lib/image-preview/ImagePreview.d.ts +57 -41
  1096. package/lib/image-preview/ImagePreview.js +95 -105
  1097. package/lib/image-preview/ImagePreviewItem.d.ts +21 -18
  1098. package/lib/image-preview/ImagePreviewItem.js +119 -133
  1099. package/lib/image-preview/function-call.d.ts +55 -40
  1100. package/lib/image-preview/function-call.js +54 -53
  1101. package/lib/image-preview/index.css +1 -1
  1102. package/lib/image-preview/index.d.ts +5 -0
  1103. package/lib/image-preview/index.js +29 -10
  1104. package/lib/image-preview/index.less +0 -1
  1105. package/lib/image-preview/style/index.js +10 -21
  1106. package/lib/image-preview/style/less.js +10 -21
  1107. package/lib/image-preview/types.d.ts +1 -0
  1108. package/lib/image-preview/types.js +3 -3
  1109. package/lib/index-anchor/IndexAnchor.d.ts +4 -6
  1110. package/lib/index-anchor/IndexAnchor.js +63 -64
  1111. package/lib/index-anchor/index.css +1 -1
  1112. package/lib/index-anchor/index.d.ts +8 -5
  1113. package/lib/index-anchor/index.js +31 -15
  1114. package/lib/index-anchor/style/index.js +3 -7
  1115. package/lib/index-anchor/style/less.js +3 -7
  1116. package/lib/index-bar/IndexBar.d.ts +18 -17
  1117. package/lib/index-bar/IndexBar.js +108 -122
  1118. package/lib/index-bar/index.css +1 -1
  1119. package/lib/index-bar/index.d.ts +22 -16
  1120. package/lib/index-bar/index.js +31 -15
  1121. package/lib/index-bar/style/index.js +2 -5
  1122. package/lib/index-bar/style/less.js +2 -5
  1123. package/lib/index-bar/types.js +3 -3
  1124. package/lib/index.css +1 -1
  1125. package/lib/index.d.ts +1 -1
  1126. package/lib/index.js +288 -791
  1127. package/lib/lazyload/index.js +29 -10
  1128. package/lib/lazyload/style/index.js +1 -3
  1129. package/lib/lazyload/style/less.js +1 -3
  1130. package/lib/lazyload/vue-lazyload/index.js +39 -43
  1131. package/lib/lazyload/vue-lazyload/lazy-component.js +35 -26
  1132. package/lib/lazyload/vue-lazyload/lazy-container.js +50 -63
  1133. package/lib/lazyload/vue-lazyload/lazy-image.js +43 -55
  1134. package/lib/lazyload/vue-lazyload/lazy.js +149 -301
  1135. package/lib/lazyload/vue-lazyload/listener.js +73 -140
  1136. package/lib/lazyload/vue-lazyload/util.js +82 -109
  1137. package/lib/list/List.d.ts +21 -23
  1138. package/lib/list/List.js +88 -97
  1139. package/lib/list/index.css +1 -1
  1140. package/lib/list/index.d.ts +25 -22
  1141. package/lib/list/index.js +31 -15
  1142. package/lib/list/style/index.js +3 -7
  1143. package/lib/list/style/less.js +3 -7
  1144. package/lib/list/types.js +3 -3
  1145. package/lib/loading/Loading.d.ts +12 -17
  1146. package/lib/loading/Loading.js +56 -45
  1147. package/lib/loading/index.css +1 -1
  1148. package/lib/loading/index.d.ts +16 -16
  1149. package/lib/loading/index.js +31 -15
  1150. package/lib/loading/style/index.js +2 -5
  1151. package/lib/loading/style/less.js +2 -5
  1152. package/lib/locale/index.js +38 -32
  1153. package/lib/locale/lang/de-DE-formal.d.ts +2 -11
  1154. package/lib/locale/lang/de-DE-formal.js +52 -56
  1155. package/lib/locale/lang/de-DE.d.ts +2 -11
  1156. package/lib/locale/lang/de-DE.js +52 -56
  1157. package/lib/locale/lang/en-US.d.ts +2 -11
  1158. package/lib/locale/lang/en-US.js +52 -56
  1159. package/lib/locale/lang/es-ES.d.ts +2 -11
  1160. package/lib/locale/lang/es-ES.js +52 -56
  1161. package/lib/locale/lang/fr-FR.d.ts +2 -11
  1162. package/lib/locale/lang/fr-FR.js +52 -56
  1163. package/lib/locale/lang/hi-IN.d.ts +64 -0
  1164. package/lib/locale/lang/hi-IN.js +81 -0
  1165. package/lib/locale/lang/ja-JP.d.ts +2 -12
  1166. package/lib/locale/lang/ja-JP.js +52 -57
  1167. package/lib/locale/lang/ko-KR.d.ts +64 -0
  1168. package/lib/locale/lang/ko-KR.js +81 -0
  1169. package/lib/locale/lang/nb-NO.d.ts +2 -11
  1170. package/lib/locale/lang/nb-NO.js +52 -56
  1171. package/lib/locale/lang/pt-BR.d.ts +2 -11
  1172. package/lib/locale/lang/pt-BR.js +52 -56
  1173. package/lib/locale/lang/ro-RO.d.ts +2 -11
  1174. package/lib/locale/lang/ro-RO.js +52 -56
  1175. package/lib/locale/lang/ru-RU.d.ts +2 -11
  1176. package/lib/locale/lang/ru-RU.js +52 -56
  1177. package/lib/locale/lang/th-TH.d.ts +2 -12
  1178. package/lib/locale/lang/th-TH.js +52 -57
  1179. package/lib/locale/lang/tr-TR.d.ts +2 -11
  1180. package/lib/locale/lang/tr-TR.js +52 -56
  1181. package/lib/locale/lang/zh-CN.d.ts +2 -12
  1182. package/lib/locale/lang/zh-CN.js +52 -57
  1183. package/lib/locale/lang/zh-HK.d.ts +2 -12
  1184. package/lib/locale/lang/zh-HK.js +52 -57
  1185. package/lib/locale/lang/zh-TW.d.ts +2 -12
  1186. package/lib/locale/lang/zh-TW.js +52 -57
  1187. package/lib/locale/style/index.js +1 -3
  1188. package/lib/locale/style/less.js +1 -3
  1189. package/lib/nav-bar/NavBar.d.ts +15 -23
  1190. package/lib/nav-bar/NavBar.js +69 -69
  1191. package/lib/nav-bar/index.css +1 -1
  1192. package/lib/nav-bar/index.d.ts +19 -22
  1193. package/lib/nav-bar/index.js +31 -15
  1194. package/lib/nav-bar/index.less +0 -1
  1195. package/lib/nav-bar/style/index.js +4 -9
  1196. package/lib/nav-bar/style/less.js +4 -9
  1197. package/lib/notice-bar/NoticeBar.d.ts +21 -23
  1198. package/lib/notice-bar/NoticeBar.js +99 -111
  1199. package/lib/notice-bar/index.css +1 -1
  1200. package/lib/notice-bar/index.d.ts +25 -22
  1201. package/lib/notice-bar/index.js +31 -15
  1202. package/lib/notice-bar/style/index.js +4 -9
  1203. package/lib/notice-bar/style/less.js +4 -9
  1204. package/lib/notice-bar/types.js +3 -3
  1205. package/lib/notify/Notify.d.ts +50 -39
  1206. package/lib/notify/Notify.js +46 -35
  1207. package/lib/notify/function-call.d.ts +45 -38
  1208. package/lib/notify/function-call.js +55 -54
  1209. package/lib/notify/index.css +1 -1
  1210. package/lib/notify/index.d.ts +5 -0
  1211. package/lib/notify/index.js +29 -10
  1212. package/lib/notify/style/index.js +6 -13
  1213. package/lib/notify/style/less.js +6 -13
  1214. package/lib/notify/types.d.ts +2 -0
  1215. package/lib/notify/types.js +3 -3
  1216. package/lib/number-keyboard/NumberKeyboard.d.ts +47 -39
  1217. package/lib/number-keyboard/NumberKeyboard.js +126 -148
  1218. package/lib/number-keyboard/NumberKeyboardKey.d.ts +9 -17
  1219. package/lib/number-keyboard/NumberKeyboardKey.js +62 -63
  1220. package/lib/number-keyboard/index.css +1 -1
  1221. package/lib/number-keyboard/index.d.ts +51 -38
  1222. package/lib/number-keyboard/index.js +31 -15
  1223. package/lib/number-keyboard/index.less +0 -1
  1224. package/lib/number-keyboard/style/index.js +3 -7
  1225. package/lib/number-keyboard/style/less.js +3 -7
  1226. package/lib/overlay/Overlay.d.ts +25 -17
  1227. package/lib/overlay/Overlay.js +53 -42
  1228. package/lib/overlay/index.css +1 -1
  1229. package/lib/overlay/index.d.ts +25 -16
  1230. package/lib/overlay/index.js +31 -15
  1231. package/lib/overlay/style/index.js +2 -5
  1232. package/lib/overlay/style/less.js +2 -5
  1233. package/lib/pagination/Pagination.d.ts +30 -23
  1234. package/lib/pagination/Pagination.js +102 -110
  1235. package/lib/pagination/index.css +1 -1
  1236. package/lib/pagination/index.d.ts +34 -22
  1237. package/lib/pagination/index.js +31 -15
  1238. package/lib/pagination/style/index.js +2 -5
  1239. package/lib/pagination/style/less.js +2 -5
  1240. package/lib/password-input/PasswordInput.d.ts +19 -19
  1241. package/lib/password-input/PasswordInput.js +65 -58
  1242. package/lib/password-input/index.css +1 -1
  1243. package/lib/password-input/index.d.ts +23 -18
  1244. package/lib/password-input/index.js +31 -15
  1245. package/lib/password-input/style/index.js +2 -5
  1246. package/lib/password-input/style/less.js +2 -5
  1247. package/lib/picker/Picker.d.ts +39 -34
  1248. package/lib/picker/Picker.js +175 -231
  1249. package/lib/picker/PickerColumn.d.ts +32 -24
  1250. package/lib/picker/PickerColumn.js +128 -164
  1251. package/lib/picker/index.css +1 -1
  1252. package/lib/picker/index.d.ts +43 -33
  1253. package/lib/picker/index.js +31 -15
  1254. package/lib/picker/index.less +0 -1
  1255. package/lib/picker/style/index.js +3 -7
  1256. package/lib/picker/style/less.js +3 -7
  1257. package/lib/picker/types.d.ts +13 -0
  1258. package/lib/picker/types.js +3 -3
  1259. package/lib/popover/Popover.d.ts +49 -37
  1260. package/lib/popover/Popover.js +122 -117
  1261. package/lib/popover/index.css +1 -1
  1262. package/lib/popover/index.d.ts +53 -36
  1263. package/lib/popover/index.js +31 -15
  1264. package/lib/popover/index.less +8 -4
  1265. package/lib/popover/style/index.js +6 -13
  1266. package/lib/popover/style/less.js +6 -13
  1267. package/lib/popover/types.js +3 -3
  1268. package/lib/popup/Popup.d.ts +46 -48
  1269. package/lib/popup/Popup.js +106 -118
  1270. package/lib/popup/index.css +1 -1
  1271. package/lib/popup/index.d.ts +57 -52
  1272. package/lib/popup/index.js +31 -15
  1273. package/lib/popup/index.less +0 -1
  1274. package/lib/popup/shared.d.ts +1 -1
  1275. package/lib/popup/shared.js +37 -30
  1276. package/lib/popup/style/index.js +5 -11
  1277. package/lib/popup/style/less.js +5 -11
  1278. package/lib/popup/types.d.ts +5 -0
  1279. package/lib/popup/types.js +3 -0
  1280. package/lib/progress/Progress.d.ts +19 -23
  1281. package/lib/progress/Progress.js +53 -41
  1282. package/lib/progress/index.css +1 -1
  1283. package/lib/progress/index.d.ts +23 -22
  1284. package/lib/progress/index.js +31 -15
  1285. package/lib/progress/style/index.js +2 -5
  1286. package/lib/progress/style/less.js +2 -5
  1287. package/lib/progress/types.js +3 -3
  1288. package/lib/pull-refresh/PullRefresh.d.ts +22 -25
  1289. package/lib/pull-refresh/PullRefresh.js +99 -118
  1290. package/lib/pull-refresh/index.css +1 -1
  1291. package/lib/pull-refresh/index.d.ts +26 -24
  1292. package/lib/pull-refresh/index.js +31 -15
  1293. package/lib/pull-refresh/index.less +0 -1
  1294. package/lib/pull-refresh/style/index.js +3 -7
  1295. package/lib/pull-refresh/style/less.js +3 -7
  1296. package/lib/radio/Radio.d.ts +14 -21
  1297. package/lib/radio/Radio.js +48 -47
  1298. package/lib/radio/index.css +1 -1
  1299. package/lib/radio/index.d.ts +18 -20
  1300. package/lib/radio/index.js +31 -15
  1301. package/lib/radio/style/index.js +6 -13
  1302. package/lib/radio/style/less.js +6 -13
  1303. package/lib/radio-group/RadioGroup.d.ts +8 -15
  1304. package/lib/radio-group/RadioGroup.js +54 -40
  1305. package/lib/radio-group/index.css +1 -1
  1306. package/lib/radio-group/index.d.ts +12 -14
  1307. package/lib/radio-group/index.js +31 -15
  1308. package/lib/radio-group/style/index.js +2 -5
  1309. package/lib/radio-group/style/less.js +2 -5
  1310. package/lib/rate/Rate.d.ts +32 -33
  1311. package/lib/rate/Rate.js +88 -102
  1312. package/lib/rate/index.css +1 -1
  1313. package/lib/rate/index.d.ts +36 -32
  1314. package/lib/rate/index.js +31 -15
  1315. package/lib/rate/style/index.js +4 -9
  1316. package/lib/rate/style/less.js +4 -9
  1317. package/lib/row/Row.d.ts +17 -15
  1318. package/lib/row/Row.js +68 -55
  1319. package/lib/row/index.css +1 -1
  1320. package/lib/row/index.d.ts +21 -14
  1321. package/lib/row/index.js +31 -15
  1322. package/lib/row/style/index.js +2 -5
  1323. package/lib/row/style/less.js +2 -5
  1324. package/lib/search/Search.d.ts +65 -52
  1325. package/lib/search/Search.js +101 -94
  1326. package/lib/search/index.css +1 -1
  1327. package/lib/search/index.d.ts +69 -51
  1328. package/lib/search/index.js +31 -15
  1329. package/lib/search/style/index.js +6 -13
  1330. package/lib/search/style/less.js +6 -13
  1331. package/lib/search/types.js +3 -3
  1332. package/lib/share-sheet/ShareSheet.d.ts +46 -42
  1333. package/lib/share-sheet/ShareSheet.js +81 -88
  1334. package/lib/share-sheet/index.css +1 -1
  1335. package/lib/share-sheet/index.d.ts +50 -41
  1336. package/lib/share-sheet/index.js +31 -15
  1337. package/lib/share-sheet/index.less +0 -1
  1338. package/lib/share-sheet/style/index.js +6 -13
  1339. package/lib/share-sheet/style/less.js +6 -13
  1340. package/lib/sidebar/Sidebar.d.ts +7 -6
  1341. package/lib/sidebar/Sidebar.js +54 -41
  1342. package/lib/sidebar/index.css +1 -1
  1343. package/lib/sidebar/index.d.ts +11 -5
  1344. package/lib/sidebar/index.js +31 -15
  1345. package/lib/sidebar/style/index.js +2 -5
  1346. package/lib/sidebar/style/less.js +2 -5
  1347. package/lib/sidebar-item/SidebarItem.d.ts +16 -20
  1348. package/lib/sidebar-item/SidebarItem.js +59 -56
  1349. package/lib/sidebar-item/index.css +1 -1
  1350. package/lib/sidebar-item/index.d.ts +16 -17
  1351. package/lib/sidebar-item/index.js +31 -15
  1352. package/lib/sidebar-item/style/index.js +4 -9
  1353. package/lib/sidebar-item/style/less.js +4 -9
  1354. package/lib/skeleton/Skeleton.d.ts +28 -25
  1355. package/lib/skeleton/Skeleton.js +61 -55
  1356. package/lib/skeleton/index.css +1 -1
  1357. package/lib/skeleton/index.d.ts +32 -24
  1358. package/lib/skeleton/index.js +31 -15
  1359. package/lib/skeleton/style/index.js +2 -5
  1360. package/lib/skeleton/style/less.js +2 -5
  1361. package/lib/slider/Slider.d.ts +29 -32
  1362. package/lib/slider/Slider.js +138 -185
  1363. package/lib/slider/index.css +1 -1
  1364. package/lib/slider/index.d.ts +33 -31
  1365. package/lib/slider/index.js +31 -15
  1366. package/lib/slider/style/index.js +2 -5
  1367. package/lib/slider/style/less.js +2 -5
  1368. package/lib/step/Step.d.ts +1 -1
  1369. package/lib/step/Step.js +79 -89
  1370. package/lib/step/index.css +1 -1
  1371. package/lib/step/index.d.ts +6 -1
  1372. package/lib/step/index.js +31 -15
  1373. package/lib/step/style/index.js +5 -11
  1374. package/lib/step/style/less.js +5 -11
  1375. package/lib/stepper/Stepper.d.ts +52 -49
  1376. package/lib/stepper/Stepper.js +134 -162
  1377. package/lib/stepper/index.css +1 -1
  1378. package/lib/stepper/index.d.ts +56 -48
  1379. package/lib/stepper/index.js +31 -15
  1380. package/lib/stepper/index.less +0 -1
  1381. package/lib/stepper/style/index.js +2 -5
  1382. package/lib/stepper/style/less.js +2 -5
  1383. package/lib/steps/Steps.d.ts +20 -21
  1384. package/lib/steps/Steps.js +54 -40
  1385. package/lib/steps/index.css +1 -1
  1386. package/lib/steps/index.d.ts +24 -20
  1387. package/lib/steps/index.js +31 -15
  1388. package/lib/steps/style/index.js +2 -5
  1389. package/lib/steps/style/less.js +2 -5
  1390. package/lib/sticky/Sticky.d.ts +17 -15
  1391. package/lib/sticky/Sticky.js +86 -89
  1392. package/lib/sticky/index.css +1 -1
  1393. package/lib/sticky/index.d.ts +21 -14
  1394. package/lib/sticky/index.js +31 -15
  1395. package/lib/sticky/style/index.js +2 -5
  1396. package/lib/sticky/style/less.js +2 -5
  1397. package/lib/style/animation.css +1 -1
  1398. package/lib/style/base.css +1 -1
  1399. package/lib/style/base.less +6 -2
  1400. package/lib/style/css-variables.css +1 -1
  1401. package/lib/style/normalize.css +1 -1
  1402. package/lib/submit-bar/SubmitBar.d.ts +29 -33
  1403. package/lib/submit-bar/SubmitBar.js +80 -73
  1404. package/lib/submit-bar/index.css +1 -1
  1405. package/lib/submit-bar/index.d.ts +33 -32
  1406. package/lib/submit-bar/index.js +31 -15
  1407. package/lib/submit-bar/style/index.js +6 -13
  1408. package/lib/submit-bar/style/less.js +6 -13
  1409. package/lib/swipe/Swipe.d.ts +36 -29
  1410. package/lib/swipe/Swipe.js +191 -244
  1411. package/lib/swipe/index.css +1 -1
  1412. package/lib/swipe/index.d.ts +40 -28
  1413. package/lib/swipe/index.js +31 -15
  1414. package/lib/swipe/style/index.js +2 -5
  1415. package/lib/swipe/style/less.js +2 -5
  1416. package/lib/swipe/types.js +3 -3
  1417. package/lib/swipe-cell/SwipeCell.d.ts +12 -17
  1418. package/lib/swipe-cell/SwipeCell.js +98 -112
  1419. package/lib/swipe-cell/index.css +1 -1
  1420. package/lib/swipe-cell/index.d.ts +16 -16
  1421. package/lib/swipe-cell/index.js +31 -15
  1422. package/lib/swipe-cell/style/index.js +2 -5
  1423. package/lib/swipe-cell/style/less.js +2 -5
  1424. package/lib/swipe-cell/types.js +3 -3
  1425. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  1426. package/lib/swipe-item/SwipeItem.js +67 -67
  1427. package/lib/swipe-item/index.css +1 -1
  1428. package/lib/swipe-item/index.d.ts +6 -1
  1429. package/lib/swipe-item/index.js +31 -15
  1430. package/lib/swipe-item/style/index.js +3 -7
  1431. package/lib/swipe-item/style/less.js +3 -7
  1432. package/lib/switch/Switch.d.ts +17 -21
  1433. package/lib/switch/Switch.js +60 -52
  1434. package/lib/switch/index.css +1 -1
  1435. package/lib/switch/index.d.ts +21 -20
  1436. package/lib/switch/index.js +31 -15
  1437. package/lib/switch/style/index.js +3 -7
  1438. package/lib/switch/style/less.js +3 -7
  1439. package/lib/tab/Tab.d.ts +17 -26
  1440. package/lib/tab/Tab.js +79 -84
  1441. package/lib/tab/index.css +1 -1
  1442. package/lib/tab/index.d.ts +21 -25
  1443. package/lib/tab/index.js +31 -15
  1444. package/lib/tab/style/index.js +7 -15
  1445. package/lib/tab/style/less.js +7 -15
  1446. package/lib/tabbar/Tabbar.d.ts +25 -25
  1447. package/lib/tabbar/Tabbar.js +64 -61
  1448. package/lib/tabbar/index.css +1 -1
  1449. package/lib/tabbar/index.d.ts +29 -24
  1450. package/lib/tabbar/index.js +31 -15
  1451. package/lib/tabbar/style/index.js +2 -5
  1452. package/lib/tabbar/style/less.js +2 -5
  1453. package/lib/tabbar-item/TabbarItem.d.ts +17 -22
  1454. package/lib/tabbar-item/TabbarItem.js +81 -85
  1455. package/lib/tabbar-item/index.css +1 -1
  1456. package/lib/tabbar-item/index.d.ts +17 -19
  1457. package/lib/tabbar-item/index.js +31 -15
  1458. package/lib/tabbar-item/style/index.js +5 -11
  1459. package/lib/tabbar-item/style/less.js +5 -11
  1460. package/lib/tabs/Tabs.d.ts +47 -43
  1461. package/lib/tabs/Tabs.js +203 -253
  1462. package/lib/tabs/TabsContent.d.ts +18 -17
  1463. package/lib/tabs/TabsContent.js +54 -47
  1464. package/lib/tabs/TabsTitle.d.ts +21 -33
  1465. package/lib/tabs/TabsTitle.js +61 -52
  1466. package/lib/tabs/index.css +1 -1
  1467. package/lib/tabs/index.d.ts +50 -42
  1468. package/lib/tabs/index.js +31 -15
  1469. package/lib/tabs/index.less +43 -35
  1470. package/lib/tabs/style/index.js +5 -11
  1471. package/lib/tabs/style/less.js +5 -11
  1472. package/lib/tabs/types.js +3 -3
  1473. package/lib/tabs/utils.js +41 -31
  1474. package/lib/tag/Tag.d.ts +18 -23
  1475. package/lib/tag/Tag.js +53 -46
  1476. package/lib/tag/index.css +1 -1
  1477. package/lib/tag/index.d.ts +22 -22
  1478. package/lib/tag/index.js +31 -15
  1479. package/lib/tag/index.less +0 -1
  1480. package/lib/tag/style/index.js +4 -9
  1481. package/lib/tag/style/less.js +4 -9
  1482. package/lib/toast/Toast.d.ts +32 -39
  1483. package/lib/toast/Toast.js +78 -82
  1484. package/lib/toast/function-call.d.ts +2 -2
  1485. package/lib/toast/function-call.js +90 -105
  1486. package/lib/toast/index.css +1 -1
  1487. package/lib/toast/index.js +29 -10
  1488. package/lib/toast/lock-click.js +14 -11
  1489. package/lib/toast/style/index.js +7 -15
  1490. package/lib/toast/style/less.js +7 -15
  1491. package/lib/toast/types.js +3 -3
  1492. package/lib/tree-select/TreeSelect.d.ts +27 -16
  1493. package/lib/tree-select/TreeSelect.js +72 -75
  1494. package/lib/tree-select/index.css +1 -1
  1495. package/lib/tree-select/index.d.ts +31 -15
  1496. package/lib/tree-select/index.js +31 -15
  1497. package/lib/tree-select/index.less +1 -1
  1498. package/lib/tree-select/style/index.js +6 -13
  1499. package/lib/tree-select/style/less.js +6 -13
  1500. package/lib/uploader/Uploader.d.ts +63 -52
  1501. package/lib/uploader/Uploader.js +133 -173
  1502. package/lib/uploader/UploaderPreviewItem.d.ts +14 -21
  1503. package/lib/uploader/UploaderPreviewItem.js +86 -87
  1504. package/lib/uploader/index.css +1 -1
  1505. package/lib/uploader/index.d.ts +66 -50
  1506. package/lib/uploader/index.js +31 -15
  1507. package/lib/uploader/style/index.js +11 -23
  1508. package/lib/uploader/style/less.js +11 -23
  1509. package/lib/uploader/types.js +3 -3
  1510. package/lib/uploader/utils.js +55 -62
  1511. package/lib/utils/basic.js +25 -27
  1512. package/lib/utils/constant.js +27 -22
  1513. package/lib/utils/create.js +53 -56
  1514. package/lib/utils/deep-assign.js +33 -20
  1515. package/lib/utils/deep-clone.js +33 -16
  1516. package/lib/utils/dom.js +52 -60
  1517. package/lib/utils/format.js +79 -113
  1518. package/lib/utils/index.js +28 -75
  1519. package/lib/utils/interceptor.js +38 -23
  1520. package/lib/utils/mount-component.js +39 -34
  1521. package/lib/utils/props.js +25 -35
  1522. package/lib/utils/validate.js +42 -39
  1523. package/lib/utils/with-install.js +31 -14
  1524. package/lib/vant.cjs.js +5034 -5049
  1525. package/lib/vant.cjs.min.js +1 -1
  1526. package/lib/vant.es.js +5034 -5049
  1527. package/lib/vant.es.min.js +5034 -5049
  1528. package/lib/vant.js +5060 -5074
  1529. package/lib/vant.min.js +1 -1
  1530. package/package.json +4 -5
  1531. package/vetur/attributes.json +1022 -991
  1532. package/vetur/tags.json +60 -53
  1533. package/vetur/web-types.json +1726 -1638
@@ -1,19 +1,15 @@
1
1
  import { withDirectives as _withDirectives, createVNode as _createVNode, mergeProps as _mergeProps, vShow as _vShow } from "vue";
2
- import { ref, watch, computed, nextTick, defineComponent } from 'vue'; // Utils
3
-
4
- import { isDef, addUnit, addNumber, truthProp, resetScroll, numericProp, formatNumber, getSizeStyle, preventDefault, createNamespace, callInterceptor, makeNumericProp, HAPTICS_FEEDBACK } from '../utils'; // Composables
5
-
6
- import { useCustomFieldValue } from '@vant/use';
7
- var [name, bem] = createNamespace('stepper');
8
- var LONG_PRESS_INTERVAL = 200;
9
- var LONG_PRESS_START_TIME = 600;
10
-
11
- var isEqual = (value1, value2) => String(value1) === String(value2);
12
-
13
- var stepperProps = {
2
+ import { ref, watch, computed, nextTick, defineComponent } from "vue";
3
+ import { isDef, addUnit, addNumber, truthProp, resetScroll, numericProp, formatNumber, getSizeStyle, preventDefault, createNamespace, callInterceptor, makeNumericProp, HAPTICS_FEEDBACK } from "../utils";
4
+ import { useCustomFieldValue } from "@vant/use";
5
+ const [name, bem] = createNamespace("stepper");
6
+ const LONG_PRESS_INTERVAL = 200;
7
+ const LONG_PRESS_START_TIME = 600;
8
+ const isEqual = (value1, value2) => String(value1) === String(value2);
9
+ const stepperProps = {
14
10
  min: makeNumericProp(1),
15
11
  max: makeNumericProp(Infinity),
16
- name: makeNumericProp(''),
12
+ name: makeNumericProp(""),
17
13
  step: makeNumericProp(1),
18
14
  theme: String,
19
15
  integer: Boolean,
@@ -34,158 +30,127 @@ var stepperProps = {
34
30
  defaultValue: makeNumericProp(1),
35
31
  decimalLength: numericProp
36
32
  };
37
- export default defineComponent({
33
+ var stdin_default = defineComponent({
38
34
  name,
39
35
  props: stepperProps,
40
- emits: ['plus', 'blur', 'minus', 'focus', 'change', 'overlimit', 'update:modelValue'],
41
-
42
- setup(props, _ref) {
43
- var {
44
- emit
45
- } = _ref;
46
-
47
- var format = value => {
48
- var {
36
+ emits: ["plus", "blur", "minus", "focus", "change", "overlimit", "update:modelValue"],
37
+ setup(props, {
38
+ emit
39
+ }) {
40
+ const format = (value) => {
41
+ const {
49
42
  min,
50
43
  max,
51
44
  allowEmpty,
52
45
  decimalLength
53
46
  } = props;
54
-
55
- if (allowEmpty && value === '') {
47
+ if (allowEmpty && value === "") {
56
48
  return value;
57
49
  }
58
-
59
50
  value = formatNumber(String(value), !props.integer);
60
- value = value === '' ? 0 : +value;
51
+ value = value === "" ? 0 : +value;
61
52
  value = Number.isNaN(value) ? +min : value;
62
- value = Math.max(Math.min(+max, value), +min); // format decimal
63
-
53
+ value = Math.max(Math.min(+max, value), +min);
64
54
  if (isDef(decimalLength)) {
65
55
  value = value.toFixed(+decimalLength);
66
56
  }
67
-
68
57
  return value;
69
58
  };
70
-
71
- var getInitialValue = () => {
72
- var _props$modelValue;
73
-
74
- var defaultValue = (_props$modelValue = props.modelValue) != null ? _props$modelValue : props.defaultValue;
75
- var value = format(defaultValue);
76
-
59
+ const getInitialValue = () => {
60
+ var _a;
61
+ const defaultValue = (_a = props.modelValue) != null ? _a : props.defaultValue;
62
+ const value = format(defaultValue);
77
63
  if (!isEqual(value, props.modelValue)) {
78
- emit('update:modelValue', value);
64
+ emit("update:modelValue", value);
79
65
  }
80
-
81
66
  return value;
82
67
  };
83
-
84
- var actionType;
85
- var inputRef = ref();
86
- var current = ref(getInitialValue());
87
- var minusDisabled = computed(() => props.disabled || props.disableMinus || current.value <= +props.min);
88
- var plusDisabled = computed(() => props.disabled || props.disablePlus || current.value >= +props.max);
89
- var inputStyle = computed(() => ({
68
+ let actionType;
69
+ const inputRef = ref();
70
+ const current = ref(getInitialValue());
71
+ const minusDisabled = computed(() => props.disabled || props.disableMinus || current.value <= +props.min);
72
+ const plusDisabled = computed(() => props.disabled || props.disablePlus || current.value >= +props.max);
73
+ const inputStyle = computed(() => ({
90
74
  width: addUnit(props.inputWidth),
91
75
  height: addUnit(props.buttonSize)
92
76
  }));
93
- var buttonStyle = computed(() => getSizeStyle(props.buttonSize));
94
-
95
- var check = () => {
96
- var value = format(current.value);
97
-
77
+ const buttonStyle = computed(() => getSizeStyle(props.buttonSize));
78
+ const check = () => {
79
+ const value = format(current.value);
98
80
  if (!isEqual(value, current.value)) {
99
81
  current.value = value;
100
82
  }
101
83
  };
102
-
103
- var setValue = value => {
84
+ const setValue = (value) => {
104
85
  if (props.beforeChange) {
105
86
  callInterceptor(props.beforeChange, {
106
87
  args: [value],
107
-
108
88
  done() {
109
89
  current.value = value;
110
90
  }
111
-
112
91
  });
113
92
  } else {
114
93
  current.value = value;
115
94
  }
116
95
  };
117
-
118
- var onChange = () => {
119
- if (actionType === 'plus' && plusDisabled.value || actionType === 'minus' && minusDisabled.value) {
120
- emit('overlimit', actionType);
96
+ const onChange = () => {
97
+ if (actionType === "plus" && plusDisabled.value || actionType === "minus" && minusDisabled.value) {
98
+ emit("overlimit", actionType);
121
99
  return;
122
100
  }
123
-
124
- var diff = actionType === 'minus' ? -props.step : +props.step;
125
- var value = format(addNumber(+current.value, diff));
101
+ const diff = actionType === "minus" ? -props.step : +props.step;
102
+ const value = format(addNumber(+current.value, diff));
126
103
  setValue(value);
127
104
  emit(actionType);
128
105
  };
129
-
130
- var onInput = event => {
131
- var input = event.target;
132
- var {
106
+ const onInput = (event) => {
107
+ const input = event.target;
108
+ const {
133
109
  value
134
110
  } = input;
135
- var {
111
+ const {
136
112
  decimalLength
137
113
  } = props;
138
- var formatted = formatNumber(String(value), !props.integer); // limit max decimal length
139
-
140
- if (isDef(decimalLength) && formatted.includes('.')) {
141
- var pair = formatted.split('.');
142
- formatted = pair[0] + "." + pair[1].slice(0, +decimalLength);
114
+ let formatted = formatNumber(String(value), !props.integer);
115
+ if (isDef(decimalLength) && formatted.includes(".")) {
116
+ const pair = formatted.split(".");
117
+ formatted = `${pair[0]}.${pair[1].slice(0, +decimalLength)}`;
143
118
  }
144
-
145
119
  if (props.beforeChange) {
146
120
  input.value = String(current.value);
147
121
  } else if (!isEqual(value, formatted)) {
148
122
  input.value = formatted;
149
- } // prefer number type
150
-
151
-
152
- var isNumeric = formatted === String(+formatted);
123
+ }
124
+ const isNumeric = formatted === String(+formatted);
153
125
  setValue(isNumeric ? +formatted : formatted);
154
126
  };
155
-
156
- var onFocus = event => {
157
- // readonly not work in legacy mobile safari
127
+ const onFocus = (event) => {
128
+ var _a;
158
129
  if (props.disableInput) {
159
- var _inputRef$value;
160
-
161
- (_inputRef$value = inputRef.value) == null ? void 0 : _inputRef$value.blur();
130
+ (_a = inputRef.value) == null ? void 0 : _a.blur();
162
131
  } else {
163
- emit('focus', event);
132
+ emit("focus", event);
164
133
  }
165
134
  };
166
-
167
- var onBlur = event => {
168
- var input = event.target;
169
- var value = format(input.value);
135
+ const onBlur = (event) => {
136
+ const input = event.target;
137
+ const value = format(input.value);
170
138
  input.value = String(value);
171
139
  current.value = value;
172
140
  nextTick(() => {
173
- emit('blur', event);
141
+ emit("blur", event);
174
142
  resetScroll();
175
143
  });
176
144
  };
177
-
178
- var isLongPress;
179
- var longPressTimer;
180
-
181
- var longPressStep = () => {
145
+ let isLongPress;
146
+ let longPressTimer;
147
+ const longPressStep = () => {
182
148
  longPressTimer = setTimeout(() => {
183
149
  onChange();
184
150
  longPressStep();
185
151
  }, LONG_PRESS_INTERVAL);
186
152
  };
187
-
188
- var onTouchStart = () => {
153
+ const onTouchStart = () => {
189
154
  if (props.longPress) {
190
155
  isLongPress = false;
191
156
  clearTimeout(longPressTimer);
@@ -196,28 +161,21 @@ export default defineComponent({
196
161
  }, LONG_PRESS_START_TIME);
197
162
  }
198
163
  };
199
-
200
- var onTouchEnd = event => {
164
+ const onTouchEnd = (event) => {
201
165
  if (props.longPress) {
202
166
  clearTimeout(longPressTimer);
203
-
204
167
  if (isLongPress) {
205
168
  preventDefault(event);
206
169
  }
207
170
  }
208
171
  };
209
-
210
- var onMousedown = event => {
211
- // fix mobile safari page scroll down issue
212
- // see: https://github.com/youzan/vant/issues/7690
172
+ const onMousedown = (event) => {
213
173
  if (props.disableInput) {
214
174
  preventDefault(event);
215
175
  }
216
176
  };
217
-
218
- var createListeners = type => ({
219
- onClick: event => {
220
- // disable double tap scrolling on mobile safari
177
+ const createListeners = (type) => ({
178
+ onClick: (event) => {
221
179
  preventDefault(event);
222
180
  actionType = type;
223
181
  onChange();
@@ -229,16 +187,15 @@ export default defineComponent({
229
187
  onTouchend: onTouchEnd,
230
188
  onTouchcancel: onTouchEnd
231
189
  });
232
-
233
190
  watch(() => [props.max, props.min, props.integer, props.decimalLength], check);
234
- watch(() => props.modelValue, value => {
191
+ watch(() => props.modelValue, (value) => {
235
192
  if (!isEqual(value, current.value)) {
236
193
  current.value = format(value);
237
194
  }
238
195
  });
239
- watch(current, value => {
240
- emit('update:modelValue', value);
241
- emit('change', value, {
196
+ watch(current, (value) => {
197
+ emit("update:modelValue", value);
198
+ emit("change", value, {
242
199
  name: props.name
243
200
  });
244
201
  });
@@ -249,22 +206,22 @@ export default defineComponent({
249
206
  }, [_withDirectives(_createVNode("button", _mergeProps({
250
207
  "type": "button",
251
208
  "style": buttonStyle.value,
252
- "class": [bem('minus', {
209
+ "class": [bem("minus", {
253
210
  disabled: minusDisabled.value
254
211
  }), {
255
212
  [HAPTICS_FEEDBACK]: !minusDisabled.value
256
213
  }],
257
- "aria-disabled": minusDisabled.value || undefined
258
- }, createListeners('minus')), null), [[_vShow, props.showMinus]]), _withDirectives(_createVNode("input", {
214
+ "aria-disabled": minusDisabled.value || void 0
215
+ }, createListeners("minus")), null), [[_vShow, props.showMinus]]), _withDirectives(_createVNode("input", {
259
216
  "ref": inputRef,
260
- "type": props.integer ? 'tel' : 'text',
217
+ "type": props.integer ? "tel" : "text",
261
218
  "role": "spinbutton",
262
- "class": bem('input'),
219
+ "class": bem("input"),
263
220
  "value": current.value,
264
221
  "style": inputStyle.value,
265
222
  "disabled": props.disabled,
266
223
  "readonly": props.disableInput,
267
- "inputmode": props.integer ? 'numeric' : 'decimal',
224
+ "inputmode": props.integer ? "numeric" : "decimal",
268
225
  "placeholder": props.placeholder,
269
226
  "aria-valuemax": props.max,
270
227
  "aria-valuemin": props.min,
@@ -276,13 +233,15 @@ export default defineComponent({
276
233
  }, null), [[_vShow, props.showInput]]), _withDirectives(_createVNode("button", _mergeProps({
277
234
  "type": "button",
278
235
  "style": buttonStyle.value,
279
- "class": [bem('plus', {
236
+ "class": [bem("plus", {
280
237
  disabled: plusDisabled.value
281
238
  }), {
282
239
  [HAPTICS_FEEDBACK]: !plusDisabled.value
283
240
  }],
284
- "aria-disabled": plusDisabled.value || undefined
285
- }, createListeners('plus')), null), [[_vShow, props.showPlus]])]);
241
+ "aria-disabled": plusDisabled.value || void 0
242
+ }, createListeners("plus")), null), [[_vShow, props.showPlus]])]);
286
243
  }
287
-
288
- });
244
+ });
245
+ export {
246
+ stdin_default as default
247
+ };
@@ -1 +1 @@
1
- :root{--van-stepper-background-color:var(--van-active-color);--van-stepper-button-icon-color:var(--van-text-color);--van-stepper-button-disabled-color:var(--van-background-color);--van-stepper-button-disabled-icon-color:var(--van-gray-5);--van-stepper-button-round-theme-color:var(--van-danger-color);--van-stepper-input-width:32px;--van-stepper-input-height:28px;--van-stepper-input-font-size:var(--van-font-size-md);--van-stepper-input-line-height:normal;--van-stepper-input-text-color:var(--van-text-color);--van-stepper-input-disabled-text-color:var(--van-text-color-3);--van-stepper-input-disabled-background-color:var(--van-active-color);--van-stepper-border-radius:var(--van-border-radius-md)}.van-stepper{display:inline-block;-webkit-user-select:none;user-select:none}.van-stepper__minus,.van-stepper__plus{position:relative;box-sizing:border-box;width:var(--van-stepper-input-height);height:var(--van-stepper-input-height);margin:0;padding:0;color:var(--van-stepper-button-icon-color);vertical-align:middle;background:var(--van-stepper-background-color);border:0;cursor:pointer}.van-stepper__minus::before,.van-stepper__plus::before{width:50%;height:1px}.van-stepper__minus::after,.van-stepper__plus::after{width:1px;height:50%}.van-stepper__minus::after,.van-stepper__minus::before,.van-stepper__plus::after,.van-stepper__plus::before{position:absolute;top:50%;left:50%;background-color:currentColor;transform:translate(-50%,-50%);content:''}.van-stepper__minus--disabled,.van-stepper__plus--disabled{color:var(--van-stepper-button-disabled-icon-color);background-color:var(--van-stepper-button-disabled-color);cursor:not-allowed}.van-stepper__minus{border-radius:var(--van-stepper-border-radius) 0 0 var(--van-stepper-border-radius)}.van-stepper__minus::after{display:none}.van-stepper__plus{border-radius:0 var(--van-stepper-border-radius) var(--van-stepper-border-radius) 0}.van-stepper__input{box-sizing:border-box;width:var(--van-stepper-input-width);height:var(--van-stepper-input-height);margin:0 2px;padding:0;color:var(--van-stepper-input-text-color);font-size:var(--van-stepper-input-font-size);line-height:var(--van-stepper-input-line-height);text-align:center;vertical-align:middle;background:var(--van-stepper-background-color);border:0;border-width:1px 0;border-radius:0;-webkit-appearance:none}.van-stepper__input:disabled{color:var(--van-stepper-input-disabled-text-color);background-color:var(--van-stepper-input-disabled-background-color);-webkit-text-fill-color:var(--van-stepper-input-disabled-text-color);opacity:1}.van-stepper__input:read-only{cursor:default}.van-stepper--round .van-stepper__input{background-color:transparent}.van-stepper--round .van-stepper__minus,.van-stepper--round .van-stepper__plus{border-radius:100%}.van-stepper--round .van-stepper__minus--disabled,.van-stepper--round .van-stepper__plus--disabled{opacity:.3;cursor:not-allowed}.van-stepper--round .van-stepper__plus{color:var(--van-white);background:var(--van-stepper-button-round-theme-color)}.van-stepper--round .van-stepper__minus{color:var(--van-stepper-button-round-theme-color);background-color:var(--van-background-color-light);border:1px solid var(--van-stepper-button-round-theme-color)}
1
+ :root{--van-stepper-background-color: var(--van-active-color);--van-stepper-button-icon-color: var(--van-text-color);--van-stepper-button-disabled-color: var(--van-background-color);--van-stepper-button-disabled-icon-color: var(--van-gray-5);--van-stepper-button-round-theme-color: var(--van-danger-color);--van-stepper-input-width: 32px;--van-stepper-input-height: 28px;--van-stepper-input-font-size: var(--van-font-size-md);--van-stepper-input-line-height: normal;--van-stepper-input-text-color: var(--van-text-color);--van-stepper-input-disabled-text-color: var(--van-text-color-3);--van-stepper-input-disabled-background-color: var(--van-active-color);--van-stepper-border-radius: var(--van-border-radius-md)}.van-stepper{display:inline-block;-webkit-user-select:none;user-select:none}.van-stepper__minus,.van-stepper__plus{position:relative;box-sizing:border-box;width:var(--van-stepper-input-height);height:var(--van-stepper-input-height);margin:0;padding:0;color:var(--van-stepper-button-icon-color);vertical-align:middle;background:var(--van-stepper-background-color);border:0}.van-stepper__minus:before,.van-stepper__plus:before{width:50%;height:1px}.van-stepper__minus:after,.van-stepper__plus:after{width:1px;height:50%}.van-stepper__minus:before,.van-stepper__plus:before,.van-stepper__minus:after,.van-stepper__plus:after{position:absolute;top:50%;left:50%;background-color:currentColor;transform:translate(-50%,-50%);content:""}.van-stepper__minus--disabled,.van-stepper__plus--disabled{color:var(--van-stepper-button-disabled-icon-color);background-color:var(--van-stepper-button-disabled-color);cursor:not-allowed}.van-stepper__minus{border-radius:var(--van-stepper-border-radius) 0 0 var(--van-stepper-border-radius)}.van-stepper__minus:after{display:none}.van-stepper__plus{border-radius:0 var(--van-stepper-border-radius) var(--van-stepper-border-radius) 0}.van-stepper__input{box-sizing:border-box;width:var(--van-stepper-input-width);height:var(--van-stepper-input-height);margin:0 2px;padding:0;color:var(--van-stepper-input-text-color);font-size:var(--van-stepper-input-font-size);line-height:var(--van-stepper-input-line-height);text-align:center;vertical-align:middle;background:var(--van-stepper-background-color);border:0;border-width:1px 0;border-radius:0;-webkit-appearance:none}.van-stepper__input:disabled{color:var(--van-stepper-input-disabled-text-color);background-color:var(--van-stepper-input-disabled-background-color);-webkit-text-fill-color:var(--van-stepper-input-disabled-text-color);opacity:1}.van-stepper__input:read-only{cursor:default}.van-stepper--round .van-stepper__input{background-color:transparent}.van-stepper--round .van-stepper__plus,.van-stepper--round .van-stepper__minus{border-radius:100%}.van-stepper--round .van-stepper__plus--disabled,.van-stepper--round .van-stepper__minus--disabled{opacity:.3;cursor:not-allowed}.van-stepper--round .van-stepper__plus{color:var(--van-white);background:var(--van-stepper-button-round-theme-color)}.van-stepper--round .van-stepper__minus{color:var(--van-stepper-button-round-theme-color);background-color:var(--van-background-color-light);border:1px solid var(--van-stepper-button-round-theme-color)}
@@ -48,54 +48,57 @@ export declare const Stepper: import("../utils").WithInstall<import("vue").Defin
48
48
  default: number;
49
49
  };
50
50
  decimalLength: (NumberConstructor | StringConstructor)[];
51
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "blur" | "update:modelValue" | "change" | "plus" | "minus" | "overlimit")[], "focus" | "blur" | "update:modelValue" | "change" | "plus" | "minus" | "overlimit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
52
- min?: unknown;
53
- max?: unknown;
54
- name?: unknown;
55
- step?: unknown;
56
- theme?: unknown;
57
- integer?: unknown;
58
- disabled?: unknown;
59
- showPlus?: unknown;
60
- showMinus?: unknown;
61
- showInput?: unknown;
62
- longPress?: unknown;
63
- allowEmpty?: unknown;
64
- modelValue?: unknown;
65
- inputWidth?: unknown;
66
- buttonSize?: unknown;
67
- placeholder?: unknown;
68
- disablePlus?: unknown;
69
- disableMinus?: unknown;
70
- disableInput?: unknown;
71
- beforeChange?: unknown;
72
- defaultValue?: unknown;
73
- decimalLength?: unknown;
74
- } & {
75
- name: string | number;
76
- max: string | number;
77
- disabled: boolean;
78
- min: string | number;
79
- step: string | number;
80
- integer: boolean;
81
- showPlus: boolean;
82
- showMinus: boolean;
83
- showInput: boolean;
84
- longPress: boolean;
85
- allowEmpty: boolean;
86
- disablePlus: boolean;
87
- disableMinus: boolean;
88
- disableInput: boolean;
89
- defaultValue: string | number;
90
- } & {
91
- modelValue?: string | number | undefined;
92
- placeholder?: string | undefined;
93
- beforeChange?: import("../utils").Interceptor | undefined;
94
- theme?: import("./Stepper").StepperTheme | undefined;
95
- buttonSize?: string | number | undefined;
96
- inputWidth?: string | number | undefined;
97
- decimalLength?: string | number | undefined;
98
- }> & {
51
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "blur" | "update:modelValue" | "change" | "plus" | "minus" | "overlimit")[], "focus" | "blur" | "update:modelValue" | "change" | "plus" | "minus" | "overlimit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
52
+ min: {
53
+ type: (NumberConstructor | StringConstructor)[];
54
+ default: number;
55
+ };
56
+ max: {
57
+ type: (NumberConstructor | StringConstructor)[];
58
+ default: number;
59
+ };
60
+ name: {
61
+ type: (NumberConstructor | StringConstructor)[];
62
+ default: string;
63
+ };
64
+ step: {
65
+ type: (NumberConstructor | StringConstructor)[];
66
+ default: number;
67
+ };
68
+ theme: import("vue").PropType<import("./Stepper").StepperTheme>;
69
+ integer: BooleanConstructor;
70
+ disabled: BooleanConstructor;
71
+ showPlus: {
72
+ type: BooleanConstructor;
73
+ default: true;
74
+ };
75
+ showMinus: {
76
+ type: BooleanConstructor;
77
+ default: true;
78
+ };
79
+ showInput: {
80
+ type: BooleanConstructor;
81
+ default: true;
82
+ };
83
+ longPress: {
84
+ type: BooleanConstructor;
85
+ default: true;
86
+ };
87
+ allowEmpty: BooleanConstructor;
88
+ modelValue: (NumberConstructor | StringConstructor)[];
89
+ inputWidth: (NumberConstructor | StringConstructor)[];
90
+ buttonSize: (NumberConstructor | StringConstructor)[];
91
+ placeholder: StringConstructor;
92
+ disablePlus: BooleanConstructor;
93
+ disableMinus: BooleanConstructor;
94
+ disableInput: BooleanConstructor;
95
+ beforeChange: import("vue").PropType<import("../utils").Interceptor>;
96
+ defaultValue: {
97
+ type: (NumberConstructor | StringConstructor)[];
98
+ default: number;
99
+ };
100
+ decimalLength: (NumberConstructor | StringConstructor)[];
101
+ }>> & {
99
102
  onFocus?: ((...args: any[]) => any) | undefined;
100
103
  onBlur?: ((...args: any[]) => any) | undefined;
101
104
  onChange?: ((...args: any[]) => any) | undefined;
@@ -122,3 +125,8 @@ export declare const Stepper: import("../utils").WithInstall<import("vue").Defin
122
125
  }>>;
123
126
  export default Stepper;
124
127
  export type { StepperTheme, StepperProps } from './Stepper';
128
+ declare module 'vue' {
129
+ interface GlobalComponents {
130
+ VanStepper: typeof Stepper;
131
+ }
132
+ }
@@ -1,4 +1,8 @@
1
- import { withInstall } from '../utils';
2
- import _Stepper from './Stepper';
3
- export var Stepper = withInstall(_Stepper);
4
- export default Stepper;
1
+ import { withInstall } from "../utils";
2
+ import _Stepper from "./Stepper";
3
+ const Stepper = withInstall(_Stepper);
4
+ var stdin_default = Stepper;
5
+ export {
6
+ Stepper,
7
+ stdin_default as default
8
+ };
@@ -32,7 +32,6 @@
32
32
  vertical-align: middle;
33
33
  background: var(--van-stepper-background-color);
34
34
  border: 0;
35
- cursor: pointer;
36
35
 
37
36
  &::before {
38
37
  width: 50%;
@@ -1,2 +1,2 @@
1
- import '../../style/base.css';
2
- import '../index.css';
1
+ import "../../style/base.css";
2
+ import "../index.css";
@@ -1,2 +1,2 @@
1
- import '../../style/base.less';
2
- import '../index.less';
1
+ import "../../style/base.less";
2
+ import "../index.less";
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes, InjectionKey } from 'vue';
1
+ import { type ExtractPropTypes, type InjectionKey } from 'vue';
2
2
  export declare type StepsDirection = 'horizontal' | 'vertical';
3
3
  declare const stepsProps: {
4
4
  active: {
@@ -43,26 +43,25 @@ declare const _default: import("vue").DefineComponent<{
43
43
  activeColor: StringConstructor;
44
44
  inactiveIcon: StringConstructor;
45
45
  inactiveColor: StringConstructor;
46
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click-step"[], "click-step", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
47
- active?: unknown;
48
- direction?: unknown;
49
- activeIcon?: unknown;
50
- iconPrefix?: unknown;
51
- finishIcon?: unknown;
52
- activeColor?: unknown;
53
- inactiveIcon?: unknown;
54
- inactiveColor?: unknown;
55
- } & {
56
- active: string | number;
57
- direction: StepsDirection;
58
- activeIcon: string;
59
- } & {
60
- iconPrefix?: string | undefined;
61
- activeColor?: string | undefined;
62
- inactiveColor?: string | undefined;
63
- finishIcon?: string | undefined;
64
- inactiveIcon?: string | undefined;
65
- }> & {
46
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click-step"[], "click-step", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
47
+ active: {
48
+ type: (NumberConstructor | StringConstructor)[];
49
+ default: number;
50
+ };
51
+ direction: {
52
+ type: import("vue").PropType<StepsDirection>;
53
+ default: StepsDirection;
54
+ };
55
+ activeIcon: {
56
+ type: import("vue").PropType<string>;
57
+ default: string;
58
+ };
59
+ iconPrefix: StringConstructor;
60
+ finishIcon: StringConstructor;
61
+ activeColor: StringConstructor;
62
+ inactiveIcon: StringConstructor;
63
+ inactiveColor: StringConstructor;
64
+ }>> & {
66
65
  "onClick-step"?: ((...args: any[]) => any) | undefined;
67
66
  }, {
68
67
  active: string | number;
package/es/steps/Steps.js CHANGED
@@ -1,44 +1,46 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
- import { defineComponent } from 'vue';
3
- import { makeStringProp, makeNumericProp, createNamespace } from '../utils';
4
- import { useChildren } from '@vant/use';
5
- var [name, bem] = createNamespace('steps');
6
- var stepsProps = {
2
+ import { defineComponent } from "vue";
3
+ import { makeStringProp, makeNumericProp, createNamespace } from "../utils";
4
+ import { useChildren } from "@vant/use";
5
+ const [name, bem] = createNamespace("steps");
6
+ const stepsProps = {
7
7
  active: makeNumericProp(0),
8
- direction: makeStringProp('horizontal'),
9
- activeIcon: makeStringProp('checked'),
8
+ direction: makeStringProp("horizontal"),
9
+ activeIcon: makeStringProp("checked"),
10
10
  iconPrefix: String,
11
11
  finishIcon: String,
12
12
  activeColor: String,
13
13
  inactiveIcon: String,
14
14
  inactiveColor: String
15
15
  };
16
- export var STEPS_KEY = Symbol(name);
17
- export default defineComponent({
16
+ const STEPS_KEY = Symbol(name);
17
+ var stdin_default = defineComponent({
18
18
  name,
19
19
  props: stepsProps,
20
- emits: ['click-step'],
21
-
22
- setup(props, _ref) {
23
- var {
24
- emit,
25
- slots
26
- } = _ref;
27
- var {
20
+ emits: ["click-step"],
21
+ setup(props, {
22
+ emit,
23
+ slots
24
+ }) {
25
+ const {
28
26
  linkChildren
29
27
  } = useChildren(STEPS_KEY);
30
-
31
- var onClickStep = index => emit('click-step', index);
32
-
28
+ const onClickStep = (index) => emit("click-step", index);
33
29
  linkChildren({
34
30
  props,
35
31
  onClickStep
36
32
  });
37
- return () => _createVNode("div", {
38
- "class": bem([props.direction])
39
- }, [_createVNode("div", {
40
- "class": bem('items')
41
- }, [slots.default == null ? void 0 : slots.default()])]);
33
+ return () => {
34
+ var _a;
35
+ return _createVNode("div", {
36
+ "class": bem([props.direction])
37
+ }, [_createVNode("div", {
38
+ "class": bem("items")
39
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
40
+ };
42
41
  }
43
-
44
- });
42
+ });
43
+ export {
44
+ STEPS_KEY,
45
+ stdin_default as default
46
+ };
@@ -1 +1 @@
1
- :root{--van-steps-background-color:var(--van-background-color-light)}.van-steps{overflow:hidden;background-color:var(--van-steps-background-color)}.van-steps--horizontal{padding:10px 10px 0}.van-steps--horizontal .van-steps__items{position:relative;display:flex;margin:0 0 10px;padding-bottom:22px}.van-steps--vertical{padding:0 0 0 var(--van-padding-xl)}
1
+ :root{--van-steps-background-color: var(--van-background-color-light)}.van-steps{overflow:hidden;background-color:var(--van-steps-background-color)}.van-steps--horizontal{padding:10px 10px 0}.van-steps--horizontal .van-steps__items{position:relative;display:flex;margin:0 0 10px;padding-bottom:22px}.van-steps--vertical{padding:0 0 0 var(--van-padding-xl)}