vant 3.4.0 → 3.4.4

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