vant 3.3.6 → 3.4.2

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