vant 4.3.2 → 4.4.1

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 (487) hide show
  1. package/es/action-bar/ActionBar.d.ts +1 -1
  2. package/es/action-bar/index.d.ts +1 -1
  3. package/es/action-bar-button/ActionBarButton.d.ts +1 -1
  4. package/es/action-bar-button/index.d.ts +1 -1
  5. package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
  6. package/es/action-bar-icon/index.d.ts +1 -1
  7. package/es/action-sheet/ActionSheet.d.ts +1 -1
  8. package/es/action-sheet/index.d.ts +1 -1
  9. package/es/address-edit/AddressEdit.d.ts +1 -1
  10. package/es/address-edit/AddressEdit.mjs +1 -0
  11. package/es/address-edit/AddressEditDetail.d.ts +1 -1
  12. package/es/address-edit/index.d.ts +1 -1
  13. package/es/address-list/AddressList.d.ts +1 -1
  14. package/es/address-list/AddressListItem.d.ts +1 -1
  15. package/es/address-list/index.d.ts +1 -1
  16. package/es/area/Area.d.ts +7 -9
  17. package/es/area/Area.mjs +1 -1
  18. package/es/area/index.d.ts +5 -7
  19. package/es/back-top/BackTop.d.ts +2 -2
  20. package/es/back-top/BackTop.mjs +6 -3
  21. package/es/back-top/index.css +1 -1
  22. package/es/back-top/index.d.ts +2 -2
  23. package/es/badge/Badge.d.ts +1 -1
  24. package/es/badge/index.d.ts +1 -1
  25. package/es/barrage/Barrage.d.ts +93 -0
  26. package/es/barrage/Barrage.mjs +134 -0
  27. package/es/barrage/index.css +1 -0
  28. package/es/barrage/index.d.ts +69 -0
  29. package/es/barrage/index.mjs +10 -0
  30. package/es/barrage/style/index.d.ts +1 -0
  31. package/es/barrage/style/index.mjs +2 -0
  32. package/es/barrage/types.d.ts +7 -0
  33. package/es/barrage/types.mjs +0 -0
  34. package/es/button/Button.d.ts +1 -1
  35. package/es/button/index.d.ts +1 -1
  36. package/es/calendar/Calendar.d.ts +1 -1
  37. package/es/calendar/CalendarDay.d.ts +1 -1
  38. package/es/calendar/CalendarHeader.d.ts +1 -1
  39. package/es/calendar/CalendarMonth.d.ts +1 -1
  40. package/es/calendar/index.d.ts +1 -1
  41. package/es/card/Card.d.ts +1 -1
  42. package/es/card/index.d.ts +1 -1
  43. package/es/cascader/Cascader.d.ts +1 -1
  44. package/es/cascader/Cascader.mjs +14 -0
  45. package/es/cascader/index.d.ts +1 -1
  46. package/es/cell/Cell.d.ts +1 -1
  47. package/es/cell/index.d.ts +1 -1
  48. package/es/cell-group/CellGroup.d.ts +1 -1
  49. package/es/cell-group/index.d.ts +1 -1
  50. package/es/checkbox/Checkbox.d.ts +1 -1
  51. package/es/checkbox/Checker.d.ts +1 -1
  52. package/es/checkbox/index.d.ts +1 -1
  53. package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
  54. package/es/checkbox-group/index.d.ts +1 -1
  55. package/es/circle/Circle.d.ts +1 -1
  56. package/es/circle/index.d.ts +1 -1
  57. package/es/col/Col.d.ts +1 -1
  58. package/es/col/index.d.ts +1 -1
  59. package/es/collapse/Collapse.d.ts +1 -1
  60. package/es/collapse/index.d.ts +1 -1
  61. package/es/collapse-item/CollapseItem.d.ts +1 -1
  62. package/es/collapse-item/index.d.ts +1 -1
  63. package/es/config-provider/ConfigProvider.d.ts +1 -1
  64. package/es/config-provider/index.d.ts +1 -1
  65. package/es/contact-card/ContactCard.d.ts +1 -1
  66. package/es/contact-card/index.d.ts +1 -1
  67. package/es/contact-edit/ContactEdit.d.ts +1 -1
  68. package/es/contact-edit/index.d.ts +1 -1
  69. package/es/contact-list/ContactList.d.ts +1 -1
  70. package/es/contact-list/ContactList.mjs +1 -1
  71. package/es/contact-list/index.css +1 -1
  72. package/es/contact-list/index.d.ts +1 -1
  73. package/es/count-down/CountDown.d.ts +1 -1
  74. package/es/count-down/index.d.ts +1 -1
  75. package/es/coupon/Coupon.d.ts +1 -1
  76. package/es/coupon/index.d.ts +1 -1
  77. package/es/coupon-cell/CouponCell.d.ts +1 -1
  78. package/es/coupon-cell/index.d.ts +1 -1
  79. package/es/coupon-list/CouponList.d.ts +1 -1
  80. package/es/coupon-list/index.d.ts +1 -1
  81. package/es/date-picker/DatePicker.d.ts +1 -1
  82. package/es/date-picker/DatePicker.mjs +5 -2
  83. package/es/date-picker/index.d.ts +1 -1
  84. package/es/dialog/Dialog.d.ts +1 -1
  85. package/es/dialog/index.css +1 -1
  86. package/es/dialog/index.d.ts +1 -1
  87. package/es/divider/Divider.d.ts +5 -1
  88. package/es/divider/Divider.mjs +4 -2
  89. package/es/divider/index.css +1 -1
  90. package/es/divider/index.d.ts +4 -1
  91. package/es/dropdown-item/DropdownItem.d.ts +1 -1
  92. package/es/dropdown-item/index.d.ts +1 -1
  93. package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
  94. package/es/dropdown-menu/index.d.ts +1 -1
  95. package/es/empty/Empty.d.ts +1 -1
  96. package/es/empty/index.d.ts +1 -1
  97. package/es/field/Field.d.ts +1 -1
  98. package/es/field/index.d.ts +1 -1
  99. package/es/form/Form.d.ts +1 -1
  100. package/es/form/index.d.ts +1 -1
  101. package/es/grid/Grid.d.ts +1 -1
  102. package/es/grid/index.d.ts +1 -1
  103. package/es/grid-item/GridItem.d.ts +1 -1
  104. package/es/grid-item/index.d.ts +1 -1
  105. package/es/icon/Icon.d.ts +1 -1
  106. package/es/icon/index.d.ts +1 -1
  107. package/es/image/Image.d.ts +1 -1
  108. package/es/image/index.d.ts +1 -1
  109. package/es/image-preview/ImagePreview.d.ts +1 -1
  110. package/es/image-preview/ImagePreviewItem.d.ts +1 -1
  111. package/es/image-preview/ImagePreviewItem.mjs +37 -18
  112. package/es/image-preview/index.d.ts +1 -1
  113. package/es/index-anchor/IndexAnchor.d.ts +1 -1
  114. package/es/index-anchor/index.d.ts +1 -1
  115. package/es/index-bar/IndexBar.d.ts +1 -1
  116. package/es/index-bar/index.d.ts +1 -1
  117. package/es/index.d.ts +2 -1
  118. package/es/index.mjs +4 -1
  119. package/es/list/List.d.ts +1 -1
  120. package/es/list/index.d.ts +1 -1
  121. package/es/loading/Loading.d.ts +1 -1
  122. package/es/loading/index.d.ts +1 -1
  123. package/es/nav-bar/NavBar.d.ts +1 -1
  124. package/es/nav-bar/index.d.ts +1 -1
  125. package/es/notice-bar/NoticeBar.d.ts +2 -2
  126. package/es/notice-bar/index.d.ts +2 -2
  127. package/es/notify/Notify.d.ts +1 -1
  128. package/es/notify/index.d.ts +1 -1
  129. package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
  130. package/es/number-keyboard/NumberKeyboardKey.d.ts +1 -1
  131. package/es/number-keyboard/index.d.ts +1 -1
  132. package/es/overlay/Overlay.d.ts +1 -1
  133. package/es/overlay/index.d.ts +1 -1
  134. package/es/pagination/Pagination.d.ts +1 -1
  135. package/es/pagination/index.d.ts +1 -1
  136. package/es/password-input/PasswordInput.d.ts +1 -1
  137. package/es/password-input/index.d.ts +1 -1
  138. package/es/picker/Picker.d.ts +1 -1
  139. package/es/picker/PickerColumn.d.ts +1 -1
  140. package/es/picker/PickerToolbar.d.ts +1 -1
  141. package/es/picker/index.d.ts +1 -1
  142. package/es/picker-group/PickerGroup.d.ts +1 -1
  143. package/es/picker-group/index.d.ts +1 -1
  144. package/es/popover/Popover.d.ts +15 -2
  145. package/es/popover/Popover.mjs +9 -4
  146. package/es/popover/index.css +1 -1
  147. package/es/popover/index.d.ts +10 -1
  148. package/es/popover/types.d.ts +1 -0
  149. package/es/popup/Popup.d.ts +1 -1
  150. package/es/popup/Popup.mjs +8 -1
  151. package/es/popup/index.d.ts +1 -1
  152. package/es/progress/Progress.d.ts +1 -1
  153. package/es/progress/index.d.ts +1 -1
  154. package/es/pull-refresh/PullRefresh.d.ts +1 -1
  155. package/es/pull-refresh/index.d.ts +1 -1
  156. package/es/radio/Radio.d.ts +1 -1
  157. package/es/radio/index.d.ts +1 -1
  158. package/es/radio-group/RadioGroup.d.ts +1 -1
  159. package/es/radio-group/index.d.ts +1 -1
  160. package/es/rate/Rate.d.ts +1 -1
  161. package/es/rate/index.d.ts +1 -1
  162. package/es/row/Row.d.ts +1 -1
  163. package/es/row/index.d.ts +1 -1
  164. package/es/search/Search.d.ts +1 -1
  165. package/es/search/index.d.ts +1 -1
  166. package/es/share-sheet/ShareSheet.d.ts +1 -1
  167. package/es/share-sheet/index.d.ts +1 -1
  168. package/es/sidebar/Sidebar.d.ts +1 -1
  169. package/es/sidebar/index.d.ts +1 -1
  170. package/es/sidebar-item/SidebarItem.d.ts +1 -1
  171. package/es/sidebar-item/index.d.ts +1 -1
  172. package/es/signature/Signature.d.ts +14 -1
  173. package/es/signature/Signature.mjs +24 -8
  174. package/es/signature/index.css +1 -1
  175. package/es/signature/index.d.ts +10 -1
  176. package/es/skeleton/Skeleton.d.ts +1 -1
  177. package/es/skeleton/index.d.ts +1 -1
  178. package/es/skeleton-avatar/SkeletonAvatar.d.ts +1 -1
  179. package/es/skeleton-avatar/index.d.ts +1 -1
  180. package/es/skeleton-image/SkeletonImage.d.ts +1 -1
  181. package/es/skeleton-image/index.d.ts +1 -1
  182. package/es/skeleton-paragraph/SkeletonParagraph.d.ts +1 -1
  183. package/es/skeleton-paragraph/index.d.ts +1 -1
  184. package/es/skeleton-title/SkeletonTitle.d.ts +1 -1
  185. package/es/skeleton-title/index.d.ts +1 -1
  186. package/es/slider/Slider.d.ts +1 -1
  187. package/es/slider/Slider.mjs +10 -5
  188. package/es/slider/index.d.ts +1 -1
  189. package/es/space/Space.d.ts +1 -1
  190. package/es/space/index.d.ts +1 -1
  191. package/es/step/Step.d.ts +1 -1
  192. package/es/step/index.d.ts +1 -1
  193. package/es/stepper/Stepper.d.ts +1 -1
  194. package/es/stepper/index.d.ts +1 -1
  195. package/es/steps/Steps.d.ts +1 -1
  196. package/es/steps/index.d.ts +1 -1
  197. package/es/sticky/Sticky.d.ts +1 -1
  198. package/es/sticky/index.d.ts +1 -1
  199. package/es/submit-bar/SubmitBar.d.ts +1 -1
  200. package/es/submit-bar/index.d.ts +1 -1
  201. package/es/swipe/Swipe.d.ts +1 -1
  202. package/es/swipe/index.d.ts +1 -1
  203. package/es/swipe-cell/SwipeCell.d.ts +1 -1
  204. package/es/swipe-cell/index.d.ts +1 -1
  205. package/es/swipe-item/SwipeItem.d.ts +1 -1
  206. package/es/swipe-item/index.d.ts +1 -1
  207. package/es/switch/Switch.d.ts +1 -1
  208. package/es/switch/index.d.ts +1 -1
  209. package/es/tab/Tab.d.ts +1 -1
  210. package/es/tab/Tab.mjs +14 -3
  211. package/es/tab/TabTitle.d.ts +1 -1
  212. package/es/tab/index.d.ts +1 -1
  213. package/es/tabbar/Tabbar.d.ts +1 -1
  214. package/es/tabbar/index.d.ts +1 -1
  215. package/es/tabbar-item/TabbarItem.d.ts +1 -1
  216. package/es/tabbar-item/index.d.ts +1 -1
  217. package/es/tabs/Tabs.d.ts +1 -1
  218. package/es/tabs/TabsContent.d.ts +1 -1
  219. package/es/tabs/index.d.ts +1 -1
  220. package/es/tag/Tag.d.ts +1 -1
  221. package/es/tag/index.d.ts +1 -1
  222. package/es/text-ellipsis/TextEllipsis.d.ts +1 -1
  223. package/es/text-ellipsis/index.d.ts +1 -1
  224. package/es/time-picker/TimePicker.d.ts +1 -1
  225. package/es/time-picker/index.d.ts +1 -1
  226. package/es/toast/Toast.d.ts +1 -1
  227. package/es/toast/index.d.ts +1 -1
  228. package/es/tree-select/TreeSelect.d.ts +1 -1
  229. package/es/tree-select/index.d.ts +1 -1
  230. package/es/uploader/Uploader.d.ts +7 -2
  231. package/es/uploader/Uploader.mjs +25 -10
  232. package/es/uploader/UploaderPreviewItem.d.ts +6 -2
  233. package/es/uploader/UploaderPreviewItem.mjs +6 -3
  234. package/es/uploader/index.d.ts +6 -2
  235. package/es/uploader/types.d.ts +1 -0
  236. package/es/utils/constant.d.ts +1 -0
  237. package/es/utils/constant.mjs +2 -0
  238. package/es/utils/mount-component.d.ts +1 -1
  239. package/es/watermark/Watermark.d.ts +1 -1
  240. package/es/watermark/index.d.ts +1 -1
  241. package/lib/action-bar/ActionBar.d.ts +1 -1
  242. package/lib/action-bar/index.d.ts +1 -1
  243. package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
  244. package/lib/action-bar-button/index.d.ts +1 -1
  245. package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
  246. package/lib/action-bar-icon/index.d.ts +1 -1
  247. package/lib/action-sheet/ActionSheet.d.ts +1 -1
  248. package/lib/action-sheet/index.d.ts +1 -1
  249. package/lib/address-edit/AddressEdit.d.ts +1 -1
  250. package/lib/address-edit/AddressEdit.js +1 -0
  251. package/lib/address-edit/AddressEditDetail.d.ts +1 -1
  252. package/lib/address-edit/index.d.ts +1 -1
  253. package/lib/address-list/AddressList.d.ts +1 -1
  254. package/lib/address-list/AddressListItem.d.ts +1 -1
  255. package/lib/address-list/index.d.ts +1 -1
  256. package/lib/area/Area.d.ts +7 -9
  257. package/lib/area/Area.js +1 -1
  258. package/lib/area/index.d.ts +5 -7
  259. package/lib/back-top/BackTop.d.ts +2 -2
  260. package/lib/back-top/BackTop.js +6 -3
  261. package/lib/back-top/index.css +1 -1
  262. package/lib/back-top/index.d.ts +2 -2
  263. package/lib/badge/Badge.d.ts +1 -1
  264. package/lib/badge/index.d.ts +1 -1
  265. package/lib/barrage/Barrage.d.ts +93 -0
  266. package/lib/barrage/Barrage.js +153 -0
  267. package/lib/barrage/index.css +1 -0
  268. package/lib/barrage/index.d.ts +69 -0
  269. package/lib/barrage/index.js +39 -0
  270. package/lib/barrage/style/index.d.ts +1 -0
  271. package/lib/barrage/style/index.js +2 -0
  272. package/lib/barrage/types.d.ts +7 -0
  273. package/lib/barrage/types.js +15 -0
  274. package/lib/button/Button.d.ts +1 -1
  275. package/lib/button/index.d.ts +1 -1
  276. package/lib/calendar/Calendar.d.ts +1 -1
  277. package/lib/calendar/CalendarDay.d.ts +1 -1
  278. package/lib/calendar/CalendarHeader.d.ts +1 -1
  279. package/lib/calendar/CalendarMonth.d.ts +1 -1
  280. package/lib/calendar/index.d.ts +1 -1
  281. package/lib/card/Card.d.ts +1 -1
  282. package/lib/card/index.d.ts +1 -1
  283. package/lib/cascader/Cascader.d.ts +1 -1
  284. package/lib/cascader/Cascader.js +14 -0
  285. package/lib/cascader/index.d.ts +1 -1
  286. package/lib/cell/Cell.d.ts +1 -1
  287. package/lib/cell/index.d.ts +1 -1
  288. package/lib/cell-group/CellGroup.d.ts +1 -1
  289. package/lib/cell-group/index.d.ts +1 -1
  290. package/lib/checkbox/Checkbox.d.ts +1 -1
  291. package/lib/checkbox/Checker.d.ts +1 -1
  292. package/lib/checkbox/index.d.ts +1 -1
  293. package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
  294. package/lib/checkbox-group/index.d.ts +1 -1
  295. package/lib/circle/Circle.d.ts +1 -1
  296. package/lib/circle/index.d.ts +1 -1
  297. package/lib/col/Col.d.ts +1 -1
  298. package/lib/col/index.d.ts +1 -1
  299. package/lib/collapse/Collapse.d.ts +1 -1
  300. package/lib/collapse/index.d.ts +1 -1
  301. package/lib/collapse-item/CollapseItem.d.ts +1 -1
  302. package/lib/collapse-item/index.d.ts +1 -1
  303. package/lib/config-provider/ConfigProvider.d.ts +1 -1
  304. package/lib/config-provider/index.d.ts +1 -1
  305. package/lib/contact-card/ContactCard.d.ts +1 -1
  306. package/lib/contact-card/index.d.ts +1 -1
  307. package/lib/contact-edit/ContactEdit.d.ts +1 -1
  308. package/lib/contact-edit/index.d.ts +1 -1
  309. package/lib/contact-list/ContactList.d.ts +1 -1
  310. package/lib/contact-list/ContactList.js +1 -1
  311. package/lib/contact-list/index.css +1 -1
  312. package/lib/contact-list/index.d.ts +1 -1
  313. package/lib/count-down/CountDown.d.ts +1 -1
  314. package/lib/count-down/index.d.ts +1 -1
  315. package/lib/coupon/Coupon.d.ts +1 -1
  316. package/lib/coupon/index.d.ts +1 -1
  317. package/lib/coupon-cell/CouponCell.d.ts +1 -1
  318. package/lib/coupon-cell/index.d.ts +1 -1
  319. package/lib/coupon-list/CouponList.d.ts +1 -1
  320. package/lib/coupon-list/index.d.ts +1 -1
  321. package/lib/date-picker/DatePicker.d.ts +1 -1
  322. package/lib/date-picker/DatePicker.js +5 -2
  323. package/lib/date-picker/index.d.ts +1 -1
  324. package/lib/dialog/Dialog.d.ts +1 -1
  325. package/lib/dialog/index.css +1 -1
  326. package/lib/dialog/index.d.ts +1 -1
  327. package/lib/divider/Divider.d.ts +5 -1
  328. package/lib/divider/Divider.js +4 -2
  329. package/lib/divider/index.css +1 -1
  330. package/lib/divider/index.d.ts +4 -1
  331. package/lib/dropdown-item/DropdownItem.d.ts +1 -1
  332. package/lib/dropdown-item/index.d.ts +1 -1
  333. package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
  334. package/lib/dropdown-menu/index.d.ts +1 -1
  335. package/lib/empty/Empty.d.ts +1 -1
  336. package/lib/empty/index.d.ts +1 -1
  337. package/lib/field/Field.d.ts +1 -1
  338. package/lib/field/index.d.ts +1 -1
  339. package/lib/form/Form.d.ts +1 -1
  340. package/lib/form/index.d.ts +1 -1
  341. package/lib/grid/Grid.d.ts +1 -1
  342. package/lib/grid/index.d.ts +1 -1
  343. package/lib/grid-item/GridItem.d.ts +1 -1
  344. package/lib/grid-item/index.d.ts +1 -1
  345. package/lib/icon/Icon.d.ts +1 -1
  346. package/lib/icon/index.d.ts +1 -1
  347. package/lib/image/Image.d.ts +1 -1
  348. package/lib/image/index.d.ts +1 -1
  349. package/lib/image-preview/ImagePreview.d.ts +1 -1
  350. package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
  351. package/lib/image-preview/ImagePreviewItem.js +36 -17
  352. package/lib/image-preview/index.d.ts +1 -1
  353. package/lib/index-anchor/IndexAnchor.d.ts +1 -1
  354. package/lib/index-anchor/index.d.ts +1 -1
  355. package/lib/index-bar/IndexBar.d.ts +1 -1
  356. package/lib/index-bar/index.d.ts +1 -1
  357. package/lib/index.css +1 -1
  358. package/lib/index.d.ts +2 -1
  359. package/lib/index.js +4 -1
  360. package/lib/list/List.d.ts +1 -1
  361. package/lib/list/index.d.ts +1 -1
  362. package/lib/loading/Loading.d.ts +1 -1
  363. package/lib/loading/index.d.ts +1 -1
  364. package/lib/nav-bar/NavBar.d.ts +1 -1
  365. package/lib/nav-bar/index.d.ts +1 -1
  366. package/lib/notice-bar/NoticeBar.d.ts +2 -2
  367. package/lib/notice-bar/index.d.ts +2 -2
  368. package/lib/notify/Notify.d.ts +1 -1
  369. package/lib/notify/index.d.ts +1 -1
  370. package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
  371. package/lib/number-keyboard/NumberKeyboardKey.d.ts +1 -1
  372. package/lib/number-keyboard/index.d.ts +1 -1
  373. package/lib/overlay/Overlay.d.ts +1 -1
  374. package/lib/overlay/index.d.ts +1 -1
  375. package/lib/pagination/Pagination.d.ts +1 -1
  376. package/lib/pagination/index.d.ts +1 -1
  377. package/lib/password-input/PasswordInput.d.ts +1 -1
  378. package/lib/password-input/index.d.ts +1 -1
  379. package/lib/picker/Picker.d.ts +1 -1
  380. package/lib/picker/PickerColumn.d.ts +1 -1
  381. package/lib/picker/PickerToolbar.d.ts +1 -1
  382. package/lib/picker/index.d.ts +1 -1
  383. package/lib/picker-group/PickerGroup.d.ts +1 -1
  384. package/lib/picker-group/index.d.ts +1 -1
  385. package/lib/popover/Popover.d.ts +15 -2
  386. package/lib/popover/Popover.js +8 -3
  387. package/lib/popover/index.css +1 -1
  388. package/lib/popover/index.d.ts +10 -1
  389. package/lib/popover/types.d.ts +1 -0
  390. package/lib/popup/Popup.d.ts +1 -1
  391. package/lib/popup/Popup.js +8 -1
  392. package/lib/popup/index.d.ts +1 -1
  393. package/lib/progress/Progress.d.ts +1 -1
  394. package/lib/progress/index.d.ts +1 -1
  395. package/lib/pull-refresh/PullRefresh.d.ts +1 -1
  396. package/lib/pull-refresh/index.d.ts +1 -1
  397. package/lib/radio/Radio.d.ts +1 -1
  398. package/lib/radio/index.d.ts +1 -1
  399. package/lib/radio-group/RadioGroup.d.ts +1 -1
  400. package/lib/radio-group/index.d.ts +1 -1
  401. package/lib/rate/Rate.d.ts +1 -1
  402. package/lib/rate/index.d.ts +1 -1
  403. package/lib/row/Row.d.ts +1 -1
  404. package/lib/row/index.d.ts +1 -1
  405. package/lib/search/Search.d.ts +1 -1
  406. package/lib/search/index.d.ts +1 -1
  407. package/lib/share-sheet/ShareSheet.d.ts +1 -1
  408. package/lib/share-sheet/index.d.ts +1 -1
  409. package/lib/sidebar/Sidebar.d.ts +1 -1
  410. package/lib/sidebar/index.d.ts +1 -1
  411. package/lib/sidebar-item/SidebarItem.d.ts +1 -1
  412. package/lib/sidebar-item/index.d.ts +1 -1
  413. package/lib/signature/Signature.d.ts +14 -1
  414. package/lib/signature/Signature.js +23 -7
  415. package/lib/signature/index.css +1 -1
  416. package/lib/signature/index.d.ts +10 -1
  417. package/lib/skeleton/Skeleton.d.ts +1 -1
  418. package/lib/skeleton/index.d.ts +1 -1
  419. package/lib/skeleton-avatar/SkeletonAvatar.d.ts +1 -1
  420. package/lib/skeleton-avatar/index.d.ts +1 -1
  421. package/lib/skeleton-image/SkeletonImage.d.ts +1 -1
  422. package/lib/skeleton-image/index.d.ts +1 -1
  423. package/lib/skeleton-paragraph/SkeletonParagraph.d.ts +1 -1
  424. package/lib/skeleton-paragraph/index.d.ts +1 -1
  425. package/lib/skeleton-title/SkeletonTitle.d.ts +1 -1
  426. package/lib/skeleton-title/index.d.ts +1 -1
  427. package/lib/slider/Slider.d.ts +1 -1
  428. package/lib/slider/Slider.js +10 -5
  429. package/lib/slider/index.d.ts +1 -1
  430. package/lib/space/Space.d.ts +1 -1
  431. package/lib/space/index.d.ts +1 -1
  432. package/lib/step/Step.d.ts +1 -1
  433. package/lib/step/index.d.ts +1 -1
  434. package/lib/stepper/Stepper.d.ts +1 -1
  435. package/lib/stepper/index.d.ts +1 -1
  436. package/lib/steps/Steps.d.ts +1 -1
  437. package/lib/steps/index.d.ts +1 -1
  438. package/lib/sticky/Sticky.d.ts +1 -1
  439. package/lib/sticky/index.d.ts +1 -1
  440. package/lib/submit-bar/SubmitBar.d.ts +1 -1
  441. package/lib/submit-bar/index.d.ts +1 -1
  442. package/lib/swipe/Swipe.d.ts +1 -1
  443. package/lib/swipe/index.d.ts +1 -1
  444. package/lib/swipe-cell/SwipeCell.d.ts +1 -1
  445. package/lib/swipe-cell/index.d.ts +1 -1
  446. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  447. package/lib/swipe-item/index.d.ts +1 -1
  448. package/lib/switch/Switch.d.ts +1 -1
  449. package/lib/switch/index.d.ts +1 -1
  450. package/lib/tab/Tab.d.ts +1 -1
  451. package/lib/tab/Tab.js +13 -2
  452. package/lib/tab/TabTitle.d.ts +1 -1
  453. package/lib/tab/index.d.ts +1 -1
  454. package/lib/tabbar/Tabbar.d.ts +1 -1
  455. package/lib/tabbar/index.d.ts +1 -1
  456. package/lib/tabbar-item/TabbarItem.d.ts +1 -1
  457. package/lib/tabbar-item/index.d.ts +1 -1
  458. package/lib/tabs/Tabs.d.ts +1 -1
  459. package/lib/tabs/TabsContent.d.ts +1 -1
  460. package/lib/tabs/index.d.ts +1 -1
  461. package/lib/tag/Tag.d.ts +1 -1
  462. package/lib/tag/index.d.ts +1 -1
  463. package/lib/text-ellipsis/TextEllipsis.d.ts +1 -1
  464. package/lib/text-ellipsis/index.d.ts +1 -1
  465. package/lib/time-picker/TimePicker.d.ts +1 -1
  466. package/lib/time-picker/index.d.ts +1 -1
  467. package/lib/toast/Toast.d.ts +1 -1
  468. package/lib/toast/index.d.ts +1 -1
  469. package/lib/tree-select/TreeSelect.d.ts +1 -1
  470. package/lib/tree-select/index.d.ts +1 -1
  471. package/lib/uploader/Uploader.d.ts +7 -2
  472. package/lib/uploader/Uploader.js +25 -10
  473. package/lib/uploader/UploaderPreviewItem.d.ts +6 -2
  474. package/lib/uploader/UploaderPreviewItem.js +6 -3
  475. package/lib/uploader/index.d.ts +6 -2
  476. package/lib/uploader/types.d.ts +1 -0
  477. package/lib/utils/constant.d.ts +1 -0
  478. package/lib/utils/constant.js +2 -0
  479. package/lib/utils/mount-component.d.ts +1 -1
  480. package/lib/vant.cjs.js +571 -337
  481. package/lib/vant.es.js +572 -338
  482. package/lib/vant.js +596 -337
  483. package/lib/vant.min.js +1 -1
  484. package/lib/watermark/Watermark.d.ts +1 -1
  485. package/lib/watermark/index.d.ts +1 -1
  486. package/lib/web-types.json +1 -1
  487. package/package.json +5 -4
