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.cjs.js CHANGED
@@ -2,6 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const use = require("@vant/use");
5
+ const shared = require("@vue/shared");
5
6
  const popperjs = require("@vant/popperjs");
6
7
  const isDef = (val) => val !== void 0 && val !== null;
7
8
  const isFunction = (val) => typeof val === "function";
@@ -237,7 +238,7 @@ function deepAssign(to, from) {
237
238
  });
238
239
  return to;
239
240
  }
240
- var stdin_default$1P = {
241
+ var stdin_default$1Q = {
241
242
  name: "姓名",
242
243
  tel: "电话",
243
244
  save: "保存",
@@ -301,7 +302,7 @@ var stdin_default$1P = {
301
302
  };
302
303
  const lang = vue.ref("zh-CN");
303
304
  const messages = vue.reactive({
304
- "zh-CN": stdin_default$1P
305
+ "zh-CN": stdin_default$1Q
305
306
  });
306
307
  const Locale = {
307
308
  messages() {
@@ -316,11 +317,11 @@ const Locale = {
316
317
  }
317
318
  };
318
319
  const useCurrentLang = () => lang;
319
- var stdin_default$1O = Locale;
320
+ var stdin_default$1P = Locale;
320
321
  function createTranslate(name2) {
321
322
  const prefix = camelize(name2) + ".";
322
323
  return (path, ...args) => {
323
- const messages2 = stdin_default$1O.messages();
324
+ const messages2 = stdin_default$1P.messages();
324
325
  const message = get(messages2, prefix + path) || get(messages2, path);
325
326
  return isFunction(message) ? message(...args) : message;
326
327
  };
@@ -364,6 +365,7 @@ function createNamespace(name2) {
364
365
  const BORDER = "van-hairline";
365
366
  const BORDER_TOP = `${BORDER}--top`;
366
367
  const BORDER_LEFT = `${BORDER}--left`;
368
+ const BORDER_RIGHT = `${BORDER}--right`;
367
369
  const BORDER_BOTTOM = `${BORDER}--bottom`;
368
370
  const BORDER_SURROUND = `${BORDER}--surround`;
369
371
  const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
@@ -442,20 +444,20 @@ function usePlaceholder(contentRef, bem2) {
442
444
  }
443
445
  }, [renderContent()]);
444
446
  }
445
- const [name$1E, bem$1z] = createNamespace("action-bar");
446
- const ACTION_BAR_KEY = Symbol(name$1E);
447
+ const [name$1F, bem$1A] = createNamespace("action-bar");
448
+ const ACTION_BAR_KEY = Symbol(name$1F);
447
449
  const actionBarProps = {
448
450
  placeholder: Boolean,
449
451
  safeAreaInsetBottom: truthProp
450
452
  };
451
- var stdin_default$1N = vue.defineComponent({
452
- name: name$1E,
453
+ var stdin_default$1O = vue.defineComponent({
454
+ name: name$1F,
453
455
  props: actionBarProps,
454
456
  setup(props, {
455
457
  slots
456
458
  }) {
457
459
  const root = vue.ref();
458
- const renderPlaceholder = usePlaceholder(root, bem$1z);
460
+ const renderPlaceholder = usePlaceholder(root, bem$1A);
459
461
  const {
460
462
  linkChildren
461
463
  } = use.useChildren(ACTION_BAR_KEY);
@@ -464,7 +466,7 @@ var stdin_default$1N = vue.defineComponent({
464
466
  var _a;
465
467
  return vue.createVNode("div", {
466
468
  "ref": root,
467
- "class": [bem$1z(), {
469
+ "class": [bem$1A(), {
468
470
  "van-safe-area-bottom": props.safeAreaInsetBottom
469
471
  }]
470
472
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
@@ -477,7 +479,7 @@ var stdin_default$1N = vue.defineComponent({
477
479
  };
478
480
  }
479
481
  });
480
- const ActionBar = withInstall(stdin_default$1N);
482
+ const ActionBar = withInstall(stdin_default$1O);
481
483
  function useExpose(apis) {
482
484
  const instance2 = vue.getCurrentInstance();
483
485
  if (instance2) {
@@ -505,7 +507,7 @@ function useRoute() {
505
507
  const vm = vue.getCurrentInstance().proxy;
506
508
  return () => route(vm);
507
509
  }
508
- const [name$1D, bem$1y] = createNamespace("badge");
510
+ const [name$1E, bem$1z] = createNamespace("badge");
509
511
  const badgeProps = {
510
512
  dot: Boolean,
511
513
  max: numericProp,
@@ -516,8 +518,8 @@ const badgeProps = {
516
518
  showZero: truthProp,
517
519
  position: makeStringProp("top-right")
518
520
  };
519
- var stdin_default$1M = vue.defineComponent({
520
- name: name$1D,
521
+ var stdin_default$1N = vue.defineComponent({
522
+ name: name$1E,
521
523
  props: badgeProps,
522
524
  setup(props, {
523
525
  slots
@@ -580,7 +582,7 @@ var stdin_default$1M = vue.defineComponent({
580
582
  const renderBadge = () => {
581
583
  if (hasContent() || props.dot) {
582
584
  return vue.createVNode("div", {
583
- "class": bem$1y([props.position, {
585
+ "class": bem$1z([props.position, {
584
586
  dot: props.dot,
585
587
  fixed: !!slots.default
586
588
  }]),
@@ -594,7 +596,7 @@ var stdin_default$1M = vue.defineComponent({
594
596
  tag
595
597
  } = props;
596
598
  return vue.createVNode(tag, {
597
- "class": bem$1y("wrapper")
599
+ "class": bem$1z("wrapper")
598
600
  }, {
599
601
  default: () => [slots.default(), renderBadge()]
600
602
  });
@@ -603,14 +605,14 @@ var stdin_default$1M = vue.defineComponent({
603
605
  };
604
606
  }
605
607
  });
606
- const Badge = withInstall(stdin_default$1M);
608
+ const Badge = withInstall(stdin_default$1N);
607
609
  let globalZIndex = 2e3;
608
610
  const useGlobalZIndex = () => ++globalZIndex;
609
611
  const setGlobalZIndex = (val) => {
610
612
  globalZIndex = val;
611
613
  };
612
- const [name$1C, bem$1x] = createNamespace("config-provider");
613
- const CONFIG_PROVIDER_KEY = Symbol(name$1C);
614
+ const [name$1D, bem$1y] = createNamespace("config-provider");
615
+ const CONFIG_PROVIDER_KEY = Symbol(name$1D);
614
616
  const configProviderProps = {
615
617
  tag: makeStringProp("div"),
616
618
  theme: makeStringProp("light"),
@@ -627,8 +629,8 @@ function mapThemeVarsToCSSVars(themeVars) {
627
629
  });
628
630
  return cssVars;
629
631
  }
630
- var stdin_default$1L = vue.defineComponent({
631
- name: name$1C,
632
+ var stdin_default$1M = vue.defineComponent({
633
+ name: name$1D,
632
634
  props: configProviderProps,
633
635
  setup(props, {
634
636
  slots
@@ -660,7 +662,7 @@ var stdin_default$1L = vue.defineComponent({
660
662
  }
661
663
  });
662
664
  return () => vue.createVNode(props.tag, {
663
- "class": bem$1x(),
665
+ "class": bem$1y(),
664
666
  "style": style.value
665
667
  }, {
666
668
  default: () => {
@@ -670,7 +672,7 @@ var stdin_default$1L = vue.defineComponent({
670
672
  });
671
673
  }
672
674
  });
673
- const [name$1B, bem$1w] = createNamespace("icon");
675
+ const [name$1C, bem$1x] = createNamespace("icon");
674
676
  const isImage$1 = (name2) => name2 == null ? void 0 : name2.includes("/");
675
677
  const iconProps = {
676
678
  dot: Boolean,
@@ -682,14 +684,14 @@ const iconProps = {
682
684
  badgeProps: Object,
683
685
  classPrefix: String
684
686
  };
685
- var stdin_default$1K = vue.defineComponent({
686
- name: name$1B,
687
+ var stdin_default$1L = vue.defineComponent({
688
+ name: name$1C,
687
689
  props: iconProps,
688
690
  setup(props, {
689
691
  slots
690
692
  }) {
691
693
  const config = vue.inject(CONFIG_PROVIDER_KEY, null);
692
- const classPrefix = vue.computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1w());
694
+ const classPrefix = vue.computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1x());
693
695
  return () => {
694
696
  const {
695
697
  tag,
@@ -713,7 +715,7 @@ var stdin_default$1K = vue.defineComponent({
713
715
  default: () => {
714
716
  var _a;
715
717
  return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && vue.createVNode("img", {
716
- "class": bem$1w("image"),
718
+ "class": bem$1x("image"),
717
719
  "src": name2
718
720
  }, null)];
719
721
  }
@@ -721,13 +723,13 @@ var stdin_default$1K = vue.defineComponent({
721
723
  };
722
724
  }
723
725
  });
724
- const Icon = withInstall(stdin_default$1K);
725
- const [name$1A, bem$1v] = createNamespace("loading");
726
+ const Icon = withInstall(stdin_default$1L);
727
+ const [name$1B, bem$1w] = createNamespace("loading");
726
728
  const SpinIcon = Array(12).fill(null).map((_, index) => vue.createVNode("i", {
727
- "class": bem$1v("line", String(index + 1))
729
+ "class": bem$1w("line", String(index + 1))
728
730
  }, null));
729
731
  const CircularIcon = vue.createVNode("svg", {
730
- "class": bem$1v("circular"),
732
+ "class": bem$1w("circular"),
731
733
  "viewBox": "25 25 50 50"
732
734
  }, [vue.createVNode("circle", {
733
735
  "cx": "50",
@@ -743,8 +745,8 @@ const loadingProps = {
743
745
  textSize: numericProp,
744
746
  textColor: String
745
747
  };
746
- var stdin_default$1J = vue.defineComponent({
747
- name: name$1A,
748
+ var stdin_default$1K = vue.defineComponent({
749
+ name: name$1B,
748
750
  props: loadingProps,
749
751
  setup(props, {
750
752
  slots
@@ -755,7 +757,7 @@ var stdin_default$1J = vue.defineComponent({
755
757
  const renderIcon = () => {
756
758
  const DefaultIcon = props.type === "spinner" ? SpinIcon : CircularIcon;
757
759
  return vue.createVNode("span", {
758
- "class": bem$1v("spinner", props.type),
760
+ "class": bem$1w("spinner", props.type),
759
761
  "style": spinnerStyle.value
760
762
  }, [slots.icon ? slots.icon() : DefaultIcon]);
761
763
  };
@@ -763,7 +765,7 @@ var stdin_default$1J = vue.defineComponent({
763
765
  var _a;
764
766
  if (slots.default) {
765
767
  return vue.createVNode("span", {
766
- "class": bem$1v("text"),
768
+ "class": bem$1w("text"),
767
769
  "style": {
768
770
  fontSize: addUnit(props.textSize),
769
771
  color: (_a = props.textColor) != null ? _a : props.color
@@ -777,7 +779,7 @@ var stdin_default$1J = vue.defineComponent({
777
779
  vertical
778
780
  } = props;
779
781
  return vue.createVNode("div", {
780
- "class": bem$1v([type, {
782
+ "class": bem$1w([type, {
781
783
  vertical
782
784
  }]),
783
785
  "aria-live": "polite",
@@ -786,8 +788,8 @@ var stdin_default$1J = vue.defineComponent({
786
788
  };
787
789
  }
788
790
  });
789
- const Loading = withInstall(stdin_default$1J);
790
- const [name$1z, bem$1u] = createNamespace("button");
791
+ const Loading = withInstall(stdin_default$1K);
792
+ const [name$1A, bem$1v] = createNamespace("button");
791
793
  const buttonProps = extend({}, routeProps, {
792
794
  tag: makeStringProp("button"),
793
795
  text: String,
@@ -809,8 +811,8 @@ const buttonProps = extend({}, routeProps, {
809
811
  loadingType: String,
810
812
  iconPosition: makeStringProp("left")
811
813
  });
812
- var stdin_default$1I = vue.defineComponent({
813
- name: name$1z,
814
+ var stdin_default$1J = vue.defineComponent({
815
+ name: name$1A,
814
816
  props: buttonProps,
815
817
  emits: ["click"],
816
818
  setup(props, {
@@ -825,7 +827,7 @@ var stdin_default$1I = vue.defineComponent({
825
827
  return vue.createVNode(Loading, {
826
828
  "size": props.loadingSize,
827
829
  "type": props.loadingType,
828
- "class": bem$1u("loading")
830
+ "class": bem$1v("loading")
829
831
  }, null);
830
832
  };
831
833
  const renderIcon = () => {
@@ -834,13 +836,13 @@ var stdin_default$1I = vue.defineComponent({
834
836
  }
835
837
  if (slots.icon) {
836
838
  return vue.createVNode("div", {
837
- "class": bem$1u("icon")
839
+ "class": bem$1v("icon")
838
840
  }, [slots.icon()]);
839
841
  }
840
842
  if (props.icon) {
841
843
  return vue.createVNode(Icon, {
842
844
  "name": props.icon,
843
- "class": bem$1u("icon"),
845
+ "class": bem$1v("icon"),
844
846
  "classPrefix": props.iconPrefix
845
847
  }, null);
846
848
  }
@@ -854,7 +856,7 @@ var stdin_default$1I = vue.defineComponent({
854
856
  }
855
857
  if (text) {
856
858
  return vue.createVNode("span", {
857
- "class": bem$1u("text")
859
+ "class": bem$1v("text")
858
860
  }, [text]);
859
861
  }
860
862
  };
@@ -901,7 +903,7 @@ var stdin_default$1I = vue.defineComponent({
901
903
  nativeType,
902
904
  iconPosition
903
905
  } = props;
904
- const classes = [bem$1u([type, size, {
906
+ const classes = [bem$1v([type, size, {
905
907
  plain,
906
908
  block,
907
909
  round,
@@ -920,14 +922,14 @@ var stdin_default$1I = vue.defineComponent({
920
922
  "onClick": onClick
921
923
  }, {
922
924
  default: () => [vue.createVNode("div", {
923
- "class": bem$1u("content")
925
+ "class": bem$1v("content")
924
926
  }, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
925
927
  });
926
928
  };
927
929
  }
928
930
  });
929
- const Button = withInstall(stdin_default$1I);
930
- const [name$1y, bem$1t] = createNamespace("action-bar-button");
931
+ const Button = withInstall(stdin_default$1J);
932
+ const [name$1z, bem$1u] = createNamespace("action-bar-button");
931
933
  const actionBarButtonProps = extend({}, routeProps, {
932
934
  type: String,
933
935
  text: String,
@@ -936,8 +938,8 @@ const actionBarButtonProps = extend({}, routeProps, {
936
938
  loading: Boolean,
937
939
  disabled: Boolean
938
940
  });
939
- var stdin_default$1H = vue.defineComponent({
940
- name: name$1y,
941
+ var stdin_default$1I = vue.defineComponent({
942
+ name: name$1z,
941
943
  props: actionBarButtonProps,
942
944
  setup(props, {
943
945
  slots
@@ -972,7 +974,7 @@ var stdin_default$1H = vue.defineComponent({
972
974
  disabled
973
975
  } = props;
974
976
  return vue.createVNode(Button, {
975
- "class": bem$1t([type, {
977
+ "class": bem$1u([type, {
976
978
  last: isLast.value,
977
979
  first: isFirst.value
978
980
  }]),
@@ -989,8 +991,8 @@ var stdin_default$1H = vue.defineComponent({
989
991
  };
990
992
  }
991
993
  });
992
- const ActionBarButton = withInstall(stdin_default$1H);
993
- const [name$1x, bem$1s] = createNamespace("action-bar-icon");
994
+ const ActionBarButton = withInstall(stdin_default$1I);
995
+ const [name$1y, bem$1t] = createNamespace("action-bar-icon");
994
996
  const actionBarIconProps = extend({}, routeProps, {
995
997
  dot: Boolean,
996
998
  text: String,
@@ -1001,8 +1003,8 @@ const actionBarIconProps = extend({}, routeProps, {
1001
1003
  badgeProps: Object,
1002
1004
  iconPrefix: String
1003
1005
  });
1004
- var stdin_default$1G = vue.defineComponent({
1005
- name: name$1x,
1006
+ var stdin_default$1H = vue.defineComponent({
1007
+ name: name$1y,
1006
1008
  props: actionBarIconProps,
1007
1009
  setup(props, {
1008
1010
  slots
@@ -1022,7 +1024,7 @@ var stdin_default$1G = vue.defineComponent({
1022
1024
  if (slots.icon) {
1023
1025
  return vue.createVNode(Badge, vue.mergeProps({
1024
1026
  "dot": dot,
1025
- "class": bem$1s("icon"),
1027
+ "class": bem$1t("icon"),
1026
1028
  "content": badge
1027
1029
  }, badgeProps2), {
1028
1030
  default: slots.icon
@@ -1034,20 +1036,20 @@ var stdin_default$1G = vue.defineComponent({
1034
1036
  "name": icon,
1035
1037
  "badge": badge,
1036
1038
  "color": color,
1037
- "class": [bem$1s("icon"), iconClass],
1039
+ "class": [bem$1t("icon"), iconClass],
1038
1040
  "badgeProps": badgeProps2,
1039
1041
  "classPrefix": iconPrefix
1040
1042
  }, null);
1041
1043
  };
1042
1044
  return () => vue.createVNode("div", {
1043
1045
  "role": "button",
1044
- "class": bem$1s(),
1046
+ "class": bem$1t(),
1045
1047
  "tabindex": 0,
1046
1048
  "onClick": route2
1047
1049
  }, [renderIcon(), slots.default ? slots.default() : props.text]);
1048
1050
  }
1049
1051
  });
1050
- const ActionBarIcon = withInstall(stdin_default$1G);
1052
+ const ActionBarIcon = withInstall(stdin_default$1H);
1051
1053
  const popupSharedProps = {
1052
1054
  // whether to show popup
1053
1055
  show: Boolean,
@@ -1198,7 +1200,7 @@ function useLazyRender(show) {
1198
1200
  );
1199
1201
  return (render) => () => inited.value ? render() : null;
1200
1202
  }
1201
- const [name$1w, bem$1r] = createNamespace("overlay");
1203
+ const [name$1x, bem$1s] = createNamespace("overlay");
1202
1204
  const overlayProps = {
1203
1205
  show: Boolean,
1204
1206
  zIndex: numericProp,
@@ -1208,8 +1210,8 @@ const overlayProps = {
1208
1210
  lazyRender: truthProp,
1209
1211
  customStyle: Object
1210
1212
  };
1211
- var stdin_default$1F = vue.defineComponent({
1212
- name: name$1w,
1213
+ var stdin_default$1G = vue.defineComponent({
1214
+ name: name$1x,
1213
1215
  props: overlayProps,
1214
1216
  setup(props, {
1215
1217
  slots
@@ -1230,7 +1232,7 @@ var stdin_default$1F = vue.defineComponent({
1230
1232
  return vue.withDirectives(vue.createVNode("div", {
1231
1233
  "ref": root,
1232
1234
  "style": style,
1233
- "class": [bem$1r(), props.className]
1235
+ "class": [bem$1s(), props.className]
1234
1236
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vue.vShow, props.show]]);
1235
1237
  });
1236
1238
  use.useEventListener("touchmove", onTouchMove, {
@@ -1244,7 +1246,7 @@ var stdin_default$1F = vue.defineComponent({
1244
1246
  });
1245
1247
  }
1246
1248
  });
1247
- const Overlay = withInstall(stdin_default$1F);
1249
+ const Overlay = withInstall(stdin_default$1G);
1248
1250
  const popupProps$2 = extend({}, popupSharedProps, {
1249
1251
  round: Boolean,
1250
1252
  position: makeStringProp("center"),
@@ -1257,9 +1259,9 @@ const popupProps$2 = extend({}, popupSharedProps, {
1257
1259
  safeAreaInsetTop: Boolean,
1258
1260
  safeAreaInsetBottom: Boolean
1259
1261
  });
1260
- const [name$1v, bem$1q] = createNamespace("popup");
1261
- var stdin_default$1E = vue.defineComponent({
1262
- name: name$1v,
1262
+ const [name$1w, bem$1r] = createNamespace("popup");
1263
+ var stdin_default$1F = vue.defineComponent({
1264
+ name: name$1w,
1263
1265
  inheritAttrs: false,
1264
1266
  props: popupProps$2,
1265
1267
  emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
@@ -1333,13 +1335,20 @@ var stdin_default$1E = vue.defineComponent({
1333
1335
  "role": "button",
1334
1336
  "tabindex": 0,
1335
1337
  "name": props.closeIcon,
1336
- "class": [bem$1q("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1338
+ "class": [bem$1r("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1337
1339
  "classPrefix": props.iconPrefix,
1338
1340
  "onClick": onClickCloseIcon
1339
1341
  }, null);
1340
1342
  }
1341
1343
  };
1342
- const onOpened = () => emit("opened");
1344
+ let timer2;
1345
+ const onOpened = () => {
1346
+ if (timer2)
1347
+ clearTimeout(timer2);
1348
+ timer2 = setTimeout(() => {
1349
+ emit("opened");
1350
+ });
1351
+ };
1343
1352
  const onClosed = () => emit("closed");
1344
1353
  const onKeydown = (event) => emit("keydown", event);
1345
1354
  const renderPopup = lazyRender(() => {
@@ -1355,7 +1364,7 @@ var stdin_default$1E = vue.defineComponent({
1355
1364
  "style": style.value,
1356
1365
  "role": "dialog",
1357
1366
  "tabindex": 0,
1358
- "class": [bem$1q({
1367
+ "class": [bem$1r({
1359
1368
  round,
1360
1369
  [position]: position
1361
1370
  }), {
@@ -1436,8 +1445,8 @@ var stdin_default$1E = vue.defineComponent({
1436
1445
  };
1437
1446
  }
1438
1447
  });
1439
- const Popup = withInstall(stdin_default$1E);
1440
- const [name$1u, bem$1p] = createNamespace("action-sheet");
1448
+ const Popup = withInstall(stdin_default$1F);
1449
+ const [name$1v, bem$1q] = createNamespace("action-sheet");
1441
1450
  const actionSheetProps = extend({}, popupSharedProps, {
1442
1451
  title: String,
1443
1452
  round: truthProp,
@@ -1451,8 +1460,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
1451
1460
  safeAreaInsetBottom: truthProp
1452
1461
  });
1453
1462
  const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1454
- var stdin_default$1D = vue.defineComponent({
1455
- name: name$1u,
1463
+ var stdin_default$1E = vue.defineComponent({
1464
+ name: name$1v,
1456
1465
  props: actionSheetProps,
1457
1466
  emits: ["select", "cancel", "update:show"],
1458
1467
  setup(props, {
@@ -1467,10 +1476,10 @@ var stdin_default$1D = vue.defineComponent({
1467
1476
  const renderHeader = () => {
1468
1477
  if (props.title) {
1469
1478
  return vue.createVNode("div", {
1470
- "class": bem$1p("header")
1479
+ "class": bem$1q("header")
1471
1480
  }, [props.title, props.closeable && vue.createVNode(Icon, {
1472
1481
  "name": props.closeIcon,
1473
- "class": [bem$1p("close"), HAPTICS_FEEDBACK],
1482
+ "class": [bem$1q("close"), HAPTICS_FEEDBACK],
1474
1483
  "onClick": onCancel
1475
1484
  }, null)]);
1476
1485
  }
@@ -1478,10 +1487,10 @@ var stdin_default$1D = vue.defineComponent({
1478
1487
  const renderCancel = () => {
1479
1488
  if (slots.cancel || props.cancelText) {
1480
1489
  return [vue.createVNode("div", {
1481
- "class": bem$1p("gap")
1490
+ "class": bem$1q("gap")
1482
1491
  }, null), vue.createVNode("button", {
1483
1492
  "type": "button",
1484
- "class": bem$1p("cancel"),
1493
+ "class": bem$1q("cancel"),
1485
1494
  "onClick": onCancel
1486
1495
  }, [slots.cancel ? slots.cancel() : props.cancelText])];
1487
1496
  }
@@ -1489,7 +1498,7 @@ var stdin_default$1D = vue.defineComponent({
1489
1498
  const renderActionContent = (action, index) => {
1490
1499
  if (action.loading) {
1491
1500
  return vue.createVNode(Loading, {
1492
- "class": bem$1p("loading-icon")
1501
+ "class": bem$1q("loading-icon")
1493
1502
  }, null);
1494
1503
  }
1495
1504
  if (slots.action) {
@@ -1499,9 +1508,9 @@ var stdin_default$1D = vue.defineComponent({
1499
1508
  });
1500
1509
  }
1501
1510
  return [vue.createVNode("span", {
1502
- "class": bem$1p("name")
1511
+ "class": bem$1q("name")
1503
1512
  }, [action.name]), action.subname && vue.createVNode("div", {
1504
- "class": bem$1p("subname")
1513
+ "class": bem$1q("subname")
1505
1514
  }, [action.subname])];
1506
1515
  };
1507
1516
  const renderAction = (action, index) => {
@@ -1529,7 +1538,7 @@ var stdin_default$1D = vue.defineComponent({
1529
1538
  "style": {
1530
1539
  color
1531
1540
  },
1532
- "class": [bem$1p("item", {
1541
+ "class": [bem$1q("item", {
1533
1542
  loading,
1534
1543
  disabled
1535
1544
  }), className],
@@ -1540,26 +1549,26 @@ var stdin_default$1D = vue.defineComponent({
1540
1549
  if (props.description || slots.description) {
1541
1550
  const content = slots.description ? slots.description() : props.description;
1542
1551
  return vue.createVNode("div", {
1543
- "class": bem$1p("description")
1552
+ "class": bem$1q("description")
1544
1553
  }, [content]);
1545
1554
  }
1546
1555
  };
1547
1556
  return () => vue.createVNode(Popup, vue.mergeProps({
1548
- "class": bem$1p(),
1557
+ "class": bem$1q(),
1549
1558
  "position": "bottom",
1550
1559
  "onUpdate:show": updateShow
1551
1560
  }, pick(props, popupInheritKeys$2)), {
1552
1561
  default: () => {
1553
1562
  var _a;
1554
1563
  return [renderHeader(), renderDescription(), vue.createVNode("div", {
1555
- "class": bem$1p("content")
1564
+ "class": bem$1q("content")
1556
1565
  }, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
1557
1566
  }
1558
1567
  });
1559
1568
  }
1560
1569
  });
1561
- const ActionSheet = withInstall(stdin_default$1D);
1562
- const [name$1t, bem$1o, t$k] = createNamespace("picker");
1570
+ const ActionSheet = withInstall(stdin_default$1E);
1571
+ const [name$1u, bem$1p, t$k] = createNamespace("picker");
1563
1572
  const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
1564
1573
  function getColumnsType(columns, fields) {
1565
1574
  const firstColumn = columns[0];
@@ -1628,10 +1637,10 @@ function assignDefaultFields(fields) {
1628
1637
  const DEFAULT_DURATION = 200;
1629
1638
  const MOMENTUM_TIME = 300;
1630
1639
  const MOMENTUM_DISTANCE = 15;
1631
- const [name$1s, bem$1n] = createNamespace("picker-column");
1632
- const PICKER_KEY = Symbol(name$1s);
1633
- var stdin_default$1C = vue.defineComponent({
1634
- name: name$1s,
1640
+ const [name$1t, bem$1o] = createNamespace("picker-column");
1641
+ const PICKER_KEY = Symbol(name$1t);
1642
+ var stdin_default$1D = vue.defineComponent({
1643
+ name: name$1t,
1635
1644
  props: {
1636
1645
  value: numericProp,
1637
1646
  fields: makeRequiredProp(Object),
@@ -1770,7 +1779,7 @@ var stdin_default$1C = vue.defineComponent({
1770
1779
  role: "button",
1771
1780
  style: optionStyle,
1772
1781
  tabindex: disabled ? -1 : 0,
1773
- class: [bem$1n("item", {
1782
+ class: [bem$1o("item", {
1774
1783
  disabled,
1775
1784
  selected: value === props.value
1776
1785
  }), option.className],
@@ -1798,7 +1807,7 @@ var stdin_default$1C = vue.defineComponent({
1798
1807
  });
1799
1808
  return () => vue.createVNode("div", {
1800
1809
  "ref": root,
1801
- "class": bem$1n(),
1810
+ "class": bem$1o(),
1802
1811
  "onTouchstartPassive": onTouchStart,
1803
1812
  "onTouchend": onTouchEnd,
1804
1813
  "onTouchcancel": onTouchEnd
@@ -1809,12 +1818,12 @@ var stdin_default$1C = vue.defineComponent({
1809
1818
  transitionDuration: `${currentDuration.value}ms`,
1810
1819
  transitionProperty: currentDuration.value ? "all" : "none"
1811
1820
  },
1812
- "class": bem$1n("wrapper"),
1821
+ "class": bem$1o("wrapper"),
1813
1822
  "onTransitionend": stopMomentum
1814
1823
  }, [renderOptions()])]);
1815
1824
  }
1816
1825
  });
1817
- const [name$1r] = createNamespace("picker-toolbar");
1826
+ const [name$1s] = createNamespace("picker-toolbar");
1818
1827
  const pickerToolbarProps = {
1819
1828
  title: String,
1820
1829
  cancelButtonText: String,
@@ -1822,8 +1831,8 @@ const pickerToolbarProps = {
1822
1831
  };
1823
1832
  const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
1824
1833
  const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
1825
- var stdin_default$1B = vue.defineComponent({
1826
- name: name$1r,
1834
+ var stdin_default$1C = vue.defineComponent({
1835
+ name: name$1s,
1827
1836
  props: pickerToolbarProps,
1828
1837
  emits: ["confirm", "cancel"],
1829
1838
  setup(props, {
@@ -1836,7 +1845,7 @@ var stdin_default$1B = vue.defineComponent({
1836
1845
  }
1837
1846
  if (props.title) {
1838
1847
  return vue.createVNode("div", {
1839
- "class": [bem$1o("title"), "van-ellipsis"]
1848
+ "class": [bem$1p("title"), "van-ellipsis"]
1840
1849
  }, [props.title]);
1841
1850
  }
1842
1851
  };
@@ -1846,7 +1855,7 @@ var stdin_default$1B = vue.defineComponent({
1846
1855
  const text = props.cancelButtonText || t$k("cancel");
1847
1856
  return vue.createVNode("button", {
1848
1857
  "type": "button",
1849
- "class": [bem$1o("cancel"), HAPTICS_FEEDBACK],
1858
+ "class": [bem$1p("cancel"), HAPTICS_FEEDBACK],
1850
1859
  "onClick": onCancel
1851
1860
  }, [slots.cancel ? slots.cancel() : text]);
1852
1861
  };
@@ -1854,12 +1863,12 @@ var stdin_default$1B = vue.defineComponent({
1854
1863
  const text = props.confirmButtonText || t$k("confirm");
1855
1864
  return vue.createVNode("button", {
1856
1865
  "type": "button",
1857
- "class": [bem$1o("confirm"), HAPTICS_FEEDBACK],
1866
+ "class": [bem$1p("confirm"), HAPTICS_FEEDBACK],
1858
1867
  "onClick": onConfirm
1859
1868
  }, [slots.confirm ? slots.confirm() : text]);
1860
1869
  };
1861
1870
  return () => vue.createVNode("div", {
1862
- "class": bem$1o("toolbar")
1871
+ "class": bem$1p("toolbar")
1863
1872
  }, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
1864
1873
  }
1865
1874
  });
@@ -1967,7 +1976,7 @@ function useVisibilityChange(target, onChange) {
1967
1976
  vue.onBeforeUnmount(unobserve);
1968
1977
  use.onMountedOrActivated(observe);
1969
1978
  }
1970
- const [name$1q, bem$1m] = createNamespace("sticky");
1979
+ const [name$1r, bem$1n] = createNamespace("sticky");
1971
1980
  const stickyProps = {
1972
1981
  zIndex: numericProp,
1973
1982
  position: makeStringProp("top"),
@@ -1975,8 +1984,8 @@ const stickyProps = {
1975
1984
  offsetTop: makeNumericProp(0),
1976
1985
  offsetBottom: makeNumericProp(0)
1977
1986
  };
1978
- var stdin_default$1A = vue.defineComponent({
1979
- name: name$1q,
1987
+ var stdin_default$1B = vue.defineComponent({
1988
+ name: name$1r,
1980
1989
  props: stickyProps,
1981
1990
  emits: ["scroll", "change"],
1982
1991
  setup(props, {
@@ -2089,7 +2098,7 @@ var stdin_default$1A = vue.defineComponent({
2089
2098
  "ref": root,
2090
2099
  "style": rootStyle.value
2091
2100
  }, [vue.createVNode("div", {
2092
- "class": bem$1m({
2101
+ "class": bem$1n({
2093
2102
  fixed: state.fixed && !isReset.value
2094
2103
  }),
2095
2104
  "style": stickyStyle.value
@@ -2097,8 +2106,8 @@ var stdin_default$1A = vue.defineComponent({
2097
2106
  };
2098
2107
  }
2099
2108
  });
2100
- const Sticky = withInstall(stdin_default$1A);
2101
- const [name$1p, bem$1l] = createNamespace("swipe");
2109
+ const Sticky = withInstall(stdin_default$1B);
2110
+ const [name$1q, bem$1m] = createNamespace("swipe");
2102
2111
  const swipeProps = {
2103
2112
  loop: truthProp,
2104
2113
  width: numericProp,
@@ -2113,9 +2122,9 @@ const swipeProps = {
2113
2122
  showIndicators: truthProp,
2114
2123
  stopPropagation: truthProp
2115
2124
  };
2116
- const SWIPE_KEY = Symbol(name$1p);
2117
- var stdin_default$1z = vue.defineComponent({
2118
- name: name$1p,
2125
+ const SWIPE_KEY = Symbol(name$1q);
2126
+ var stdin_default$1A = vue.defineComponent({
2127
+ name: name$1q,
2119
2128
  props: swipeProps,
2120
2129
  emits: ["change", "dragStart", "dragEnd"],
2121
2130
  setup(props, {
@@ -2393,7 +2402,7 @@ var stdin_default$1z = vue.defineComponent({
2393
2402
  } : void 0;
2394
2403
  return vue.createVNode("i", {
2395
2404
  "style": style,
2396
- "class": bem$1l("indicator", {
2405
+ "class": bem$1m("indicator", {
2397
2406
  active
2398
2407
  })
2399
2408
  }, null);
@@ -2407,7 +2416,7 @@ var stdin_default$1z = vue.defineComponent({
2407
2416
  }
2408
2417
  if (props.showIndicators && count.value > 1) {
2409
2418
  return vue.createVNode("div", {
2410
- "class": bem$1l("indicators", {
2419
+ "class": bem$1m("indicators", {
2411
2420
  vertical: props.vertical
2412
2421
  })
2413
2422
  }, [Array(count.value).fill("").map(renderDot)]);
@@ -2449,11 +2458,11 @@ var stdin_default$1z = vue.defineComponent({
2449
2458
  var _a;
2450
2459
  return vue.createVNode("div", {
2451
2460
  "ref": root,
2452
- "class": bem$1l()
2461
+ "class": bem$1m()
2453
2462
  }, [vue.createVNode("div", {
2454
2463
  "ref": track,
2455
2464
  "style": trackStyle.value,
2456
- "class": bem$1l("track", {
2465
+ "class": bem$1m("track", {
2457
2466
  vertical: props.vertical
2458
2467
  }),
2459
2468
  "onTouchstartPassive": onTouchStart,
@@ -2463,10 +2472,10 @@ var stdin_default$1z = vue.defineComponent({
2463
2472
  };
2464
2473
  }
2465
2474
  });
2466
- const Swipe = withInstall(stdin_default$1z);
2467
- const [name$1o, bem$1k] = createNamespace("tabs");
2468
- var stdin_default$1y = vue.defineComponent({
2469
- name: name$1o,
2475
+ const Swipe = withInstall(stdin_default$1A);
2476
+ const [name$1p, bem$1l] = createNamespace("tabs");
2477
+ var stdin_default$1z = vue.defineComponent({
2478
+ name: name$1p,
2470
2479
  props: {
2471
2480
  count: makeRequiredProp(Number),
2472
2481
  inited: Boolean,
@@ -2490,7 +2499,7 @@ var stdin_default$1y = vue.defineComponent({
2490
2499
  return vue.createVNode(Swipe, {
2491
2500
  "ref": swipeRef,
2492
2501
  "loop": false,
2493
- "class": bem$1k("track"),
2502
+ "class": bem$1l("track"),
2494
2503
  "duration": +props.duration * 1e3,
2495
2504
  "touchable": props.swipeable,
2496
2505
  "lazyRender": props.lazyRender,
@@ -2518,13 +2527,13 @@ var stdin_default$1y = vue.defineComponent({
2518
2527
  swipeRef
2519
2528
  });
2520
2529
  return () => vue.createVNode("div", {
2521
- "class": bem$1k("content", {
2530
+ "class": bem$1l("content", {
2522
2531
  animated: props.animated || props.swipeable
2523
2532
  })
2524
2533
  }, [renderChildren()]);
2525
2534
  }
2526
2535
  });
2527
- const [name$1n, bem$1j] = createNamespace("tabs");
2536
+ const [name$1o, bem$1k] = createNamespace("tabs");
2528
2537
  const tabsProps = {
2529
2538
  type: makeStringProp("line"),
2530
2539
  color: String,
@@ -2547,9 +2556,9 @@ const tabsProps = {
2547
2556
  titleActiveColor: String,
2548
2557
  titleInactiveColor: String
2549
2558
  };
2550
- const TABS_KEY = Symbol(name$1n);
2551
- var stdin_default$1x = vue.defineComponent({
2552
- name: name$1n,
2559
+ const TABS_KEY = Symbol(name$1o);
2560
+ var stdin_default$1y = vue.defineComponent({
2561
+ name: name$1o,
2553
2562
  props: tabsProps,
2554
2563
  emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
2555
2564
  setup(props, {
@@ -2747,7 +2756,7 @@ var stdin_default$1x = vue.defineComponent({
2747
2756
  const renderLine = () => {
2748
2757
  if (props.type === "line" && children.length) {
2749
2758
  return vue.createVNode("div", {
2750
- "class": bem$1j("line"),
2759
+ "class": bem$1k("line"),
2751
2760
  "style": state.lineStyle
2752
2761
  }, null);
2753
2762
  }
@@ -2761,13 +2770,13 @@ var stdin_default$1x = vue.defineComponent({
2761
2770
  } = props;
2762
2771
  const Header = [vue.createVNode("div", {
2763
2772
  "ref": sticky ? void 0 : wrapRef,
2764
- "class": [bem$1j("wrap"), {
2773
+ "class": [bem$1k("wrap"), {
2765
2774
  [BORDER_TOP_BOTTOM]: type === "line" && border
2766
2775
  }]
2767
2776
  }, [vue.createVNode("div", {
2768
2777
  "ref": navRef,
2769
2778
  "role": "tablist",
2770
- "class": bem$1j("nav", [type, {
2779
+ "class": bem$1k("nav", [type, {
2771
2780
  shrink: props.shrink,
2772
2781
  complete: scrollable.value
2773
2782
  }]),
@@ -2840,14 +2849,14 @@ var stdin_default$1x = vue.defineComponent({
2840
2849
  });
2841
2850
  return () => vue.createVNode("div", {
2842
2851
  "ref": root,
2843
- "class": bem$1j([props.type])
2852
+ "class": bem$1k([props.type])
2844
2853
  }, [props.sticky ? vue.createVNode(Sticky, {
2845
2854
  "container": root.value,
2846
2855
  "offsetTop": offsetTopPx.value,
2847
2856
  "onScroll": onStickyScroll
2848
2857
  }, {
2849
2858
  default: () => [renderHeader()]
2850
- }) : renderHeader(), vue.createVNode(stdin_default$1y, {
2859
+ }) : renderHeader(), vue.createVNode(stdin_default$1z, {
2851
2860
  "ref": contentRef,
2852
2861
  "count": children.length,
2853
2862
  "inited": state.inited,
@@ -2867,9 +2876,9 @@ var stdin_default$1x = vue.defineComponent({
2867
2876
  });
2868
2877
  const TAB_STATUS_KEY = Symbol();
2869
2878
  const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
2870
- const [name$1m, bem$1i] = createNamespace("tab");
2879
+ const [name$1n, bem$1j] = createNamespace("tab");
2871
2880
  const TabTitle = vue.defineComponent({
2872
- name: name$1m,
2881
+ name: name$1n,
2873
2882
  props: {
2874
2883
  id: String,
2875
2884
  dot: Boolean,
@@ -2918,7 +2927,7 @@ const TabTitle = vue.defineComponent({
2918
2927
  });
2919
2928
  const renderText = () => {
2920
2929
  const Text = vue.createVNode("span", {
2921
- "class": bem$1i("text", {
2930
+ "class": bem$1j("text", {
2922
2931
  ellipsis: !props.scrollable
2923
2932
  })
2924
2933
  }, [slots.title ? slots.title() : props.title]);
@@ -2936,7 +2945,7 @@ const TabTitle = vue.defineComponent({
2936
2945
  return () => vue.createVNode("div", {
2937
2946
  "id": props.id,
2938
2947
  "role": "tab",
2939
- "class": [bem$1i([props.type, {
2948
+ "class": [bem$1j([props.type, {
2940
2949
  grow: props.scrollable && !props.shrink,
2941
2950
  shrink: props.shrink,
2942
2951
  active: props.isActive,
@@ -2950,9 +2959,9 @@ const TabTitle = vue.defineComponent({
2950
2959
  }, [renderText()]);
2951
2960
  }
2952
2961
  });
2953
- const [name$1l, bem$1h] = createNamespace("swipe-item");
2954
- var stdin_default$1w = vue.defineComponent({
2955
- name: name$1l,
2962
+ const [name$1m, bem$1i] = createNamespace("swipe-item");
2963
+ var stdin_default$1x = vue.defineComponent({
2964
+ name: name$1m,
2956
2965
  setup(props, {
2957
2966
  slots
2958
2967
  }) {
@@ -3017,14 +3026,14 @@ var stdin_default$1w = vue.defineComponent({
3017
3026
  return () => {
3018
3027
  var _a;
3019
3028
  return vue.createVNode("div", {
3020
- "class": bem$1h(),
3029
+ "class": bem$1i(),
3021
3030
  "style": style.value
3022
3031
  }, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
3023
3032
  };
3024
3033
  }
3025
3034
  });
3026
- const SwipeItem = withInstall(stdin_default$1w);
3027
- const [name$1k, bem$1g] = createNamespace("tab");
3035
+ const SwipeItem = withInstall(stdin_default$1x);
3036
+ const [name$1l, bem$1h] = createNamespace("tab");
3028
3037
  const tabProps = extend({}, routeProps, {
3029
3038
  dot: Boolean,
3030
3039
  name: numericProp,
@@ -3035,8 +3044,8 @@ const tabProps = extend({}, routeProps, {
3035
3044
  titleStyle: [String, Object],
3036
3045
  showZeroBadge: truthProp
3037
3046
  });
3038
- var stdin_default$1v = vue.defineComponent({
3039
- name: name$1k,
3047
+ var stdin_default$1w = vue.defineComponent({
3048
+ name: name$1l,
3040
3049
  props: tabProps,
3041
3050
  setup(props, {
3042
3051
  slots
@@ -3073,12 +3082,22 @@ var stdin_default$1v = vue.defineComponent({
3073
3082
  }
3074
3083
  return isActive;
3075
3084
  });
3085
+ const parsedClass = vue.ref("");
3086
+ const parsedStyle = vue.ref("");
3087
+ vue.watchEffect(() => {
3088
+ const {
3089
+ titleClass,
3090
+ titleStyle
3091
+ } = props;
3092
+ parsedClass.value = titleClass ? vue.normalizeClass(titleClass) : "";
3093
+ parsedStyle.value = titleStyle && typeof titleStyle !== "string" ? shared.stringifyStyle(vue.normalizeStyle(titleStyle)) : titleStyle;
3094
+ });
3076
3095
  const renderTitle = (onClickTab) => vue.createVNode(TabTitle, vue.mergeProps({
3077
3096
  "key": id,
3078
3097
  "id": `${parent.id}-${index.value}`,
3079
3098
  "ref": parent.setTitleRefs(index.value),
3080
- "style": props.titleStyle,
3081
- "class": props.titleClass,
3099
+ "style": parsedStyle.value,
3100
+ "class": parsedClass.value,
3082
3101
  "isActive": active.value,
3083
3102
  "controls": id,
3084
3103
  "scrollable": parent.scrollable.value,
@@ -3124,7 +3143,7 @@ var stdin_default$1v = vue.defineComponent({
3124
3143
  return vue.createVNode(SwipeItem, {
3125
3144
  "id": id,
3126
3145
  "role": "tabpanel",
3127
- "class": bem$1g("panel-wrapper", {
3146
+ "class": bem$1h("panel-wrapper", {
3128
3147
  inactive: hasInactiveClass.value
3129
3148
  }),
3130
3149
  "tabindex": active.value ? 0 : -1,
@@ -3134,7 +3153,7 @@ var stdin_default$1v = vue.defineComponent({
3134
3153
  default: () => {
3135
3154
  var _a2;
3136
3155
  return [vue.createVNode("div", {
3137
- "class": bem$1g("panel")
3156
+ "class": bem$1h("panel")
3138
3157
  }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
3139
3158
  }
3140
3159
  });
@@ -3144,24 +3163,24 @@ var stdin_default$1v = vue.defineComponent({
3144
3163
  return vue.withDirectives(vue.createVNode("div", {
3145
3164
  "id": id,
3146
3165
  "role": "tabpanel",
3147
- "class": bem$1g("panel"),
3166
+ "class": bem$1h("panel"),
3148
3167
  "tabindex": show ? 0 : -1,
3149
3168
  "aria-labelledby": label
3150
3169
  }, [Content]), [[vue.vShow, show]]);
3151
3170
  };
3152
3171
  }
3153
3172
  });
3154
- const Tab = withInstall(stdin_default$1v);
3155
- const Tabs = withInstall(stdin_default$1x);
3156
- const [name$1j, bem$1f] = createNamespace("picker-group");
3157
- const PICKER_GROUP_KEY = Symbol(name$1j);
3173
+ const Tab = withInstall(stdin_default$1w);
3174
+ const Tabs = withInstall(stdin_default$1y);
3175
+ const [name$1k, bem$1g] = createNamespace("picker-group");
3176
+ const PICKER_GROUP_KEY = Symbol(name$1k);
3158
3177
  const pickerGroupProps = extend({
3159
3178
  tabs: makeArrayProp(),
3160
3179
  activeTab: makeNumericProp(0),
3161
3180
  nextStepText: String
3162
3181
  }, pickerToolbarProps);
3163
- var stdin_default$1u = vue.defineComponent({
3164
- name: name$1j,
3182
+ var stdin_default$1v = vue.defineComponent({
3183
+ name: name$1k,
3165
3184
  props: pickerGroupProps,
3166
3185
  emits: ["confirm", "cancel", "update:activeTab"],
3167
3186
  setup(props, {
@@ -3188,8 +3207,8 @@ var stdin_default$1u = vue.defineComponent({
3188
3207
  const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
3189
3208
  const confirmButtonText = showNextButton() ? props.nextStepText : props.confirmButtonText;
3190
3209
  return vue.createVNode("div", {
3191
- "class": bem$1f()
3192
- }, [vue.createVNode(stdin_default$1B, {
3210
+ "class": bem$1g()
3211
+ }, [vue.createVNode(stdin_default$1C, {
3193
3212
  "title": props.title,
3194
3213
  "cancelButtonText": props.cancelButtonText,
3195
3214
  "confirmButtonText": confirmButtonText,
@@ -3198,14 +3217,14 @@ var stdin_default$1u = vue.defineComponent({
3198
3217
  }, pick(slots, pickerToolbarSlots)), vue.createVNode(Tabs, {
3199
3218
  "active": activeTab.value,
3200
3219
  "onUpdate:active": ($event) => activeTab.value = $event,
3201
- "class": bem$1f("tabs"),
3220
+ "class": bem$1g("tabs"),
3202
3221
  "shrink": true,
3203
3222
  "animated": true,
3204
3223
  "lazyRender": false
3205
3224
  }, {
3206
3225
  default: () => [props.tabs.map((title, index) => vue.createVNode(Tab, {
3207
3226
  "title": title,
3208
- "titleClass": bem$1f("tab-title")
3227
+ "titleClass": bem$1g("tab-title")
3209
3228
  }, {
3210
3229
  default: () => [childNodes == null ? void 0 : childNodes[index]]
3211
3230
  }))]
@@ -3228,8 +3247,8 @@ const pickerProps = extend({}, pickerSharedProps, {
3228
3247
  toolbarPosition: makeStringProp("top"),
3229
3248
  columnsFieldNames: Object
3230
3249
  });
3231
- var stdin_default$1t = vue.defineComponent({
3232
- name: name$1t,
3250
+ var stdin_default$1u = vue.defineComponent({
3251
+ name: name$1u,
3233
3252
  props: pickerProps,
3234
3253
  emits: ["confirm", "cancel", "change", "scrollInto", "clickOption", "update:modelValue"],
3235
3254
  setup(props, {
@@ -3310,7 +3329,7 @@ var stdin_default$1t = vue.defineComponent({
3310
3329
  return params;
3311
3330
  };
3312
3331
  const cancel = () => emit("cancel", getEventParams());
3313
- const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1C, {
3332
+ const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1D, {
3314
3333
  "value": selectedValues.value[columnIndex],
3315
3334
  "fields": fields.value,
3316
3335
  "options": options,
@@ -3339,10 +3358,10 @@ var stdin_default$1t = vue.defineComponent({
3339
3358
  backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
3340
3359
  };
3341
3360
  return [vue.createVNode("div", {
3342
- "class": bem$1o("mask"),
3361
+ "class": bem$1p("mask"),
3343
3362
  "style": maskStyle
3344
3363
  }, null), vue.createVNode("div", {
3345
- "class": [BORDER_UNSET_TOP_BOTTOM, bem$1o("frame")],
3364
+ "class": [BORDER_UNSET_TOP_BOTTOM, bem$1p("frame")],
3346
3365
  "style": frameStyle
3347
3366
  }, null)];
3348
3367
  }
@@ -3354,13 +3373,13 @@ var stdin_default$1t = vue.defineComponent({
3354
3373
  };
3355
3374
  return vue.createVNode("div", {
3356
3375
  "ref": columnsRef,
3357
- "class": bem$1o("columns"),
3376
+ "class": bem$1p("columns"),
3358
3377
  "style": columnsStyle
3359
3378
  }, [renderColumnItems(), renderMask(wrapHeight)]);
3360
3379
  };
3361
3380
  const renderToolbar = () => {
3362
3381
  if (props.showToolbar && !parent) {
3363
- return vue.createVNode(stdin_default$1B, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
3382
+ return vue.createVNode(stdin_default$1C, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
3364
3383
  "onConfirm": confirm,
3365
3384
  "onCancel": cancel
3366
3385
  }), pick(slots, pickerToolbarSlots));
@@ -3403,9 +3422,9 @@ var stdin_default$1t = vue.defineComponent({
3403
3422
  return () => {
3404
3423
  var _a, _b;
3405
3424
  return vue.createVNode("div", {
3406
- "class": bem$1o()
3425
+ "class": bem$1p()
3407
3426
  }, [props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? vue.createVNode(Loading, {
3408
- "class": bem$1o("loading")
3427
+ "class": bem$1p("loading")
3409
3428
  }, 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]);
3410
3429
  };
3411
3430
  }
@@ -3496,9 +3515,9 @@ function formatDataForCascade({
3496
3515
  }
3497
3516
  return options;
3498
3517
  }
3499
- const Picker = withInstall(stdin_default$1t);
3500
- const [name$1i, bem$1e] = createNamespace("area");
3501
- const areaProps = extend({}, pickerSharedProps, {
3518
+ const Picker = withInstall(stdin_default$1u);
3519
+ const [name$1j, bem$1f] = createNamespace("area");
3520
+ const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
3502
3521
  modelValue: String,
3503
3522
  columnsNum: makeNumericProp(3),
3504
3523
  columnsPlaceholder: makeArrayProp(),
@@ -3507,8 +3526,8 @@ const areaProps = extend({}, pickerSharedProps, {
3507
3526
  default: () => ({})
3508
3527
  }
3509
3528
  });
3510
- var stdin_default$1s = vue.defineComponent({
3511
- name: name$1i,
3529
+ var stdin_default$1t = vue.defineComponent({
3530
+ name: name$1j,
3512
3531
  props: areaProps,
3513
3532
  emits: ["change", "confirm", "cancel", "update:modelValue"],
3514
3533
  setup(props, {
@@ -3555,7 +3574,7 @@ var stdin_default$1s = vue.defineComponent({
3555
3574
  "ref": picker,
3556
3575
  "modelValue": codes.value,
3557
3576
  "onUpdate:modelValue": ($event) => codes.value = $event,
3558
- "class": bem$1e(),
3577
+ "class": bem$1f(),
3559
3578
  "columns": columns.value,
3560
3579
  "onChange": onChange,
3561
3580
  "onCancel": onCancel,
@@ -3563,8 +3582,8 @@ var stdin_default$1s = vue.defineComponent({
3563
3582
  }, pick(props, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
3564
3583
  }
3565
3584
  });
3566
- const Area = withInstall(stdin_default$1s);
3567
- const [name$1h, bem$1d] = createNamespace("cell");
3585
+ const Area = withInstall(stdin_default$1t);
3586
+ const [name$1i, bem$1e] = createNamespace("cell");
3568
3587
  const cellSharedProps = {
3569
3588
  tag: makeStringProp("div"),
3570
3589
  icon: String,
@@ -3588,8 +3607,8 @@ const cellSharedProps = {
3588
3607
  }
3589
3608
  };
3590
3609
  const cellProps = extend({}, cellSharedProps, routeProps);
3591
- var stdin_default$1r = vue.defineComponent({
3592
- name: name$1h,
3610
+ var stdin_default$1s = vue.defineComponent({
3611
+ name: name$1i,
3593
3612
  props: cellProps,
3594
3613
  setup(props, {
3595
3614
  slots
@@ -3599,7 +3618,7 @@ var stdin_default$1r = vue.defineComponent({
3599
3618
  const showLabel = slots.label || isDef(props.label);
3600
3619
  if (showLabel) {
3601
3620
  return vue.createVNode("div", {
3602
- "class": [bem$1d("label"), props.labelClass]
3621
+ "class": [bem$1e("label"), props.labelClass]
3603
3622
  }, [slots.label ? slots.label() : props.label]);
3604
3623
  }
3605
3624
  };
@@ -3611,7 +3630,7 @@ var stdin_default$1r = vue.defineComponent({
3611
3630
  return;
3612
3631
  }
3613
3632
  return vue.createVNode("div", {
3614
- "class": [bem$1d("title"), props.titleClass],
3633
+ "class": [bem$1e("title"), props.titleClass],
3615
3634
  "style": props.titleStyle
3616
3635
  }, [titleSlot || vue.createVNode("span", null, [props.title]), renderLabel()]);
3617
3636
  }
@@ -3621,7 +3640,7 @@ var stdin_default$1r = vue.defineComponent({
3621
3640
  const hasValue = slot || isDef(props.value);
3622
3641
  if (hasValue) {
3623
3642
  return vue.createVNode("div", {
3624
- "class": [bem$1d("value"), props.valueClass]
3643
+ "class": [bem$1e("value"), props.valueClass]
3625
3644
  }, [slot ? slot() : vue.createVNode("span", null, [props.value])]);
3626
3645
  }
3627
3646
  };
@@ -3632,7 +3651,7 @@ var stdin_default$1r = vue.defineComponent({
3632
3651
  if (props.icon) {
3633
3652
  return vue.createVNode(Icon, {
3634
3653
  "name": props.icon,
3635
- "class": bem$1d("left-icon"),
3654
+ "class": bem$1e("left-icon"),
3636
3655
  "classPrefix": props.iconPrefix
3637
3656
  }, null);
3638
3657
  }
@@ -3645,7 +3664,7 @@ var stdin_default$1r = vue.defineComponent({
3645
3664
  const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
3646
3665
  return vue.createVNode(Icon, {
3647
3666
  "name": name2,
3648
- "class": bem$1d("right-icon")
3667
+ "class": bem$1e("right-icon")
3649
3668
  }, null);
3650
3669
  }
3651
3670
  };
@@ -3670,7 +3689,7 @@ var stdin_default$1r = vue.defineComponent({
3670
3689
  classes[size] = !!size;
3671
3690
  }
3672
3691
  return vue.createVNode(tag, {
3673
- "class": bem$1d(classes),
3692
+ "class": bem$1e(classes),
3674
3693
  "role": clickable ? "button" : void 0,
3675
3694
  "tabindex": clickable ? 0 : void 0,
3676
3695
  "onClick": route2
@@ -3683,8 +3702,8 @@ var stdin_default$1r = vue.defineComponent({
3683
3702
  };
3684
3703
  }
3685
3704
  });
3686
- const Cell = withInstall(stdin_default$1r);
3687
- const [name$1g, bem$1c] = createNamespace("form");
3705
+ const Cell = withInstall(stdin_default$1s);
3706
+ const [name$1h, bem$1d] = createNamespace("form");
3688
3707
  const formProps = {
3689
3708
  colon: Boolean,
3690
3709
  disabled: Boolean,
@@ -3703,8 +3722,8 @@ const formProps = {
3703
3722
  default: "onBlur"
3704
3723
  }
3705
3724
  };
3706
- var stdin_default$1q = vue.defineComponent({
3707
- name: name$1g,
3725
+ var stdin_default$1r = vue.defineComponent({
3726
+ name: name$1h,
3708
3727
  props: formProps,
3709
3728
  emits: ["submit", "failed"],
3710
3729
  setup(props, {
@@ -3830,13 +3849,13 @@ var stdin_default$1q = vue.defineComponent({
3830
3849
  return () => {
3831
3850
  var _a;
3832
3851
  return vue.createVNode("form", {
3833
- "class": bem$1c(),
3852
+ "class": bem$1d(),
3834
3853
  "onSubmit": onSubmit
3835
3854
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
3836
3855
  };
3837
3856
  }
3838
3857
  });
3839
- const Form = withInstall(stdin_default$1q);
3858
+ const Form = withInstall(stdin_default$1r);
3840
3859
  function isEmptyValue(value) {
3841
3860
  if (Array.isArray(value)) {
3842
3861
  return !value.length;
@@ -3925,7 +3944,7 @@ function getStringLength(str) {
3925
3944
  function cutString(str, maxlength) {
3926
3945
  return [...str].slice(0, maxlength).join("");
3927
3946
  }
3928
- const [name$1f, bem$1b] = createNamespace("field");
3947
+ const [name$1g, bem$1c] = createNamespace("field");
3929
3948
  const fieldSharedProps = {
3930
3949
  id: String,
3931
3950
  name: String,
@@ -3972,8 +3991,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
3972
3991
  default: null
3973
3992
  }
3974
3993
  });
3975
- var stdin_default$1p = vue.defineComponent({
3976
- name: name$1f,
3994
+ var stdin_default$1q = vue.defineComponent({
3995
+ name: name$1g,
3977
3996
  props: fieldProps,
3978
3997
  emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
3979
3998
  setup(props, {
@@ -4247,7 +4266,7 @@ var stdin_default$1p = vue.defineComponent({
4247
4266
  const getInputId = () => props.id || `${id}-input`;
4248
4267
  const getValidationStatus = () => state.status;
4249
4268
  const renderInput = () => {
4250
- const controlClass = bem$1b("control", [getProp("inputAlign"), {
4269
+ const controlClass = bem$1c("control", [getProp("inputAlign"), {
4251
4270
  error: showError.value,
4252
4271
  custom: !!slots.input,
4253
4272
  "min-height": props.type === "textarea" && !props.autosize
@@ -4289,7 +4308,7 @@ var stdin_default$1p = vue.defineComponent({
4289
4308
  const leftIconSlot = slots["left-icon"];
4290
4309
  if (props.leftIcon || leftIconSlot) {
4291
4310
  return vue.createVNode("div", {
4292
- "class": bem$1b("left-icon"),
4311
+ "class": bem$1c("left-icon"),
4293
4312
  "onClick": onClickLeftIcon
4294
4313
  }, [leftIconSlot ? leftIconSlot() : vue.createVNode(Icon, {
4295
4314
  "name": props.leftIcon,
@@ -4301,7 +4320,7 @@ var stdin_default$1p = vue.defineComponent({
4301
4320
  const rightIconSlot = slots["right-icon"];
4302
4321
  if (props.rightIcon || rightIconSlot) {
4303
4322
  return vue.createVNode("div", {
4304
- "class": bem$1b("right-icon"),
4323
+ "class": bem$1c("right-icon"),
4305
4324
  "onClick": onClickRightIcon
4306
4325
  }, [rightIconSlot ? rightIconSlot() : vue.createVNode(Icon, {
4307
4326
  "name": props.rightIcon,
@@ -4313,9 +4332,9 @@ var stdin_default$1p = vue.defineComponent({
4313
4332
  if (props.showWordLimit && props.maxlength) {
4314
4333
  const count = getStringLength(getModelValue());
4315
4334
  return vue.createVNode("div", {
4316
- "class": bem$1b("word-limit")
4335
+ "class": bem$1c("word-limit")
4317
4336
  }, [vue.createVNode("span", {
4318
- "class": bem$1b("word-num")
4337
+ "class": bem$1c("word-num")
4319
4338
  }, [count]), vue.createTextVNode("/"), props.maxlength]);
4320
4339
  }
4321
4340
  };
@@ -4328,7 +4347,7 @@ var stdin_default$1p = vue.defineComponent({
4328
4347
  const slot = slots["error-message"];
4329
4348
  const errorMessageAlign = getProp("errorMessageAlign");
4330
4349
  return vue.createVNode("div", {
4331
- "class": bem$1b("error-message", errorMessageAlign)
4350
+ "class": bem$1c("error-message", errorMessageAlign)
4332
4351
  }, [slot ? slot({
4333
4352
  message
4334
4353
  }) : message]);
@@ -4356,13 +4375,13 @@ var stdin_default$1p = vue.defineComponent({
4356
4375
  }
4357
4376
  };
4358
4377
  const renderFieldBody = () => [vue.createVNode("div", {
4359
- "class": bem$1b("body")
4378
+ "class": bem$1c("body")
4360
4379
  }, [renderInput(), showClear.value && vue.createVNode(Icon, {
4361
4380
  "ref": clearIconRef,
4362
4381
  "name": props.clearIcon,
4363
- "class": bem$1b("clear")
4382
+ "class": bem$1c("clear")
4364
4383
  }, null), renderRightIcon(), slots.button && vue.createVNode("div", {
4365
- "class": bem$1b("button")
4384
+ "class": bem$1c("button")
4366
4385
  }, [slots.button()])]), renderWordLimit(), renderMessage()];
4367
4386
  useExpose({
4368
4387
  blur,
@@ -4406,7 +4425,7 @@ var stdin_default$1p = vue.defineComponent({
4406
4425
  };
4407
4426
  return vue.createVNode(Cell, {
4408
4427
  "size": props.size,
4409
- "class": bem$1b({
4428
+ "class": bem$1c({
4410
4429
  error: showError.value,
4411
4430
  disabled,
4412
4431
  [`label-${labelAlign}`]: labelAlign
@@ -4416,8 +4435,8 @@ var stdin_default$1p = vue.defineComponent({
4416
4435
  "isLink": props.isLink,
4417
4436
  "clickable": props.clickable,
4418
4437
  "titleStyle": labelStyle.value,
4419
- "valueClass": bem$1b("value"),
4420
- "titleClass": [bem$1b("label", [labelAlign, {
4438
+ "valueClass": bem$1c("value"),
4439
+ "titleClass": [bem$1c("label", [labelAlign, {
4421
4440
  required: props.required
4422
4441
  }]), props.labelClass],
4423
4442
  "arrowDirection": props.arrowDirection
@@ -4430,7 +4449,7 @@ var stdin_default$1p = vue.defineComponent({
4430
4449
  };
4431
4450
  }
4432
4451
  });
4433
- const Field = withInstall(stdin_default$1p);
4452
+ const Field = withInstall(stdin_default$1q);
4434
4453
  let lockCount = 0;
4435
4454
  function lockClick(lock) {
4436
4455
  if (lock) {
@@ -4445,7 +4464,7 @@ function lockClick(lock) {
4445
4464
  }
4446
4465
  }
4447
4466
  }
4448
- const [name$1e, bem$1a] = createNamespace("toast");
4467
+ const [name$1f, bem$1b] = createNamespace("toast");
4449
4468
  const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
4450
4469
  const toastProps = {
4451
4470
  icon: String,
@@ -4468,8 +4487,8 @@ const toastProps = {
4468
4487
  closeOnClick: Boolean,
4469
4488
  closeOnClickOverlay: Boolean
4470
4489
  };
4471
- var stdin_default$1o = vue.defineComponent({
4472
- name: name$1e,
4490
+ var stdin_default$1p = vue.defineComponent({
4491
+ name: name$1f,
4473
4492
  props: toastProps,
4474
4493
  emits: ["update:show"],
4475
4494
  setup(props, {
@@ -4505,13 +4524,13 @@ var stdin_default$1o = vue.defineComponent({
4505
4524
  return vue.createVNode(Icon, {
4506
4525
  "name": icon || type,
4507
4526
  "size": iconSize,
4508
- "class": bem$1a("icon"),
4527
+ "class": bem$1b("icon"),
4509
4528
  "classPrefix": iconPrefix
4510
4529
  }, null);
4511
4530
  }
4512
4531
  if (type === "loading") {
4513
4532
  return vue.createVNode(Loading, {
4514
- "class": bem$1a("loading"),
4533
+ "class": bem$1b("loading"),
4515
4534
  "size": iconSize,
4516
4535
  "type": loadingType
4517
4536
  }, null);
@@ -4524,16 +4543,16 @@ var stdin_default$1o = vue.defineComponent({
4524
4543
  } = props;
4525
4544
  if (slots.message) {
4526
4545
  return vue.createVNode("div", {
4527
- "class": bem$1a("text")
4546
+ "class": bem$1b("text")
4528
4547
  }, [slots.message()]);
4529
4548
  }
4530
4549
  if (isDef(message) && message !== "") {
4531
4550
  return type === "html" ? vue.createVNode("div", {
4532
4551
  "key": 0,
4533
- "class": bem$1a("text"),
4552
+ "class": bem$1b("text"),
4534
4553
  "innerHTML": String(message)
4535
4554
  }, null) : vue.createVNode("div", {
4536
- "class": bem$1a("text")
4555
+ "class": bem$1b("text")
4537
4556
  }, [message]);
4538
4557
  }
4539
4558
  };
@@ -4549,7 +4568,7 @@ var stdin_default$1o = vue.defineComponent({
4549
4568
  vue.onMounted(toggleClickable);
4550
4569
  vue.onUnmounted(toggleClickable);
4551
4570
  return () => vue.createVNode(Popup, vue.mergeProps({
4552
- "class": [bem$1a([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
4571
+ "class": [bem$1b([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
4553
4572
  [props.type]: !props.icon
4554
4573
  }]), props.className],
4555
4574
  "lockScroll": false,
@@ -4650,7 +4669,7 @@ function createInstance() {
4650
4669
  onClosed,
4651
4670
  "onUpdate:show": toggle
4652
4671
  };
4653
- return vue.createVNode(stdin_default$1o, vue.mergeProps(state, attrs), null);
4672
+ return vue.createVNode(stdin_default$1p, vue.mergeProps(state, attrs), null);
4654
4673
  };
4655
4674
  vue.watch(message, (val) => {
4656
4675
  state.message = val;
@@ -4720,8 +4739,8 @@ const resetToastDefaultOptions = (type) => {
4720
4739
  const allowMultipleToast = (value = true) => {
4721
4740
  allowMultiple = value;
4722
4741
  };
4723
- const Toast = withInstall(stdin_default$1o);
4724
- const [name$1d, bem$19] = createNamespace("switch");
4742
+ const Toast = withInstall(stdin_default$1p);
4743
+ const [name$1e, bem$1a] = createNamespace("switch");
4725
4744
  const switchProps = {
4726
4745
  size: numericProp,
4727
4746
  loading: Boolean,
@@ -4738,8 +4757,8 @@ const switchProps = {
4738
4757
  default: false
4739
4758
  }
4740
4759
  };
4741
- var stdin_default$1n = vue.defineComponent({
4742
- name: name$1d,
4760
+ var stdin_default$1o = vue.defineComponent({
4761
+ name: name$1e,
4743
4762
  props: switchProps,
4744
4763
  emits: ["change", "update:modelValue"],
4745
4764
  setup(props, {
@@ -4758,7 +4777,7 @@ var stdin_default$1n = vue.defineComponent({
4758
4777
  if (props.loading) {
4759
4778
  const color = isChecked() ? props.activeColor : props.inactiveColor;
4760
4779
  return vue.createVNode(Loading, {
4761
- "class": bem$19("loading"),
4780
+ "class": bem$1a("loading"),
4762
4781
  "color": color
4763
4782
  }, null);
4764
4783
  }
@@ -4783,7 +4802,7 @@ var stdin_default$1n = vue.defineComponent({
4783
4802
  };
4784
4803
  return vue.createVNode("div", {
4785
4804
  "role": "switch",
4786
- "class": bem$19({
4805
+ "class": bem$1a({
4787
4806
  on: checked,
4788
4807
  loading,
4789
4808
  disabled
@@ -4793,16 +4812,16 @@ var stdin_default$1n = vue.defineComponent({
4793
4812
  "aria-checked": checked,
4794
4813
  "onClick": onClick
4795
4814
  }, [vue.createVNode("div", {
4796
- "class": bem$19("node")
4815
+ "class": bem$1a("node")
4797
4816
  }, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
4798
4817
  };
4799
4818
  }
4800
4819
  });
4801
- const Switch = withInstall(stdin_default$1n);
4802
- const [name$1c, bem$18] = createNamespace("address-edit-detail");
4820
+ const Switch = withInstall(stdin_default$1o);
4821
+ const [name$1d, bem$19] = createNamespace("address-edit-detail");
4803
4822
  const t$j = createNamespace("address-edit")[2];
4804
- var stdin_default$1m = vue.defineComponent({
4805
- name: name$1c,
4823
+ var stdin_default$1n = vue.defineComponent({
4824
+ name: name$1d,
4806
4825
  props: {
4807
4826
  show: Boolean,
4808
4827
  rows: numericProp,
@@ -4836,7 +4855,7 @@ var stdin_default$1m = vue.defineComponent({
4836
4855
  "icon": "location-o",
4837
4856
  "title": express.name,
4838
4857
  "label": express.address,
4839
- "class": bem$18("search-item"),
4858
+ "class": bem$19("search-item"),
4840
4859
  "border": false,
4841
4860
  "onClick": () => onSelect(express)
4842
4861
  }, null));
@@ -4850,7 +4869,7 @@ var stdin_default$1m = vue.defineComponent({
4850
4869
  "autosize": true,
4851
4870
  "clearable": true,
4852
4871
  "ref": field,
4853
- "class": bem$18(),
4872
+ "class": bem$19(),
4854
4873
  "rows": props.rows,
4855
4874
  "type": "textarea",
4856
4875
  "rules": props.rules,
@@ -4867,7 +4886,7 @@ var stdin_default$1m = vue.defineComponent({
4867
4886
  };
4868
4887
  }
4869
4888
  });
4870
- const [name$1b, bem$17, t$i] = createNamespace("address-edit");
4889
+ const [name$1c, bem$18, t$i] = createNamespace("address-edit");
4871
4890
  const DEFAULT_DATA = {
4872
4891
  name: "",
4873
4892
  tel: "",
@@ -4907,8 +4926,8 @@ const addressEditProps = {
4907
4926
  default: isMobile
4908
4927
  }
4909
4928
  };
4910
- var stdin_default$1l = vue.defineComponent({
4911
- name: name$1b,
4929
+ var stdin_default$1m = vue.defineComponent({
4930
+ name: name$1c,
4912
4931
  props: addressEditProps,
4913
4932
  emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
4914
4933
  setup(props, {
@@ -5018,8 +5037,9 @@ var stdin_default$1l = vue.defineComponent({
5018
5037
  };
5019
5038
  return vue.withDirectives(vue.createVNode(Cell, {
5020
5039
  "center": true,
5040
+ "border": false,
5021
5041
  "title": t$i("defaultAddress"),
5022
- "class": bem$17("default")
5042
+ "class": bem$18("default")
5023
5043
  }, slots2), [[vue.vShow, !hideBottomFields.value]]);
5024
5044
  }
5025
5045
  };
@@ -5045,13 +5065,13 @@ var stdin_default$1l = vue.defineComponent({
5045
5065
  disableArea
5046
5066
  } = props;
5047
5067
  return vue.createVNode(Form, {
5048
- "class": bem$17(),
5068
+ "class": bem$18(),
5049
5069
  "onSubmit": onSave
5050
5070
  }, {
5051
5071
  default: () => {
5052
5072
  var _a;
5053
5073
  return [vue.createVNode("div", {
5054
- "class": bem$17("fields")
5074
+ "class": bem$18("fields")
5055
5075
  }, [vue.createVNode(Field, {
5056
5076
  "modelValue": data.name,
5057
5077
  "onUpdate:modelValue": ($event) => data.name = $event,
@@ -5082,7 +5102,7 @@ var stdin_default$1l = vue.defineComponent({
5082
5102
  emit("clickArea");
5083
5103
  showAreaPopup.value = !disableArea;
5084
5104
  }
5085
- }, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$1m, {
5105
+ }, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$1n, {
5086
5106
  "show": props.showDetail,
5087
5107
  "rows": props.detailRows,
5088
5108
  "rules": rules.value.addressDetail,
@@ -5096,19 +5116,19 @@ var stdin_default$1l = vue.defineComponent({
5096
5116
  "onInput": onChangeDetail,
5097
5117
  "onSelectSearch": (event) => emit("selectSearch", event)
5098
5118
  }, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
5099
- "class": bem$17("buttons")
5119
+ "class": bem$18("buttons")
5100
5120
  }, [vue.createVNode(Button, {
5101
5121
  "block": true,
5102
5122
  "round": true,
5103
5123
  "type": "primary",
5104
5124
  "text": props.saveButtonText || t$i("save"),
5105
- "class": bem$17("button"),
5125
+ "class": bem$18("button"),
5106
5126
  "loading": props.isSaving,
5107
5127
  "nativeType": "submit"
5108
5128
  }, null), props.showDelete && vue.createVNode(Button, {
5109
5129
  "block": true,
5110
5130
  "round": true,
5111
- "class": bem$17("button"),
5131
+ "class": bem$18("button"),
5112
5132
  "loading": props.isDeleting,
5113
5133
  "text": props.deleteButtonText || t$i("delete"),
5114
5134
  "onClick": onDelete
@@ -5138,8 +5158,8 @@ var stdin_default$1l = vue.defineComponent({
5138
5158
  };
5139
5159
  }
5140
5160
  });
5141
- const AddressEdit = withInstall(stdin_default$1l);
5142
- const [name$1a, bem$16] = createNamespace("radio-group");
5161
+ const AddressEdit = withInstall(stdin_default$1m);
5162
+ const [name$1b, bem$17] = createNamespace("radio-group");
5143
5163
  const radioGroupProps = {
5144
5164
  disabled: Boolean,
5145
5165
  iconSize: numericProp,
@@ -5147,9 +5167,9 @@ const radioGroupProps = {
5147
5167
  modelValue: unknownProp,
5148
5168
  checkedColor: String
5149
5169
  };
5150
- const RADIO_KEY = Symbol(name$1a);
5151
- var stdin_default$1k = vue.defineComponent({
5152
- name: name$1a,
5170
+ const RADIO_KEY = Symbol(name$1b);
5171
+ var stdin_default$1l = vue.defineComponent({
5172
+ name: name$1b,
5153
5173
  props: radioGroupProps,
5154
5174
  emits: ["change", "update:modelValue"],
5155
5175
  setup(props, {
@@ -5169,14 +5189,14 @@ var stdin_default$1k = vue.defineComponent({
5169
5189
  return () => {
5170
5190
  var _a;
5171
5191
  return vue.createVNode("div", {
5172
- "class": bem$16([props.direction]),
5192
+ "class": bem$17([props.direction]),
5173
5193
  "role": "radiogroup"
5174
5194
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
5175
5195
  };
5176
5196
  }
5177
5197
  });
5178
- const RadioGroup = withInstall(stdin_default$1k);
5179
- const [name$19, bem$15] = createNamespace("tag");
5198
+ const RadioGroup = withInstall(stdin_default$1l);
5199
+ const [name$1a, bem$16] = createNamespace("tag");
5180
5200
  const tagProps = {
5181
5201
  size: String,
5182
5202
  mark: Boolean,
@@ -5188,8 +5208,8 @@ const tagProps = {
5188
5208
  textColor: String,
5189
5209
  closeable: Boolean
5190
5210
  };
5191
- var stdin_default$1j = vue.defineComponent({
5192
- name: name$19,
5211
+ var stdin_default$1k = vue.defineComponent({
5212
+ name: name$1a,
5193
5213
  props: tagProps,
5194
5214
  emits: ["close"],
5195
5215
  setup(props, {
@@ -5232,12 +5252,12 @@ var stdin_default$1j = vue.defineComponent({
5232
5252
  }
5233
5253
  const CloseIcon = closeable && vue.createVNode(Icon, {
5234
5254
  "name": "cross",
5235
- "class": [bem$15("close"), HAPTICS_FEEDBACK],
5255
+ "class": [bem$16("close"), HAPTICS_FEEDBACK],
5236
5256
  "onClick": onClose
5237
5257
  }, null);
5238
5258
  return vue.createVNode("span", {
5239
5259
  "style": getStyle(),
5240
- "class": bem$15([classes, type])
5260
+ "class": bem$16([classes, type])
5241
5261
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
5242
5262
  };
5243
5263
  return () => vue.createVNode(vue.Transition, {
@@ -5247,7 +5267,7 @@ var stdin_default$1j = vue.defineComponent({
5247
5267
  });
5248
5268
  }
5249
5269
  });
5250
- const Tag = withInstall(stdin_default$1j);
5270
+ const Tag = withInstall(stdin_default$1k);
5251
5271
  const checkerProps = {
5252
5272
  name: unknownProp,
5253
5273
  shape: makeStringProp("round"),
@@ -5258,7 +5278,7 @@ const checkerProps = {
5258
5278
  labelPosition: String,
5259
5279
  labelDisabled: Boolean
5260
5280
  };
5261
- var stdin_default$1i = vue.defineComponent({
5281
+ var stdin_default$1j = vue.defineComponent({
5262
5282
  props: extend({}, checkerProps, {
5263
5283
  bem: makeRequiredProp(Function),
5264
5284
  role: String,
@@ -5360,9 +5380,9 @@ var stdin_default$1i = vue.defineComponent({
5360
5380
  }
5361
5381
  });
5362
5382
  const radioProps = checkerProps;
5363
- const [name$18, bem$14] = createNamespace("radio");
5364
- var stdin_default$1h = vue.defineComponent({
5365
- name: name$18,
5383
+ const [name$19, bem$15] = createNamespace("radio");
5384
+ var stdin_default$1i = vue.defineComponent({
5385
+ name: name$19,
5366
5386
  props: checkerProps,
5367
5387
  emits: ["update:modelValue"],
5368
5388
  setup(props, {
@@ -5383,8 +5403,8 @@ var stdin_default$1h = vue.defineComponent({
5383
5403
  emit("update:modelValue", props.name);
5384
5404
  }
5385
5405
  };
5386
- return () => vue.createVNode(stdin_default$1i, vue.mergeProps({
5387
- "bem": bem$14,
5406
+ return () => vue.createVNode(stdin_default$1j, vue.mergeProps({
5407
+ "bem": bem$15,
5388
5408
  "role": "radio",
5389
5409
  "parent": parent,
5390
5410
  "checked": checked(),
@@ -5392,10 +5412,10 @@ var stdin_default$1h = vue.defineComponent({
5392
5412
  }, props), pick(slots, ["default", "icon"]));
5393
5413
  }
5394
5414
  });
5395
- const Radio = withInstall(stdin_default$1h);
5396
- const [name$17, bem$13] = createNamespace("address-item");
5397
- var stdin_default$1g = vue.defineComponent({
5398
- name: name$17,
5415
+ const Radio = withInstall(stdin_default$1i);
5416
+ const [name$18, bem$14] = createNamespace("address-item");
5417
+ var stdin_default$1h = vue.defineComponent({
5418
+ name: name$18,
5399
5419
  props: {
5400
5420
  address: makeRequiredProp(Object),
5401
5421
  disabled: Boolean,
@@ -5415,7 +5435,7 @@ var stdin_default$1g = vue.defineComponent({
5415
5435
  };
5416
5436
  const renderRightIcon = () => vue.createVNode(Icon, {
5417
5437
  "name": "edit",
5418
- "class": bem$13("edit"),
5438
+ "class": bem$14("edit"),
5419
5439
  "onClick": (event) => {
5420
5440
  event.stopPropagation();
5421
5441
  emit("edit");
@@ -5430,7 +5450,7 @@ var stdin_default$1g = vue.defineComponent({
5430
5450
  return vue.createVNode(Tag, {
5431
5451
  "type": "primary",
5432
5452
  "round": true,
5433
- "class": bem$13("tag")
5453
+ "class": bem$14("tag")
5434
5454
  }, {
5435
5455
  default: () => [props.defaultTagText]
5436
5456
  });
@@ -5443,9 +5463,9 @@ var stdin_default$1g = vue.defineComponent({
5443
5463
  switchable
5444
5464
  } = props;
5445
5465
  const Info = [vue.createVNode("div", {
5446
- "class": bem$13("name")
5466
+ "class": bem$14("name")
5447
5467
  }, [`${address.name} ${address.tel}`, renderTag()]), vue.createVNode("div", {
5448
- "class": bem$13("address")
5468
+ "class": bem$14("address")
5449
5469
  }, [address.address])];
5450
5470
  if (switchable && !disabled) {
5451
5471
  return vue.createVNode(Radio, {
@@ -5463,13 +5483,13 @@ var stdin_default$1g = vue.defineComponent({
5463
5483
  disabled
5464
5484
  } = props;
5465
5485
  return vue.createVNode("div", {
5466
- "class": bem$13({
5486
+ "class": bem$14({
5467
5487
  disabled
5468
5488
  }),
5469
5489
  "onClick": onClick
5470
5490
  }, [vue.createVNode(Cell, {
5471
5491
  "border": false,
5472
- "titleClass": bem$13("title")
5492
+ "titleClass": bem$14("title")
5473
5493
  }, {
5474
5494
  title: renderContent,
5475
5495
  "right-icon": renderRightIcon
@@ -5479,7 +5499,7 @@ var stdin_default$1g = vue.defineComponent({
5479
5499
  };
5480
5500
  }
5481
5501
  });
5482
- const [name$16, bem$12, t$h] = createNamespace("address-list");
5502
+ const [name$17, bem$13, t$h] = createNamespace("address-list");
5483
5503
  const addressListProps = {
5484
5504
  list: makeArrayProp(),
5485
5505
  modelValue: numericProp,
@@ -5489,8 +5509,8 @@ const addressListProps = {
5489
5509
  addButtonText: String,
5490
5510
  defaultTagText: String
5491
5511
  };
5492
- var stdin_default$1f = vue.defineComponent({
5493
- name: name$16,
5512
+ var stdin_default$1g = vue.defineComponent({
5513
+ name: name$17,
5494
5514
  props: addressListProps,
5495
5515
  emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
5496
5516
  setup(props, {
@@ -5506,7 +5526,7 @@ var stdin_default$1f = vue.defineComponent({
5506
5526
  emit("update:modelValue", item.id);
5507
5527
  }
5508
5528
  };
5509
- return vue.createVNode(stdin_default$1g, {
5529
+ return vue.createVNode(stdin_default$1h, {
5510
5530
  "key": item.id,
5511
5531
  "address": item,
5512
5532
  "disabled": disabled,
@@ -5526,13 +5546,13 @@ var stdin_default$1f = vue.defineComponent({
5526
5546
  }
5527
5547
  };
5528
5548
  const renderBottom = () => vue.createVNode("div", {
5529
- "class": [bem$12("bottom"), "van-safe-area-bottom"]
5549
+ "class": [bem$13("bottom"), "van-safe-area-bottom"]
5530
5550
  }, [vue.createVNode(Button, {
5531
5551
  "round": true,
5532
5552
  "block": true,
5533
5553
  "type": "primary",
5534
5554
  "text": props.addButtonText || t$h("add"),
5535
- "class": bem$12("add"),
5555
+ "class": bem$13("add"),
5536
5556
  "onClick": () => emit("add")
5537
5557
  }, null)]);
5538
5558
  return () => {
@@ -5540,10 +5560,10 @@ var stdin_default$1f = vue.defineComponent({
5540
5560
  const List2 = renderList(props.list);
5541
5561
  const DisabledList = renderList(props.disabledList, true);
5542
5562
  const DisabledText = props.disabledText && vue.createVNode("div", {
5543
- "class": bem$12("disabled-text")
5563
+ "class": bem$13("disabled-text")
5544
5564
  }, [props.disabledText]);
5545
5565
  return vue.createVNode("div", {
5546
- "class": bem$12()
5566
+ "class": bem$13()
5547
5567
  }, [(_a = slots.top) == null ? void 0 : _a.call(slots), vue.createVNode(RadioGroup, {
5548
5568
  "modelValue": props.modelValue
5549
5569
  }, {
@@ -5552,7 +5572,7 @@ var stdin_default$1f = vue.defineComponent({
5552
5572
  };
5553
5573
  }
5554
5574
  });
5555
- const AddressList = withInstall(stdin_default$1f);
5575
+ const AddressList = withInstall(stdin_default$1g);
5556
5576
  const hasIntersectionObserver = use.inBrowser && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
5557
5577
  const modeType = {
5558
5578
  event: "event",
@@ -5705,7 +5725,7 @@ class ImageCache {
5705
5725
  this.caches.shift();
5706
5726
  }
5707
5727
  }
5708
- const [name$15, bem$11] = createNamespace("back-top");
5728
+ const [name$16, bem$12] = createNamespace("back-top");
5709
5729
  const backTopProps = {
5710
5730
  right: numericProp,
5711
5731
  bottom: numericProp,
@@ -5718,8 +5738,8 @@ const backTopProps = {
5718
5738
  default: "body"
5719
5739
  }
5720
5740
  };
5721
- var stdin_default$1e = vue.defineComponent({
5722
- name: name$15,
5741
+ var stdin_default$1f = vue.defineComponent({
5742
+ name: name$16,
5723
5743
  inheritAttrs: false,
5724
5744
  props: backTopProps,
5725
5745
  emits: ["click"],
@@ -5777,28 +5797,158 @@ var stdin_default$1e = vue.defineComponent({
5777
5797
  vue.watch(() => props.target, updateTarget);
5778
5798
  return () => {
5779
5799
  const Content = vue.createVNode("div", vue.mergeProps({
5780
- "ref": root,
5781
- "class": bem$11({
5800
+ "ref": !props.teleport ? root : void 0,
5801
+ "class": bem$12({
5782
5802
  active: show.value
5783
5803
  }),
5784
5804
  "style": style.value,
5785
5805
  "onClick": onClick
5786
5806
  }, attrs), [slots.default ? slots.default() : vue.createVNode(Icon, {
5787
5807
  "name": "back-top",
5788
- "class": bem$11("icon")
5808
+ "class": bem$12("icon")
5789
5809
  }, null)]);
5790
5810
  if (props.teleport) {
5791
- return vue.createVNode(vue.Teleport, {
5811
+ return [vue.createVNode("div", {
5812
+ "ref": root,
5813
+ "class": bem$12("placeholder")
5814
+ }, null), vue.createVNode(vue.Teleport, {
5792
5815
  "to": props.teleport
5793
5816
  }, {
5794
5817
  default: () => [Content]
5795
- });
5818
+ })];
5796
5819
  }
5797
5820
  return Content;
5798
5821
  };
5799
5822
  }
5800
5823
  });
5801
- const BackTop = withInstall(stdin_default$1e);
5824
+ const BackTop = withInstall(stdin_default$1f);
5825
+ var __async = (__this, __arguments, generator) => {
5826
+ return new Promise((resolve, reject) => {
5827
+ var fulfilled = (value) => {
5828
+ try {
5829
+ step(generator.next(value));
5830
+ } catch (e) {
5831
+ reject(e);
5832
+ }
5833
+ };
5834
+ var rejected = (value) => {
5835
+ try {
5836
+ step(generator.throw(value));
5837
+ } catch (e) {
5838
+ reject(e);
5839
+ }
5840
+ };
5841
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
5842
+ step((generator = generator.apply(__this, __arguments)).next());
5843
+ });
5844
+ };
5845
+ const barrageProps = {
5846
+ top: makeNumericProp(10),
5847
+ rows: makeNumericProp(4),
5848
+ duration: makeNumericProp(4e3),
5849
+ autoPlay: truthProp,
5850
+ delay: makeNumberProp(300),
5851
+ modelValue: makeArrayProp()
5852
+ };
5853
+ const [name$15, bem$11] = createNamespace("barrage");
5854
+ var stdin_default$1e = vue.defineComponent({
5855
+ name: name$15,
5856
+ props: barrageProps,
5857
+ emits: ["update:modelValue"],
5858
+ setup(props, {
5859
+ emit,
5860
+ slots
5861
+ }) {
5862
+ const barrageWrapper = vue.ref();
5863
+ const className = bem$11("item");
5864
+ const total = vue.ref(0);
5865
+ const barrageItems = [];
5866
+ const createBarrageItem = (text, delay = props.delay) => {
5867
+ const item = document.createElement("span");
5868
+ item.className = className;
5869
+ item.innerText = String(text);
5870
+ item.style.animationDuration = `${props.duration}ms`;
5871
+ item.style.animationDelay = `${delay}ms`;
5872
+ item.style.animationName = "van-barrage";
5873
+ item.style.animationTimingFunction = "linear";
5874
+ return item;
5875
+ };
5876
+ const isInitBarrage = vue.ref(true);
5877
+ const isPlay = vue.ref(props.autoPlay);
5878
+ const appendBarrageItem = ({
5879
+ id,
5880
+ text
5881
+ }, i) => {
5882
+ var _a;
5883
+ const item = createBarrageItem(text, isInitBarrage.value ? i * props.delay : void 0);
5884
+ if (!props.autoPlay && isPlay.value === false) {
5885
+ item.style.animationPlayState = "paused";
5886
+ }
5887
+ (_a = barrageWrapper.value) == null ? void 0 : _a.append(item);
5888
+ total.value++;
5889
+ const top = (total.value - 1) % +props.rows * item.offsetHeight + +props.top;
5890
+ item.style.top = `${top}px`;
5891
+ item.dataset.id = String(id);
5892
+ barrageItems.push(item);
5893
+ item.addEventListener("animationend", () => {
5894
+ emit("update:modelValue", [...props.modelValue].filter((v) => String(v.id) !== item.dataset.id));
5895
+ });
5896
+ };
5897
+ const updateBarrages = (newValue, oldValue) => {
5898
+ const map = new Map(oldValue.map((item) => [item.id, item]));
5899
+ newValue.forEach((item, i) => {
5900
+ if (map.has(item.id)) {
5901
+ map.delete(item.id);
5902
+ } else {
5903
+ appendBarrageItem(item, i);
5904
+ }
5905
+ });
5906
+ map.forEach((item) => {
5907
+ const index = barrageItems.findIndex((span) => span.dataset.id === String(item.id));
5908
+ if (index > -1) {
5909
+ barrageItems[index].remove();
5910
+ barrageItems.splice(index, 1);
5911
+ }
5912
+ });
5913
+ isInitBarrage.value = false;
5914
+ };
5915
+ vue.watch(() => props.modelValue.slice(), (newValue, oldValue) => updateBarrages(newValue != null ? newValue : [], oldValue != null ? oldValue : []), {
5916
+ deep: true
5917
+ });
5918
+ const rootStyle = vue.ref({});
5919
+ vue.onMounted(() => __async(this, null, function* () {
5920
+ var _a;
5921
+ rootStyle.value["--move-distance"] = `-${(_a = barrageWrapper.value) == null ? void 0 : _a.offsetWidth}px`;
5922
+ yield vue.nextTick();
5923
+ updateBarrages(props.modelValue, []);
5924
+ }));
5925
+ const play = () => {
5926
+ isPlay.value = true;
5927
+ barrageItems.forEach((item) => {
5928
+ item.style.animationPlayState = "running";
5929
+ });
5930
+ };
5931
+ const pause = () => {
5932
+ isPlay.value = false;
5933
+ barrageItems.forEach((item) => {
5934
+ item.style.animationPlayState = "paused";
5935
+ });
5936
+ };
5937
+ useExpose({
5938
+ play,
5939
+ pause
5940
+ });
5941
+ return () => {
5942
+ var _a;
5943
+ return vue.createVNode("div", {
5944
+ "class": bem$11(),
5945
+ "ref": barrageWrapper,
5946
+ "style": rootStyle.value
5947
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
5948
+ };
5949
+ }
5950
+ });
5951
+ const Barrage = withInstall(stdin_default$1e);
5802
5952
  const [name$14, bem$10, t$g] = createNamespace("calendar");
5803
5953
  const formatMonthTitle = (date) => t$g("monthTitle", date.getFullYear(), date.getMonth() + 1);
5804
5954
  function compareMonth(date1, date2) {
@@ -6960,6 +7110,7 @@ var stdin_default$17 = vue.defineComponent({
6960
7110
  }) {
6961
7111
  const tabs = vue.ref([]);
6962
7112
  const activeTab = vue.ref(0);
7113
+ const [selectedElementRefs, setSelectedElementRefs] = useRefs();
6963
7114
  const {
6964
7115
  text: textKey,
6965
7116
  value: valueKey,
@@ -7078,6 +7229,7 @@ var stdin_default$17 = vue.defineComponent({
7078
7229
  selected
7079
7230
  }) : vue.createVNode("span", null, [option[textKey]]);
7080
7231
  return vue.createVNode("li", {
7232
+ "ref": selected ? setSelectedElementRefs(tabIndex) : void 0,
7081
7233
  "role": "menuitemradio",
7082
7234
  "class": [bem$Z("option", {
7083
7235
  selected,
@@ -7134,7 +7286,18 @@ var stdin_default$17 = vue.defineComponent({
7134
7286
  }, {
7135
7287
  default: () => [tabs.value.map(renderTab)]
7136
7288
  });
7289
+ const scrollIntoView = (el) => {
7290
+ const scrollParent = el.parentElement;
7291
+ if (scrollParent) {
7292
+ scrollParent.scrollTop = el.offsetTop - (scrollParent.offsetHeight - el.offsetHeight) / 2;
7293
+ }
7294
+ };
7137
7295
  updateTabs();
7296
+ vue.watch(activeTab, (value) => {
7297
+ const el = selectedElementRefs.value[value];
7298
+ if (el)
7299
+ scrollIntoView(el);
7300
+ });
7138
7301
  vue.watch(() => props.options, updateTabs, {
7139
7302
  deep: true
7140
7303
  });
@@ -7318,7 +7481,7 @@ var stdin_default$14 = vue.defineComponent({
7318
7481
  checked
7319
7482
  });
7320
7483
  use.useCustomFieldValue(() => props.modelValue);
7321
- return () => vue.createVNode(stdin_default$1i, vue.mergeProps({
7484
+ return () => vue.createVNode(stdin_default$1j, vue.mergeProps({
7322
7485
  "bem": bem$W,
7323
7486
  "role": "checkbox",
7324
7487
  "parent": parent,
@@ -7839,7 +8002,7 @@ var stdin_default$$ = vue.defineComponent({
7839
8002
  }
7840
8003
  });
7841
8004
  const CollapseItem = withInstall(stdin_default$$);
7842
- const ConfigProvider = withInstall(stdin_default$1L);
8005
+ const ConfigProvider = withInstall(stdin_default$1M);
7843
8006
  const [name$R, bem$Q, t$e] = createNamespace("contact-card");
7844
8007
  const contactCardProps = {
7845
8008
  tel: String,
@@ -8004,7 +8167,7 @@ var stdin_default$Y = vue.defineComponent({
8004
8167
  const renderRightIcon = () => vue.createVNode(Radio, {
8005
8168
  "class": bem$O("radio"),
8006
8169
  "name": item.id,
8007
- "iconSize": 16
8170
+ "iconSize": 18
8008
8171
  }, null);
8009
8172
  const renderEditIcon = () => vue.createVNode(Icon, {
8010
8173
  "name": "edit",
@@ -8788,6 +8951,7 @@ var stdin_default$S = vue.defineComponent({
8788
8951
  slots
8789
8952
  }) {
8790
8953
  const currentValues = vue.ref(props.modelValue);
8954
+ const updatedByExternalSources = vue.ref(false);
8791
8955
  const genYearOptions = () => {
8792
8956
  const minYear = props.minDate.getFullYear();
8793
8957
  const maxYear = props.maxDate.getFullYear();
@@ -8803,7 +8967,7 @@ var stdin_default$S = vue.defineComponent({
8803
8967
  columnsType
8804
8968
  } = props;
8805
8969
  const index = columnsType.indexOf(type);
8806
- const value = currentValues.value[index];
8970
+ const value = updatedByExternalSources.value ? props.modelValue[index] : currentValues.value[index];
8807
8971
  if (value) {
8808
8972
  return +value;
8809
8973
  }
@@ -8849,11 +9013,13 @@ var stdin_default$S = vue.defineComponent({
8849
9013
  emit("update:modelValue", newValues);
8850
9014
  }
8851
9015
  });
8852
- vue.watch(() => props.modelValue, (newValues) => {
9016
+ vue.watch(() => props.modelValue, (newValues, oldValues) => {
9017
+ updatedByExternalSources.value = isSameValue(oldValues, currentValues.value);
8853
9018
  newValues = formatValueRange(newValues, columns.value);
8854
9019
  if (!isSameValue(newValues, currentValues.value)) {
8855
9020
  currentValues.value = newValues;
8856
9021
  }
9022
+ updatedByExternalSources.value = false;
8857
9023
  }, {
8858
9024
  immediate: true
8859
9025
  });
@@ -9156,6 +9322,7 @@ const [name$H, bem$H] = createNamespace("divider");
9156
9322
  const dividerProps = {
9157
9323
  dashed: Boolean,
9158
9324
  hairline: truthProp,
9325
+ vertical: Boolean,
9159
9326
  contentPosition: makeStringProp("center")
9160
9327
  };
9161
9328
  var stdin_default$Q = vue.defineComponent({
@@ -9171,9 +9338,10 @@ var stdin_default$Q = vue.defineComponent({
9171
9338
  "class": bem$H({
9172
9339
  dashed: props.dashed,
9173
9340
  hairline: props.hairline,
9174
- [`content-${props.contentPosition}`]: !!slots.default
9341
+ vertical: props.vertical,
9342
+ [`content-${props.contentPosition}`]: !!slots.default && !props.vertical
9175
9343
  })
9176
- }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
9344
+ }, [!props.vertical && ((_a = slots.default) == null ? void 0 : _a.call(slots))]);
9177
9345
  };
9178
9346
  }
9179
9347
  });
@@ -9658,6 +9826,7 @@ const getCenter = (touches) => ({
9658
9826
  y: (touches[0].clientY + touches[1].clientY) / 2
9659
9827
  });
9660
9828
  const bem$C = createNamespace("image-preview")[1];
9829
+ const longImageRatio = 2.6;
9661
9830
  var stdin_default$L = vue.defineComponent({
9662
9831
  props: {
9663
9832
  src: String,
@@ -9680,33 +9849,28 @@ var stdin_default$L = vue.defineComponent({
9680
9849
  moveY: 0,
9681
9850
  moving: false,
9682
9851
  zooming: false,
9683
- imageRatio: 0,
9684
- displayWidth: 0,
9685
- displayHeight: 0
9852
+ initializing: false,
9853
+ imageRatio: 0
9686
9854
  });
9687
9855
  const touch = useTouch();
9688
9856
  const imageRef = vue.ref();
9689
9857
  const swipeItem = vue.ref();
9690
- const vertical = vue.computed(() => {
9691
- const {
9692
- rootWidth,
9693
- rootHeight
9694
- } = props;
9695
- const rootRatio = rootHeight / rootWidth;
9696
- return state.imageRatio > rootRatio;
9697
- });
9858
+ const vertical = vue.ref(false);
9859
+ const isLongImage = vue.ref(false);
9860
+ let initialMoveY = 0;
9698
9861
  const imageStyle = vue.computed(() => {
9699
9862
  const {
9700
9863
  scale,
9701
9864
  moveX,
9702
9865
  moveY,
9703
9866
  moving,
9704
- zooming
9867
+ zooming,
9868
+ initializing
9705
9869
  } = state;
9706
9870
  const style = {
9707
- transitionDuration: zooming || moving ? "0s" : ".3s"
9871
+ transitionDuration: zooming || moving || initializing ? "0s" : ".3s"
9708
9872
  };
9709
- if (scale !== 1) {
9873
+ if (scale !== 1 || isLongImage.value) {
9710
9874
  style.transform = `matrix(${scale}, 0, 0, ${scale}, ${moveX}, ${moveY})`;
9711
9875
  }
9712
9876
  return style;
@@ -9751,7 +9915,7 @@ var stdin_default$L = vue.defineComponent({
9751
9915
  state.moveY = clamp(moveY, -maxMoveY.value, maxMoveY.value);
9752
9916
  } else {
9753
9917
  state.moveX = 0;
9754
- state.moveY = 0;
9918
+ state.moveY = isLongImage.value ? initialMoveY : 0;
9755
9919
  }
9756
9920
  emit("scale", {
9757
9921
  scale,
@@ -9764,7 +9928,7 @@ var stdin_default$L = vue.defineComponent({
9764
9928
  };
9765
9929
  const toggleScale = () => {
9766
9930
  const scale = state.scale > 1 ? 1 : 2;
9767
- setScale(scale, scale === 2 ? {
9931
+ setScale(scale, scale === 2 || isLongImage.value ? {
9768
9932
  x: touch.startX.value,
9769
9933
  y: touch.startY.value
9770
9934
  } : void 0);
@@ -9794,7 +9958,7 @@ var stdin_default$L = vue.defineComponent({
9794
9958
  startMoveY = state.moveY;
9795
9959
  touchStartTime = Date.now();
9796
9960
  isImageMoved = false;
9797
- state.moving = fingerNum === 1 && state.scale !== 1;
9961
+ state.moving = fingerNum === 1 && (state.scale !== 1 || isLongImage.value);
9798
9962
  state.zooming = fingerNum === 2 && !offsetX.value;
9799
9963
  if (state.zooming) {
9800
9964
  startScale = state.scale;
@@ -9890,12 +10054,34 @@ var stdin_default$L = vue.defineComponent({
9890
10054
  checkTap();
9891
10055
  touch.reset();
9892
10056
  };
10057
+ const resize = () => {
10058
+ const {
10059
+ rootWidth,
10060
+ rootHeight
10061
+ } = props;
10062
+ const rootRatio = rootHeight / rootWidth;
10063
+ const {
10064
+ imageRatio
10065
+ } = state;
10066
+ vertical.value = state.imageRatio > rootRatio && imageRatio < longImageRatio;
10067
+ isLongImage.value = state.imageRatio > rootRatio && imageRatio >= longImageRatio;
10068
+ if (isLongImage.value) {
10069
+ initialMoveY = (imageRatio * rootWidth - rootHeight) / 2;
10070
+ state.moveY = initialMoveY;
10071
+ state.initializing = true;
10072
+ use.raf(() => {
10073
+ state.initializing = false;
10074
+ });
10075
+ }
10076
+ resetScale();
10077
+ };
9893
10078
  const onLoad = (event) => {
9894
10079
  const {
9895
10080
  naturalWidth,
9896
10081
  naturalHeight
9897
10082
  } = event.target;
9898
10083
  state.imageRatio = naturalHeight / naturalWidth;
10084
+ resize();
9899
10085
  };
9900
10086
  vue.watch(() => props.active, resetScale);
9901
10087
  vue.watch(() => props.show, (value) => {
@@ -9903,6 +10089,7 @@ var stdin_default$L = vue.defineComponent({
9903
10089
  resetScale();
9904
10090
  }
9905
10091
  });
10092
+ vue.watch(() => [props.rootWidth, props.rootHeight], resize);
9906
10093
  use.useEventListener("touchmove", onTouchMove, {
9907
10094
  target: vue.computed(() => {
9908
10095
  var _a;
@@ -11457,7 +11644,7 @@ var stdin_default$A = vue.defineComponent({
11457
11644
  }
11458
11645
  });
11459
11646
  const PasswordInput = withInstall(stdin_default$A);
11460
- const PickerGroup = withInstall(stdin_default$1u);
11647
+ const PickerGroup = withInstall(stdin_default$1v);
11461
11648
  const [name$r, bem$q] = createNamespace("popover");
11462
11649
  const popupProps = ["overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
11463
11650
  const popoverProps = {
@@ -11465,6 +11652,7 @@ const popoverProps = {
11465
11652
  theme: makeStringProp("light"),
11466
11653
  overlay: Boolean,
11467
11654
  actions: makeArrayProp(),
11655
+ actionsDirection: makeStringProp("vertical"),
11468
11656
  trigger: makeStringProp("click"),
11469
11657
  duration: numericProp,
11470
11658
  showArrow: truthProp,
@@ -11568,7 +11756,9 @@ var stdin_default$z = vue.defineComponent({
11568
11756
  "classPrefix": props.iconPrefix,
11569
11757
  "class": bem$q("action-icon")
11570
11758
  }, null), vue.createVNode("div", {
11571
- "class": [bem$q("action-text"), BORDER_BOTTOM]
11759
+ "class": [bem$q("action-text"), {
11760
+ [BORDER_BOTTOM]: props.actionsDirection === "vertical"
11761
+ }]
11572
11762
  }, [action.text])];
11573
11763
  };
11574
11764
  const renderAction = (action, index) => {
@@ -11583,7 +11773,9 @@ var stdin_default$z = vue.defineComponent({
11583
11773
  "class": [bem$q("action", {
11584
11774
  disabled,
11585
11775
  "with-icon": icon
11586
- }), className],
11776
+ }), {
11777
+ [BORDER_RIGHT]: props.actionsDirection === "horizontal"
11778
+ }, className],
11587
11779
  "style": {
11588
11780
  color
11589
11781
  },
@@ -11632,7 +11824,7 @@ var stdin_default$z = vue.defineComponent({
11632
11824
  "class": bem$q("arrow")
11633
11825
  }, null), vue.createVNode("div", {
11634
11826
  "role": "menu",
11635
- "class": bem$q("content")
11827
+ "class": bem$q("content", props.actionsDirection)
11636
11828
  }, [slots.default ? slots.default() : props.actions.map(renderAction)])]
11637
11829
  })]);
11638
11830
  };
@@ -12437,6 +12629,7 @@ const signatureProps = {
12437
12629
  penColor: makeStringProp("#000"),
12438
12630
  lineWidth: makeNumberProp(3),
12439
12631
  clearButtonText: String,
12632
+ backgroundColor: makeStringProp(""),
12440
12633
  confirmButtonText: String
12441
12634
  };
12442
12635
  const hasCanvasSupport = () => {
@@ -12456,7 +12649,8 @@ var stdin_default$r = vue.defineComponent({
12456
12649
  const state = vue.reactive({
12457
12650
  width: 0,
12458
12651
  height: 0,
12459
- ctx: null
12652
+ ctx: null,
12653
+ ratio: inBrowser ? window.devicePixelRatio : 1
12460
12654
  });
12461
12655
  let canvasRect;
12462
12656
  const isRenderCanvas = inBrowser ? hasCanvasSupport() : true;
@@ -12465,7 +12659,7 @@ var stdin_default$r = vue.defineComponent({
12465
12659
  return false;
12466
12660
  }
12467
12661
  state.ctx.beginPath();
12468
- state.ctx.lineWidth = props.lineWidth;
12662
+ state.ctx.lineWidth = props.lineWidth * state.ratio;
12469
12663
  state.ctx.strokeStyle = props.penColor;
12470
12664
  canvasRect = use.useRect(canvasRef);
12471
12665
  emit("start");
@@ -12477,8 +12671,8 @@ var stdin_default$r = vue.defineComponent({
12477
12671
  }
12478
12672
  preventDefault(event);
12479
12673
  const touch = event.touches[0];
12480
- const mouseX = touch.clientX - ((canvasRect == null ? void 0 : canvasRect.left) || 0);
12481
- const mouseY = touch.clientY - ((canvasRect == null ? void 0 : canvasRect.top) || 0);
12674
+ const mouseX = (touch.clientX - ((canvasRect == null ? void 0 : canvasRect.left) || 0)) * state.ratio;
12675
+ const mouseY = (touch.clientY - ((canvasRect == null ? void 0 : canvasRect.top) || 0)) * state.ratio;
12482
12676
  state.ctx.lineCap = "round";
12483
12677
  state.ctx.lineJoin = "round";
12484
12678
  (_a = state.ctx) == null ? void 0 : _a.lineTo(mouseX, mouseY);
@@ -12495,13 +12689,23 @@ var stdin_default$r = vue.defineComponent({
12495
12689
  empty.height = canvas.height;
12496
12690
  return canvas.toDataURL() === empty.toDataURL();
12497
12691
  };
12692
+ const setCanvasBgColor = () => {
12693
+ if (state.ctx && props.backgroundColor) {
12694
+ state.ctx.fillStyle = props.backgroundColor;
12695
+ state.ctx.fillRect(0, 0, state.width, state.height);
12696
+ }
12697
+ };
12498
12698
  const submit = () => {
12699
+ var _a, _b;
12499
12700
  const canvas = canvasRef.value;
12500
12701
  if (!canvas) {
12501
12702
  return;
12502
12703
  }
12503
12704
  const isEmpty = isCanvasEmpty(canvas);
12504
- const image = isEmpty ? "" : canvas.toDataURL(`image/${props.type}`, props.type === "jpg" ? 0.9 : null);
12705
+ const image = isEmpty ? "" : ((_b = (_a = {
12706
+ jpg: () => canvas.toDataURL("image/jpeg", 0.8),
12707
+ jpeg: () => canvas.toDataURL("image/jpeg", 0.8)
12708
+ })[props.type]) == null ? void 0 : _b.call(_a)) || canvas.toDataURL(`image/${props.type}`);
12505
12709
  emit("submit", {
12506
12710
  image,
12507
12711
  canvas
@@ -12511,6 +12715,7 @@ var stdin_default$r = vue.defineComponent({
12511
12715
  if (state.ctx) {
12512
12716
  state.ctx.clearRect(0, 0, state.width, state.height);
12513
12717
  state.ctx.closePath();
12718
+ setCanvasBgColor();
12514
12719
  }
12515
12720
  emit("clear");
12516
12721
  };
@@ -12518,8 +12723,11 @@ var stdin_default$r = vue.defineComponent({
12518
12723
  var _a, _b, _c;
12519
12724
  if (isRenderCanvas) {
12520
12725
  state.ctx = (_a = canvasRef.value) == null ? void 0 : _a.getContext("2d");
12521
- state.width = ((_b = wrapRef.value) == null ? void 0 : _b.offsetWidth) || 0;
12522
- state.height = ((_c = wrapRef.value) == null ? void 0 : _c.offsetHeight) || 0;
12726
+ state.width = (((_b = wrapRef.value) == null ? void 0 : _b.offsetWidth) || 0) * state.ratio;
12727
+ state.height = (((_c = wrapRef.value) == null ? void 0 : _c.offsetHeight) || 0) * state.ratio;
12728
+ vue.nextTick(() => {
12729
+ setCanvasBgColor();
12730
+ });
12523
12731
  }
12524
12732
  });
12525
12733
  return () => vue.createVNode("div", {
@@ -12803,6 +13011,14 @@ var stdin_default$i = vue.defineComponent({
12803
13011
  const diff = Math.round((value - min) / step) * step;
12804
13012
  return addNumber(min, diff);
12805
13013
  };
13014
+ const updateStartValue = () => {
13015
+ const current22 = props.modelValue;
13016
+ if (isRange(current22)) {
13017
+ startValue = current22.map(format2);
13018
+ } else {
13019
+ startValue = format2(current22);
13020
+ }
13021
+ };
12806
13022
  const handleRangeValue = (value) => {
12807
13023
  var _a, _b;
12808
13024
  const left = (_a = value[0]) != null ? _a : Number(props.min);
@@ -12827,6 +13043,7 @@ var stdin_default$i = vue.defineComponent({
12827
13043
  if (props.disabled || props.readonly) {
12828
13044
  return;
12829
13045
  }
13046
+ updateStartValue();
12830
13047
  const {
12831
13048
  min,
12832
13049
  reverse,
@@ -12866,11 +13083,7 @@ var stdin_default$i = vue.defineComponent({
12866
13083
  }
12867
13084
  touch.start(event);
12868
13085
  current2 = props.modelValue;
12869
- if (isRange(current2)) {
12870
- startValue = current2.map(format2);
12871
- } else {
12872
- startValue = format2(current2);
12873
- }
13086
+ updateStartValue();
12874
13087
  dragStatus.value = "start";
12875
13088
  };
12876
13089
  const onTouchMove = (event) => {
@@ -14230,10 +14443,11 @@ var stdin_default$6 = vue.defineComponent({
14230
14443
  imageFit: String,
14231
14444
  lazyLoad: Boolean,
14232
14445
  deletable: Boolean,
14446
+ reupload: Boolean,
14233
14447
  previewSize: [Number, String, Array],
14234
14448
  beforeDelete: Function
14235
14449
  },
14236
- emits: ["delete", "preview"],
14450
+ emits: ["delete", "preview", "reupload"],
14237
14451
  setup(props, {
14238
14452
  emit,
14239
14453
  slots
@@ -14275,6 +14489,7 @@ var stdin_default$6 = vue.defineComponent({
14275
14489
  });
14276
14490
  };
14277
14491
  const onPreview = () => emit("preview");
14492
+ const onReupload = () => emit("reupload");
14278
14493
  const renderDeleteIcon = () => {
14279
14494
  if (props.deletable && props.item.status !== "uploading") {
14280
14495
  const slot = slots["preview-delete"];
@@ -14310,7 +14525,8 @@ var stdin_default$6 = vue.defineComponent({
14310
14525
  item,
14311
14526
  lazyLoad,
14312
14527
  imageFit,
14313
- previewSize
14528
+ previewSize,
14529
+ reupload
14314
14530
  } = props;
14315
14531
  if (isImageFile(item)) {
14316
14532
  return vue.createVNode(Image$1, {
@@ -14320,7 +14536,7 @@ var stdin_default$6 = vue.defineComponent({
14320
14536
  "width": Array.isArray(previewSize) ? previewSize[0] : previewSize,
14321
14537
  "height": Array.isArray(previewSize) ? previewSize[1] : previewSize,
14322
14538
  "lazyLoad": lazyLoad,
14323
- "onClick": onPreview
14539
+ "onClick": reupload ? onReupload : onPreview
14324
14540
  }, {
14325
14541
  default: renderCover
14326
14542
  });
@@ -14354,6 +14570,7 @@ const uploaderProps = {
14354
14570
  uploadIcon: makeStringProp("photograph"),
14355
14571
  uploadText: String,
14356
14572
  deletable: truthProp,
14573
+ reupload: Boolean,
14357
14574
  afterRead: Function,
14358
14575
  showUpload: truthProp,
14359
14576
  modelValue: makeArrayProp(),
@@ -14371,13 +14588,14 @@ const uploaderProps = {
14371
14588
  var stdin_default$5 = vue.defineComponent({
14372
14589
  name: name$1,
14373
14590
  props: uploaderProps,
14374
- emits: ["delete", "oversize", "clickUpload", "closePreview", "clickPreview", "update:modelValue"],
14591
+ emits: ["delete", "oversize", "clickUpload", "closePreview", "clickPreview", "clickReupload", "update:modelValue"],
14375
14592
  setup(props, {
14376
14593
  emit,
14377
14594
  slots
14378
14595
  }) {
14379
14596
  const inputRef = vue.ref();
14380
14597
  const urls = [];
14598
+ const reuploadIndex = vue.ref(-1);
14381
14599
  const getDetail = (index = props.modelValue.length) => ({
14382
14600
  name: props.name,
14383
14601
  index
@@ -14403,7 +14621,14 @@ var stdin_default$5 = vue.defineComponent({
14403
14621
  }
14404
14622
  }
14405
14623
  items = vue.reactive(items);
14406
- emit("update:modelValue", [...props.modelValue, ...toArray(items)]);
14624
+ if (reuploadIndex.value > -1) {
14625
+ const arr = [...props.modelValue];
14626
+ arr.splice(reuploadIndex.value, 1, items);
14627
+ emit("update:modelValue", arr);
14628
+ reuploadIndex.value = -1;
14629
+ } else {
14630
+ emit("update:modelValue", [...props.modelValue, ...toArray(items)]);
14631
+ }
14407
14632
  if (props.afterRead) {
14408
14633
  props.afterRead(items, getDetail());
14409
14634
  }
@@ -14504,15 +14729,20 @@ var stdin_default$5 = vue.defineComponent({
14504
14729
  emit("update:modelValue", fileList);
14505
14730
  emit("delete", item, getDetail(index));
14506
14731
  };
14732
+ const reuploadImage = (index) => {
14733
+ chooseFile();
14734
+ reuploadIndex.value = index;
14735
+ };
14507
14736
  const renderPreviewItem = (item, index) => {
14508
- const needPickData = ["imageFit", "deletable", "previewSize", "beforeDelete"];
14737
+ const needPickData = ["imageFit", "deletable", "reupload", "previewSize", "beforeDelete"];
14509
14738
  const previewData = extend(pick(props, needPickData), pick(item, needPickData, true));
14510
14739
  return vue.createVNode(stdin_default$6, vue.mergeProps({
14511
14740
  "item": item,
14512
14741
  "index": index,
14513
- "onClick": () => emit("clickPreview", item, getDetail(index)),
14742
+ "onClick": () => emit(props.reupload ? "clickReupload" : "clickPreview", item, getDetail(index)),
14514
14743
  "onDelete": () => deleteFile(item, index),
14515
- "onPreview": () => previewImage(item)
14744
+ "onPreview": () => previewImage(item),
14745
+ "onReupload": () => reuploadImage(index)
14516
14746
  }, pick(props, ["name", "lazyLoad"]), previewData), pick(slots, ["preview-cover", "preview-delete"]));
14517
14747
  };
14518
14748
  const renderPreviewList = () => {
@@ -14522,24 +14752,25 @@ var stdin_default$5 = vue.defineComponent({
14522
14752
  };
14523
14753
  const onClickUpload = (event) => emit("clickUpload", event);
14524
14754
  const renderUpload = () => {
14525
- if (props.modelValue.length >= +props.maxCount) {
14755
+ if (props.modelValue.length >= +props.maxCount && !props.reupload) {
14526
14756
  return;
14527
14757
  }
14758
+ const hideUploader = props.modelValue.length >= +props.maxCount && props.reupload;
14528
14759
  const Input = props.readonly ? null : vue.createVNode("input", {
14529
14760
  "ref": inputRef,
14530
14761
  "type": "file",
14531
14762
  "class": bem$1("input"),
14532
14763
  "accept": props.accept,
14533
14764
  "capture": props.capture,
14534
- "multiple": props.multiple,
14765
+ "multiple": props.multiple && reuploadIndex.value === -1,
14535
14766
  "disabled": props.disabled,
14536
14767
  "onChange": onChange
14537
14768
  }, null);
14538
14769
  if (slots.default) {
14539
- return vue.createVNode("div", {
14770
+ return vue.withDirectives(vue.createVNode("div", {
14540
14771
  "class": bem$1("input-wrapper"),
14541
14772
  "onClick": onClickUpload
14542
- }, [slots.default(), Input]);
14773
+ }, [slots.default(), Input]), [[vue.vShow, !hideUploader]]);
14543
14774
  }
14544
14775
  return vue.withDirectives(vue.createVNode("div", {
14545
14776
  "class": bem$1("upload", {
@@ -14552,7 +14783,7 @@ var stdin_default$5 = vue.defineComponent({
14552
14783
  "class": bem$1("upload-icon")
14553
14784
  }, null), props.uploadText && vue.createVNode("span", {
14554
14785
  "class": bem$1("upload-text")
14555
- }, [props.uploadText]), Input]), [[vue.vShow, props.showUpload]]);
14786
+ }, [props.uploadText]), Input]), [[vue.vShow, props.showUpload && !hideUploader]]);
14556
14787
  };
14557
14788
  const chooseFile = () => {
14558
14789
  if (inputRef.value && !props.disabled) {
@@ -15579,7 +15810,7 @@ const Lazyload = {
15579
15810
  });
15580
15811
  }
15581
15812
  };
15582
- const version = "4.3.2";
15813
+ const version = "4.4.1";
15583
15814
  function install(app) {
15584
15815
  const components = [
15585
15816
  ActionBar,
@@ -15591,6 +15822,7 @@ function install(app) {
15591
15822
  Area,
15592
15823
  BackTop,
15593
15824
  Badge,
15825
+ Barrage,
15594
15826
  Button,
15595
15827
  Calendar,
15596
15828
  Card,
@@ -15700,6 +15932,7 @@ exports.AddressList = AddressList;
15700
15932
  exports.Area = Area;
15701
15933
  exports.BackTop = BackTop;
15702
15934
  exports.Badge = Badge;
15935
+ exports.Barrage = Barrage;
15703
15936
  exports.Button = Button;
15704
15937
  exports.Calendar = Calendar;
15705
15938
  exports.Card = Card;
@@ -15799,6 +16032,7 @@ exports.allowMultipleToast = allowMultipleToast;
15799
16032
  exports.areaProps = areaProps;
15800
16033
  exports.backTopProps = backTopProps;
15801
16034
  exports.badgeProps = badgeProps;
16035
+ exports.barrageProps = barrageProps;
15802
16036
  exports.buttonProps = buttonProps;
15803
16037
  exports.calendarProps = calendarProps;
15804
16038
  exports.cardProps = cardProps;