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/index.js CHANGED
@@ -1,94 +1,178 @@
1
- import { ActionBar } from './action-bar';
2
- import { ActionBarButton } from './action-bar-button';
3
- import { ActionBarIcon } from './action-bar-icon';
4
- import { ActionSheet } from './action-sheet';
5
- import { AddressEdit } from './address-edit';
6
- import { AddressList } from './address-list';
7
- import { Area } from './area';
8
- import { Badge } from './badge';
9
- import { Button } from './button';
10
- import { Calendar } from './calendar';
11
- import { Card } from './card';
12
- import { Cascader } from './cascader';
13
- import { Cell } from './cell';
14
- import { CellGroup } from './cell-group';
15
- import { Checkbox } from './checkbox';
16
- import { CheckboxGroup } from './checkbox-group';
17
- import { Circle } from './circle';
18
- import { Col } from './col';
19
- import { Collapse } from './collapse';
20
- import { CollapseItem } from './collapse-item';
21
- import { ConfigProvider } from './config-provider';
22
- import { ContactCard } from './contact-card';
23
- import { ContactEdit } from './contact-edit';
24
- import { ContactList } from './contact-list';
25
- import { CountDown } from './count-down';
26
- import { Coupon } from './coupon';
27
- import { CouponCell } from './coupon-cell';
28
- import { CouponList } from './coupon-list';
29
- import { DatetimePicker } from './datetime-picker';
30
- import { Dialog } from './dialog';
31
- import { Divider } from './divider';
32
- import { DropdownItem } from './dropdown-item';
33
- import { DropdownMenu } from './dropdown-menu';
34
- import { Empty } from './empty';
35
- import { Field } from './field';
36
- import { Form } from './form';
37
- import { Grid } from './grid';
38
- import { GridItem } from './grid-item';
39
- import { Icon } from './icon';
40
- import { Image } from './image';
41
- import { ImagePreview } from './image-preview';
42
- import { IndexAnchor } from './index-anchor';
43
- import { IndexBar } from './index-bar';
44
- import { Lazyload } from './lazyload';
45
- import { List } from './list';
46
- import { Loading } from './loading';
47
- import { Locale } from './locale';
48
- import { NavBar } from './nav-bar';
49
- import { NoticeBar } from './notice-bar';
50
- import { Notify } from './notify';
51
- import { NumberKeyboard } from './number-keyboard';
52
- import { Overlay } from './overlay';
53
- import { Pagination } from './pagination';
54
- import { PasswordInput } from './password-input';
55
- import { Picker } from './picker';
56
- import { Popover } from './popover';
57
- import { Popup } from './popup';
58
- import { Progress } from './progress';
59
- import { PullRefresh } from './pull-refresh';
60
- import { Radio } from './radio';
61
- import { RadioGroup } from './radio-group';
62
- import { Rate } from './rate';
63
- import { Row } from './row';
64
- import { Search } from './search';
65
- import { ShareSheet } from './share-sheet';
66
- import { Sidebar } from './sidebar';
67
- import { SidebarItem } from './sidebar-item';
68
- import { Skeleton } from './skeleton';
69
- import { Slider } from './slider';
70
- import { Step } from './step';
71
- import { Stepper } from './stepper';
72
- import { Steps } from './steps';
73
- import { Sticky } from './sticky';
74
- import { SubmitBar } from './submit-bar';
75
- import { Swipe } from './swipe';
76
- import { SwipeCell } from './swipe-cell';
77
- import { SwipeItem } from './swipe-item';
78
- import { Switch } from './switch';
79
- import { Tab } from './tab';
80
- import { Tabbar } from './tabbar';
81
- import { TabbarItem } from './tabbar-item';
82
- import { Tabs } from './tabs';
83
- import { Tag } from './tag';
84
- import { Toast } from './toast';
85
- import { TreeSelect } from './tree-select';
86
- import { Uploader } from './uploader';
87
- var version = '3.4.0';
88
-
1
+ import { ActionBar } from "./action-bar";
2
+ import { ActionBarButton } from "./action-bar-button";
3
+ import { ActionBarIcon } from "./action-bar-icon";
4
+ import { ActionSheet } from "./action-sheet";
5
+ import { AddressEdit } from "./address-edit";
6
+ import { AddressList } from "./address-list";
7
+ import { Area } from "./area";
8
+ import { Badge } from "./badge";
9
+ import { Button } from "./button";
10
+ import { Calendar } from "./calendar";
11
+ import { Card } from "./card";
12
+ import { Cascader } from "./cascader";
13
+ import { Cell } from "./cell";
14
+ import { CellGroup } from "./cell-group";
15
+ import { Checkbox } from "./checkbox";
16
+ import { CheckboxGroup } from "./checkbox-group";
17
+ import { Circle } from "./circle";
18
+ import { Col } from "./col";
19
+ import { Collapse } from "./collapse";
20
+ import { CollapseItem } from "./collapse-item";
21
+ import { ConfigProvider } from "./config-provider";
22
+ import { ContactCard } from "./contact-card";
23
+ import { ContactEdit } from "./contact-edit";
24
+ import { ContactList } from "./contact-list";
25
+ import { CountDown } from "./count-down";
26
+ import { Coupon } from "./coupon";
27
+ import { CouponCell } from "./coupon-cell";
28
+ import { CouponList } from "./coupon-list";
29
+ import { DatetimePicker } from "./datetime-picker";
30
+ import { Dialog } from "./dialog";
31
+ import { Divider } from "./divider";
32
+ import { DropdownItem } from "./dropdown-item";
33
+ import { DropdownMenu } from "./dropdown-menu";
34
+ import { Empty } from "./empty";
35
+ import { Field } from "./field";
36
+ import { Form } from "./form";
37
+ import { Grid } from "./grid";
38
+ import { GridItem } from "./grid-item";
39
+ import { Icon } from "./icon";
40
+ import { Image } from "./image";
41
+ import { ImagePreview } from "./image-preview";
42
+ import { IndexAnchor } from "./index-anchor";
43
+ import { IndexBar } from "./index-bar";
44
+ import { List } from "./list";
45
+ import { Loading } from "./loading";
46
+ import { Locale } from "./locale";
47
+ import { NavBar } from "./nav-bar";
48
+ import { NoticeBar } from "./notice-bar";
49
+ import { Notify } from "./notify";
50
+ import { NumberKeyboard } from "./number-keyboard";
51
+ import { Overlay } from "./overlay";
52
+ import { Pagination } from "./pagination";
53
+ import { PasswordInput } from "./password-input";
54
+ import { Picker } from "./picker";
55
+ import { Popover } from "./popover";
56
+ import { Popup } from "./popup";
57
+ import { Progress } from "./progress";
58
+ import { PullRefresh } from "./pull-refresh";
59
+ import { Radio } from "./radio";
60
+ import { RadioGroup } from "./radio-group";
61
+ import { Rate } from "./rate";
62
+ import { Row } from "./row";
63
+ import { Search } from "./search";
64
+ import { ShareSheet } from "./share-sheet";
65
+ import { Sidebar } from "./sidebar";
66
+ import { SidebarItem } from "./sidebar-item";
67
+ import { Skeleton } from "./skeleton";
68
+ import { Slider } from "./slider";
69
+ import { Step } from "./step";
70
+ import { Stepper } from "./stepper";
71
+ import { Steps } from "./steps";
72
+ import { Sticky } from "./sticky";
73
+ import { SubmitBar } from "./submit-bar";
74
+ import { Swipe } from "./swipe";
75
+ import { SwipeCell } from "./swipe-cell";
76
+ import { SwipeItem } from "./swipe-item";
77
+ import { Switch } from "./switch";
78
+ import { Tab } from "./tab";
79
+ import { Tabbar } from "./tabbar";
80
+ import { TabbarItem } from "./tabbar-item";
81
+ import { Tabs } from "./tabs";
82
+ import { Tag } from "./tag";
83
+ import { Toast } from "./toast";
84
+ import { TreeSelect } from "./tree-select";
85
+ import { Uploader } from "./uploader";
86
+ const version = "3.4.4";
89
87
  function install(app) {
90
- var components = [ActionBar, ActionBarButton, ActionBarIcon, ActionSheet, AddressEdit, AddressList, Area, Badge, Button, Calendar, Card, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, ConfigProvider, ContactCard, ContactEdit, ContactList, CountDown, Coupon, CouponCell, CouponList, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, Form, Grid, GridItem, Icon, Image, ImagePreview, IndexAnchor, IndexBar, List, Loading, Locale, NavBar, NoticeBar, Notify, NumberKeyboard, Overlay, Pagination, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rate, Row, Search, ShareSheet, Sidebar, SidebarItem, Skeleton, Slider, Step, Stepper, Steps, Sticky, SubmitBar, Swipe, SwipeCell, SwipeItem, Switch, Tab, Tabbar, TabbarItem, Tabs, Tag, Toast, TreeSelect, Uploader];
91
- components.forEach(item => {
88
+ const components = [
89
+ ActionBar,
90
+ ActionBarButton,
91
+ ActionBarIcon,
92
+ ActionSheet,
93
+ AddressEdit,
94
+ AddressList,
95
+ Area,
96
+ Badge,
97
+ Button,
98
+ Calendar,
99
+ Card,
100
+ Cascader,
101
+ Cell,
102
+ CellGroup,
103
+ Checkbox,
104
+ CheckboxGroup,
105
+ Circle,
106
+ Col,
107
+ Collapse,
108
+ CollapseItem,
109
+ ConfigProvider,
110
+ ContactCard,
111
+ ContactEdit,
112
+ ContactList,
113
+ CountDown,
114
+ Coupon,
115
+ CouponCell,
116
+ CouponList,
117
+ DatetimePicker,
118
+ Dialog,
119
+ Divider,
120
+ DropdownItem,
121
+ DropdownMenu,
122
+ Empty,
123
+ Field,
124
+ Form,
125
+ Grid,
126
+ GridItem,
127
+ Icon,
128
+ Image,
129
+ ImagePreview,
130
+ IndexAnchor,
131
+ IndexBar,
132
+ List,
133
+ Loading,
134
+ Locale,
135
+ NavBar,
136
+ NoticeBar,
137
+ Notify,
138
+ NumberKeyboard,
139
+ Overlay,
140
+ Pagination,
141
+ PasswordInput,
142
+ Picker,
143
+ Popover,
144
+ Popup,
145
+ Progress,
146
+ PullRefresh,
147
+ Radio,
148
+ RadioGroup,
149
+ Rate,
150
+ Row,
151
+ Search,
152
+ ShareSheet,
153
+ Sidebar,
154
+ SidebarItem,
155
+ Skeleton,
156
+ Slider,
157
+ Step,
158
+ Stepper,
159
+ Steps,
160
+ Sticky,
161
+ SubmitBar,
162
+ Swipe,
163
+ SwipeCell,
164
+ SwipeItem,
165
+ Switch,
166
+ Tab,
167
+ Tabbar,
168
+ TabbarItem,
169
+ Tabs,
170
+ Tag,
171
+ Toast,
172
+ TreeSelect,
173
+ Uploader
174
+ ];
175
+ components.forEach((item) => {
92
176
  if (item.install) {
93
177
  app.use(item);
94
178
  } else if (item.name) {
@@ -96,95 +180,98 @@ function install(app) {
96
180
  }
97
181
  });
98
182
  }
99
-
100
- export { install, version };
101
- export * from './action-bar';
102
- export * from './action-bar-button';
103
- export * from './action-bar-icon';
104
- export * from './action-sheet';
105
- export * from './address-edit';
106
- export * from './address-list';
107
- export * from './area';
108
- export * from './badge';
109
- export * from './button';
110
- export * from './calendar';
111
- export * from './card';
112
- export * from './cascader';
113
- export * from './cell';
114
- export * from './cell-group';
115
- export * from './checkbox';
116
- export * from './checkbox-group';
117
- export * from './circle';
118
- export * from './col';
119
- export * from './collapse';
120
- export * from './collapse-item';
121
- export * from './config-provider';
122
- export * from './contact-card';
123
- export * from './contact-edit';
124
- export * from './contact-list';
125
- export * from './count-down';
126
- export * from './coupon';
127
- export * from './coupon-cell';
128
- export * from './coupon-list';
129
- export * from './datetime-picker';
130
- export * from './dialog';
131
- export * from './divider';
132
- export * from './dropdown-item';
133
- export * from './dropdown-menu';
134
- export * from './empty';
135
- export * from './field';
136
- export * from './form';
137
- export * from './grid';
138
- export * from './grid-item';
139
- export * from './icon';
140
- export * from './image';
141
- export * from './image-preview';
142
- export * from './index-anchor';
143
- export * from './index-bar';
144
- export * from './lazyload';
145
- export * from './list';
146
- export * from './loading';
147
- export * from './locale';
148
- export * from './nav-bar';
149
- export * from './notice-bar';
150
- export * from './notify';
151
- export * from './number-keyboard';
152
- export * from './overlay';
153
- export * from './pagination';
154
- export * from './password-input';
155
- export * from './picker';
156
- export * from './popover';
157
- export * from './popup';
158
- export * from './progress';
159
- export * from './pull-refresh';
160
- export * from './radio';
161
- export * from './radio-group';
162
- export * from './rate';
163
- export * from './row';
164
- export * from './search';
165
- export * from './share-sheet';
166
- export * from './sidebar';
167
- export * from './sidebar-item';
168
- export * from './skeleton';
169
- export * from './slider';
170
- export * from './step';
171
- export * from './stepper';
172
- export * from './steps';
173
- export * from './sticky';
174
- export * from './submit-bar';
175
- export * from './swipe';
176
- export * from './swipe-cell';
177
- export * from './swipe-item';
178
- export * from './switch';
179
- export * from './tab';
180
- export * from './tabbar';
181
- export * from './tabbar-item';
182
- export * from './tabs';
183
- export * from './tag';
184
- export * from './toast';
185
- export * from './tree-select';
186
- export * from './uploader';
187
- export default {
183
+ export * from "./action-bar";
184
+ export * from "./action-bar-button";
185
+ export * from "./action-bar-icon";
186
+ export * from "./action-sheet";
187
+ export * from "./address-edit";
188
+ export * from "./address-list";
189
+ export * from "./area";
190
+ export * from "./badge";
191
+ export * from "./button";
192
+ export * from "./calendar";
193
+ export * from "./card";
194
+ export * from "./cascader";
195
+ export * from "./cell";
196
+ export * from "./cell-group";
197
+ export * from "./checkbox";
198
+ export * from "./checkbox-group";
199
+ export * from "./circle";
200
+ export * from "./col";
201
+ export * from "./collapse";
202
+ export * from "./collapse-item";
203
+ export * from "./config-provider";
204
+ export * from "./contact-card";
205
+ export * from "./contact-edit";
206
+ export * from "./contact-list";
207
+ export * from "./count-down";
208
+ export * from "./coupon";
209
+ export * from "./coupon-cell";
210
+ export * from "./coupon-list";
211
+ export * from "./datetime-picker";
212
+ export * from "./dialog";
213
+ export * from "./divider";
214
+ export * from "./dropdown-item";
215
+ export * from "./dropdown-menu";
216
+ export * from "./empty";
217
+ export * from "./field";
218
+ export * from "./form";
219
+ export * from "./grid";
220
+ export * from "./grid-item";
221
+ export * from "./icon";
222
+ export * from "./image";
223
+ export * from "./image-preview";
224
+ export * from "./index-anchor";
225
+ export * from "./index-bar";
226
+ export * from "./lazyload";
227
+ export * from "./list";
228
+ export * from "./loading";
229
+ export * from "./locale";
230
+ export * from "./nav-bar";
231
+ export * from "./notice-bar";
232
+ export * from "./notify";
233
+ export * from "./number-keyboard";
234
+ export * from "./overlay";
235
+ export * from "./pagination";
236
+ export * from "./password-input";
237
+ export * from "./picker";
238
+ export * from "./popover";
239
+ export * from "./popup";
240
+ export * from "./progress";
241
+ export * from "./pull-refresh";
242
+ export * from "./radio";
243
+ export * from "./radio-group";
244
+ export * from "./rate";
245
+ export * from "./row";
246
+ export * from "./search";
247
+ export * from "./share-sheet";
248
+ export * from "./sidebar";
249
+ export * from "./sidebar-item";
250
+ export * from "./skeleton";
251
+ export * from "./slider";
252
+ export * from "./step";
253
+ export * from "./stepper";
254
+ export * from "./steps";
255
+ export * from "./sticky";
256
+ export * from "./submit-bar";
257
+ export * from "./swipe";
258
+ export * from "./swipe-cell";
259
+ export * from "./swipe-item";
260
+ export * from "./switch";
261
+ export * from "./tab";
262
+ export * from "./tabbar";
263
+ export * from "./tabbar-item";
264
+ export * from "./tabs";
265
+ export * from "./tag";
266
+ export * from "./toast";
267
+ export * from "./tree-select";
268
+ export * from "./uploader";
269
+ var stdin_default = {
188
270
  install,
189
271
  version
190
- };
272
+ };
273
+ export {
274
+ stdin_default as default,
275
+ install,
276
+ version
277
+ };
@@ -1,3 +1,6 @@
1
- import { Lazyload } from './vue-lazyload';
2
- export default Lazyload;
3
- export { Lazyload };
1
+ import { Lazyload } from "./vue-lazyload";
2
+ var stdin_default = Lazyload;
3
+ export {
4
+ Lazyload,
5
+ stdin_default as default
6
+ };
@@ -1 +1 @@
1
- import '../../style/base.css';
1
+ import "../../style/base.css";
@@ -1 +1 @@
1
- import '../../style/base.less';
1
+ import "../../style/base.less";
@@ -1,46 +1,31 @@
1
- /**
2
- * This is a fork of [vue-lazyload](https://github.com/hilongjw/vue-lazyload) with Vue 3 support.
3
- */
4
- import Lazy from './lazy';
5
- import LazyComponent from './lazy-component';
6
- import LazyContainer from './lazy-container';
7
- import LazyImage from './lazy-image';
8
- export var Lazyload = {
9
- /*
10
- * install function
11
- * @param {App} app
12
- * @param {object} options lazyload options
13
- */
14
- install(app, options) {
15
- if (options === void 0) {
16
- options = {};
17
- }
18
-
19
- var LazyClass = Lazy();
20
- var lazy = new LazyClass(options);
21
- var lazyContainer = new LazyContainer({
22
- lazy
23
- });
1
+ import Lazy from "./lazy";
2
+ import LazyComponent from "./lazy-component";
3
+ import LazyContainer from "./lazy-container";
4
+ import LazyImage from "./lazy-image";
5
+ const Lazyload = {
6
+ install(app, options = {}) {
7
+ const LazyClass = Lazy();
8
+ const lazy = new LazyClass(options);
9
+ const lazyContainer = new LazyContainer({ lazy });
24
10
  app.config.globalProperties.$Lazyload = lazy;
25
-
26
11
  if (options.lazyComponent) {
27
- app.component('LazyComponent', LazyComponent(lazy));
12
+ app.component("LazyComponent", LazyComponent(lazy));
28
13
  }
29
-
30
14
  if (options.lazyImage) {
31
- app.component('LazyImage', LazyImage(lazy));
15
+ app.component("LazyImage", LazyImage(lazy));
32
16
  }
33
-
34
- app.directive('lazy', {
17
+ app.directive("lazy", {
35
18
  beforeMount: lazy.add.bind(lazy),
36
19
  updated: lazy.update.bind(lazy),
37
20
  unmounted: lazy.remove.bind(lazy)
38
21
  });
39
- app.directive('lazy-container', {
22
+ app.directive("lazy-container", {
40
23
  beforeMount: lazyContainer.bind.bind(lazyContainer),
41
24
  updated: lazyContainer.update.bind(lazyContainer),
42
25
  unmounted: lazyContainer.unbind.bind(lazyContainer)
43
26
  });
44
27
  }
45
-
46
- };
28
+ };
29
+ export {
30
+ Lazyload
31
+ };
@@ -1,18 +1,16 @@
1
- import { h } from 'vue';
2
- import { inBrowser, useRect } from '@vant/use';
3
- export default (lazy => ({
1
+ import { h } from "vue";
2
+ import { inBrowser, useRect } from "@vant/use";
3
+ var stdin_default = (lazy) => ({
4
4
  props: {
5
5
  tag: {
6
6
  type: String,
7
- default: 'div'
7
+ default: "div"
8
8
  }
9
9
  },
10
- emits: ['show'],
11
-
10
+ emits: ["show"],
12
11
  render() {
13
12
  return h(this.tag, this.show && this.$slots.default ? this.$slots.default() : null);
14
13
  },
15
-
16
14
  data() {
17
15
  return {
18
16
  el: null,
@@ -22,32 +20,29 @@ export default (lazy => ({
22
20
  show: false
23
21
  };
24
22
  },
25
-
26
23
  mounted() {
27
24
  this.el = this.$el;
28
25
  lazy.addLazyBox(this);
29
26
  lazy.lazyLoadHandler();
30
27
  },
31
-
32
28
  beforeUnmount() {
33
29
  lazy.removeComponent(this);
34
30
  },
35
-
36
31
  methods: {
37
32
  checkInView() {
38
- var rect = useRect(this.$el);
33
+ const rect = useRect(this.$el);
39
34
  return inBrowser && rect.top < window.innerHeight * lazy.options.preLoad && rect.bottom > 0 && rect.left < window.innerWidth * lazy.options.preLoad && rect.right > 0;
40
35
  },
41
-
42
36
  load() {
43
37
  this.show = true;
44
38
  this.state.loaded = true;
45
- this.$emit('show', this);
39
+ this.$emit("show", this);
46
40
  },
47
-
48
41
  destroy() {
49
42
  return this.$destroy;
50
43
  }
51
-
52
44
  }
53
- }));
45
+ });
46
+ export {
47
+ stdin_default as default
48
+ };