package/lib/vant.es.js CHANGED
@@ -1,5 +1,6 @@
1
- import { unref, ref, reactive, inject, watch, onMounted, nextTick, createVNode, defineComponent, getCurrentInstance, computed, onActivated, onDeactivated, onBeforeUnmount, provide, watchEffect, mergeProps, Transition, withDirectives, vShow, Teleport, Fragment, onBeforeUpdate, createTextVNode, onUnmounted, createApp, resolveDirective, withKeys, onUpdated, Comment, Text, h } from "vue";
1
+ import { unref, ref, reactive, inject, watch, onMounted, nextTick, createVNode, defineComponent, getCurrentInstance, computed, onActivated, onDeactivated, onBeforeUnmount, provide, watchEffect, mergeProps, Transition, withDirectives, vShow, Teleport, Fragment, onBeforeUpdate, normalizeClass, normalizeStyle, createTextVNode, onUnmounted, createApp, resolveDirective, withKeys, onUpdated, Comment, Text, h } from "vue";
2
2
  import { useWindowSize, useRect, useChildren, useParent, onMountedOrActivated, getScrollParent, useEventListener, cancelRaf, raf, useScrollParent, usePageVisibility, doubleRaf, CUSTOM_FIELD_INJECTION_KEY, useCustomFieldValue, inBrowser as inBrowser$1, useToggle, useCountDown, useClickAway } from "@vant/use";
3
+ import { stringifyStyle } from "@vue/shared";
3
4
  import { offsetModifier, createPopper } from "@vant/popperjs";
4
5
  const isDef = (val) => val !== void 0 && val !== null;
5
6
  const isFunction = (val) => typeof val === "function";
@@ -235,7 +236,7 @@ function deepAssign(to, from) {
235
236
  });
236
237
  return to;
237
238
  }
238
- var stdin_default$1P = {
239
+ var stdin_default$1Q = {
239
240
  name: "姓名",
240
241
  tel: "电话",
241
242
  save: "保存",
@@ -299,7 +300,7 @@ var stdin_default$1P = {
299
300
  };
300
301
  const lang = ref("zh-CN");
301
302
  const messages = reactive({
302
- "zh-CN": stdin_default$1P
303
+ "zh-CN": stdin_default$1Q
303
304
  });
304
305
  const Locale = {
305
306
  messages() {
@@ -314,11 +315,11 @@ const Locale = {
314
315
  }
315
316
  };
316
317
  const useCurrentLang = () => lang;
317
- var stdin_default$1O = Locale;
318
+ var stdin_default$1P = Locale;
318
319
  function createTranslate(name2) {
319
320
  const prefix = camelize(name2) + ".";
320
321
  return (path, ...args) => {
321
- const messages2 = stdin_default$1O.messages();
322
+ const messages2 = stdin_default$1P.messages();
322
323
  const message = get(messages2, prefix + path) || get(messages2, path);
323
324
  return isFunction(message) ? message(...args) : message;
324
325
  };
@@ -362,6 +363,7 @@ function createNamespace(name2) {
362
363
  const BORDER = "van-hairline";
363
364
  const BORDER_TOP = `${BORDER}--top`;
364
365
  const BORDER_LEFT = `${BORDER}--left`;
366
+ const BORDER_RIGHT = `${BORDER}--right`;
365
367
  const BORDER_BOTTOM = `${BORDER}--bottom`;
366
368
  const BORDER_SURROUND = `${BORDER}--surround`;
367
369
  const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
@@ -440,20 +442,20 @@ function usePlaceholder(contentRef, bem2) {
440
442
  }
441
443
  }, [renderContent()]);
442
444
  }
443
- const [name$1E, bem$1z] = createNamespace("action-bar");
444
- const ACTION_BAR_KEY = Symbol(name$1E);
445
+ const [name$1F, bem$1A] = createNamespace("action-bar");
446
+ const ACTION_BAR_KEY = Symbol(name$1F);
445
447
  const actionBarProps = {
446
448
  placeholder: Boolean,
447
449
  safeAreaInsetBottom: truthProp
448
450
  };
449
- var stdin_default$1N = defineComponent({
450
- name: name$1E,
451
+ var stdin_default$1O = defineComponent({
452
+ name: name$1F,
451
453
  props: actionBarProps,
452
454
  setup(props, {
453
455
  slots
454
456
  }) {
455
457
  const root = ref();
456
- const renderPlaceholder = usePlaceholder(root, bem$1z);
458
+ const renderPlaceholder = usePlaceholder(root, bem$1A);
457
459
  const {
458
460
  linkChildren
459
461
  } = useChildren(ACTION_BAR_KEY);
@@ -462,7 +464,7 @@ var stdin_default$1N = defineComponent({
462
464
  var _a;
463
465
  return createVNode("div", {
464
466
  "ref": root,
465
- "class": [bem$1z(), {
467
+ "class": [bem$1A(), {
466
468
  "van-safe-area-bottom": props.safeAreaInsetBottom
467
469
  }]
468
470
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
@@ -475,7 +477,7 @@ var stdin_default$1N = defineComponent({
475
477
  };
476
478
  }
477
479
  });
478
- const ActionBar = withInstall(stdin_default$1N);
480
+ const ActionBar = withInstall(stdin_default$1O);
479
481
  function useExpose(apis) {
480
482
  const instance2 = getCurrentInstance();
481
483
  if (instance2) {
@@ -503,7 +505,7 @@ function useRoute() {
503
505
  const vm = getCurrentInstance().proxy;
504
506
  return () => route(vm);
505
507
  }
506
- const [name$1D, bem$1y] = createNamespace("badge");
508
+ const [name$1E, bem$1z] = createNamespace("badge");
507
509
  const badgeProps = {
508
510
  dot: Boolean,
509
511
  max: numericProp,
@@ -514,8 +516,8 @@ const badgeProps = {
514
516
  showZero: truthProp,
515
517
  position: makeStringProp("top-right")
516
518
  };
517
- var stdin_default$1M = defineComponent({
518
- name: name$1D,
519
+ var stdin_default$1N = defineComponent({
520
+ name: name$1E,
519
521
  props: badgeProps,
520
522
  setup(props, {
521
523
  slots
@@ -578,7 +580,7 @@ var stdin_default$1M = defineComponent({
578
580
  const renderBadge = () => {
579
581
  if (hasContent() || props.dot) {
580
582
  return createVNode("div", {
581
- "class": bem$1y([props.position, {
583
+ "class": bem$1z([props.position, {
582
584
  dot: props.dot,
583
585
  fixed: !!slots.default
584
586
  }]),
@@ -592,7 +594,7 @@ var stdin_default$1M = defineComponent({
592
594
  tag
593
595
  } = props;
594
596
  return createVNode(tag, {
595
- "class": bem$1y("wrapper")
597
+ "class": bem$1z("wrapper")
596
598
  }, {
597
599
  default: () => [slots.default(), renderBadge()]
598
600
  });
@@ -601,14 +603,14 @@ var stdin_default$1M = defineComponent({
601
603
  };
602
604
  }
603
605
  });
604
- const Badge = withInstall(stdin_default$1M);
606
+ const Badge = withInstall(stdin_default$1N);
605
607
  let globalZIndex = 2e3;
606
608
  const useGlobalZIndex = () => ++globalZIndex;
607
609
  const setGlobalZIndex = (val) => {
608
610
  globalZIndex = val;
609
611
  };
610
- const [name$1C, bem$1x] = createNamespace("config-provider");
611
- const CONFIG_PROVIDER_KEY = Symbol(name$1C);
612
+ const [name$1D, bem$1y] = createNamespace("config-provider");
613
+ const CONFIG_PROVIDER_KEY = Symbol(name$1D);
612
614
  const configProviderProps = {
613
615
  tag: makeStringProp("div"),
614
616
  theme: makeStringProp("light"),
@@ -625,8 +627,8 @@ function mapThemeVarsToCSSVars(themeVars) {
625
627
  });
626
628
  return cssVars;
627
629
  }
628
- var stdin_default$1L = defineComponent({
629
- name: name$1C,
630
+ var stdin_default$1M = defineComponent({
631
+ name: name$1D,
630
632
  props: configProviderProps,
631
633
  setup(props, {
632
634
  slots
@@ -658,7 +660,7 @@ var stdin_default$1L = defineComponent({
658
660
  }
659
661
  });
660
662
  return () => createVNode(props.tag, {
661
- "class": bem$1x(),
663
+ "class": bem$1y(),
662
664
  "style": style.value
663
665
  }, {
664
666
  default: () => {
@@ -668,7 +670,7 @@ var stdin_default$1L = defineComponent({
668
670
  });
669
671
  }
670
672
  });
671
- const [name$1B, bem$1w] = createNamespace("icon");
673
+ const [name$1C, bem$1x] = createNamespace("icon");
672
674
  const isImage$1 = (name2) => name2 == null ? void 0 : name2.includes("/");
673
675
  const iconProps = {
674
676
  dot: Boolean,
@@ -680,14 +682,14 @@ const iconProps = {
680
682
  badgeProps: Object,
681
683
  classPrefix: String
682
684
  };
683
- var stdin_default$1K = defineComponent({
684
- name: name$1B,
685
+ var stdin_default$1L = defineComponent({
686
+ name: name$1C,
685
687
  props: iconProps,
686
688
  setup(props, {
687
689
  slots
688
690
  }) {
689
691
  const config = inject(CONFIG_PROVIDER_KEY, null);
690
- const classPrefix = computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1w());
692
+ const classPrefix = computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1x());
691
693
  return () => {
692
694
  const {
693
695
  tag,
@@ -711,7 +713,7 @@ var stdin_default$1K = defineComponent({
711
713
  default: () => {
712
714
  var _a;
713
715
  return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && createVNode("img", {
714
- "class": bem$1w("image"),
716
+ "class": bem$1x("image"),
715
717
  "src": name2
716
718
  }, null)];
717
719
  }
@@ -719,13 +721,13 @@ var stdin_default$1K = defineComponent({
719
721
  };
720
722
  }
721
723
  });
722
- const Icon = withInstall(stdin_default$1K);
723
- const [name$1A, bem$1v] = createNamespace("loading");
724
+ const Icon = withInstall(stdin_default$1L);
725
+ const [name$1B, bem$1w] = createNamespace("loading");
724
726
  const SpinIcon = Array(12).fill(null).map((_, index) => createVNode("i", {
725
- "class": bem$1v("line", String(index + 1))
727
+ "class": bem$1w("line", String(index + 1))
726
728
  }, null));
727
729
  const CircularIcon = createVNode("svg", {
728
- "class": bem$1v("circular"),
730
+ "class": bem$1w("circular"),
729
731
  "viewBox": "25 25 50 50"
730
732
  }, [createVNode("circle", {
731
733
  "cx": "50",
@@ -741,8 +743,8 @@ const loadingProps = {
741
743
  textSize: numericProp,
742
744
  textColor: String
743
745
  };
744
- var stdin_default$1J = defineComponent({
745
- name: name$1A,
746
+ var stdin_default$1K = defineComponent({
747
+ name: name$1B,
746
748
  props: loadingProps,
747
749
  setup(props, {
748
750
  slots
@@ -753,7 +755,7 @@ var stdin_default$1J = defineComponent({
753
755
  const renderIcon = () => {
754
756
  const DefaultIcon = props.type === "spinner" ? SpinIcon : CircularIcon;
755
757
  return createVNode("span", {
756
- "class": bem$1v("spinner", props.type),
758
+ "class": bem$1w("spinner", props.type),
757
759
  "style": spinnerStyle.value
758
760
  }, [slots.icon ? slots.icon() : DefaultIcon]);
759
761
  };
@@ -761,7 +763,7 @@ var stdin_default$1J = defineComponent({
761
763
  var _a;
762
764
  if (slots.default) {
763
765
  return createVNode("span", {
764
- "class": bem$1v("text"),
766
+ "class": bem$1w("text"),
765
767
  "style": {
766
768
  fontSize: addUnit(props.textSize),
767
769
  color: (_a = props.textColor) != null ? _a : props.color
@@ -775,7 +777,7 @@ var stdin_default$1J = defineComponent({
775
777
  vertical
776
778
  } = props;
777
779
  return createVNode("div", {
778
- "class": bem$1v([type, {
780
+ "class": bem$1w([type, {
779
781
  vertical
780
782
  }]),
781
783
  "aria-live": "polite",
@@ -784,8 +786,8 @@ var stdin_default$1J = defineComponent({
784
786
  };
785
787
  }
786
788
  });
787
- const Loading = withInstall(stdin_default$1J);
788
- const [name$1z, bem$1u] = createNamespace("button");
789
+ const Loading = withInstall(stdin_default$1K);
790
+ const [name$1A, bem$1v] = createNamespace("button");
789
791
  const buttonProps = extend({}, routeProps, {
790
792
  tag: makeStringProp("button"),
791
793
  text: String,
@@ -807,8 +809,8 @@ const buttonProps = extend({}, routeProps, {
807
809
  loadingType: String,
808
810
  iconPosition: makeStringProp("left")
809
811
  });
810
- var stdin_default$1I = defineComponent({
811
- name: name$1z,
812
+ var stdin_default$1J = defineComponent({
813
+ name: name$1A,
812
814
  props: buttonProps,
813
815
  emits: ["click"],
814
816
  setup(props, {
@@ -823,7 +825,7 @@ var stdin_default$1I = defineComponent({
823
825
  return createVNode(Loading, {
824
826
  "size": props.loadingSize,
825
827
  "type": props.loadingType,
826
- "class": bem$1u("loading")
828
+ "class": bem$1v("loading")
827
829
  }, null);
828
830
  };
829
831
  const renderIcon = () => {
@@ -832,13 +834,13 @@ var stdin_default$1I = defineComponent({
832
834
  }
833
835
  if (slots.icon) {
834
836
  return createVNode("div", {
835
- "class": bem$1u("icon")
837
+ "class": bem$1v("icon")
836
838
  }, [slots.icon()]);
837
839
  }
838
840
  if (props.icon) {
839
841
  return createVNode(Icon, {
840
842
  "name": props.icon,
841
- "class": bem$1u("icon"),
843
+ "class": bem$1v("icon"),
842
844
  "classPrefix": props.iconPrefix
843
845
  }, null);
844
846
  }
@@ -852,7 +854,7 @@ var stdin_default$1I = defineComponent({
852
854
  }
853
855
  if (text) {
854
856
  return createVNode("span", {
855
- "class": bem$1u("text")
857
+ "class": bem$1v("text")
856
858
  }, [text]);
857
859
  }
858
860
  };
@@ -899,7 +901,7 @@ var stdin_default$1I = defineComponent({
899
901
  nativeType,
900
902
  iconPosition
901
903
  } = props;
902
- const classes = [bem$1u([type, size, {
904
+ const classes = [bem$1v([type, size, {
903
905
  plain,
904
906
  block,
905
907
  round,
@@ -918,14 +920,14 @@ var stdin_default$1I = defineComponent({
918
920
  "onClick": onClick
919
921
  }, {
920
922
  default: () => [createVNode("div", {
921
- "class": bem$1u("content")
923
+ "class": bem$1v("content")
922
924
  }, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
923
925
  });
924
926
  };
925
927
  }
926
928
  });
927
- const Button = withInstall(stdin_default$1I);
928
- const [name$1y, bem$1t] = createNamespace("action-bar-button");
929
+ const Button = withInstall(stdin_default$1J);
930
+ const [name$1z, bem$1u] = createNamespace("action-bar-button");
929
931
  const actionBarButtonProps = extend({}, routeProps, {
930
932
  type: String,
931
933
  text: String,
@@ -934,8 +936,8 @@ const actionBarButtonProps = extend({}, routeProps, {
934
936
  loading: Boolean,
935
937
  disabled: Boolean
936
938
  });
937
- var stdin_default$1H = defineComponent({
938
- name: name$1y,
939
+ var stdin_default$1I = defineComponent({
940
+ name: name$1z,
939
941
  props: actionBarButtonProps,
940
942
  setup(props, {
941
943
  slots
@@ -970,7 +972,7 @@ var stdin_default$1H = defineComponent({
970
972
  disabled
971
973
  } = props;
972
974
  return createVNode(Button, {
973
- "class": bem$1t([type, {
975
+ "class": bem$1u([type, {
974
976
  last: isLast.value,
975
977
  first: isFirst.value
976
978
  }]),
@@ -987,8 +989,8 @@ var stdin_default$1H = defineComponent({
987
989
  };
988
990
  }
989
991
  });
990
- const ActionBarButton = withInstall(stdin_default$1H);
991
- const [name$1x, bem$1s] = createNamespace("action-bar-icon");
992
+ const ActionBarButton = withInstall(stdin_default$1I);
993
+ const [name$1y, bem$1t] = createNamespace("action-bar-icon");
992
994
  const actionBarIconProps = extend({}, routeProps, {
993
995
  dot: Boolean,
994
996
  text: String,
@@ -999,8 +1001,8 @@ const actionBarIconProps = extend({}, routeProps, {
999
1001
  badgeProps: Object,
1000
1002
  iconPrefix: String
1001
1003
  });
1002
- var stdin_default$1G = defineComponent({
1003
- name: name$1x,
1004
+ var stdin_default$1H = defineComponent({
1005
+ name: name$1y,
1004
1006
  props: actionBarIconProps,
1005
1007
  setup(props, {
1006
1008
  slots
@@ -1020,7 +1022,7 @@ var stdin_default$1G = defineComponent({
1020
1022
  if (slots.icon) {
1021
1023
  return createVNode(Badge, mergeProps({
1022
1024
  "dot": dot,
1023
- "class": bem$1s("icon"),
1025
+ "class": bem$1t("icon"),
1024
1026
  "content": badge
1025
1027
  }, badgeProps2), {
1026
1028
  default: slots.icon
@@ -1032,20 +1034,20 @@ var stdin_default$1G = defineComponent({
1032
1034
  "name": icon,
1033
1035
  "badge": badge,
1034
1036
  "color": color,
1035
- "class": [bem$1s("icon"), iconClass],
1037
+ "class": [bem$1t("icon"), iconClass],
1036
1038
  "badgeProps": badgeProps2,
1037
1039
  "classPrefix": iconPrefix
1038
1040
  }, null);
1039
1041
  };
1040
1042
  return () => createVNode("div", {
1041
1043
  "role": "button",
1042
- "class": bem$1s(),
1044
+ "class": bem$1t(),
1043
1045
  "tabindex": 0,
1044
1046
  "onClick": route2
1045
1047
  }, [renderIcon(), slots.default ? slots.default() : props.text]);
1046
1048
  }
1047
1049
  });
1048
- const ActionBarIcon = withInstall(stdin_default$1G);
1050
+ const ActionBarIcon = withInstall(stdin_default$1H);
1049
1051
  const popupSharedProps = {
1050
1052
  // whether to show popup
1051
1053
  show: Boolean,
@@ -1196,7 +1198,7 @@ function useLazyRender(show) {
1196
1198
  );
1197
1199
  return (render) => () => inited.value ? render() : null;
1198
1200
  }
1199
- const [name$1w, bem$1r] = createNamespace("overlay");
1201
+ const [name$1x, bem$1s] = createNamespace("overlay");
1200
1202
  const overlayProps = {
1201
1203
  show: Boolean,
1202
1204
  zIndex: numericProp,
@@ -1206,8 +1208,8 @@ const overlayProps = {
1206
1208
  lazyRender: truthProp,
1207
1209
  customStyle: Object
1208
1210
  };
1209
- var stdin_default$1F = defineComponent({
1210
- name: name$1w,
1211
+ var stdin_default$1G = defineComponent({
1212
+ name: name$1x,
1211
1213
  props: overlayProps,
1212
1214
  setup(props, {
1213
1215
  slots
@@ -1228,7 +1230,7 @@ var stdin_default$1F = defineComponent({
1228
1230
  return withDirectives(createVNode("div", {
1229
1231
  "ref": root,
1230
1232
  "style": style,
1231
- "class": [bem$1r(), props.className]
1233
+ "class": [bem$1s(), props.className]
1232
1234
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vShow, props.show]]);
1233
1235
  });
1234
1236
  useEventListener("touchmove", onTouchMove, {
@@ -1242,7 +1244,7 @@ var stdin_default$1F = defineComponent({
1242
1244
  });
1243
1245
  }
1244
1246
  });
1245
- const Overlay = withInstall(stdin_default$1F);
1247
+ const Overlay = withInstall(stdin_default$1G);
1246
1248
  const popupProps$2 = extend({}, popupSharedProps, {
1247
1249
  round: Boolean,
1248
1250
  position: makeStringProp("center"),
@@ -1255,9 +1257,9 @@ const popupProps$2 = extend({}, popupSharedProps, {
1255
1257
  safeAreaInsetTop: Boolean,
1256
1258
  safeAreaInsetBottom: Boolean
1257
1259
  });
1258
- const [name$1v, bem$1q] = createNamespace("popup");
1259
- var stdin_default$1E = defineComponent({
1260
- name: name$1v,
1260
+ const [name$1w, bem$1r] = createNamespace("popup");
1261
+ var stdin_default$1F = defineComponent({
1262
+ name: name$1w,
1261
1263
  inheritAttrs: false,
1262
1264
  props: popupProps$2,
1263
1265
  emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
@@ -1331,13 +1333,20 @@ var stdin_default$1E = defineComponent({
1331
1333
  "role": "button",
1332
1334
  "tabindex": 0,
1333
1335
  "name": props.closeIcon,
1334
- "class": [bem$1q("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1336
+ "class": [bem$1r("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1335
1337
  "classPrefix": props.iconPrefix,
1336
1338
  "onClick": onClickCloseIcon
1337
1339
  }, null);
1338
1340
  }
1339
1341
  };
1340
- const onOpened = () => emit("opened");
1342
+ let timer2;
1343
+ const onOpened = () => {
1344
+ if (timer2)
1345
+ clearTimeout(timer2);
1346
+ timer2 = setTimeout(() => {
1347
+ emit("opened");
1348
+ });
1349
+ };
1341
1350
  const onClosed = () => emit("closed");
1342
1351
  const onKeydown = (event) => emit("keydown", event);
1343
1352
  const renderPopup = lazyRender(() => {
@@ -1353,7 +1362,7 @@ var stdin_default$1E = defineComponent({
1353
1362
  "style": style.value,
1354
1363
  "role": "dialog",
1355
1364
  "tabindex": 0,
1356
- "class": [bem$1q({
1365
+ "class": [bem$1r({
1357
1366
  round,
1358
1367
  [position]: position
1359
1368
  }), {
@@ -1434,8 +1443,8 @@ var stdin_default$1E = defineComponent({
1434
1443
  };
1435
1444
  }
1436
1445
  });
1437
- const Popup = withInstall(stdin_default$1E);
1438
- const [name$1u, bem$1p] = createNamespace("action-sheet");
1446
+ const Popup = withInstall(stdin_default$1F);
1447
+ const [name$1v, bem$1q] = createNamespace("action-sheet");
1439
1448
  const actionSheetProps = extend({}, popupSharedProps, {
1440
1449
  title: String,
1441
1450
  round: truthProp,
@@ -1449,8 +1458,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
1449
1458
  safeAreaInsetBottom: truthProp
1450
1459
  });
1451
1460
  const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1452
- var stdin_default$1D = defineComponent({
1453
- name: name$1u,
1461
+ var stdin_default$1E = defineComponent({
1462
+ name: name$1v,
1454
1463
  props: actionSheetProps,
1455
1464
  emits: ["select", "cancel", "update:show"],
1456
1465
  setup(props, {
@@ -1465,10 +1474,10 @@ var stdin_default$1D = defineComponent({
1465
1474
  const renderHeader = () => {
1466
1475
  if (props.title) {
1467
1476
  return createVNode("div", {
1468
- "class": bem$1p("header")
1477
+ "class": bem$1q("header")
1469
1478
  }, [props.title, props.closeable && createVNode(Icon, {
1470
1479
  "name": props.closeIcon,
1471
- "class": [bem$1p("close"), HAPTICS_FEEDBACK],
1480
+ "class": [bem$1q("close"), HAPTICS_FEEDBACK],
1472
1481
  "onClick": onCancel
1473
1482
  }, null)]);
1474
1483
  }
@@ -1476,10 +1485,10 @@ var stdin_default$1D = defineComponent({
1476
1485
  const renderCancel = () => {
1477
1486
  if (slots.cancel || props.cancelText) {
1478
1487
  return [createVNode("div", {
1479
- "class": bem$1p("gap")
1488
+ "class": bem$1q("gap")
1480
1489
  }, null), createVNode("button", {
1481
1490
  "type": "button",
1482
- "class": bem$1p("cancel"),
1491
+ "class": bem$1q("cancel"),
1483
1492
  "onClick": onCancel
1484
1493
  }, [slots.cancel ? slots.cancel() : props.cancelText])];
1485
1494
  }
@@ -1487,7 +1496,7 @@ var stdin_default$1D = defineComponent({
1487
1496
  const renderActionContent = (action, index) => {
1488
1497
  if (action.loading) {
1489
1498
  return createVNode(Loading, {
1490
- "class": bem$1p("loading-icon")
1499
+ "class": bem$1q("loading-icon")
1491
1500
  }, null);
1492
1501
  }
1493
1502
  if (slots.action) {
@@ -1497,9 +1506,9 @@ var stdin_default$1D = defineComponent({
1497
1506
  });
1498
1507
  }
1499
1508
  return [createVNode("span", {
1500
- "class": bem$1p("name")
1509
+ "class": bem$1q("name")
1501
1510
  }, [action.name]), action.subname && createVNode("div", {
1502
- "class": bem$1p("subname")
1511
+ "class": bem$1q("subname")
1503
1512
  }, [action.subname])];
1504
1513
  };
1505
1514
  const renderAction = (action, index) => {
@@ -1527,7 +1536,7 @@ var stdin_default$1D = defineComponent({
1527
1536
  "style": {
1528
1537
  color
1529
1538
  },
1530
- "class": [bem$1p("item", {
1539
+ "class": [bem$1q("item", {
1531
1540
  loading,
1532
1541
  disabled
1533
1542
  }), className],
@@ -1538,26 +1547,26 @@ var stdin_default$1D = defineComponent({
1538
1547
  if (props.description || slots.description) {
1539
1548
  const content = slots.description ? slots.description() : props.description;
1540
1549
  return createVNode("div", {
1541
- "class": bem$1p("description")
1550
+ "class": bem$1q("description")
1542
1551
  }, [content]);
1543
1552
  }
1544
1553
  };
1545
1554
  return () => createVNode(Popup, mergeProps({
1546
- "class": bem$1p(),
1555
+ "class": bem$1q(),
1547
1556
  "position": "bottom",
1548
1557
  "onUpdate:show": updateShow
1549
1558
  }, pick(props, popupInheritKeys$2)), {
1550
1559
  default: () => {
1551
1560
  var _a;
1552
1561
  return [renderHeader(), renderDescription(), createVNode("div", {
1553
- "class": bem$1p("content")
1562
+ "class": bem$1q("content")
1554
1563
  }, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
1555
1564
  }
1556
1565
  });
1557
1566
  }
1558
1567
  });
1559
- const ActionSheet = withInstall(stdin_default$1D);
1560
- const [name$1t, bem$1o, t$k] = createNamespace("picker");
1568
+ const ActionSheet = withInstall(stdin_default$1E);
1569
+ const [name$1u, bem$1p, t$k] = createNamespace("picker");
1561
1570
  const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
1562
1571
  function getColumnsType(columns, fields) {
1563
1572
  const firstColumn = columns[0];
@@ -1626,10 +1635,10 @@ function assignDefaultFields(fields) {
1626
1635
  const DEFAULT_DURATION = 200;
1627
1636
  const MOMENTUM_TIME = 300;
1628
1637
  const MOMENTUM_DISTANCE = 15;
1629
- const [name$1s, bem$1n] = createNamespace("picker-column");
1630
- const PICKER_KEY = Symbol(name$1s);
1631
- var stdin_default$1C = defineComponent({
1632
- name: name$1s,
1638
+ const [name$1t, bem$1o] = createNamespace("picker-column");
1639
+ const PICKER_KEY = Symbol(name$1t);
1640
+ var stdin_default$1D = defineComponent({
1641
+ name: name$1t,
1633
1642
  props: {
1634
1643
  value: numericProp,
1635
1644
  fields: makeRequiredProp(Object),
@@ -1768,7 +1777,7 @@ var stdin_default$1C = defineComponent({
1768
1777
  role: "button",
1769
1778
  style: optionStyle,
1770
1779
  tabindex: disabled ? -1 : 0,
1771
- class: [bem$1n("item", {
1780
+ class: [bem$1o("item", {
1772
1781
  disabled,
1773
1782
  selected: value === props.value
1774
1783
  }), option.className],
@@ -1796,7 +1805,7 @@ var stdin_default$1C = defineComponent({
1796
1805
  });
1797
1806
  return () => createVNode("div", {
1798
1807
  "ref": root,
1799
- "class": bem$1n(),
1808
+ "class": bem$1o(),
1800
1809
  "onTouchstartPassive": onTouchStart,
1801
1810
  "onTouchend": onTouchEnd,
1802
1811
  "onTouchcancel": onTouchEnd
@@ -1807,12 +1816,12 @@ var stdin_default$1C = defineComponent({
1807
1816
  transitionDuration: `${currentDuration.value}ms`,
1808
1817
  transitionProperty: currentDuration.value ? "all" : "none"
1809
1818
  },
1810
- "class": bem$1n("wrapper"),
1819
+ "class": bem$1o("wrapper"),
1811
1820
  "onTransitionend": stopMomentum
1812
1821
  }, [renderOptions()])]);
1813
1822
  }
1814
1823
  });
1815
- const [name$1r] = createNamespace("picker-toolbar");
1824
+ const [name$1s] = createNamespace("picker-toolbar");
1816
1825
  const pickerToolbarProps = {
1817
1826
  title: String,
1818
1827
  cancelButtonText: String,
@@ -1820,8 +1829,8 @@ const pickerToolbarProps = {
1820
1829
  };
1821
1830
  const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
1822
1831
  const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
1823
- var stdin_default$1B = defineComponent({
1824
- name: name$1r,
1832
+ var stdin_default$1C = defineComponent({
1833
+ name: name$1s,
1825
1834
  props: pickerToolbarProps,
1826
1835
  emits: ["confirm", "cancel"],
1827
1836
  setup(props, {
@@ -1834,7 +1843,7 @@ var stdin_default$1B = defineComponent({
1834
1843
  }
1835
1844
  if (props.title) {
1836
1845
  return createVNode("div", {
1837
- "class": [bem$1o("title"), "van-ellipsis"]
1846
+ "class": [bem$1p("title"), "van-ellipsis"]
1838
1847
  }, [props.title]);
1839
1848
  }
1840
1849
  };
@@ -1844,7 +1853,7 @@ var stdin_default$1B = defineComponent({
1844
1853
  const text = props.cancelButtonText || t$k("cancel");
1845
1854
  return createVNode("button", {
1846
1855
  "type": "button",
1847
- "class": [bem$1o("cancel"), HAPTICS_FEEDBACK],
1856
+ "class": [bem$1p("cancel"), HAPTICS_FEEDBACK],
1848
1857
  "onClick": onCancel
1849
1858
  }, [slots.cancel ? slots.cancel() : text]);
1850
1859
  };
@@ -1852,12 +1861,12 @@ var stdin_default$1B = defineComponent({
1852
1861
  const text = props.confirmButtonText || t$k("confirm");
1853
1862
  return createVNode("button", {
1854
1863
  "type": "button",
1855
- "class": [bem$1o("confirm"), HAPTICS_FEEDBACK],
1864
+ "class": [bem$1p("confirm"), HAPTICS_FEEDBACK],
1856
1865
  "onClick": onConfirm
1857
1866
  }, [slots.confirm ? slots.confirm() : text]);
1858
1867
  };
1859
1868
  return () => createVNode("div", {
1860
- "class": bem$1o("toolbar")
1869
+ "class": bem$1p("toolbar")
1861
1870
  }, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
1862
1871
  }
1863
1872
  });
@@ -1965,7 +1974,7 @@ function useVisibilityChange(target, onChange) {
1965
1974
  onBeforeUnmount(unobserve);
1966
1975
  onMountedOrActivated(observe);
1967
1976
  }
1968
- const [name$1q, bem$1m] = createNamespace("sticky");
1977
+ const [name$1r, bem$1n] = createNamespace("sticky");
1969
1978
  const stickyProps = {
1970
1979
  zIndex: numericProp,
1971
1980
  position: makeStringProp("top"),
@@ -1973,8 +1982,8 @@ const stickyProps = {
1973
1982
  offsetTop: makeNumericProp(0),
1974
1983
  offsetBottom: makeNumericProp(0)
1975
1984
  };
1976
- var stdin_default$1A = defineComponent({
1977
- name: name$1q,
1985
+ var stdin_default$1B = defineComponent({
1986
+ name: name$1r,
1978
1987
  props: stickyProps,
1979
1988
  emits: ["scroll", "change"],
1980
1989
  setup(props, {
@@ -2087,7 +2096,7 @@ var stdin_default$1A = defineComponent({
2087
2096
  "ref": root,
2088
2097
  "style": rootStyle.value
2089
2098
  }, [createVNode("div", {
2090
- "class": bem$1m({
2099
+ "class": bem$1n({
2091
2100
  fixed: state.fixed && !isReset.value
2092
2101
  }),
2093
2102
  "style": stickyStyle.value
@@ -2095,8 +2104,8 @@ var stdin_default$1A = defineComponent({
2095
2104
  };
2096
2105
  }
2097
2106
  });
2098
- const Sticky = withInstall(stdin_default$1A);
2099
- const [name$1p, bem$1l] = createNamespace("swipe");
2107
+ const Sticky = withInstall(stdin_default$1B);
2108
+ const [name$1q, bem$1m] = createNamespace("swipe");
2100
2109
  const swipeProps = {
2101
2110
  loop: truthProp,
2102
2111
  width: numericProp,
@@ -2111,9 +2120,9 @@ const swipeProps = {
2111
2120
  showIndicators: truthProp,
2112
2121
  stopPropagation: truthProp
2113
2122
  };
2114
- const SWIPE_KEY = Symbol(name$1p);
2115
- var stdin_default$1z = defineComponent({
2116
- name: name$1p,
2123
+ const SWIPE_KEY = Symbol(name$1q);
2124
+ var stdin_default$1A = defineComponent({
2125
+ name: name$1q,
2117
2126
  props: swipeProps,
2118
2127
  emits: ["change", "dragStart", "dragEnd"],
2119
2128
  setup(props, {
@@ -2391,7 +2400,7 @@ var stdin_default$1z = defineComponent({
2391
2400
  } : void 0;
2392
2401
  return createVNode("i", {
2393
2402
  "style": style,
2394
- "class": bem$1l("indicator", {
2403
+ "class": bem$1m("indicator", {
2395
2404
  active
2396
2405
  })
2397
2406
  }, null);
@@ -2405,7 +2414,7 @@ var stdin_default$1z = defineComponent({
2405
2414
  }
2406
2415
  if (props.showIndicators && count.value > 1) {
2407
2416
  return createVNode("div", {
2408
- "class": bem$1l("indicators", {
2417
+ "class": bem$1m("indicators", {
2409
2418
  vertical: props.vertical
2410
2419
  })
2411
2420
  }, [Array(count.value).fill("").map(renderDot)]);
@@ -2447,11 +2456,11 @@ var stdin_default$1z = defineComponent({
2447
2456
  var _a;
2448
2457
  return createVNode("div", {
2449
2458
  "ref": root,
2450
- "class": bem$1l()
2459
+ "class": bem$1m()
2451
2460
  }, [createVNode("div", {
2452
2461
  "ref": track,
2453
2462
  "style": trackStyle.value,
2454
- "class": bem$1l("track", {
2463
+ "class": bem$1m("track", {
2455
2464
  vertical: props.vertical
2456
2465
  }),
2457
2466
  "onTouchstartPassive": onTouchStart,
@@ -2461,10 +2470,10 @@ var stdin_default$1z = defineComponent({
2461
2470
  };
2462
2471
  }
2463
2472
  });
2464
- const Swipe = withInstall(stdin_default$1z);
2465
- const [name$1o, bem$1k] = createNamespace("tabs");
2466
- var stdin_default$1y = defineComponent({
2467
- name: name$1o,
2473
+ const Swipe = withInstall(stdin_default$1A);
2474
+ const [name$1p, bem$1l] = createNamespace("tabs");
2475
+ var stdin_default$1z = defineComponent({
2476
+ name: name$1p,
2468
2477
  props: {
2469
2478
  count: makeRequiredProp(Number),
2470
2479
  inited: Boolean,
@@ -2488,7 +2497,7 @@ var stdin_default$1y = defineComponent({
2488
2497
  return createVNode(Swipe, {
2489
2498
  "ref": swipeRef,
2490
2499
  "loop": false,
2491
- "class": bem$1k("track"),
2500
+ "class": bem$1l("track"),
2492
2501
  "duration": +props.duration * 1e3,
2493
2502
  "touchable": props.swipeable,
2494
2503
  "lazyRender": props.lazyRender,
@@ -2516,13 +2525,13 @@ var stdin_default$1y = defineComponent({
2516
2525
  swipeRef
2517
2526
  });
2518
2527
  return () => createVNode("div", {
2519
- "class": bem$1k("content", {
2528
+ "class": bem$1l("content", {
2520
2529
  animated: props.animated || props.swipeable
2521
2530
  })
2522
2531
  }, [renderChildren()]);
2523
2532
  }
2524
2533
  });
2525
- const [name$1n, bem$1j] = createNamespace("tabs");
2534
+ const [name$1o, bem$1k] = createNamespace("tabs");
2526
2535
  const tabsProps = {
2527
2536
  type: makeStringProp("line"),
2528
2537
  color: String,
@@ -2545,9 +2554,9 @@ const tabsProps = {
2545
2554
  titleActiveColor: String,
2546
2555
  titleInactiveColor: String
2547
2556
  };
2548
- const TABS_KEY = Symbol(name$1n);
2549
- var stdin_default$1x = defineComponent({
2550
- name: name$1n,
2557
+ const TABS_KEY = Symbol(name$1o);
2558
+ var stdin_default$1y = defineComponent({
2559
+ name: name$1o,
2551
2560
  props: tabsProps,
2552
2561
  emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
2553
2562
  setup(props, {
@@ -2745,7 +2754,7 @@ var stdin_default$1x = defineComponent({
2745
2754
  const renderLine = () => {
2746
2755
  if (props.type === "line" && children.length) {
2747
2756
  return createVNode("div", {
2748
- "class": bem$1j("line"),
2757
+ "class": bem$1k("line"),
2749
2758
  "style": state.lineStyle
2750
2759
  }, null);
2751
2760
  }
@@ -2759,13 +2768,13 @@ var stdin_default$1x = defineComponent({
2759
2768
  } = props;
2760
2769
  const Header = [createVNode("div", {
2761
2770
  "ref": sticky ? void 0 : wrapRef,
2762
- "class": [bem$1j("wrap"), {
2771
+ "class": [bem$1k("wrap"), {
2763
2772
  [BORDER_TOP_BOTTOM]: type === "line" && border
2764
2773
  }]
2765
2774
  }, [createVNode("div", {
2766
2775
  "ref": navRef,
2767
2776
  "role": "tablist",
2768
- "class": bem$1j("nav", [type, {
2777
+ "class": bem$1k("nav", [type, {
2769
2778
  shrink: props.shrink,
2770
2779
  complete: scrollable.value
2771
2780
  }]),
@@ -2838,14 +2847,14 @@ var stdin_default$1x = defineComponent({
2838
2847
  });
2839
2848
  return () => createVNode("div", {
2840
2849
  "ref": root,
2841
- "class": bem$1j([props.type])
2850
+ "class": bem$1k([props.type])
2842
2851
  }, [props.sticky ? createVNode(Sticky, {
2843
2852
  "container": root.value,
2844
2853
  "offsetTop": offsetTopPx.value,
2845
2854
  "onScroll": onStickyScroll
2846
2855
  }, {
2847
2856
  default: () => [renderHeader()]
2848
- }) : renderHeader(), createVNode(stdin_default$1y, {
2857
+ }) : renderHeader(), createVNode(stdin_default$1z, {
2849
2858
  "ref": contentRef,
2850
2859
  "count": children.length,
2851
2860
  "inited": state.inited,
@@ -2865,9 +2874,9 @@ var stdin_default$1x = defineComponent({
2865
2874
  });
2866
2875
  const TAB_STATUS_KEY = Symbol();
2867
2876
  const useTabStatus = () => inject(TAB_STATUS_KEY, null);
2868
- const [name$1m, bem$1i] = createNamespace("tab");
2877
+ const [name$1n, bem$1j] = createNamespace("tab");
2869
2878
  const TabTitle = defineComponent({
2870
- name: name$1m,
2879
+ name: name$1n,
2871
2880
  props: {
2872
2881
  id: String,
2873
2882
  dot: Boolean,
@@ -2916,7 +2925,7 @@ const TabTitle = defineComponent({
2916
2925
  });
2917
2926
  const renderText = () => {
2918
2927
  const Text2 = createVNode("span", {
2919
- "class": bem$1i("text", {
2928
+ "class": bem$1j("text", {
2920
2929
  ellipsis: !props.scrollable
2921
2930
  })
2922
2931
  }, [slots.title ? slots.title() : props.title]);
@@ -2934,7 +2943,7 @@ const TabTitle = defineComponent({
2934
2943
  return () => createVNode("div", {
2935
2944
  "id": props.id,
2936
2945
  "role": "tab",
2937
- "class": [bem$1i([props.type, {
2946
+ "class": [bem$1j([props.type, {
2938
2947
  grow: props.scrollable && !props.shrink,
2939
2948
  shrink: props.shrink,
2940
2949
  active: props.isActive,
@@ -2948,9 +2957,9 @@ const TabTitle = defineComponent({
2948
2957
  }, [renderText()]);
2949
2958
  }
2950
2959
  });
2951
- const [name$1l, bem$1h] = createNamespace("swipe-item");
2952
- var stdin_default$1w = defineComponent({
2953
- name: name$1l,
2960
+ const [name$1m, bem$1i] = createNamespace("swipe-item");
2961
+ var stdin_default$1x = defineComponent({
2962
+ name: name$1m,
2954
2963
  setup(props, {
2955
2964
  slots
2956
2965
  }) {
@@ -3015,14 +3024,14 @@ var stdin_default$1w = defineComponent({
3015
3024
  return () => {
3016
3025
  var _a;
3017
3026
  return createVNode("div", {
3018
- "class": bem$1h(),
3027
+ "class": bem$1i(),
3019
3028
  "style": style.value
3020
3029
  }, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
3021
3030
  };
3022
3031
  }
3023
3032
  });
3024
- const SwipeItem = withInstall(stdin_default$1w);
3025
- const [name$1k, bem$1g] = createNamespace("tab");
3033
+ const SwipeItem = withInstall(stdin_default$1x);
3034
+ const [name$1l, bem$1h] = createNamespace("tab");
3026
3035
  const tabProps = extend({}, routeProps, {
3027
3036
  dot: Boolean,
3028
3037
  name: numericProp,
@@ -3033,8 +3042,8 @@ const tabProps = extend({}, routeProps, {
3033
3042
  titleStyle: [String, Object],
3034
3043
  showZeroBadge: truthProp
3035
3044
  });
3036
- var stdin_default$1v = defineComponent({
3037
- name: name$1k,
3045
+ var stdin_default$1w = defineComponent({
3046
+ name: name$1l,
3038
3047
  props: tabProps,
3039
3048
  setup(props, {
3040
3049
  slots
@@ -3071,12 +3080,22 @@ var stdin_default$1v = defineComponent({
3071
3080
  }
3072
3081
  return isActive;
3073
3082
  });
3083
+ const parsedClass = ref("");
3084
+ const parsedStyle = ref("");
3085
+ watchEffect(() => {
3086
+ const {
3087
+ titleClass,
3088
+ titleStyle
3089
+ } = props;
3090
+ parsedClass.value = titleClass ? normalizeClass(titleClass) : "";
3091
+ parsedStyle.value = titleStyle && typeof titleStyle !== "string" ? stringifyStyle(normalizeStyle(titleStyle)) : titleStyle;
3092
+ });
3074
3093
  const renderTitle = (onClickTab) => createVNode(TabTitle, mergeProps({
3075
3094
  "key": id,
3076
3095
  "id": `${parent.id}-${index.value}`,
3077
3096
  "ref": parent.setTitleRefs(index.value),
3078
- "style": props.titleStyle,
3079
- "class": props.titleClass,
3097
+ "style": parsedStyle.value,
3098
+ "class": parsedClass.value,
3080
3099
  "isActive": active.value,
3081
3100
  "controls": id,
3082
3101
  "scrollable": parent.scrollable.value,
@@ -3122,7 +3141,7 @@ var stdin_default$1v = defineComponent({
3122
3141
  return createVNode(SwipeItem, {
3123
3142
  "id": id,
3124
3143
  "role": "tabpanel",
3125
- "class": bem$1g("panel-wrapper", {
3144
+ "class": bem$1h("panel-wrapper", {
3126
3145
  inactive: hasInactiveClass.value
3127
3146
  }),
3128
3147
  "tabindex": active.value ? 0 : -1,
@@ -3132,7 +3151,7 @@ var stdin_default$1v = defineComponent({
3132
3151
  default: () => {
3133
3152
  var _a2;
3134
3153
  return [createVNode("div", {
3135
- "class": bem$1g("panel")
3154
+ "class": bem$1h("panel")
3136
3155
  }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
3137
3156
  }
3138
3157
  });
@@ -3142,24 +3161,24 @@ var stdin_default$1v = defineComponent({
3142
3161
  return withDirectives(createVNode("div", {
3143
3162
  "id": id,
3144
3163
  "role": "tabpanel",
3145
- "class": bem$1g("panel"),
3164
+ "class": bem$1h("panel"),
3146
3165
  "tabindex": show ? 0 : -1,
3147
3166
  "aria-labelledby": label
3148
3167
  }, [Content]), [[vShow, show]]);
3149
3168
  };
3150
3169
  }
3151
3170
  });
3152
- const Tab = withInstall(stdin_default$1v);
3153
- const Tabs = withInstall(stdin_default$1x);
3154
- const [name$1j, bem$1f] = createNamespace("picker-group");
3155
- const PICKER_GROUP_KEY = Symbol(name$1j);
3171
+ const Tab = withInstall(stdin_default$1w);
3172
+ const Tabs = withInstall(stdin_default$1y);
3173
+ const [name$1k, bem$1g] = createNamespace("picker-group");
3174
+ const PICKER_GROUP_KEY = Symbol(name$1k);
3156
3175
  const pickerGroupProps = extend({
3157
3176
  tabs: makeArrayProp(),
3158
3177
  activeTab: makeNumericProp(0),
3159
3178
  nextStepText: String
3160
3179
  }, pickerToolbarProps);
3161
- var stdin_default$1u = defineComponent({
3162
- name: name$1j,
3180
+ var stdin_default$1v = defineComponent({
3181
+ name: name$1k,
3163
3182
  props: pickerGroupProps,
3164
3183
  emits: ["confirm", "cancel", "update:activeTab"],
3165
3184
  setup(props, {
@@ -3186,8 +3205,8 @@ var stdin_default$1u = defineComponent({
3186
3205
  const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
3187
3206
  const confirmButtonText = showNextButton() ? props.nextStepText : props.confirmButtonText;
3188
3207
  return createVNode("div", {
3189
- "class": bem$1f()
3190
- }, [createVNode(stdin_default$1B, {
3208
+ "class": bem$1g()
3209
+ }, [createVNode(stdin_default$1C, {
3191
3210
  "title": props.title,
3192
3211
  "cancelButtonText": props.cancelButtonText,
3193
3212
  "confirmButtonText": confirmButtonText,
@@ -3196,14 +3215,14 @@ var stdin_default$1u = defineComponent({
3196
3215
  }, pick(slots, pickerToolbarSlots)), createVNode(Tabs, {
3197
3216
  "active": activeTab.value,
3198
3217
  "onUpdate:active": ($event) => activeTab.value = $event,
3199
- "class": bem$1f("tabs"),
3218
+ "class": bem$1g("tabs"),
3200
3219
  "shrink": true,
3201
3220
  "animated": true,
3202
3221
  "lazyRender": false
3203
3222
  }, {
3204
3223
  default: () => [props.tabs.map((title, index) => createVNode(Tab, {
3205
3224
  "title": title,
3206
- "titleClass": bem$1f("tab-title")
3225
+ "titleClass": bem$1g("tab-title")
3207
3226
  }, {
3208
3227
  default: () => [childNodes == null ? void 0 : childNodes[index]]
3209
3228
  }))]
@@ -3226,8 +3245,8 @@ const pickerProps = extend({}, pickerSharedProps, {
3226
3245
  toolbarPosition: makeStringProp("top"),
3227
3246
  columnsFieldNames: Object
3228
3247
  });
3229
- var stdin_default$1t = defineComponent({
3230
- name: name$1t,
3248
+ var stdin_default$1u = defineComponent({
3249
+ name: name$1u,
3231
3250
  props: pickerProps,
3232
3251
  emits: ["confirm", "cancel", "change", "scrollInto", "clickOption", "update:modelValue"],
3233
3252
  setup(props, {
@@ -3308,7 +3327,7 @@ var stdin_default$1t = defineComponent({
3308
3327
  return params;
3309
3328
  };
3310
3329
  const cancel = () => emit("cancel", getEventParams());
3311
- const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$1C, {
3330
+ const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$1D, {
3312
3331
  "value": selectedValues.value[columnIndex],
3313
3332
  "fields": fields.value,
3314
3333
  "options": options,
@@ -3337,10 +3356,10 @@ var stdin_default$1t = defineComponent({
3337
3356
  backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
3338
3357
  };
3339
3358
  return [createVNode("div", {
3340
- "class": bem$1o("mask"),
3359
+ "class": bem$1p("mask"),
3341
3360
  "style": maskStyle
3342
3361
  }, null), createVNode("div", {
3343
- "class": [BORDER_UNSET_TOP_BOTTOM, bem$1o("frame")],
3362
+ "class": [BORDER_UNSET_TOP_BOTTOM, bem$1p("frame")],
3344
3363
  "style": frameStyle
3345
3364
  }, null)];
3346
3365
  }
@@ -3352,13 +3371,13 @@ var stdin_default$1t = defineComponent({
3352
3371
  };
3353
3372
  return createVNode("div", {
3354
3373
  "ref": columnsRef,
3355
- "class": bem$1o("columns"),
3374
+ "class": bem$1p("columns"),
3356
3375
  "style": columnsStyle
3357
3376
  }, [renderColumnItems(), renderMask(wrapHeight)]);
3358
3377
  };
3359
3378
  const renderToolbar = () => {
3360
3379
  if (props.showToolbar && !parent) {
3361
- return createVNode(stdin_default$1B, mergeProps(pick(props, pickerToolbarPropKeys), {
3380
+ return createVNode(stdin_default$1C, mergeProps(pick(props, pickerToolbarPropKeys), {
3362
3381
  "onConfirm": confirm,
3363
3382
  "onCancel": cancel
3364
3383
  }), pick(slots, pickerToolbarSlots));
@@ -3401,9 +3420,9 @@ var stdin_default$1t = defineComponent({
3401
3420
  return () => {
3402
3421
  var _a, _b;
3403
3422
  return createVNode("div", {
3404
- "class": bem$1o()
3423
+ "class": bem$1p()
3405
3424
  }, [props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? createVNode(Loading, {
3406
- "class": bem$1o("loading")
3425
+ "class": bem$1p("loading")
3407
3426
  }, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), props.toolbarPosition === "bottom" ? renderToolbar() : null]);
3408
3427
  };
3409
3428
  }
@@ -3494,9 +3513,9 @@ function formatDataForCascade({
3494
3513
  }
3495
3514
  return options;
3496
3515
  }
3497
- const Picker = withInstall(stdin_default$1t);
3498
- const [name$1i, bem$1e] = createNamespace("area");
3499
- const areaProps = extend({}, pickerSharedProps, {
3516
+ const Picker = withInstall(stdin_default$1u);
3517
+ const [name$1j, bem$1f] = createNamespace("area");
3518
+ const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
3500
3519
  modelValue: String,
3501
3520
  columnsNum: makeNumericProp(3),
3502
3521
  columnsPlaceholder: makeArrayProp(),
@@ -3505,8 +3524,8 @@ const areaProps = extend({}, pickerSharedProps, {
3505
3524
  default: () => ({})
3506
3525
  }
3507
3526
  });
3508
- var stdin_default$1s = defineComponent({
3509
- name: name$1i,
3527
+ var stdin_default$1t = defineComponent({
3528
+ name: name$1j,
3510
3529
  props: areaProps,
3511
3530
  emits: ["change", "confirm", "cancel", "update:modelValue"],
3512
3531
  setup(props, {
@@ -3553,7 +3572,7 @@ var stdin_default$1s = defineComponent({
3553
3572
  "ref": picker,
3554
3573
  "modelValue": codes.value,
3555
3574
  "onUpdate:modelValue": ($event) => codes.value = $event,
3556
- "class": bem$1e(),
3575
+ "class": bem$1f(),
3557
3576
  "columns": columns.value,
3558
3577
  "onChange": onChange,
3559
3578
  "onCancel": onCancel,
@@ -3561,8 +3580,8 @@ var stdin_default$1s = defineComponent({
3561
3580
  }, pick(props, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
3562
3581
  }
3563
3582
  });
3564
- const Area = withInstall(stdin_default$1s);
3565
- const [name$1h, bem$1d] = createNamespace("cell");
3583
+ const Area = withInstall(stdin_default$1t);
3584
+ const [name$1i, bem$1e] = createNamespace("cell");
3566
3585
  const cellSharedProps = {
3567
3586
  tag: makeStringProp("div"),
3568
3587
  icon: String,
@@ -3586,8 +3605,8 @@ const cellSharedProps = {
3586
3605
  }
3587
3606
  };
3588
3607
  const cellProps = extend({}, cellSharedProps, routeProps);
3589
- var stdin_default$1r = defineComponent({
3590
- name: name$1h,
3608
+ var stdin_default$1s = defineComponent({
3609
+ name: name$1i,
3591
3610
  props: cellProps,
3592
3611
  setup(props, {
3593
3612
  slots
@@ -3597,7 +3616,7 @@ var stdin_default$1r = defineComponent({
3597
3616
  const showLabel = slots.label || isDef(props.label);
3598
3617
  if (showLabel) {
3599
3618
  return createVNode("div", {
3600
- "class": [bem$1d("label"), props.labelClass]
3619
+ "class": [bem$1e("label"), props.labelClass]
3601
3620
  }, [slots.label ? slots.label() : props.label]);
3602
3621
  }
3603
3622
  };
@@ -3609,7 +3628,7 @@ var stdin_default$1r = defineComponent({
3609
3628
  return;
3610
3629
  }
3611
3630
  return createVNode("div", {
3612
- "class": [bem$1d("title"), props.titleClass],
3631
+ "class": [bem$1e("title"), props.titleClass],
3613
3632
  "style": props.titleStyle
3614
3633
  }, [titleSlot || createVNode("span", null, [props.title]), renderLabel()]);
3615
3634
  }
@@ -3619,7 +3638,7 @@ var stdin_default$1r = defineComponent({
3619
3638
  const hasValue = slot || isDef(props.value);
3620
3639
  if (hasValue) {
3621
3640
  return createVNode("div", {
3622
- "class": [bem$1d("value"), props.valueClass]
3641
+ "class": [bem$1e("value"), props.valueClass]
3623
3642
  }, [slot ? slot() : createVNode("span", null, [props.value])]);
3624
3643
  }
3625
3644
  };
@@ -3630,7 +3649,7 @@ var stdin_default$1r = defineComponent({
3630
3649
  if (props.icon) {
3631
3650
  return createVNode(Icon, {
3632
3651
  "name": props.icon,
3633
- "class": bem$1d("left-icon"),
3652
+ "class": bem$1e("left-icon"),
3634
3653
  "classPrefix": props.iconPrefix
3635
3654
  }, null);
3636
3655
  }
@@ -3643,7 +3662,7 @@ var stdin_default$1r = defineComponent({
3643
3662
  const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
3644
3663
  return createVNode(Icon, {
3645
3664
  "name": name2,
3646
- "class": bem$1d("right-icon")
3665
+ "class": bem$1e("right-icon")
3647
3666
  }, null);
3648
3667
  }
3649
3668
  };
@@ -3668,7 +3687,7 @@ var stdin_default$1r = defineComponent({
3668
3687
  classes[size] = !!size;
3669
3688
  }
3670
3689
  return createVNode(tag, {
3671
- "class": bem$1d(classes),
3690
+ "class": bem$1e(classes),
3672
3691
  "role": clickable ? "button" : void 0,
3673
3692
  "tabindex": clickable ? 0 : void 0,
3674
3693
  "onClick": route2
@@ -3681,8 +3700,8 @@ var stdin_default$1r = defineComponent({
3681
3700
  };
3682
3701
  }
3683
3702
  });
3684
- const Cell = withInstall(stdin_default$1r);
3685
- const [name$1g, bem$1c] = createNamespace("form");
3703
+ const Cell = withInstall(stdin_default$1s);
3704
+ const [name$1h, bem$1d] = createNamespace("form");
3686
3705
  const formProps = {
3687
3706
  colon: Boolean,
3688
3707
  disabled: Boolean,
@@ -3701,8 +3720,8 @@ const formProps = {
3701
3720
  default: "onBlur"
3702
3721
  }
3703
3722
  };
3704
- var stdin_default$1q = defineComponent({
3705
- name: name$1g,
3723
+ var stdin_default$1r = defineComponent({
3724
+ name: name$1h,
3706
3725
  props: formProps,
3707
3726
  emits: ["submit", "failed"],
3708
3727
  setup(props, {
@@ -3828,13 +3847,13 @@ var stdin_default$1q = defineComponent({
3828
3847
  return () => {
3829
3848
  var _a;
3830
3849
  return createVNode("form", {
3831
- "class": bem$1c(),
3850
+ "class": bem$1d(),
3832
3851
  "onSubmit": onSubmit
3833
3852
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
3834
3853
  };
3835
3854
  }
3836
3855
  });
3837
- const Form = withInstall(stdin_default$1q);
3856
+ const Form = withInstall(stdin_default$1r);
3838
3857
  function isEmptyValue(value) {
3839
3858
  if (Array.isArray(value)) {
3840
3859
  return !value.length;
@@ -3923,7 +3942,7 @@ function getStringLength(str) {
3923
3942
  function cutString(str, maxlength) {
3924
3943
  return [...str].slice(0, maxlength).join("");
3925
3944
  }
3926
- const [name$1f, bem$1b] = createNamespace("field");
3945
+ const [name$1g, bem$1c] = createNamespace("field");
3927
3946
  const fieldSharedProps = {
3928
3947
  id: String,
3929
3948
  name: String,
@@ -3970,8 +3989,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
3970
3989
  default: null
3971
3990
  }
3972
3991
  });
3973
- var stdin_default$1p = defineComponent({
3974
- name: name$1f,
3992
+ var stdin_default$1q = defineComponent({
3993
+ name: name$1g,
3975
3994
  props: fieldProps,
3976
3995
  emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
3977
3996
  setup(props, {
@@ -4245,7 +4264,7 @@ var stdin_default$1p = defineComponent({
4245
4264
  const getInputId = () => props.id || `${id}-input`;
4246
4265
  const getValidationStatus = () => state.status;
4247
4266
  const renderInput = () => {
4248
- const controlClass = bem$1b("control", [getProp("inputAlign"), {
4267
+ const controlClass = bem$1c("control", [getProp("inputAlign"), {
4249
4268
  error: showError.value,
4250
4269
  custom: !!slots.input,
4251
4270
  "min-height": props.type === "textarea" && !props.autosize
@@ -4287,7 +4306,7 @@ var stdin_default$1p = defineComponent({
4287
4306
  const leftIconSlot = slots["left-icon"];
4288
4307
  if (props.leftIcon || leftIconSlot) {
4289
4308
  return createVNode("div", {
4290
- "class": bem$1b("left-icon"),
4309
+ "class": bem$1c("left-icon"),
4291
4310
  "onClick": onClickLeftIcon
4292
4311
  }, [leftIconSlot ? leftIconSlot() : createVNode(Icon, {
4293
4312
  "name": props.leftIcon,
@@ -4299,7 +4318,7 @@ var stdin_default$1p = defineComponent({
4299
4318
  const rightIconSlot = slots["right-icon"];
4300
4319
  if (props.rightIcon || rightIconSlot) {
4301
4320
  return createVNode("div", {
4302
- "class": bem$1b("right-icon"),
4321
+ "class": bem$1c("right-icon"),
4303
4322
  "onClick": onClickRightIcon
4304
4323
  }, [rightIconSlot ? rightIconSlot() : createVNode(Icon, {
4305
4324
  "name": props.rightIcon,
@@ -4311,9 +4330,9 @@ var stdin_default$1p = defineComponent({
4311
4330
  if (props.showWordLimit && props.maxlength) {
4312
4331
  const count = getStringLength(getModelValue());
4313
4332
  return createVNode("div", {
4314
- "class": bem$1b("word-limit")
4333
+ "class": bem$1c("word-limit")
4315
4334
  }, [createVNode("span", {
4316
- "class": bem$1b("word-num")
4335
+ "class": bem$1c("word-num")
4317
4336
  }, [count]), createTextVNode("/"), props.maxlength]);
4318
4337
  }
4319
4338
  };
@@ -4326,7 +4345,7 @@ var stdin_default$1p = defineComponent({
4326
4345
  const slot = slots["error-message"];
4327
4346
  const errorMessageAlign = getProp("errorMessageAlign");
4328
4347
  return createVNode("div", {
4329
- "class": bem$1b("error-message", errorMessageAlign)
4348
+ "class": bem$1c("error-message", errorMessageAlign)
4330
4349
  }, [slot ? slot({
4331
4350
  message
4332
4351
  }) : message]);
@@ -4354,13 +4373,13 @@ var stdin_default$1p = defineComponent({
4354
4373
  }
4355
4374
  };
4356
4375
  const renderFieldBody = () => [createVNode("div", {
4357
- "class": bem$1b("body")
4376
+ "class": bem$1c("body")
4358
4377
  }, [renderInput(), showClear.value && createVNode(Icon, {
4359
4378
  "ref": clearIconRef,
4360
4379
  "name": props.clearIcon,
4361
- "class": bem$1b("clear")
4380
+ "class": bem$1c("clear")
4362
4381
  }, null), renderRightIcon(), slots.button && createVNode("div", {
4363
- "class": bem$1b("button")
4382
+ "class": bem$1c("button")
4364
4383
  }, [slots.button()])]), renderWordLimit(), renderMessage()];
4365
4384
  useExpose({
4366
4385
  blur,
@@ -4404,7 +4423,7 @@ var stdin_default$1p = defineComponent({
4404
4423
  };
4405
4424
  return createVNode(Cell, {
4406
4425
  "size": props.size,
4407
- "class": bem$1b({
4426
+ "class": bem$1c({
4408
4427
  error: showError.value,
4409
4428
  disabled,
4410
4429
  [`label-${labelAlign}`]: labelAlign
@@ -4414,8 +4433,8 @@ var stdin_default$1p = defineComponent({
4414
4433
  "isLink": props.isLink,
4415
4434
  "clickable": props.clickable,
4416
4435
  "titleStyle": labelStyle.value,
4417
- "valueClass": bem$1b("value"),
4418
- "titleClass": [bem$1b("label", [labelAlign, {
4436
+ "valueClass": bem$1c("value"),
4437
+ "titleClass": [bem$1c("label", [labelAlign, {
4419
4438
  required: props.required
4420
4439
  }]), props.labelClass],
4421
4440
  "arrowDirection": props.arrowDirection
@@ -4428,7 +4447,7 @@ var stdin_default$1p = defineComponent({
4428
4447
  };
4429
4448
  }
4430
4449
  });
4431
- const Field = withInstall(stdin_default$1p);
4450
+ const Field = withInstall(stdin_default$1q);
4432
4451
  let lockCount = 0;
4433
4452
  function lockClick(lock) {
4434
4453
  if (lock) {
@@ -4443,7 +4462,7 @@ function lockClick(lock) {
4443
4462
  }
4444
4463
  }
4445
4464
  }
4446
- const [name$1e, bem$1a] = createNamespace("toast");
4465
+ const [name$1f, bem$1b] = createNamespace("toast");
4447
4466
  const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
4448
4467
  const toastProps = {
4449
4468
  icon: String,
@@ -4466,8 +4485,8 @@ const toastProps = {
4466
4485
  closeOnClick: Boolean,
4467
4486
  closeOnClickOverlay: Boolean
4468
4487
  };
4469
- var stdin_default$1o = defineComponent({
4470
- name: name$1e,
4488
+ var stdin_default$1p = defineComponent({
4489
+ name: name$1f,
4471
4490
  props: toastProps,
4472
4491
  emits: ["update:show"],
4473
4492
  setup(props, {
@@ -4503,13 +4522,13 @@ var stdin_default$1o = defineComponent({
4503
4522
  return createVNode(Icon, {
4504
4523
  "name": icon || type,
4505
4524
  "size": iconSize,
4506
- "class": bem$1a("icon"),
4525
+ "class": bem$1b("icon"),
4507
4526
  "classPrefix": iconPrefix
4508
4527
  }, null);
4509
4528
  }
4510
4529
  if (type === "loading") {
4511
4530
  return createVNode(Loading, {
4512
- "class": bem$1a("loading"),
4531
+ "class": bem$1b("loading"),
4513
4532
  "size": iconSize,
4514
4533
  "type": loadingType
4515
4534
  }, null);
@@ -4522,16 +4541,16 @@ var stdin_default$1o = defineComponent({
4522
4541
  } = props;
4523
4542
  if (slots.message) {
4524
4543
  return createVNode("div", {
4525
- "class": bem$1a("text")
4544
+ "class": bem$1b("text")
4526
4545
  }, [slots.message()]);
4527
4546
  }
4528
4547
  if (isDef(message) && message !== "") {
4529
4548
  return type === "html" ? createVNode("div", {
4530
4549
  "key": 0,
4531
- "class": bem$1a("text"),
4550
+ "class": bem$1b("text"),
4532
4551
  "innerHTML": String(message)
4533
4552
  }, null) : createVNode("div", {
4534
- "class": bem$1a("text")
4553
+ "class": bem$1b("text")
4535
4554
  }, [message]);
4536
4555
  }
4537
4556
  };
@@ -4547,7 +4566,7 @@ var stdin_default$1o = defineComponent({
4547
4566
  onMounted(toggleClickable);
4548
4567
  onUnmounted(toggleClickable);
4549
4568
  return () => createVNode(Popup, mergeProps({
4550
- "class": [bem$1a([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
4569
+ "class": [bem$1b([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
4551
4570
  [props.type]: !props.icon
4552
4571
  }]), props.className],
4553
4572
  "lockScroll": false,
@@ -4648,7 +4667,7 @@ function createInstance() {
4648
4667
  onClosed,
4649
4668
  "onUpdate:show": toggle
4650
4669
  };
4651
- return createVNode(stdin_default$1o, mergeProps(state, attrs), null);
4670
+ return createVNode(stdin_default$1p, mergeProps(state, attrs), null);
4652
4671
  };
4653
4672
  watch(message, (val) => {
4654
4673
  state.message = val;
@@ -4718,8 +4737,8 @@ const resetToastDefaultOptions = (type) => {
4718
4737
  const allowMultipleToast = (value = true) => {
4719
4738
  allowMultiple = value;
4720
4739
  };
4721
- const Toast = withInstall(stdin_default$1o);
4722
- const [name$1d, bem$19] = createNamespace("switch");
4740
+ const Toast = withInstall(stdin_default$1p);
4741
+ const [name$1e, bem$1a] = createNamespace("switch");
4723
4742
  const switchProps = {
4724
4743
  size: numericProp,
4725
4744
  loading: Boolean,
@@ -4736,8 +4755,8 @@ const switchProps = {
4736
4755
  default: false
4737
4756
  }
4738
4757
  };
4739
- var stdin_default$1n = defineComponent({
4740
- name: name$1d,
4758
+ var stdin_default$1o = defineComponent({
4759
+ name: name$1e,
4741
4760
  props: switchProps,
4742
4761
  emits: ["change", "update:modelValue"],
4743
4762
  setup(props, {
@@ -4756,7 +4775,7 @@ var stdin_default$1n = defineComponent({
4756
4775
  if (props.loading) {
4757
4776
  const color = isChecked() ? props.activeColor : props.inactiveColor;
4758
4777
  return createVNode(Loading, {
4759
- "class": bem$19("loading"),
4778
+ "class": bem$1a("loading"),
4760
4779
  "color": color
4761
4780
  }, null);
4762
4781
  }
@@ -4781,7 +4800,7 @@ var stdin_default$1n = defineComponent({
4781
4800
  };
4782
4801
  return createVNode("div", {
4783
4802
  "role": "switch",
4784
- "class": bem$19({
4803
+ "class": bem$1a({
4785
4804
  on: checked,
4786
4805
  loading,
4787
4806
  disabled
@@ -4791,16 +4810,16 @@ var stdin_default$1n = defineComponent({
4791
4810
  "aria-checked": checked,
4792
4811
  "onClick": onClick
4793
4812
  }, [createVNode("div", {
4794
- "class": bem$19("node")
4813
+ "class": bem$1a("node")
4795
4814
  }, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
4796
4815
  };
4797
4816
  }
4798
4817
  });
4799
- const Switch = withInstall(stdin_default$1n);
4800
- const [name$1c, bem$18] = createNamespace("address-edit-detail");
4818
+ const Switch = withInstall(stdin_default$1o);
4819
+ const [name$1d, bem$19] = createNamespace("address-edit-detail");
4801
4820
  const t$j = createNamespace("address-edit")[2];
4802
- var stdin_default$1m = defineComponent({
4803
- name: name$1c,
4821
+ var stdin_default$1n = defineComponent({
4822
+ name: name$1d,
4804
4823
  props: {
4805
4824
  show: Boolean,
4806
4825
  rows: numericProp,
@@ -4834,7 +4853,7 @@ var stdin_default$1m = defineComponent({
4834
4853
  "icon": "location-o",
4835
4854
  "title": express.name,
4836
4855
  "label": express.address,
4837
- "class": bem$18("search-item"),
4856
+ "class": bem$19("search-item"),
4838
4857
  "border": false,
4839
4858
  "onClick": () => onSelect(express)
4840
4859
  }, null));
@@ -4848,7 +4867,7 @@ var stdin_default$1m = defineComponent({
4848
4867
  "autosize": true,
4849
4868
  "clearable": true,
4850
4869
  "ref": field,
4851
- "class": bem$18(),
4870
+ "class": bem$19(),
4852
4871
  "rows": props.rows,
4853
4872
  "type": "textarea",
4854
4873
  "rules": props.rules,
@@ -4865,7 +4884,7 @@ var stdin_default$1m = defineComponent({
4865
4884
  };
4866
4885
  }
4867
4886
  });
4868
- const [name$1b, bem$17, t$i] = createNamespace("address-edit");
4887
+ const [name$1c, bem$18, t$i] = createNamespace("address-edit");
4869
4888
  const DEFAULT_DATA = {
4870
4889
  name: "",
4871
4890
  tel: "",
@@ -4905,8 +4924,8 @@ const addressEditProps = {
4905
4924
  default: isMobile
4906
4925
  }
4907
4926
  };
4908
- var stdin_default$1l = defineComponent({
4909
- name: name$1b,
4927
+ var stdin_default$1m = defineComponent({
4928
+ name: name$1c,
4910
4929
  props: addressEditProps,
4911
4930
  emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
4912
4931
  setup(props, {
@@ -5016,8 +5035,9 @@ var stdin_default$1l = defineComponent({
5016
5035
  };
5017
5036
  return withDirectives(createVNode(Cell, {
5018
5037
  "center": true,
5038
+ "border": false,
5019
5039
  "title": t$i("defaultAddress"),
5020
- "class": bem$17("default")
5040
+ "class": bem$18("default")
5021
5041
  }, slots2), [[vShow, !hideBottomFields.value]]);
5022
5042
  }
5023
5043
  };
@@ -5043,13 +5063,13 @@ var stdin_default$1l = defineComponent({
5043
5063
  disableArea
5044
5064
  } = props;
5045
5065
  return createVNode(Form, {
5046
- "class": bem$17(),
5066
+ "class": bem$18(),
5047
5067
  "onSubmit": onSave
5048
5068
  }, {
5049
5069
  default: () => {
5050
5070
  var _a;
5051
5071
  return [createVNode("div", {
5052
- "class": bem$17("fields")
5072
+ "class": bem$18("fields")
5053
5073
  }, [createVNode(Field, {
5054
5074
  "modelValue": data.name,
5055
5075
  "onUpdate:modelValue": ($event) => data.name = $event,
@@ -5080,7 +5100,7 @@ var stdin_default$1l = defineComponent({
5080
5100
  emit("clickArea");
5081
5101
  showAreaPopup.value = !disableArea;
5082
5102
  }
5083
- }, null), [[vShow, props.showArea]]), createVNode(stdin_default$1m, {
5103
+ }, null), [[vShow, props.showArea]]), createVNode(stdin_default$1n, {
5084
5104
  "show": props.showDetail,
5085
5105
  "rows": props.detailRows,
5086
5106
  "rules": rules.value.addressDetail,
@@ -5094,19 +5114,19 @@ var stdin_default$1l = defineComponent({
5094
5114
  "onInput": onChangeDetail,
5095
5115
  "onSelectSearch": (event) => emit("selectSearch", event)
5096
5116
  }, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), withDirectives(createVNode("div", {
5097
- "class": bem$17("buttons")
5117
+ "class": bem$18("buttons")
5098
5118
  }, [createVNode(Button, {
5099
5119
  "block": true,
5100
5120
  "round": true,
5101
5121
  "type": "primary",
5102
5122
  "text": props.saveButtonText || t$i("save"),
5103
- "class": bem$17("button"),
5123
+ "class": bem$18("button"),
5104
5124
  "loading": props.isSaving,
5105
5125
  "nativeType": "submit"
5106
5126
  }, null), props.showDelete && createVNode(Button, {
5107
5127
  "block": true,
5108
5128
  "round": true,
5109
- "class": bem$17("button"),
5129
+ "class": bem$18("button"),
5110
5130
  "loading": props.isDeleting,
5111
5131
  "text": props.deleteButtonText || t$i("delete"),
5112
5132
  "onClick": onDelete
@@ -5136,8 +5156,8 @@ var stdin_default$1l = defineComponent({
5136
5156
  };
5137
5157
  }
5138
5158
  });
5139
- const AddressEdit = withInstall(stdin_default$1l);
5140
- const [name$1a, bem$16] = createNamespace("radio-group");
5159
+ const AddressEdit = withInstall(stdin_default$1m);
5160
+ const [name$1b, bem$17] = createNamespace("radio-group");
5141
5161
  const radioGroupProps = {
5142
5162
  disabled: Boolean,
5143
5163
  iconSize: numericProp,
@@ -5145,9 +5165,9 @@ const radioGroupProps = {
5145
5165
  modelValue: unknownProp,
5146
5166
  checkedColor: String
5147
5167
  };
5148
- const RADIO_KEY = Symbol(name$1a);
5149
- var stdin_default$1k = defineComponent({
5150
- name: name$1a,
5168
+ const RADIO_KEY = Symbol(name$1b);
5169
+ var stdin_default$1l = defineComponent({
5170
+ name: name$1b,
5151
5171
  props: radioGroupProps,
5152
5172
  emits: ["change", "update:modelValue"],
5153
5173
  setup(props, {
@@ -5167,14 +5187,14 @@ var stdin_default$1k = defineComponent({
5167
5187
  return () => {
5168
5188
  var _a;
5169
5189
  return createVNode("div", {
5170
- "class": bem$16([props.direction]),
5190
+ "class": bem$17([props.direction]),
5171
5191
  "role": "radiogroup"
5172
5192
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
5173
5193
  };
5174
5194
  }
5175
5195
  });
5176
- const RadioGroup = withInstall(stdin_default$1k);
5177
- const [name$19, bem$15] = createNamespace("tag");
5196
+ const RadioGroup = withInstall(stdin_default$1l);
5197
+ const [name$1a, bem$16] = createNamespace("tag");
5178
5198
  const tagProps = {
5179
5199
  size: String,
5180
5200
  mark: Boolean,
@@ -5186,8 +5206,8 @@ const tagProps = {
5186
5206
  textColor: String,
5187
5207
  closeable: Boolean
5188
5208
  };
5189
- var stdin_default$1j = defineComponent({
5190
- name: name$19,
5209
+ var stdin_default$1k = defineComponent({
5210
+ name: name$1a,
5191
5211
  props: tagProps,
5192
5212
  emits: ["close"],
5193
5213
  setup(props, {
@@ -5230,12 +5250,12 @@ var stdin_default$1j = defineComponent({
5230
5250
  }
5231
5251
  const CloseIcon = closeable && createVNode(Icon, {
5232
5252
  "name": "cross",
5233
- "class": [bem$15("close"), HAPTICS_FEEDBACK],
5253
+ "class": [bem$16("close"), HAPTICS_FEEDBACK],
5234
5254
  "onClick": onClose
5235
5255
  }, null);
5236
5256
  return createVNode("span", {
5237
5257
  "style": getStyle(),
5238
- "class": bem$15([classes, type])
5258
+ "class": bem$16([classes, type])
5239
5259
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
5240
5260
  };
5241
5261
  return () => createVNode(Transition, {
@@ -5245,7 +5265,7 @@ var stdin_default$1j = defineComponent({
5245
5265
  });
5246
5266
  }
5247
5267
  });
5248
- const Tag = withInstall(stdin_default$1j);
5268
+ const Tag = withInstall(stdin_default$1k);
5249
5269
  const checkerProps = {
5250
5270
  name: unknownProp,
5251
5271
  shape: makeStringProp("round"),
@@ -5256,7 +5276,7 @@ const checkerProps = {
5256
5276
  labelPosition: String,
5257
5277
  labelDisabled: Boolean
5258
5278
  };
5259
- var stdin_default$1i = defineComponent({
5279
+ var stdin_default$1j = defineComponent({
5260
5280
  props: extend({}, checkerProps, {
5261
5281
  bem: makeRequiredProp(Function),
5262
5282
  role: String,
@@ -5358,9 +5378,9 @@ var stdin_default$1i = defineComponent({
5358
5378
  }
5359
5379
  });
5360
5380
  const radioProps = checkerProps;
5361
- const [name$18, bem$14] = createNamespace("radio");
5362
- var stdin_default$1h = defineComponent({
5363
- name: name$18,
5381
+ const [name$19, bem$15] = createNamespace("radio");
5382
+ var stdin_default$1i = defineComponent({
5383
+ name: name$19,
5364
5384
  props: checkerProps,
5365
5385
  emits: ["update:modelValue"],
5366
5386
  setup(props, {
@@ -5381,8 +5401,8 @@ var stdin_default$1h = defineComponent({
5381
5401
  emit("update:modelValue", props.name);
5382
5402
  }
5383
5403
  };
5384
- return () => createVNode(stdin_default$1i, mergeProps({
5385
- "bem": bem$14,
5404
+ return () => createVNode(stdin_default$1j, mergeProps({
5405
+ "bem": bem$15,
5386
5406
  "role": "radio",
5387
5407
  "parent": parent,
5388
5408
  "checked": checked(),
@@ -5390,10 +5410,10 @@ var stdin_default$1h = defineComponent({
5390
5410
  }, props), pick(slots, ["default", "icon"]));
5391
5411
  }
5392
5412
  });
5393
- const Radio = withInstall(stdin_default$1h);
5394
- const [name$17, bem$13] = createNamespace("address-item");
5395
- var stdin_default$1g = defineComponent({
5396
- name: name$17,
5413
+ const Radio = withInstall(stdin_default$1i);
5414
+ const [name$18, bem$14] = createNamespace("address-item");
5415
+ var stdin_default$1h = defineComponent({
5416
+ name: name$18,
5397
5417
  props: {
5398
5418
  address: makeRequiredProp(Object),
5399
5419
  disabled: Boolean,
@@ -5413,7 +5433,7 @@ var stdin_default$1g = defineComponent({
5413
5433
  };
5414
5434
  const renderRightIcon = () => createVNode(Icon, {
5415
5435
  "name": "edit",
5416
- "class": bem$13("edit"),
5436
+ "class": bem$14("edit"),
5417
5437
  "onClick": (event) => {
5418
5438
  event.stopPropagation();
5419
5439
  emit("edit");
@@ -5428,7 +5448,7 @@ var stdin_default$1g = defineComponent({
5428
5448
  return createVNode(Tag, {
5429
5449
  "type": "primary",
5430
5450
  "round": true,
5431
- "class": bem$13("tag")
5451
+ "class": bem$14("tag")
5432
5452
  }, {
5433
5453
  default: () => [props.defaultTagText]
5434
5454
  });
@@ -5441,9 +5461,9 @@ var stdin_default$1g = defineComponent({
5441
5461
  switchable
5442
5462
  } = props;
5443
5463
  const Info = [createVNode("div", {
5444
- "class": bem$13("name")
5464
+ "class": bem$14("name")
5445
5465
  }, [`${address.name} ${address.tel}`, renderTag()]), createVNode("div", {
5446
- "class": bem$13("address")
5466
+ "class": bem$14("address")
5447
5467
  }, [address.address])];
5448
5468
  if (switchable && !disabled) {
5449
5469
  return createVNode(Radio, {
@@ -5461,13 +5481,13 @@ var stdin_default$1g = defineComponent({
5461
5481
  disabled
5462
5482
  } = props;
5463
5483
  return createVNode("div", {
5464
- "class": bem$13({
5484
+ "class": bem$14({
5465
5485
  disabled
5466
5486
  }),
5467
5487
  "onClick": onClick
5468
5488
  }, [createVNode(Cell, {
5469
5489
  "border": false,
5470
- "titleClass": bem$13("title")
5490
+ "titleClass": bem$14("title")
5471
5491
  }, {
5472
5492
  title: renderContent,
5473
5493
  "right-icon": renderRightIcon
@@ -5477,7 +5497,7 @@ var stdin_default$1g = defineComponent({
5477
5497
  };
5478
5498
  }
5479
5499
  });
5480
- const [name$16, bem$12, t$h] = createNamespace("address-list");
5500
+ const [name$17, bem$13, t$h] = createNamespace("address-list");
5481
5501
  const addressListProps = {
5482
5502
  list: makeArrayProp(),
5483
5503
  modelValue: numericProp,
@@ -5487,8 +5507,8 @@ const addressListProps = {
5487
5507
  addButtonText: String,
5488
5508
  defaultTagText: String
5489
5509
  };
5490
- var stdin_default$1f = defineComponent({
5491
- name: name$16,
5510
+ var stdin_default$1g = defineComponent({
5511
+ name: name$17,
5492
5512
  props: addressListProps,
5493
5513
  emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
5494
5514
  setup(props, {
@@ -5504,7 +5524,7 @@ var stdin_default$1f = defineComponent({
5504
5524
  emit("update:modelValue", item.id);
5505
5525
  }
5506
5526
  };
5507
- return createVNode(stdin_default$1g, {
5527
+ return createVNode(stdin_default$1h, {
5508
5528
  "key": item.id,
5509
5529
  "address": item,
5510
5530
  "disabled": disabled,
@@ -5524,13 +5544,13 @@ var stdin_default$1f = defineComponent({
5524
5544
  }
5525
5545
  };
5526
5546
  const renderBottom = () => createVNode("div", {
5527
- "class": [bem$12("bottom"), "van-safe-area-bottom"]
5547
+ "class": [bem$13("bottom"), "van-safe-area-bottom"]
5528
5548
  }, [createVNode(Button, {
5529
5549
  "round": true,
5530
5550
  "block": true,
5531
5551
  "type": "primary",
5532
5552
  "text": props.addButtonText || t$h("add"),
5533
- "class": bem$12("add"),
5553
+ "class": bem$13("add"),
5534
5554
  "onClick": () => emit("add")
5535
5555
  }, null)]);
5536
5556
  return () => {
@@ -5538,10 +5558,10 @@ var stdin_default$1f = defineComponent({
5538
5558
  const List2 = renderList(props.list);
5539
5559
  const DisabledList = renderList(props.disabledList, true);
5540
5560
  const DisabledText = props.disabledText && createVNode("div", {
5541
- "class": bem$12("disabled-text")
5561
+ "class": bem$13("disabled-text")
5542
5562
  }, [props.disabledText]);
5543
5563
  return createVNode("div", {
5544
- "class": bem$12()
5564
+ "class": bem$13()
5545
5565
  }, [(_a = slots.top) == null ? void 0 : _a.call(slots), createVNode(RadioGroup, {
5546
5566
  "modelValue": props.modelValue
5547
5567
  }, {
@@ -5550,7 +5570,7 @@ var stdin_default$1f = defineComponent({
5550
5570
  };
5551
5571
  }
5552
5572
  });
5553
- const AddressList = withInstall(stdin_default$1f);
5573
+ const AddressList = withInstall(stdin_default$1g);
5554
5574
  const hasIntersectionObserver = inBrowser$1 && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
5555
5575
  const modeType = {
5556
5576
  event: "event",
@@ -5703,7 +5723,7 @@ class ImageCache {
5703
5723
  this.caches.shift();
5704
5724
  }
5705
5725
  }
5706
- const [name$15, bem$11] = createNamespace("back-top");
5726
+ const [name$16, bem$12] = createNamespace("back-top");
5707
5727
  const backTopProps = {
5708
5728
  right: numericProp,
5709
5729
  bottom: numericProp,
@@ -5716,8 +5736,8 @@ const backTopProps = {
5716
5736
  default: "body"
5717
5737
  }
5718
5738
  };
5719
- var stdin_default$1e = defineComponent({
5720
- name: name$15,
5739
+ var stdin_default$1f = defineComponent({
5740
+ name: name$16,
5721
5741
  inheritAttrs: false,
5722
5742
  props: backTopProps,
5723
5743
  emits: ["click"],
@@ -5775,28 +5795,158 @@ var stdin_default$1e = defineComponent({
5775
5795
  watch(() => props.target, updateTarget);
5776
5796
  return () => {
5777
5797
  const Content = createVNode("div", mergeProps({
5778
- "ref": root,
5779
- "class": bem$11({
5798
+ "ref": !props.teleport ? root : void 0,
5799
+ "class": bem$12({
5780
5800
  active: show.value
5781
5801
  }),
5782
5802
  "style": style.value,
5783
5803
  "onClick": onClick
5784
5804
  }, attrs), [slots.default ? slots.default() : createVNode(Icon, {
5785
5805
  "name": "back-top",
5786
- "class": bem$11("icon")
5806
+ "class": bem$12("icon")
5787
5807
  }, null)]);
5788
5808
  if (props.teleport) {
5789
- return createVNode(Teleport, {
5809
+ return [createVNode("div", {
5810
+ "ref": root,
5811
+ "class": bem$12("placeholder")
5812
+ }, null), createVNode(Teleport, {
5790
5813
  "to": props.teleport
5791
5814
  }, {
5792
5815
  default: () => [Content]
5793
- });
5816
+ })];
5794
5817
  }
5795
5818
  return Content;
5796
5819
  };
5797
5820
  }
5798
5821
  });
5799
- const BackTop = withInstall(stdin_default$1e);
5822
+ const BackTop = withInstall(stdin_default$1f);
5823
+ var __async = (__this, __arguments, generator) => {
5824
+ return new Promise((resolve, reject) => {
5825
+ var fulfilled = (value) => {
5826
+ try {
5827
+ step(generator.next(value));
5828
+ } catch (e) {
5829
+ reject(e);
5830
+ }
5831
+ };
5832
+ var rejected = (value) => {
5833
+ try {
5834
+ step(generator.throw(value));
5835
+ } catch (e) {
5836
+ reject(e);
5837
+ }
5838
+ };
5839
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
5840
+ step((generator = generator.apply(__this, __arguments)).next());
5841
+ });
5842
+ };
5843
+ const barrageProps = {
5844
+ top: makeNumericProp(10),
5845
+ rows: makeNumericProp(4),
5846
+ duration: makeNumericProp(4e3),
5847
+ autoPlay: truthProp,
5848
+ delay: makeNumberProp(300),
5849
+ modelValue: makeArrayProp()
5850
+ };
5851
+ const [name$15, bem$11] = createNamespace("barrage");
5852
+ var stdin_default$1e = defineComponent({
5853
+ name: name$15,
5854
+ props: barrageProps,
5855
+ emits: ["update:modelValue"],
5856
+ setup(props, {
5857
+ emit,
5858
+ slots
5859
+ }) {
5860
+ const barrageWrapper = ref();
5861
+ const className = bem$11("item");
5862
+ const total = ref(0);
5863
+ const barrageItems = [];
5864
+ const createBarrageItem = (text, delay = props.delay) => {
5865
+ const item = document.createElement("span");
5866
+ item.className = className;
5867
+ item.innerText = String(text);
5868
+ item.style.animationDuration = `${props.duration}ms`;
5869
+ item.style.animationDelay = `${delay}ms`;
5870
+ item.style.animationName = "van-barrage";
5871
+ item.style.animationTimingFunction = "linear";
5872
+ return item;
5873
+ };
5874
+ const isInitBarrage = ref(true);
5875
+ const isPlay = ref(props.autoPlay);
5876
+ const appendBarrageItem = ({
5877
+ id,
5878
+ text
5879
+ }, i) => {
5880
+ var _a;
5881
+ const item = createBarrageItem(text, isInitBarrage.value ? i * props.delay : void 0);
5882
+ if (!props.autoPlay && isPlay.value === false) {
5883
+ item.style.animationPlayState = "paused";
5884
+ }
5885
+ (_a = barrageWrapper.value) == null ? void 0 : _a.append(item);
5886
+ total.value++;
5887
+ const top = (total.value - 1) % +props.rows * item.offsetHeight + +props.top;
5888
+ item.style.top = `${top}px`;
5889
+ item.dataset.id = String(id);
5890
+ barrageItems.push(item);
5891
+ item.addEventListener("animationend", () => {
5892
+ emit("update:modelValue", [...props.modelValue].filter((v) => String(v.id) !== item.dataset.id));
5893
+ });
5894
+ };
5895
+ const updateBarrages = (newValue, oldValue) => {
5896
+ const map = new Map(oldValue.map((item) => [item.id, item]));
5897
+ newValue.forEach((item, i) => {
5898
+ if (map.has(item.id)) {
5899
+ map.delete(item.id);
5900
+ } else {
5901
+ appendBarrageItem(item, i);
5902
+ }
5903
+ });
5904
+ map.forEach((item) => {
5905
+ const index = barrageItems.findIndex((span) => span.dataset.id === String(item.id));
5906
+ if (index > -1) {
5907
+ barrageItems[index].remove();
5908
+ barrageItems.splice(index, 1);
5909
+ }
5910
+ });
5911
+ isInitBarrage.value = false;
5912
+ };
5913
+ watch(() => props.modelValue.slice(), (newValue, oldValue) => updateBarrages(newValue != null ? newValue : [], oldValue != null ? oldValue : []), {
5914
+ deep: true
5915
+ });
5916
+ const rootStyle = ref({});
5917
+ onMounted(() => __async(this, null, function* () {
5918
+ var _a;
5919
+ rootStyle.value["--move-distance"] = `-${(_a = barrageWrapper.value) == null ? void 0 : _a.offsetWidth}px`;
5920
+ yield nextTick();
5921
+ updateBarrages(props.modelValue, []);
5922
+ }));
5923
+ const play = () => {
5924
+ isPlay.value = true;
5925
+ barrageItems.forEach((item) => {
5926
+ item.style.animationPlayState = "running";
5927
+ });
5928
+ };
5929
+ const pause = () => {
5930
+ isPlay.value = false;
5931
+ barrageItems.forEach((item) => {
5932
+ item.style.animationPlayState = "paused";
5933
+ });
5934
+ };
5935
+ useExpose({
5936
+ play,
5937
+ pause
5938
+ });
5939
+ return () => {
5940
+ var _a;
5941
+ return createVNode("div", {
5942
+ "class": bem$11(),
5943
+ "ref": barrageWrapper,
5944
+ "style": rootStyle.value
5945
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
5946
+ };
5947
+ }
5948
+ });
5949
+ const Barrage = withInstall(stdin_default$1e);
5800
5950
  const [name$14, bem$10, t$g] = createNamespace("calendar");
5801
5951
  const formatMonthTitle = (date) => t$g("monthTitle", date.getFullYear(), date.getMonth() + 1);
5802
5952
  function compareMonth(date1, date2) {
@@ -6958,6 +7108,7 @@ var stdin_default$17 = defineComponent({
6958
7108
  }) {
6959
7109
  const tabs = ref([]);
6960
7110
  const activeTab = ref(0);
7111
+ const [selectedElementRefs, setSelectedElementRefs] = useRefs();
6961
7112
  const {
6962
7113
  text: textKey,
6963
7114
  value: valueKey,
@@ -7076,6 +7227,7 @@ var stdin_default$17 = defineComponent({
7076
7227
  selected
7077
7228
  }) : createVNode("span", null, [option[textKey]]);
7078
7229
  return createVNode("li", {
7230
+ "ref": selected ? setSelectedElementRefs(tabIndex) : void 0,
7079
7231
  "role": "menuitemradio",
7080
7232
  "class": [bem$Z("option", {
7081
7233
  selected,
@@ -7132,7 +7284,18 @@ var stdin_default$17 = defineComponent({
7132
7284
  }, {
7133
7285
  default: () => [tabs.value.map(renderTab)]
7134
7286
  });
7287
+ const scrollIntoView = (el) => {
7288
+ const scrollParent = el.parentElement;
7289
+ if (scrollParent) {
7290
+ scrollParent.scrollTop = el.offsetTop - (scrollParent.offsetHeight - el.offsetHeight) / 2;
7291
+ }
7292
+ };
7135
7293
  updateTabs();
7294
+ watch(activeTab, (value) => {
7295
+ const el = selectedElementRefs.value[value];
7296
+ if (el)
7297
+ scrollIntoView(el);
7298
+ });
7136
7299
  watch(() => props.options, updateTabs, {
7137
7300
  deep: true
7138
7301
  });
@@ -7316,7 +7479,7 @@ var stdin_default$14 = defineComponent({
7316
7479
  checked
7317
7480
  });
7318
7481
  useCustomFieldValue(() => props.modelValue);
7319
- return () => createVNode(stdin_default$1i, mergeProps({
7482
+ return () => createVNode(stdin_default$1j, mergeProps({
7320
7483
  "bem": bem$W,
7321
7484
  "role": "checkbox",
7322
7485
  "parent": parent,
@@ -7837,7 +8000,7 @@ var stdin_default$$ = defineComponent({
7837
8000
  }
7838
8001
  });
7839
8002
  const CollapseItem = withInstall(stdin_default$$);
7840
- const ConfigProvider = withInstall(stdin_default$1L);
8003
+ const ConfigProvider = withInstall(stdin_default$1M);
7841
8004
  const [name$R, bem$Q, t$e] = createNamespace("contact-card");
7842
8005
  const contactCardProps = {
7843
8006
  tel: String,
@@ -8002,7 +8165,7 @@ var stdin_default$Y = defineComponent({
8002
8165
  const renderRightIcon = () => createVNode(Radio, {
8003
8166
  "class": bem$O("radio"),
8004
8167
  "name": item.id,
8005
- "iconSize": 16
8168
+ "iconSize": 18
8006
8169
  }, null);
8007
8170
  const renderEditIcon = () => createVNode(Icon, {
8008
8171
  "name": "edit",
@@ -8786,6 +8949,7 @@ var stdin_default$S = defineComponent({
8786
8949
  slots
8787
8950
  }) {
8788
8951
  const currentValues = ref(props.modelValue);
8952
+ const updatedByExternalSources = ref(false);
8789
8953
  const genYearOptions = () => {
8790
8954
  const minYear = props.minDate.getFullYear();
8791
8955
  const maxYear = props.maxDate.getFullYear();
@@ -8801,7 +8965,7 @@ var stdin_default$S = defineComponent({
8801
8965
  columnsType
8802
8966
  } = props;
8803
8967
  const index = columnsType.indexOf(type);
8804
- const value = currentValues.value[index];
8968
+ const value = updatedByExternalSources.value ? props.modelValue[index] : currentValues.value[index];
8805
8969
  if (value) {
8806
8970
  return +value;
8807
8971
  }
@@ -8847,11 +9011,13 @@ var stdin_default$S = defineComponent({
8847
9011
  emit("update:modelValue", newValues);
8848
9012
  }
8849
9013
  });
8850
- watch(() => props.modelValue, (newValues) => {
9014
+ watch(() => props.modelValue, (newValues, oldValues) => {
9015
+ updatedByExternalSources.value = isSameValue(oldValues, currentValues.value);
8851
9016
  newValues = formatValueRange(newValues, columns.value);
8852
9017
  if (!isSameValue(newValues, currentValues.value)) {
8853
9018
  currentValues.value = newValues;
8854
9019
  }
9020
+ updatedByExternalSources.value = false;
8855
9021
  }, {
8856
9022
  immediate: true
8857
9023
  });
@@ -9154,6 +9320,7 @@ const [name$H, bem$H] = createNamespace("divider");
9154
9320
  const dividerProps = {
9155
9321
  dashed: Boolean,
9156
9322
  hairline: truthProp,
9323
+ vertical: Boolean,
9157
9324
  contentPosition: makeStringProp("center")
9158
9325
  };
9159
9326
  var stdin_default$Q = defineComponent({
@@ -9169,9 +9336,10 @@ var stdin_default$Q = defineComponent({
9169
9336
  "class": bem$H({
9170
9337
  dashed: props.dashed,
9171
9338
  hairline: props.hairline,
9172
- [`content-${props.contentPosition}`]: !!slots.default
9339
+ vertical: props.vertical,
9340
+ [`content-${props.contentPosition}`]: !!slots.default && !props.vertical
9173
9341
  })
9174
- }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
9342
+ }, [!props.vertical && ((_a = slots.default) == null ? void 0 : _a.call(slots))]);
9175
9343
  };
9176
9344
  }
9177
9345
  });
@@ -9656,6 +9824,7 @@ const getCenter = (touches) => ({
9656
9824
  y: (touches[0].clientY + touches[1].clientY) / 2
9657
9825
  });
9658
9826
  const bem$C = createNamespace("image-preview")[1];
9827
+ const longImageRatio = 2.6;
9659
9828
  var stdin_default$L = defineComponent({
9660
9829
  props: {
9661
9830
  src: String,
@@ -9678,33 +9847,28 @@ var stdin_default$L = defineComponent({
9678
9847
  moveY: 0,
9679
9848
  moving: false,
9680
9849
  zooming: false,
9681
- imageRatio: 0,
9682
- displayWidth: 0,
9683
- displayHeight: 0
9850
+ initializing: false,
9851
+ imageRatio: 0
9684
9852
  });
9685
9853
  const touch = useTouch();
9686
9854
  const imageRef = ref();
9687
9855
  const swipeItem = ref();
9688
- const vertical = computed(() => {
9689
- const {
9690
- rootWidth,
9691
- rootHeight
9692
- } = props;
9693
- const rootRatio = rootHeight / rootWidth;
9694
- return state.imageRatio > rootRatio;
9695
- });
9856
+ const vertical = ref(false);
9857
+ const isLongImage = ref(false);
9858
+ let initialMoveY = 0;
9696
9859
  const imageStyle = computed(() => {
9697
9860
  const {
9698
9861
  scale,
9699
9862
  moveX,
9700
9863
  moveY,
9701
9864
  moving,
9702
- zooming
9865
+ zooming,
9866
+ initializing
9703
9867
  } = state;
9704
9868
  const style = {
9705
- transitionDuration: zooming || moving ? "0s" : ".3s"
9869
+ transitionDuration: zooming || moving || initializing ? "0s" : ".3s"
9706
9870
  };
9707
- if (scale !== 1) {
9871
+ if (scale !== 1 || isLongImage.value) {
9708
9872
  style.transform = `matrix(${scale}, 0, 0, ${scale}, ${moveX}, ${moveY})`;
9709
9873
  }
9710
9874
  return style;
@@ -9749,7 +9913,7 @@ var stdin_default$L = defineComponent({
9749
9913
  state.moveY = clamp(moveY, -maxMoveY.value, maxMoveY.value);
9750
9914
  } else {
9751
9915
  state.moveX = 0;
9752
- state.moveY = 0;
9916
+ state.moveY = isLongImage.value ? initialMoveY : 0;
9753
9917
  }
9754
9918
  emit("scale", {
9755
9919
  scale,
@@ -9762,7 +9926,7 @@ var stdin_default$L = defineComponent({
9762
9926
  };
9763
9927
  const toggleScale = () => {
9764
9928
  const scale = state.scale > 1 ? 1 : 2;
9765
- setScale(scale, scale === 2 ? {
9929
+ setScale(scale, scale === 2 || isLongImage.value ? {
9766
9930
  x: touch.startX.value,
9767
9931
  y: touch.startY.value
9768
9932
  } : void 0);
@@ -9792,7 +9956,7 @@ var stdin_default$L = defineComponent({
9792
9956
  startMoveY = state.moveY;
9793
9957
  touchStartTime = Date.now();
9794
9958
  isImageMoved = false;
9795
- state.moving = fingerNum === 1 && state.scale !== 1;
9959
+ state.moving = fingerNum === 1 && (state.scale !== 1 || isLongImage.value);
9796
9960
  state.zooming = fingerNum === 2 && !offsetX.value;
9797
9961
  if (state.zooming) {
9798
9962
  startScale = state.scale;
@@ -9888,12 +10052,34 @@ var stdin_default$L = defineComponent({
9888
10052
  checkTap();
9889
10053
  touch.reset();
9890
10054
  };
10055
+ const resize = () => {
10056
+ const {
10057
+ rootWidth,
10058
+ rootHeight
10059
+ } = props;
10060
+ const rootRatio = rootHeight / rootWidth;
10061
+ const {
10062
+ imageRatio
10063
+ } = state;
10064
+ vertical.value = state.imageRatio > rootRatio && imageRatio < longImageRatio;
10065
+ isLongImage.value = state.imageRatio > rootRatio && imageRatio >= longImageRatio;
10066
+ if (isLongImage.value) {
10067
+ initialMoveY = (imageRatio * rootWidth - rootHeight) / 2;
10068
+ state.moveY = initialMoveY;
10069
+ state.initializing = true;
10070
+ raf(() => {
10071
+ state.initializing = false;
10072
+ });
10073
+ }
10074
+ resetScale();
10075
+ };
9891
10076
  const onLoad = (event) => {
9892
10077
  const {
9893
10078
  naturalWidth,
9894
10079
  naturalHeight
9895
10080
  } = event.target;
9896
10081
  state.imageRatio = naturalHeight / naturalWidth;
10082
+ resize();
9897
10083
  };
9898
10084
  watch(() => props.active, resetScale);
9899
10085
  watch(() => props.show, (value) => {
@@ -9901,6 +10087,7 @@ var stdin_default$L = defineComponent({
9901
10087
  resetScale();
9902
10088
  }
9903
10089
  });
10090
+ watch(() => [props.rootWidth, props.rootHeight], resize);
9904
10091
  useEventListener("touchmove", onTouchMove, {
9905
10092
  target: computed(() => {
9906
10093
  var _a;
@@ -11455,7 +11642,7 @@ var stdin_default$A = defineComponent({
11455
11642
  }
11456
11643
  });
11457
11644
  const PasswordInput = withInstall(stdin_default$A);
11458
- const PickerGroup = withInstall(stdin_default$1u);
11645
+ const PickerGroup = withInstall(stdin_default$1v);
11459
11646
  const [name$r, bem$q] = createNamespace("popover");
11460
11647
  const popupProps = ["overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
11461
11648
  const popoverProps = {
@@ -11463,6 +11650,7 @@ const popoverProps = {
11463
11650
  theme: makeStringProp("light"),
11464
11651
  overlay: Boolean,
11465
11652
  actions: makeArrayProp(),
11653
+ actionsDirection: makeStringProp("vertical"),
11466
11654
  trigger: makeStringProp("click"),
11467
11655
  duration: numericProp,
11468
11656
  showArrow: truthProp,
@@ -11566,7 +11754,9 @@ var stdin_default$z = defineComponent({
11566
11754
  "classPrefix": props.iconPrefix,
11567
11755
  "class": bem$q("action-icon")
11568
11756
  }, null), createVNode("div", {
11569
- "class": [bem$q("action-text"), BORDER_BOTTOM]
11757
+ "class": [bem$q("action-text"), {
11758
+ [BORDER_BOTTOM]: props.actionsDirection === "vertical"
11759
+ }]
11570
11760
  }, [action.text])];
11571
11761
  };
11572
11762
  const renderAction = (action, index) => {
@@ -11581,7 +11771,9 @@ var stdin_default$z = defineComponent({
11581
11771
  "class": [bem$q("action", {
11582
11772
  disabled,
11583
11773
  "with-icon": icon
11584
- }), className],
11774
+ }), {
11775
+ [BORDER_RIGHT]: props.actionsDirection === "horizontal"
11776
+ }, className],
11585
11777
  "style": {
11586
11778
  color
11587
11779
  },
@@ -11630,7 +11822,7 @@ var stdin_default$z = defineComponent({
11630
11822
  "class": bem$q("arrow")
11631
11823
  }, null), createVNode("div", {
11632
11824
  "role": "menu",
11633
- "class": bem$q("content")
11825
+ "class": bem$q("content", props.actionsDirection)
11634
11826
  }, [slots.default ? slots.default() : props.actions.map(renderAction)])]
11635
11827
  })]);
11636
11828
  };
@@ -12435,6 +12627,7 @@ const signatureProps = {
12435
12627
  penColor: makeStringProp("#000"),
12436
12628
  lineWidth: makeNumberProp(3),
12437
12629
  clearButtonText: String,
12630
+ backgroundColor: makeStringProp(""),
12438
12631
  confirmButtonText: String
12439
12632
  };
12440
12633
  const hasCanvasSupport = () => {
@@ -12454,7 +12647,8 @@ var stdin_default$r = defineComponent({
12454
12647
  const state = reactive({
12455
12648
  width: 0,
12456
12649
  height: 0,
12457
- ctx: null
12650
+ ctx: null,
12651
+ ratio: inBrowser ? window.devicePixelRatio : 1
12458
12652
  });
12459
12653
  let canvasRect;
12460
12654
  const isRenderCanvas = inBrowser ? hasCanvasSupport() : true;
@@ -12463,7 +12657,7 @@ var stdin_default$r = defineComponent({
12463
12657
  return false;
12464
12658
  }
12465
12659
  state.ctx.beginPath();
12466
- state.ctx.lineWidth = props.lineWidth;
12660
+ state.ctx.lineWidth = props.lineWidth * state.ratio;
12467
12661
  state.ctx.strokeStyle = props.penColor;
12468
12662
  canvasRect = useRect(canvasRef);
12469
12663
  emit("start");
@@ -12475,8 +12669,8 @@ var stdin_default$r = defineComponent({
12475
12669
  }
12476
12670
  preventDefault(event);
12477
12671
  const touch = event.touches[0];
12478
- const mouseX = touch.clientX - ((canvasRect == null ? void 0 : canvasRect.left) || 0);
12479
- const mouseY = touch.clientY - ((canvasRect == null ? void 0 : canvasRect.top) || 0);
12672
+ const mouseX = (touch.clientX - ((canvasRect == null ? void 0 : canvasRect.left) || 0)) * state.ratio;
12673
+ const mouseY = (touch.clientY - ((canvasRect == null ? void 0 : canvasRect.top) || 0)) * state.ratio;
12480
12674
  state.ctx.lineCap = "round";
12481
12675
  state.ctx.lineJoin = "round";
12482
12676
  (_a = state.ctx) == null ? void 0 : _a.lineTo(mouseX, mouseY);
@@ -12493,13 +12687,23 @@ var stdin_default$r = defineComponent({
12493
12687
  empty.height = canvas.height;
12494
12688
  return canvas.toDataURL() === empty.toDataURL();
12495
12689
  };
12690
+ const setCanvasBgColor = () => {
12691
+ if (state.ctx && props.backgroundColor) {
12692
+ state.ctx.fillStyle = props.backgroundColor;
12693
+ state.ctx.fillRect(0, 0, state.width, state.height);
12694
+ }
12695
+ };
12496
12696
  const submit = () => {
12697
+ var _a, _b;
12497
12698
  const canvas = canvasRef.value;
12498
12699
  if (!canvas) {
12499
12700
  return;
12500
12701
  }
12501
12702
  const isEmpty = isCanvasEmpty(canvas);
12502
- const image = isEmpty ? "" : canvas.toDataURL(`image/${props.type}`, props.type === "jpg" ? 0.9 : null);
12703
+ const image = isEmpty ? "" : ((_b = (_a = {
12704
+ jpg: () => canvas.toDataURL("image/jpeg", 0.8),
12705
+ jpeg: () => canvas.toDataURL("image/jpeg", 0.8)
12706
+ })[props.type]) == null ? void 0 : _b.call(_a)) || canvas.toDataURL(`image/${props.type}`);
12503
12707
  emit("submit", {
12504
12708
  image,
12505
12709
  canvas
@@ -12509,6 +12713,7 @@ var stdin_default$r = defineComponent({
12509
12713
  if (state.ctx) {
12510
12714
  state.ctx.clearRect(0, 0, state.width, state.height);
12511
12715
  state.ctx.closePath();
12716
+ setCanvasBgColor();
12512
12717
  }
12513
12718
  emit("clear");
12514
12719
  };
@@ -12516,8 +12721,11 @@ var stdin_default$r = defineComponent({
12516
12721
  var _a, _b, _c;
12517
12722
  if (isRenderCanvas) {
12518
12723
  state.ctx = (_a = canvasRef.value) == null ? void 0 : _a.getContext("2d");
12519
- state.width = ((_b = wrapRef.value) == null ? void 0 : _b.offsetWidth) || 0;
12520
- state.height = ((_c = wrapRef.value) == null ? void 0 : _c.offsetHeight) || 0;
12724
+ state.width = (((_b = wrapRef.value) == null ? void 0 : _b.offsetWidth) || 0) * state.ratio;
12725
+ state.height = (((_c = wrapRef.value) == null ? void 0 : _c.offsetHeight) || 0) * state.ratio;
12726
+ nextTick(() => {
12727
+ setCanvasBgColor();
12728
+ });
12521
12729
  }
12522
12730
  });
12523
12731
  return () => createVNode("div", {
@@ -12801,6 +13009,14 @@ var stdin_default$i = defineComponent({
12801
13009
  const diff = Math.round((value - min) / step) * step;
12802
13010
  return addNumber(min, diff);
12803
13011
  };
13012
+ const updateStartValue = () => {
13013
+ const current22 = props.modelValue;
13014
+ if (isRange(current22)) {
13015
+ startValue = current22.map(format2);
13016
+ } else {
13017
+ startValue = format2(current22);
13018
+ }
13019
+ };
12804
13020
  const handleRangeValue = (value) => {
12805
13021
  var _a, _b;
12806
13022
  const left = (_a = value[0]) != null ? _a : Number(props.min);
@@ -12825,6 +13041,7 @@ var stdin_default$i = defineComponent({
12825
13041
  if (props.disabled || props.readonly) {
12826
13042
  return;
12827
13043
  }
13044
+ updateStartValue();
12828
13045
  const {
12829
13046
  min,
12830
13047
  reverse,
@@ -12864,11 +13081,7 @@ var stdin_default$i = defineComponent({
12864
13081
  }
12865
13082
  touch.start(event);
12866
13083
  current2 = props.modelValue;
12867
- if (isRange(current2)) {
12868
- startValue = current2.map(format2);
12869
- } else {
12870
- startValue = format2(current2);
12871
- }
13084
+ updateStartValue();
12872
13085
  dragStatus.value = "start";
12873
13086
  };
12874
13087
  const onTouchMove = (event) => {
@@ -14228,10 +14441,11 @@ var stdin_default$6 = defineComponent({
14228
14441
  imageFit: String,
14229
14442
  lazyLoad: Boolean,
14230
14443
  deletable: Boolean,
14444
+ reupload: Boolean,
14231
14445
  previewSize: [Number, String, Array],
14232
14446
  beforeDelete: Function
14233
14447
  },
14234
- emits: ["delete", "preview"],
14448
+ emits: ["delete", "preview", "reupload"],
14235
14449
  setup(props, {
14236
14450
  emit,
14237
14451
  slots
@@ -14273,6 +14487,7 @@ var stdin_default$6 = defineComponent({
14273
14487
  });
14274
14488
  };
14275
14489
  const onPreview = () => emit("preview");
14490
+ const onReupload = () => emit("reupload");
14276
14491
  const renderDeleteIcon = () => {
14277
14492
  if (props.deletable && props.item.status !== "uploading") {
14278
14493
  const slot = slots["preview-delete"];
@@ -14308,7 +14523,8 @@ var stdin_default$6 = defineComponent({
14308
14523
  item,
14309
14524
  lazyLoad,
14310
14525
  imageFit,
14311
- previewSize
14526
+ previewSize,
14527
+ reupload
14312
14528
  } = props;
14313
14529
  if (isImageFile(item)) {
14314
14530
  return createVNode(Image$1, {
@@ -14318,7 +14534,7 @@ var stdin_default$6 = defineComponent({
14318
14534
  "width": Array.isArray(previewSize) ? previewSize[0] : previewSize,
14319
14535
  "height": Array.isArray(previewSize) ? previewSize[1] : previewSize,
14320
14536
  "lazyLoad": lazyLoad,
14321
- "onClick": onPreview
14537
+ "onClick": reupload ? onReupload : onPreview
14322
14538
  }, {
14323
14539
  default: renderCover
14324
14540
  });
@@ -14352,6 +14568,7 @@ const uploaderProps = {
14352
14568
  uploadIcon: makeStringProp("photograph"),
14353
14569
  uploadText: String,
14354
14570
  deletable: truthProp,
14571
+ reupload: Boolean,
14355
14572
  afterRead: Function,
14356
14573
  showUpload: truthProp,
14357
14574
  modelValue: makeArrayProp(),
@@ -14369,13 +14586,14 @@ const uploaderProps = {
14369
14586
  var stdin_default$5 = defineComponent({
14370
14587
  name: name$1,
14371
14588
  props: uploaderProps,
14372
- emits: ["delete", "oversize", "clickUpload", "closePreview", "clickPreview", "update:modelValue"],
14589
+ emits: ["delete", "oversize", "clickUpload", "closePreview", "clickPreview", "clickReupload", "update:modelValue"],
14373
14590
  setup(props, {
14374
14591
  emit,
14375
14592
  slots
14376
14593
  }) {
14377
14594
  const inputRef = ref();
14378
14595
  const urls = [];
14596
+ const reuploadIndex = ref(-1);
14379
14597
  const getDetail = (index = props.modelValue.length) => ({
14380
14598
  name: props.name,
14381
14599
  index
@@ -14401,7 +14619,14 @@ var stdin_default$5 = defineComponent({
14401
14619
  }
14402
14620
  }
14403
14621
  items = reactive(items);
14404
- emit("update:modelValue", [...props.modelValue, ...toArray(items)]);
14622
+ if (reuploadIndex.value > -1) {
14623
+ const arr = [...props.modelValue];
14624
+ arr.splice(reuploadIndex.value, 1, items);
14625
+ emit("update:modelValue", arr);
14626
+ reuploadIndex.value = -1;
14627
+ } else {
14628
+ emit("update:modelValue", [...props.modelValue, ...toArray(items)]);
14629
+ }
14405
14630
  if (props.afterRead) {
14406
14631
  props.afterRead(items, getDetail());
14407
14632
  }
@@ -14502,15 +14727,20 @@ var stdin_default$5 = defineComponent({
14502
14727
  emit("update:modelValue", fileList);
14503
14728
  emit("delete", item, getDetail(index));
14504
14729
  };
14730
+ const reuploadImage = (index) => {
14731
+ chooseFile();
14732
+ reuploadIndex.value = index;
14733
+ };
14505
14734
  const renderPreviewItem = (item, index) => {
14506
- const needPickData = ["imageFit", "deletable", "previewSize", "beforeDelete"];
14735
+ const needPickData = ["imageFit", "deletable", "reupload", "previewSize", "beforeDelete"];
14507
14736
  const previewData = extend(pick(props, needPickData), pick(item, needPickData, true));
14508
14737
  return createVNode(stdin_default$6, mergeProps({
14509
14738
  "item": item,
14510
14739
  "index": index,
14511
- "onClick": () => emit("clickPreview", item, getDetail(index)),
14740
+ "onClick": () => emit(props.reupload ? "clickReupload" : "clickPreview", item, getDetail(index)),
14512
14741
  "onDelete": () => deleteFile(item, index),
14513
- "onPreview": () => previewImage(item)
14742
+ "onPreview": () => previewImage(item),
14743
+ "onReupload": () => reuploadImage(index)
14514
14744
  }, pick(props, ["name", "lazyLoad"]), previewData), pick(slots, ["preview-cover", "preview-delete"]));
14515
14745
  };
14516
14746
  const renderPreviewList = () => {
@@ -14520,24 +14750,25 @@ var stdin_default$5 = defineComponent({
14520
14750
  };
14521
14751
  const onClickUpload = (event) => emit("clickUpload", event);
14522
14752
  const renderUpload = () => {
14523
- if (props.modelValue.length >= +props.maxCount) {
14753
+ if (props.modelValue.length >= +props.maxCount && !props.reupload) {
14524
14754
  return;
14525
14755
  }
14756
+ const hideUploader = props.modelValue.length >= +props.maxCount && props.reupload;
14526
14757
  const Input = props.readonly ? null : createVNode("input", {
14527
14758
  "ref": inputRef,
14528
14759
  "type": "file",
14529
14760
  "class": bem$1("input"),
14530
14761
  "accept": props.accept,
14531
14762
  "capture": props.capture,
14532
- "multiple": props.multiple,
14763
+ "multiple": props.multiple && reuploadIndex.value === -1,
14533
14764
  "disabled": props.disabled,
14534
14765
  "onChange": onChange
14535
14766
  }, null);
14536
14767
  if (slots.default) {
14537
- return createVNode("div", {
14768
+ return withDirectives(createVNode("div", {
14538
14769
  "class": bem$1("input-wrapper"),
14539
14770
  "onClick": onClickUpload
14540
- }, [slots.default(), Input]);
14771
+ }, [slots.default(), Input]), [[vShow, !hideUploader]]);
14541
14772
  }
14542
14773
  return withDirectives(createVNode("div", {
14543
14774
  "class": bem$1("upload", {
@@ -14550,7 +14781,7 @@ var stdin_default$5 = defineComponent({
14550
14781
  "class": bem$1("upload-icon")
14551
14782
  }, null), props.uploadText && createVNode("span", {
14552
14783
  "class": bem$1("upload-text")
14553
- }, [props.uploadText]), Input]), [[vShow, props.showUpload]]);
14784
+ }, [props.uploadText]), Input]), [[vShow, props.showUpload && !hideUploader]]);
14554
14785
  };
14555
14786
  const chooseFile = () => {
14556
14787
  if (inputRef.value && !props.disabled) {
@@ -15577,7 +15808,7 @@ const Lazyload = {
15577
15808
  });
15578
15809
  }
15579
15810
  };
15580
- const version = "4.3.2";
15811
+ const version = "4.4.1";
15581
15812
  function install(app) {
15582
15813
  const components = [
15583
15814
  ActionBar,
@@ -15589,6 +15820,7 @@ function install(app) {
15589
15820
  Area,
15590
15821
  BackTop,
15591
15822
  Badge,
15823
+ Barrage,
15592
15824
  Button,
15593
15825
  Calendar,
15594
15826
  Card,
@@ -15699,6 +15931,7 @@ export {
15699
15931
  Area,
15700
15932
  BackTop,
15701
15933
  Badge,
15934
+ Barrage,
15702
15935
  Button,
15703
15936
  Calendar,
15704
15937
  Card,
@@ -15798,6 +16031,7 @@ export {
15798
16031
  areaProps,
15799
16032
  backTopProps,
15800
16033
  badgeProps,
16034
+ barrageProps,
15801
16035
  buttonProps,
15802
16036
  calendarProps,
15803
16037
  cardProps,