vant 4.4.0 → 4.5.0

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 (473) 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/AddressEditDetail.d.ts +1 -1
  11. package/es/address-edit/index.d.ts +1 -1
  12. package/es/address-list/AddressList.d.ts +14 -1
  13. package/es/address-list/AddressList.mjs +4 -2
  14. package/es/address-list/AddressListItem.d.ts +10 -1
  15. package/es/address-list/AddressListItem.mjs +4 -3
  16. package/es/address-list/index.d.ts +10 -1
  17. package/es/area/Area.d.ts +1 -1
  18. package/es/area/index.d.ts +1 -1
  19. package/es/back-top/BackTop.d.ts +1 -1
  20. package/es/back-top/BackTop.mjs +14 -1
  21. package/es/back-top/index.d.ts +1 -1
  22. package/es/badge/Badge.d.ts +1 -1
  23. package/es/badge/index.d.ts +1 -1
  24. package/es/barrage/Barrage.d.ts +1 -1
  25. package/es/barrage/index.d.ts +1 -1
  26. package/es/button/Button.d.ts +1 -1
  27. package/es/button/index.d.ts +1 -1
  28. package/es/calendar/Calendar.d.ts +1 -1
  29. package/es/calendar/CalendarDay.d.ts +1 -1
  30. package/es/calendar/CalendarHeader.d.ts +1 -1
  31. package/es/calendar/CalendarMonth.d.ts +1 -1
  32. package/es/calendar/index.d.ts +1 -1
  33. package/es/card/Card.d.ts +1 -1
  34. package/es/card/index.d.ts +1 -1
  35. package/es/cascader/Cascader.d.ts +1 -1
  36. package/es/cascader/index.d.ts +1 -1
  37. package/es/cell/Cell.d.ts +1 -1
  38. package/es/cell/index.d.ts +1 -1
  39. package/es/cell-group/CellGroup.d.ts +1 -1
  40. package/es/cell-group/index.d.ts +1 -1
  41. package/es/checkbox/Checkbox.d.ts +1 -1
  42. package/es/checkbox/Checker.d.ts +1 -1
  43. package/es/checkbox/index.d.ts +1 -1
  44. package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
  45. package/es/checkbox-group/index.d.ts +1 -1
  46. package/es/circle/Circle.d.ts +1 -1
  47. package/es/circle/index.d.ts +1 -1
  48. package/es/col/Col.d.ts +1 -1
  49. package/es/col/index.d.ts +1 -1
  50. package/es/collapse/Collapse.d.ts +1 -1
  51. package/es/collapse/index.d.ts +1 -1
  52. package/es/collapse-item/CollapseItem.d.ts +1 -1
  53. package/es/collapse-item/index.d.ts +1 -1
  54. package/es/config-provider/ConfigProvider.d.ts +1 -1
  55. package/es/config-provider/index.d.ts +1 -1
  56. package/es/contact-card/ContactCard.d.ts +1 -1
  57. package/es/contact-card/index.d.ts +1 -1
  58. package/es/contact-edit/ContactEdit.d.ts +1 -1
  59. package/es/contact-edit/index.d.ts +1 -1
  60. package/es/contact-list/ContactList.d.ts +1 -1
  61. package/es/contact-list/index.d.ts +1 -1
  62. package/es/count-down/CountDown.d.ts +1 -1
  63. package/es/count-down/index.d.ts +1 -1
  64. package/es/coupon/Coupon.d.ts +1 -1
  65. package/es/coupon/index.d.ts +1 -1
  66. package/es/coupon-cell/CouponCell.d.ts +1 -1
  67. package/es/coupon-cell/index.d.ts +1 -1
  68. package/es/coupon-list/CouponList.d.ts +1 -1
  69. package/es/coupon-list/index.d.ts +1 -1
  70. package/es/date-picker/DatePicker.d.ts +4 -4
  71. package/es/date-picker/index.d.ts +3 -3
  72. package/es/date-picker/utils.d.ts +4 -2
  73. package/es/date-picker/utils.mjs +8 -3
  74. package/es/dialog/Dialog.d.ts +1 -1
  75. package/es/dialog/index.d.ts +1 -1
  76. package/es/divider/Divider.d.ts +1 -1
  77. package/es/divider/index.d.ts +1 -1
  78. package/es/dropdown-item/DropdownItem.d.ts +1 -1
  79. package/es/dropdown-item/index.d.ts +1 -1
  80. package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
  81. package/es/dropdown-menu/DropdownMenu.mjs +10 -3
  82. package/es/dropdown-menu/index.d.ts +1 -1
  83. package/es/dropdown-menu/types.d.ts +5 -1
  84. package/es/empty/Empty.d.ts +1 -1
  85. package/es/empty/index.d.ts +1 -1
  86. package/es/field/Field.d.ts +1 -1
  87. package/es/field/index.d.ts +1 -1
  88. package/es/floating-panel/FloatingPanel.d.ts +77 -0
  89. package/es/floating-panel/FloatingPanel.mjs +126 -0
  90. package/es/floating-panel/index.css +1 -0
  91. package/es/floating-panel/index.d.ts +60 -0
  92. package/es/floating-panel/index.mjs +8 -0
  93. package/es/floating-panel/style/index.d.ts +1 -0
  94. package/es/floating-panel/style/index.mjs +2 -0
  95. package/es/form/Form.d.ts +1 -1
  96. package/es/form/index.d.ts +1 -1
  97. package/es/grid/Grid.d.ts +1 -1
  98. package/es/grid/index.d.ts +1 -1
  99. package/es/grid-item/GridItem.d.ts +1 -1
  100. package/es/grid-item/index.d.ts +1 -1
  101. package/es/icon/Icon.d.ts +1 -1
  102. package/es/icon/index.d.ts +1 -1
  103. package/es/image/Image.d.ts +1 -1
  104. package/es/image/index.d.ts +1 -1
  105. package/es/image-preview/ImagePreview.d.ts +1 -1
  106. package/es/image-preview/ImagePreviewItem.d.ts +1 -1
  107. package/es/image-preview/ImagePreviewItem.mjs +9 -3
  108. package/es/image-preview/index.d.ts +1 -1
  109. package/es/index-anchor/IndexAnchor.d.ts +1 -1
  110. package/es/index-anchor/index.d.ts +1 -1
  111. package/es/index-bar/IndexBar.d.ts +1 -1
  112. package/es/index-bar/index.d.ts +1 -1
  113. package/es/index.d.ts +2 -1
  114. package/es/index.mjs +4 -1
  115. package/es/list/List.d.ts +1 -1
  116. package/es/list/index.d.ts +1 -1
  117. package/es/loading/Loading.d.ts +1 -1
  118. package/es/loading/index.d.ts +1 -1
  119. package/es/nav-bar/NavBar.d.ts +1 -1
  120. package/es/nav-bar/index.d.ts +1 -1
  121. package/es/notice-bar/NoticeBar.d.ts +1 -1
  122. package/es/notice-bar/index.d.ts +1 -1
  123. package/es/notify/Notify.d.ts +1 -1
  124. package/es/notify/index.d.ts +1 -1
  125. package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
  126. package/es/number-keyboard/NumberKeyboardKey.d.ts +1 -1
  127. package/es/number-keyboard/index.d.ts +1 -1
  128. package/es/overlay/Overlay.d.ts +1 -1
  129. package/es/overlay/index.d.ts +1 -1
  130. package/es/pagination/Pagination.d.ts +1 -1
  131. package/es/pagination/index.d.ts +1 -1
  132. package/es/password-input/PasswordInput.d.ts +1 -1
  133. package/es/password-input/index.d.ts +1 -1
  134. package/es/picker/Picker.d.ts +1 -1
  135. package/es/picker/PickerColumn.d.ts +1 -1
  136. package/es/picker/PickerToolbar.d.ts +1 -1
  137. package/es/picker/index.d.ts +1 -1
  138. package/es/picker-group/PickerGroup.d.ts +1 -1
  139. package/es/picker-group/index.d.ts +1 -1
  140. package/es/popover/Popover.d.ts +15 -2
  141. package/es/popover/Popover.mjs +9 -4
  142. package/es/popover/index.css +1 -1
  143. package/es/popover/index.d.ts +10 -1
  144. package/es/popover/types.d.ts +1 -0
  145. package/es/popup/Popup.d.ts +1 -1
  146. package/es/popup/Popup.mjs +8 -1
  147. package/es/popup/index.d.ts +1 -1
  148. package/es/progress/Progress.d.ts +1 -1
  149. package/es/progress/index.d.ts +1 -1
  150. package/es/pull-refresh/PullRefresh.d.ts +1 -1
  151. package/es/pull-refresh/index.d.ts +1 -1
  152. package/es/radio/Radio.d.ts +1 -1
  153. package/es/radio/index.d.ts +1 -1
  154. package/es/radio-group/RadioGroup.d.ts +1 -1
  155. package/es/radio-group/index.d.ts +1 -1
  156. package/es/rate/Rate.d.ts +1 -1
  157. package/es/rate/index.d.ts +1 -1
  158. package/es/row/Row.d.ts +1 -1
  159. package/es/row/index.d.ts +1 -1
  160. package/es/search/Search.d.ts +1 -1
  161. package/es/search/index.d.ts +1 -1
  162. package/es/share-sheet/ShareSheet.d.ts +1 -1
  163. package/es/share-sheet/index.d.ts +1 -1
  164. package/es/sidebar/Sidebar.d.ts +1 -1
  165. package/es/sidebar/index.d.ts +1 -1
  166. package/es/sidebar-item/SidebarItem.d.ts +1 -1
  167. package/es/sidebar-item/index.d.ts +1 -1
  168. package/es/signature/Signature.d.ts +1 -1
  169. package/es/signature/index.d.ts +1 -1
  170. package/es/skeleton/Skeleton.d.ts +1 -1
  171. package/es/skeleton/index.d.ts +1 -1
  172. package/es/skeleton-avatar/SkeletonAvatar.d.ts +1 -1
  173. package/es/skeleton-avatar/index.d.ts +1 -1
  174. package/es/skeleton-image/SkeletonImage.d.ts +1 -1
  175. package/es/skeleton-image/index.d.ts +1 -1
  176. package/es/skeleton-paragraph/SkeletonParagraph.d.ts +1 -1
  177. package/es/skeleton-paragraph/index.d.ts +1 -1
  178. package/es/skeleton-title/SkeletonTitle.d.ts +1 -1
  179. package/es/skeleton-title/index.d.ts +1 -1
  180. package/es/slider/Slider.d.ts +1 -1
  181. package/es/slider/Slider.mjs +20 -7
  182. package/es/slider/index.d.ts +1 -1
  183. package/es/space/Space.d.ts +1 -1
  184. package/es/space/index.d.ts +1 -1
  185. package/es/step/Step.d.ts +1 -1
  186. package/es/step/index.d.ts +1 -1
  187. package/es/stepper/Stepper.d.ts +1 -1
  188. package/es/stepper/index.d.ts +1 -1
  189. package/es/steps/Steps.d.ts +1 -1
  190. package/es/steps/index.d.ts +1 -1
  191. package/es/sticky/Sticky.d.ts +1 -1
  192. package/es/sticky/index.d.ts +1 -1
  193. package/es/submit-bar/SubmitBar.d.ts +1 -1
  194. package/es/submit-bar/index.d.ts +1 -1
  195. package/es/swipe/Swipe.d.ts +1 -1
  196. package/es/swipe/index.d.ts +1 -1
  197. package/es/swipe-cell/SwipeCell.d.ts +1 -1
  198. package/es/swipe-cell/index.d.ts +1 -1
  199. package/es/swipe-item/SwipeItem.d.ts +1 -1
  200. package/es/swipe-item/index.d.ts +1 -1
  201. package/es/switch/Switch.d.ts +1 -1
  202. package/es/switch/index.d.ts +1 -1
  203. package/es/tab/Tab.d.ts +1 -1
  204. package/es/tab/Tab.mjs +14 -3
  205. package/es/tab/TabTitle.d.ts +1 -1
  206. package/es/tab/index.d.ts +1 -1
  207. package/es/tabbar/Tabbar.d.ts +1 -1
  208. package/es/tabbar/index.d.ts +1 -1
  209. package/es/tabbar-item/TabbarItem.d.ts +1 -1
  210. package/es/tabbar-item/index.d.ts +1 -1
  211. package/es/tabs/Tabs.d.ts +1 -1
  212. package/es/tabs/TabsContent.d.ts +1 -1
  213. package/es/tabs/index.d.ts +1 -1
  214. package/es/tag/Tag.d.ts +1 -1
  215. package/es/tag/index.d.ts +1 -1
  216. package/es/text-ellipsis/TextEllipsis.d.ts +1 -1
  217. package/es/text-ellipsis/index.d.ts +1 -1
  218. package/es/time-picker/TimePicker.d.ts +32 -5
  219. package/es/time-picker/TimePicker.mjs +73 -21
  220. package/es/time-picker/index.d.ts +21 -3
  221. package/es/toast/Toast.d.ts +1 -1
  222. package/es/toast/index.d.ts +1 -1
  223. package/es/tree-select/TreeSelect.d.ts +1 -1
  224. package/es/tree-select/index.d.ts +1 -1
  225. package/es/uploader/Uploader.d.ts +1 -1
  226. package/es/uploader/UploaderPreviewItem.d.ts +1 -1
  227. package/es/uploader/index.d.ts +1 -1
  228. package/es/utils/basic.d.ts +3 -0
  229. package/es/utils/constant.d.ts +1 -0
  230. package/es/utils/constant.mjs +2 -0
  231. package/es/utils/mount-component.d.ts +1 -1
  232. package/es/watermark/Watermark.d.ts +1 -1
  233. package/es/watermark/index.d.ts +1 -1
  234. package/lib/action-bar/ActionBar.d.ts +1 -1
  235. package/lib/action-bar/index.d.ts +1 -1
  236. package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
  237. package/lib/action-bar-button/index.d.ts +1 -1
  238. package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
  239. package/lib/action-bar-icon/index.d.ts +1 -1
  240. package/lib/action-sheet/ActionSheet.d.ts +1 -1
  241. package/lib/action-sheet/index.d.ts +1 -1
  242. package/lib/address-edit/AddressEdit.d.ts +1 -1
  243. package/lib/address-edit/AddressEditDetail.d.ts +1 -1
  244. package/lib/address-edit/index.d.ts +1 -1
  245. package/lib/address-list/AddressList.d.ts +14 -1
  246. package/lib/address-list/AddressList.js +3 -1
  247. package/lib/address-list/AddressListItem.d.ts +10 -1
  248. package/lib/address-list/AddressListItem.js +3 -2
  249. package/lib/address-list/index.d.ts +10 -1
  250. package/lib/area/Area.d.ts +1 -1
  251. package/lib/area/index.d.ts +1 -1
  252. package/lib/back-top/BackTop.d.ts +1 -1
  253. package/lib/back-top/BackTop.js +13 -0
  254. package/lib/back-top/index.d.ts +1 -1
  255. package/lib/badge/Badge.d.ts +1 -1
  256. package/lib/badge/index.d.ts +1 -1
  257. package/lib/barrage/Barrage.d.ts +1 -1
  258. package/lib/barrage/index.d.ts +1 -1
  259. package/lib/button/Button.d.ts +1 -1
  260. package/lib/button/index.d.ts +1 -1
  261. package/lib/calendar/Calendar.d.ts +1 -1
  262. package/lib/calendar/CalendarDay.d.ts +1 -1
  263. package/lib/calendar/CalendarHeader.d.ts +1 -1
  264. package/lib/calendar/CalendarMonth.d.ts +1 -1
  265. package/lib/calendar/index.d.ts +1 -1
  266. package/lib/card/Card.d.ts +1 -1
  267. package/lib/card/index.d.ts +1 -1
  268. package/lib/cascader/Cascader.d.ts +1 -1
  269. package/lib/cascader/index.d.ts +1 -1
  270. package/lib/cell/Cell.d.ts +1 -1
  271. package/lib/cell/index.d.ts +1 -1
  272. package/lib/cell-group/CellGroup.d.ts +1 -1
  273. package/lib/cell-group/index.d.ts +1 -1
  274. package/lib/checkbox/Checkbox.d.ts +1 -1
  275. package/lib/checkbox/Checker.d.ts +1 -1
  276. package/lib/checkbox/index.d.ts +1 -1
  277. package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
  278. package/lib/checkbox-group/index.d.ts +1 -1
  279. package/lib/circle/Circle.d.ts +1 -1
  280. package/lib/circle/index.d.ts +1 -1
  281. package/lib/col/Col.d.ts +1 -1
  282. package/lib/col/index.d.ts +1 -1
  283. package/lib/collapse/Collapse.d.ts +1 -1
  284. package/lib/collapse/index.d.ts +1 -1
  285. package/lib/collapse-item/CollapseItem.d.ts +1 -1
  286. package/lib/collapse-item/index.d.ts +1 -1
  287. package/lib/config-provider/ConfigProvider.d.ts +1 -1
  288. package/lib/config-provider/index.d.ts +1 -1
  289. package/lib/contact-card/ContactCard.d.ts +1 -1
  290. package/lib/contact-card/index.d.ts +1 -1
  291. package/lib/contact-edit/ContactEdit.d.ts +1 -1
  292. package/lib/contact-edit/index.d.ts +1 -1
  293. package/lib/contact-list/ContactList.d.ts +1 -1
  294. package/lib/contact-list/index.d.ts +1 -1
  295. package/lib/count-down/CountDown.d.ts +1 -1
  296. package/lib/count-down/index.d.ts +1 -1
  297. package/lib/coupon/Coupon.d.ts +1 -1
  298. package/lib/coupon/index.d.ts +1 -1
  299. package/lib/coupon-cell/CouponCell.d.ts +1 -1
  300. package/lib/coupon-cell/index.d.ts +1 -1
  301. package/lib/coupon-list/CouponList.d.ts +1 -1
  302. package/lib/coupon-list/index.d.ts +1 -1
  303. package/lib/date-picker/DatePicker.d.ts +4 -4
  304. package/lib/date-picker/index.d.ts +3 -3
  305. package/lib/date-picker/utils.d.ts +4 -2
  306. package/lib/date-picker/utils.js +2 -2
  307. package/lib/dialog/Dialog.d.ts +1 -1
  308. package/lib/dialog/index.d.ts +1 -1
  309. package/lib/divider/Divider.d.ts +1 -1
  310. package/lib/divider/index.d.ts +1 -1
  311. package/lib/dropdown-item/DropdownItem.d.ts +1 -1
  312. package/lib/dropdown-item/index.d.ts +1 -1
  313. package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
  314. package/lib/dropdown-menu/DropdownMenu.js +10 -3
  315. package/lib/dropdown-menu/index.d.ts +1 -1
  316. package/lib/dropdown-menu/types.d.ts +5 -1
  317. package/lib/empty/Empty.d.ts +1 -1
  318. package/lib/empty/index.d.ts +1 -1
  319. package/lib/field/Field.d.ts +1 -1
  320. package/lib/field/index.d.ts +1 -1
  321. package/lib/floating-panel/FloatingPanel.d.ts +77 -0
  322. package/lib/floating-panel/FloatingPanel.js +145 -0
  323. package/lib/floating-panel/index.css +1 -0
  324. package/lib/floating-panel/index.d.ts +60 -0
  325. package/lib/floating-panel/index.js +37 -0
  326. package/lib/floating-panel/style/index.d.ts +1 -0
  327. package/lib/floating-panel/style/index.js +2 -0
  328. package/lib/form/Form.d.ts +1 -1
  329. package/lib/form/index.d.ts +1 -1
  330. package/lib/grid/Grid.d.ts +1 -1
  331. package/lib/grid/index.d.ts +1 -1
  332. package/lib/grid-item/GridItem.d.ts +1 -1
  333. package/lib/grid-item/index.d.ts +1 -1
  334. package/lib/icon/Icon.d.ts +1 -1
  335. package/lib/icon/index.d.ts +1 -1
  336. package/lib/image/Image.d.ts +1 -1
  337. package/lib/image/index.d.ts +1 -1
  338. package/lib/image-preview/ImagePreview.d.ts +1 -1
  339. package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
  340. package/lib/image-preview/ImagePreviewItem.js +8 -2
  341. package/lib/image-preview/index.d.ts +1 -1
  342. package/lib/index-anchor/IndexAnchor.d.ts +1 -1
  343. package/lib/index-anchor/index.d.ts +1 -1
  344. package/lib/index-bar/IndexBar.d.ts +1 -1
  345. package/lib/index-bar/index.d.ts +1 -1
  346. package/lib/index.css +1 -1
  347. package/lib/index.d.ts +2 -1
  348. package/lib/index.js +4 -1
  349. package/lib/list/List.d.ts +1 -1
  350. package/lib/list/index.d.ts +1 -1
  351. package/lib/loading/Loading.d.ts +1 -1
  352. package/lib/loading/index.d.ts +1 -1
  353. package/lib/nav-bar/NavBar.d.ts +1 -1
  354. package/lib/nav-bar/index.d.ts +1 -1
  355. package/lib/notice-bar/NoticeBar.d.ts +1 -1
  356. package/lib/notice-bar/index.d.ts +1 -1
  357. package/lib/notify/Notify.d.ts +1 -1
  358. package/lib/notify/index.d.ts +1 -1
  359. package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
  360. package/lib/number-keyboard/NumberKeyboardKey.d.ts +1 -1
  361. package/lib/number-keyboard/index.d.ts +1 -1
  362. package/lib/overlay/Overlay.d.ts +1 -1
  363. package/lib/overlay/index.d.ts +1 -1
  364. package/lib/pagination/Pagination.d.ts +1 -1
  365. package/lib/pagination/index.d.ts +1 -1
  366. package/lib/password-input/PasswordInput.d.ts +1 -1
  367. package/lib/password-input/index.d.ts +1 -1
  368. package/lib/picker/Picker.d.ts +1 -1
  369. package/lib/picker/PickerColumn.d.ts +1 -1
  370. package/lib/picker/PickerToolbar.d.ts +1 -1
  371. package/lib/picker/index.d.ts +1 -1
  372. package/lib/picker-group/PickerGroup.d.ts +1 -1
  373. package/lib/picker-group/index.d.ts +1 -1
  374. package/lib/popover/Popover.d.ts +15 -2
  375. package/lib/popover/Popover.js +8 -3
  376. package/lib/popover/index.css +1 -1
  377. package/lib/popover/index.d.ts +10 -1
  378. package/lib/popover/types.d.ts +1 -0
  379. package/lib/popup/Popup.d.ts +1 -1
  380. package/lib/popup/Popup.js +8 -1
  381. package/lib/popup/index.d.ts +1 -1
  382. package/lib/progress/Progress.d.ts +1 -1
  383. package/lib/progress/index.d.ts +1 -1
  384. package/lib/pull-refresh/PullRefresh.d.ts +1 -1
  385. package/lib/pull-refresh/index.d.ts +1 -1
  386. package/lib/radio/Radio.d.ts +1 -1
  387. package/lib/radio/index.d.ts +1 -1
  388. package/lib/radio-group/RadioGroup.d.ts +1 -1
  389. package/lib/radio-group/index.d.ts +1 -1
  390. package/lib/rate/Rate.d.ts +1 -1
  391. package/lib/rate/index.d.ts +1 -1
  392. package/lib/row/Row.d.ts +1 -1
  393. package/lib/row/index.d.ts +1 -1
  394. package/lib/search/Search.d.ts +1 -1
  395. package/lib/search/index.d.ts +1 -1
  396. package/lib/share-sheet/ShareSheet.d.ts +1 -1
  397. package/lib/share-sheet/index.d.ts +1 -1
  398. package/lib/sidebar/Sidebar.d.ts +1 -1
  399. package/lib/sidebar/index.d.ts +1 -1
  400. package/lib/sidebar-item/SidebarItem.d.ts +1 -1
  401. package/lib/sidebar-item/index.d.ts +1 -1
  402. package/lib/signature/Signature.d.ts +1 -1
  403. package/lib/signature/index.d.ts +1 -1
  404. package/lib/skeleton/Skeleton.d.ts +1 -1
  405. package/lib/skeleton/index.d.ts +1 -1
  406. package/lib/skeleton-avatar/SkeletonAvatar.d.ts +1 -1
  407. package/lib/skeleton-avatar/index.d.ts +1 -1
  408. package/lib/skeleton-image/SkeletonImage.d.ts +1 -1
  409. package/lib/skeleton-image/index.d.ts +1 -1
  410. package/lib/skeleton-paragraph/SkeletonParagraph.d.ts +1 -1
  411. package/lib/skeleton-paragraph/index.d.ts +1 -1
  412. package/lib/skeleton-title/SkeletonTitle.d.ts +1 -1
  413. package/lib/skeleton-title/index.d.ts +1 -1
  414. package/lib/slider/Slider.d.ts +1 -1
  415. package/lib/slider/Slider.js +20 -7
  416. package/lib/slider/index.d.ts +1 -1
  417. package/lib/space/Space.d.ts +1 -1
  418. package/lib/space/index.d.ts +1 -1
  419. package/lib/step/Step.d.ts +1 -1
  420. package/lib/step/index.d.ts +1 -1
  421. package/lib/stepper/Stepper.d.ts +1 -1
  422. package/lib/stepper/index.d.ts +1 -1
  423. package/lib/steps/Steps.d.ts +1 -1
  424. package/lib/steps/index.d.ts +1 -1
  425. package/lib/sticky/Sticky.d.ts +1 -1
  426. package/lib/sticky/index.d.ts +1 -1
  427. package/lib/submit-bar/SubmitBar.d.ts +1 -1
  428. package/lib/submit-bar/index.d.ts +1 -1
  429. package/lib/swipe/Swipe.d.ts +1 -1
  430. package/lib/swipe/index.d.ts +1 -1
  431. package/lib/swipe-cell/SwipeCell.d.ts +1 -1
  432. package/lib/swipe-cell/index.d.ts +1 -1
  433. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  434. package/lib/swipe-item/index.d.ts +1 -1
  435. package/lib/switch/Switch.d.ts +1 -1
  436. package/lib/switch/index.d.ts +1 -1
  437. package/lib/tab/Tab.d.ts +1 -1
  438. package/lib/tab/Tab.js +13 -2
  439. package/lib/tab/TabTitle.d.ts +1 -1
  440. package/lib/tab/index.d.ts +1 -1
  441. package/lib/tabbar/Tabbar.d.ts +1 -1
  442. package/lib/tabbar/index.d.ts +1 -1
  443. package/lib/tabbar-item/TabbarItem.d.ts +1 -1
  444. package/lib/tabbar-item/index.d.ts +1 -1
  445. package/lib/tabs/Tabs.d.ts +1 -1
  446. package/lib/tabs/TabsContent.d.ts +1 -1
  447. package/lib/tabs/index.d.ts +1 -1
  448. package/lib/tag/Tag.d.ts +1 -1
  449. package/lib/tag/index.d.ts +1 -1
  450. package/lib/text-ellipsis/TextEllipsis.d.ts +1 -1
  451. package/lib/text-ellipsis/index.d.ts +1 -1
  452. package/lib/time-picker/TimePicker.d.ts +32 -5
  453. package/lib/time-picker/TimePicker.js +84 -32
  454. package/lib/time-picker/index.d.ts +21 -3
  455. package/lib/toast/Toast.d.ts +1 -1
  456. package/lib/toast/index.d.ts +1 -1
  457. package/lib/tree-select/TreeSelect.d.ts +1 -1
  458. package/lib/tree-select/index.d.ts +1 -1
  459. package/lib/uploader/Uploader.d.ts +1 -1
  460. package/lib/uploader/UploaderPreviewItem.d.ts +1 -1
  461. package/lib/uploader/index.d.ts +1 -1
  462. package/lib/utils/basic.d.ts +3 -0
  463. package/lib/utils/constant.d.ts +1 -0
  464. package/lib/utils/constant.js +2 -0
  465. package/lib/utils/mount-component.d.ts +1 -1
  466. package/lib/vant.cjs.js +818 -583
  467. package/lib/vant.es.js +819 -584
  468. package/lib/vant.js +839 -579
  469. package/lib/vant.min.js +1 -1
  470. package/lib/watermark/Watermark.d.ts +1 -1
  471. package/lib/watermark/index.d.ts +1 -1
  472. package/lib/web-types.json +1 -1
  473. package/package.json +5 -4
package/lib/vant.es.js CHANGED
@@ -1,5 +1,6 @@
1
- import { unref, ref, reactive, inject, watch, onMounted, nextTick, createVNode, defineComponent, getCurrentInstance, computed, onActivated, onDeactivated, onBeforeUnmount, provide, watchEffect, mergeProps, Transition, withDirectives, vShow, Teleport, Fragment, onBeforeUpdate, createTextVNode, onUnmounted, createApp, resolveDirective, withKeys, onUpdated, Comment, Text, h } from "vue";
1
+ import { unref, ref, reactive, inject, watch, onMounted, nextTick, createVNode, defineComponent, getCurrentInstance, computed, onActivated, onDeactivated, onBeforeUnmount, provide, watchEffect, mergeProps, Transition, withDirectives, vShow, Teleport, Fragment, onBeforeUpdate, normalizeClass, normalizeStyle, createTextVNode, onUnmounted, createApp, resolveDirective, withKeys, onUpdated, Comment, Text, h } from "vue";
2
2
  import { useWindowSize, useRect, useChildren, useParent, onMountedOrActivated, getScrollParent, useEventListener, cancelRaf, raf, useScrollParent, usePageVisibility, doubleRaf, CUSTOM_FIELD_INJECTION_KEY, useCustomFieldValue, inBrowser as inBrowser$1, useToggle, useCountDown, useClickAway } from "@vant/use";
3
+ import { stringifyStyle } from "@vue/shared";
3
4
  import { offsetModifier, createPopper } from "@vant/popperjs";
4
5
  const isDef = (val) => val !== void 0 && val !== null;
5
6
  const isFunction = (val) => typeof val === "function";
@@ -111,7 +112,7 @@ function isHidden(elementRef) {
111
112
  const parentHidden = el.offsetParent === null && style.position !== "fixed";
112
113
  return hidden || parentHidden;
113
114
  }
114
- const { width: windowWidth, height: windowHeight } = useWindowSize();
115
+ const { width: windowWidth, height: windowHeight$1 } = useWindowSize();
115
116
  function addUnit(value) {
116
117
  if (isDef(value)) {
117
118
  return isNumeric(value) ? `${value}px` : String(value);
@@ -159,7 +160,7 @@ function convertVw(value) {
159
160
  }
160
161
  function convertVh(value) {
161
162
  value = value.replace(/vh/g, "");
162
- return +value * windowHeight.value / 100;
163
+ return +value * windowHeight$1.value / 100;
163
164
  }
164
165
  function unitToPx(value) {
165
166
  if (typeof value === "number") {
@@ -235,7 +236,7 @@ function deepAssign(to, from) {
235
236
  });
236
237
  return to;
237
238
  }
238
- var stdin_default$1Q = {
239
+ var stdin_default$1R = {
239
240
  name: "姓名",
240
241
  tel: "电话",
241
242
  save: "保存",
@@ -299,7 +300,7 @@ var stdin_default$1Q = {
299
300
  };
300
301
  const lang = ref("zh-CN");
301
302
  const messages = reactive({
302
- "zh-CN": stdin_default$1Q
303
+ "zh-CN": stdin_default$1R
303
304
  });
304
305
  const Locale = {
305
306
  messages() {
@@ -314,11 +315,11 @@ const Locale = {
314
315
  }
315
316
  };
316
317
  const useCurrentLang = () => lang;
317
- var stdin_default$1P = Locale;
318
+ var stdin_default$1Q = Locale;
318
319
  function createTranslate(name2) {
319
320
  const prefix = camelize(name2) + ".";
320
321
  return (path, ...args) => {
321
- const messages2 = stdin_default$1P.messages();
322
+ const messages2 = stdin_default$1Q.messages();
322
323
  const message = get(messages2, prefix + path) || get(messages2, path);
323
324
  return isFunction(message) ? message(...args) : message;
324
325
  };
@@ -362,6 +363,7 @@ function createNamespace(name2) {
362
363
  const BORDER = "van-hairline";
363
364
  const BORDER_TOP = `${BORDER}--top`;
364
365
  const BORDER_LEFT = `${BORDER}--left`;
366
+ const BORDER_RIGHT = `${BORDER}--right`;
365
367
  const BORDER_BOTTOM = `${BORDER}--bottom`;
366
368
  const BORDER_SURROUND = `${BORDER}--surround`;
367
369
  const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
@@ -428,7 +430,7 @@ const useHeight = (element, withSafeArea) => {
428
430
  }
429
431
  });
430
432
  onPopupReopen(() => nextTick(setHeight));
431
- watch([windowWidth, windowHeight], setHeight);
433
+ watch([windowWidth, windowHeight$1], setHeight);
432
434
  return height;
433
435
  };
434
436
  function usePlaceholder(contentRef, bem2) {
@@ -440,20 +442,20 @@ function usePlaceholder(contentRef, bem2) {
440
442
  }
441
443
  }, [renderContent()]);
442
444
  }
443
- const [name$1F, bem$1A] = createNamespace("action-bar");
444
- const ACTION_BAR_KEY = Symbol(name$1F);
445
+ const [name$1G, bem$1B] = createNamespace("action-bar");
446
+ const ACTION_BAR_KEY = Symbol(name$1G);
445
447
  const actionBarProps = {
446
448
  placeholder: Boolean,
447
449
  safeAreaInsetBottom: truthProp
448
450
  };
449
- var stdin_default$1O = defineComponent({
450
- name: name$1F,
451
+ var stdin_default$1P = defineComponent({
452
+ name: name$1G,
451
453
  props: actionBarProps,
452
454
  setup(props, {
453
455
  slots
454
456
  }) {
455
457
  const root = ref();
456
- const renderPlaceholder = usePlaceholder(root, bem$1A);
458
+ const renderPlaceholder = usePlaceholder(root, bem$1B);
457
459
  const {
458
460
  linkChildren
459
461
  } = useChildren(ACTION_BAR_KEY);
@@ -462,7 +464,7 @@ var stdin_default$1O = defineComponent({
462
464
  var _a;
463
465
  return createVNode("div", {
464
466
  "ref": root,
465
- "class": [bem$1A(), {
467
+ "class": [bem$1B(), {
466
468
  "van-safe-area-bottom": props.safeAreaInsetBottom
467
469
  }]
468
470
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
@@ -475,7 +477,7 @@ var stdin_default$1O = defineComponent({
475
477
  };
476
478
  }
477
479
  });
478
- const ActionBar = withInstall(stdin_default$1O);
480
+ const ActionBar = withInstall(stdin_default$1P);
479
481
  function useExpose(apis) {
480
482
  const instance2 = getCurrentInstance();
481
483
  if (instance2) {
@@ -503,7 +505,7 @@ function useRoute() {
503
505
  const vm = getCurrentInstance().proxy;
504
506
  return () => route(vm);
505
507
  }
506
- const [name$1E, bem$1z] = createNamespace("badge");
508
+ const [name$1F, bem$1A] = createNamespace("badge");
507
509
  const badgeProps = {
508
510
  dot: Boolean,
509
511
  max: numericProp,
@@ -514,8 +516,8 @@ const badgeProps = {
514
516
  showZero: truthProp,
515
517
  position: makeStringProp("top-right")
516
518
  };
517
- var stdin_default$1N = defineComponent({
518
- name: name$1E,
519
+ var stdin_default$1O = defineComponent({
520
+ name: name$1F,
519
521
  props: badgeProps,
520
522
  setup(props, {
521
523
  slots
@@ -578,7 +580,7 @@ var stdin_default$1N = defineComponent({
578
580
  const renderBadge = () => {
579
581
  if (hasContent() || props.dot) {
580
582
  return createVNode("div", {
581
- "class": bem$1z([props.position, {
583
+ "class": bem$1A([props.position, {
582
584
  dot: props.dot,
583
585
  fixed: !!slots.default
584
586
  }]),
@@ -592,7 +594,7 @@ var stdin_default$1N = defineComponent({
592
594
  tag
593
595
  } = props;
594
596
  return createVNode(tag, {
595
- "class": bem$1z("wrapper")
597
+ "class": bem$1A("wrapper")
596
598
  }, {
597
599
  default: () => [slots.default(), renderBadge()]
598
600
  });
@@ -601,14 +603,14 @@ var stdin_default$1N = defineComponent({
601
603
  };
602
604
  }
603
605
  });
604
- const Badge = withInstall(stdin_default$1N);
606
+ const Badge = withInstall(stdin_default$1O);
605
607
  let globalZIndex = 2e3;
606
608
  const useGlobalZIndex = () => ++globalZIndex;
607
609
  const setGlobalZIndex = (val) => {
608
610
  globalZIndex = val;
609
611
  };
610
- const [name$1D, bem$1y] = createNamespace("config-provider");
611
- const CONFIG_PROVIDER_KEY = Symbol(name$1D);
612
+ const [name$1E, bem$1z] = createNamespace("config-provider");
613
+ const CONFIG_PROVIDER_KEY = Symbol(name$1E);
612
614
  const configProviderProps = {
613
615
  tag: makeStringProp("div"),
614
616
  theme: makeStringProp("light"),
@@ -625,8 +627,8 @@ function mapThemeVarsToCSSVars(themeVars) {
625
627
  });
626
628
  return cssVars;
627
629
  }
628
- var stdin_default$1M = defineComponent({
629
- name: name$1D,
630
+ var stdin_default$1N = defineComponent({
631
+ name: name$1E,
630
632
  props: configProviderProps,
631
633
  setup(props, {
632
634
  slots
@@ -658,7 +660,7 @@ var stdin_default$1M = defineComponent({
658
660
  }
659
661
  });
660
662
  return () => createVNode(props.tag, {
661
- "class": bem$1y(),
663
+ "class": bem$1z(),
662
664
  "style": style.value
663
665
  }, {
664
666
  default: () => {
@@ -668,7 +670,7 @@ var stdin_default$1M = defineComponent({
668
670
  });
669
671
  }
670
672
  });
671
- const [name$1C, bem$1x] = createNamespace("icon");
673
+ const [name$1D, bem$1y] = createNamespace("icon");
672
674
  const isImage$1 = (name2) => name2 == null ? void 0 : name2.includes("/");
673
675
  const iconProps = {
674
676
  dot: Boolean,
@@ -680,14 +682,14 @@ const iconProps = {
680
682
  badgeProps: Object,
681
683
  classPrefix: String
682
684
  };
683
- var stdin_default$1L = defineComponent({
684
- name: name$1C,
685
+ var stdin_default$1M = defineComponent({
686
+ name: name$1D,
685
687
  props: iconProps,
686
688
  setup(props, {
687
689
  slots
688
690
  }) {
689
691
  const config = inject(CONFIG_PROVIDER_KEY, null);
690
- const classPrefix = computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1x());
692
+ const classPrefix = computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1y());
691
693
  return () => {
692
694
  const {
693
695
  tag,
@@ -711,7 +713,7 @@ var stdin_default$1L = defineComponent({
711
713
  default: () => {
712
714
  var _a;
713
715
  return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && createVNode("img", {
714
- "class": bem$1x("image"),
716
+ "class": bem$1y("image"),
715
717
  "src": name2
716
718
  }, null)];
717
719
  }
@@ -719,13 +721,13 @@ var stdin_default$1L = defineComponent({
719
721
  };
720
722
  }
721
723
  });
722
- const Icon = withInstall(stdin_default$1L);
723
- const [name$1B, bem$1w] = createNamespace("loading");
724
+ const Icon = withInstall(stdin_default$1M);
725
+ const [name$1C, bem$1x] = createNamespace("loading");
724
726
  const SpinIcon = Array(12).fill(null).map((_, index) => createVNode("i", {
725
- "class": bem$1w("line", String(index + 1))
727
+ "class": bem$1x("line", String(index + 1))
726
728
  }, null));
727
729
  const CircularIcon = createVNode("svg", {
728
- "class": bem$1w("circular"),
730
+ "class": bem$1x("circular"),
729
731
  "viewBox": "25 25 50 50"
730
732
  }, [createVNode("circle", {
731
733
  "cx": "50",
@@ -741,8 +743,8 @@ const loadingProps = {
741
743
  textSize: numericProp,
742
744
  textColor: String
743
745
  };
744
- var stdin_default$1K = defineComponent({
745
- name: name$1B,
746
+ var stdin_default$1L = defineComponent({
747
+ name: name$1C,
746
748
  props: loadingProps,
747
749
  setup(props, {
748
750
  slots
@@ -753,7 +755,7 @@ var stdin_default$1K = defineComponent({
753
755
  const renderIcon = () => {
754
756
  const DefaultIcon = props.type === "spinner" ? SpinIcon : CircularIcon;
755
757
  return createVNode("span", {
756
- "class": bem$1w("spinner", props.type),
758
+ "class": bem$1x("spinner", props.type),
757
759
  "style": spinnerStyle.value
758
760
  }, [slots.icon ? slots.icon() : DefaultIcon]);
759
761
  };
@@ -761,7 +763,7 @@ var stdin_default$1K = defineComponent({
761
763
  var _a;
762
764
  if (slots.default) {
763
765
  return createVNode("span", {
764
- "class": bem$1w("text"),
766
+ "class": bem$1x("text"),
765
767
  "style": {
766
768
  fontSize: addUnit(props.textSize),
767
769
  color: (_a = props.textColor) != null ? _a : props.color
@@ -775,7 +777,7 @@ var stdin_default$1K = defineComponent({
775
777
  vertical
776
778
  } = props;
777
779
  return createVNode("div", {
778
- "class": bem$1w([type, {
780
+ "class": bem$1x([type, {
779
781
  vertical
780
782
  }]),
781
783
  "aria-live": "polite",
@@ -784,8 +786,8 @@ var stdin_default$1K = defineComponent({
784
786
  };
785
787
  }
786
788
  });
787
- const Loading = withInstall(stdin_default$1K);
788
- const [name$1A, bem$1v] = createNamespace("button");
789
+ const Loading = withInstall(stdin_default$1L);
790
+ const [name$1B, bem$1w] = createNamespace("button");
789
791
  const buttonProps = extend({}, routeProps, {
790
792
  tag: makeStringProp("button"),
791
793
  text: String,
@@ -807,8 +809,8 @@ const buttonProps = extend({}, routeProps, {
807
809
  loadingType: String,
808
810
  iconPosition: makeStringProp("left")
809
811
  });
810
- var stdin_default$1J = defineComponent({
811
- name: name$1A,
812
+ var stdin_default$1K = defineComponent({
813
+ name: name$1B,
812
814
  props: buttonProps,
813
815
  emits: ["click"],
814
816
  setup(props, {
@@ -823,7 +825,7 @@ var stdin_default$1J = defineComponent({
823
825
  return createVNode(Loading, {
824
826
  "size": props.loadingSize,
825
827
  "type": props.loadingType,
826
- "class": bem$1v("loading")
828
+ "class": bem$1w("loading")
827
829
  }, null);
828
830
  };
829
831
  const renderIcon = () => {
@@ -832,13 +834,13 @@ var stdin_default$1J = defineComponent({
832
834
  }
833
835
  if (slots.icon) {
834
836
  return createVNode("div", {
835
- "class": bem$1v("icon")
837
+ "class": bem$1w("icon")
836
838
  }, [slots.icon()]);
837
839
  }
838
840
  if (props.icon) {
839
841
  return createVNode(Icon, {
840
842
  "name": props.icon,
841
- "class": bem$1v("icon"),
843
+ "class": bem$1w("icon"),
842
844
  "classPrefix": props.iconPrefix
843
845
  }, null);
844
846
  }
@@ -852,7 +854,7 @@ var stdin_default$1J = defineComponent({
852
854
  }
853
855
  if (text) {
854
856
  return createVNode("span", {
855
- "class": bem$1v("text")
857
+ "class": bem$1w("text")
856
858
  }, [text]);
857
859
  }
858
860
  };
@@ -899,7 +901,7 @@ var stdin_default$1J = defineComponent({
899
901
  nativeType,
900
902
  iconPosition
901
903
  } = props;
902
- const classes = [bem$1v([type, size, {
904
+ const classes = [bem$1w([type, size, {
903
905
  plain,
904
906
  block,
905
907
  round,
@@ -918,14 +920,14 @@ var stdin_default$1J = defineComponent({
918
920
  "onClick": onClick
919
921
  }, {
920
922
  default: () => [createVNode("div", {
921
- "class": bem$1v("content")
923
+ "class": bem$1w("content")
922
924
  }, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
923
925
  });
924
926
  };
925
927
  }
926
928
  });
927
- const Button = withInstall(stdin_default$1J);
928
- const [name$1z, bem$1u] = createNamespace("action-bar-button");
929
+ const Button = withInstall(stdin_default$1K);
930
+ const [name$1A, bem$1v] = createNamespace("action-bar-button");
929
931
  const actionBarButtonProps = extend({}, routeProps, {
930
932
  type: String,
931
933
  text: String,
@@ -934,8 +936,8 @@ const actionBarButtonProps = extend({}, routeProps, {
934
936
  loading: Boolean,
935
937
  disabled: Boolean
936
938
  });
937
- var stdin_default$1I = defineComponent({
938
- name: name$1z,
939
+ var stdin_default$1J = defineComponent({
940
+ name: name$1A,
939
941
  props: actionBarButtonProps,
940
942
  setup(props, {
941
943
  slots
@@ -970,7 +972,7 @@ var stdin_default$1I = defineComponent({
970
972
  disabled
971
973
  } = props;
972
974
  return createVNode(Button, {
973
- "class": bem$1u([type, {
975
+ "class": bem$1v([type, {
974
976
  last: isLast.value,
975
977
  first: isFirst.value
976
978
  }]),
@@ -987,8 +989,8 @@ var stdin_default$1I = defineComponent({
987
989
  };
988
990
  }
989
991
  });
990
- const ActionBarButton = withInstall(stdin_default$1I);
991
- const [name$1y, bem$1t] = createNamespace("action-bar-icon");
992
+ const ActionBarButton = withInstall(stdin_default$1J);
993
+ const [name$1z, bem$1u] = createNamespace("action-bar-icon");
992
994
  const actionBarIconProps = extend({}, routeProps, {
993
995
  dot: Boolean,
994
996
  text: String,
@@ -999,8 +1001,8 @@ const actionBarIconProps = extend({}, routeProps, {
999
1001
  badgeProps: Object,
1000
1002
  iconPrefix: String
1001
1003
  });
1002
- var stdin_default$1H = defineComponent({
1003
- name: name$1y,
1004
+ var stdin_default$1I = defineComponent({
1005
+ name: name$1z,
1004
1006
  props: actionBarIconProps,
1005
1007
  setup(props, {
1006
1008
  slots
@@ -1020,7 +1022,7 @@ var stdin_default$1H = defineComponent({
1020
1022
  if (slots.icon) {
1021
1023
  return createVNode(Badge, mergeProps({
1022
1024
  "dot": dot,
1023
- "class": bem$1t("icon"),
1025
+ "class": bem$1u("icon"),
1024
1026
  "content": badge
1025
1027
  }, badgeProps2), {
1026
1028
  default: slots.icon
@@ -1032,20 +1034,20 @@ var stdin_default$1H = defineComponent({
1032
1034
  "name": icon,
1033
1035
  "badge": badge,
1034
1036
  "color": color,
1035
- "class": [bem$1t("icon"), iconClass],
1037
+ "class": [bem$1u("icon"), iconClass],
1036
1038
  "badgeProps": badgeProps2,
1037
1039
  "classPrefix": iconPrefix
1038
1040
  }, null);
1039
1041
  };
1040
1042
  return () => createVNode("div", {
1041
1043
  "role": "button",
1042
- "class": bem$1t(),
1044
+ "class": bem$1u(),
1043
1045
  "tabindex": 0,
1044
1046
  "onClick": route2
1045
1047
  }, [renderIcon(), slots.default ? slots.default() : props.text]);
1046
1048
  }
1047
1049
  });
1048
- const ActionBarIcon = withInstall(stdin_default$1H);
1050
+ const ActionBarIcon = withInstall(stdin_default$1I);
1049
1051
  const popupSharedProps = {
1050
1052
  // whether to show popup
1051
1053
  show: Boolean,
@@ -1196,7 +1198,7 @@ function useLazyRender(show) {
1196
1198
  );
1197
1199
  return (render) => () => inited.value ? render() : null;
1198
1200
  }
1199
- const [name$1x, bem$1s] = createNamespace("overlay");
1201
+ const [name$1y, bem$1t] = createNamespace("overlay");
1200
1202
  const overlayProps = {
1201
1203
  show: Boolean,
1202
1204
  zIndex: numericProp,
@@ -1206,8 +1208,8 @@ const overlayProps = {
1206
1208
  lazyRender: truthProp,
1207
1209
  customStyle: Object
1208
1210
  };
1209
- var stdin_default$1G = defineComponent({
1210
- name: name$1x,
1211
+ var stdin_default$1H = defineComponent({
1212
+ name: name$1y,
1211
1213
  props: overlayProps,
1212
1214
  setup(props, {
1213
1215
  slots
@@ -1228,7 +1230,7 @@ var stdin_default$1G = defineComponent({
1228
1230
  return withDirectives(createVNode("div", {
1229
1231
  "ref": root,
1230
1232
  "style": style,
1231
- "class": [bem$1s(), props.className]
1233
+ "class": [bem$1t(), props.className]
1232
1234
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vShow, props.show]]);
1233
1235
  });
1234
1236
  useEventListener("touchmove", onTouchMove, {
@@ -1242,7 +1244,7 @@ var stdin_default$1G = defineComponent({
1242
1244
  });
1243
1245
  }
1244
1246
  });
1245
- const Overlay = withInstall(stdin_default$1G);
1247
+ const Overlay = withInstall(stdin_default$1H);
1246
1248
  const popupProps$2 = extend({}, popupSharedProps, {
1247
1249
  round: Boolean,
1248
1250
  position: makeStringProp("center"),
@@ -1255,9 +1257,9 @@ const popupProps$2 = extend({}, popupSharedProps, {
1255
1257
  safeAreaInsetTop: Boolean,
1256
1258
  safeAreaInsetBottom: Boolean
1257
1259
  });
1258
- const [name$1w, bem$1r] = createNamespace("popup");
1259
- var stdin_default$1F = defineComponent({
1260
- name: name$1w,
1260
+ const [name$1x, bem$1s] = createNamespace("popup");
1261
+ var stdin_default$1G = defineComponent({
1262
+ name: name$1x,
1261
1263
  inheritAttrs: false,
1262
1264
  props: popupProps$2,
1263
1265
  emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
@@ -1331,13 +1333,20 @@ var stdin_default$1F = defineComponent({
1331
1333
  "role": "button",
1332
1334
  "tabindex": 0,
1333
1335
  "name": props.closeIcon,
1334
- "class": [bem$1r("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1336
+ "class": [bem$1s("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1335
1337
  "classPrefix": props.iconPrefix,
1336
1338
  "onClick": onClickCloseIcon
1337
1339
  }, null);
1338
1340
  }
1339
1341
  };
1340
- const onOpened = () => emit("opened");
1342
+ let timer2;
1343
+ const onOpened = () => {
1344
+ if (timer2)
1345
+ clearTimeout(timer2);
1346
+ timer2 = setTimeout(() => {
1347
+ emit("opened");
1348
+ });
1349
+ };
1341
1350
  const onClosed = () => emit("closed");
1342
1351
  const onKeydown = (event) => emit("keydown", event);
1343
1352
  const renderPopup = lazyRender(() => {
@@ -1353,7 +1362,7 @@ var stdin_default$1F = defineComponent({
1353
1362
  "style": style.value,
1354
1363
  "role": "dialog",
1355
1364
  "tabindex": 0,
1356
- "class": [bem$1r({
1365
+ "class": [bem$1s({
1357
1366
  round,
1358
1367
  [position]: position
1359
1368
  }), {
@@ -1434,8 +1443,8 @@ var stdin_default$1F = defineComponent({
1434
1443
  };
1435
1444
  }
1436
1445
  });
1437
- const Popup = withInstall(stdin_default$1F);
1438
- const [name$1v, bem$1q] = createNamespace("action-sheet");
1446
+ const Popup = withInstall(stdin_default$1G);
1447
+ const [name$1w, bem$1r] = createNamespace("action-sheet");
1439
1448
  const actionSheetProps = extend({}, popupSharedProps, {
1440
1449
  title: String,
1441
1450
  round: truthProp,
@@ -1449,8 +1458,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
1449
1458
  safeAreaInsetBottom: truthProp
1450
1459
  });
1451
1460
  const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1452
- var stdin_default$1E = defineComponent({
1453
- name: name$1v,
1461
+ var stdin_default$1F = defineComponent({
1462
+ name: name$1w,
1454
1463
  props: actionSheetProps,
1455
1464
  emits: ["select", "cancel", "update:show"],
1456
1465
  setup(props, {
@@ -1465,10 +1474,10 @@ var stdin_default$1E = defineComponent({
1465
1474
  const renderHeader = () => {
1466
1475
  if (props.title) {
1467
1476
  return createVNode("div", {
1468
- "class": bem$1q("header")
1477
+ "class": bem$1r("header")
1469
1478
  }, [props.title, props.closeable && createVNode(Icon, {
1470
1479
  "name": props.closeIcon,
1471
- "class": [bem$1q("close"), HAPTICS_FEEDBACK],
1480
+ "class": [bem$1r("close"), HAPTICS_FEEDBACK],
1472
1481
  "onClick": onCancel
1473
1482
  }, null)]);
1474
1483
  }
@@ -1476,10 +1485,10 @@ var stdin_default$1E = defineComponent({
1476
1485
  const renderCancel = () => {
1477
1486
  if (slots.cancel || props.cancelText) {
1478
1487
  return [createVNode("div", {
1479
- "class": bem$1q("gap")
1488
+ "class": bem$1r("gap")
1480
1489
  }, null), createVNode("button", {
1481
1490
  "type": "button",
1482
- "class": bem$1q("cancel"),
1491
+ "class": bem$1r("cancel"),
1483
1492
  "onClick": onCancel
1484
1493
  }, [slots.cancel ? slots.cancel() : props.cancelText])];
1485
1494
  }
@@ -1487,7 +1496,7 @@ var stdin_default$1E = defineComponent({
1487
1496
  const renderActionContent = (action, index) => {
1488
1497
  if (action.loading) {
1489
1498
  return createVNode(Loading, {
1490
- "class": bem$1q("loading-icon")
1499
+ "class": bem$1r("loading-icon")
1491
1500
  }, null);
1492
1501
  }
1493
1502
  if (slots.action) {
@@ -1497,9 +1506,9 @@ var stdin_default$1E = defineComponent({
1497
1506
  });
1498
1507
  }
1499
1508
  return [createVNode("span", {
1500
- "class": bem$1q("name")
1509
+ "class": bem$1r("name")
1501
1510
  }, [action.name]), action.subname && createVNode("div", {
1502
- "class": bem$1q("subname")
1511
+ "class": bem$1r("subname")
1503
1512
  }, [action.subname])];
1504
1513
  };
1505
1514
  const renderAction = (action, index) => {
@@ -1527,7 +1536,7 @@ var stdin_default$1E = defineComponent({
1527
1536
  "style": {
1528
1537
  color
1529
1538
  },
1530
- "class": [bem$1q("item", {
1539
+ "class": [bem$1r("item", {
1531
1540
  loading,
1532
1541
  disabled
1533
1542
  }), className],
@@ -1538,26 +1547,26 @@ var stdin_default$1E = defineComponent({
1538
1547
  if (props.description || slots.description) {
1539
1548
  const content = slots.description ? slots.description() : props.description;
1540
1549
  return createVNode("div", {
1541
- "class": bem$1q("description")
1550
+ "class": bem$1r("description")
1542
1551
  }, [content]);
1543
1552
  }
1544
1553
  };
1545
1554
  return () => createVNode(Popup, mergeProps({
1546
- "class": bem$1q(),
1555
+ "class": bem$1r(),
1547
1556
  "position": "bottom",
1548
1557
  "onUpdate:show": updateShow
1549
1558
  }, pick(props, popupInheritKeys$2)), {
1550
1559
  default: () => {
1551
1560
  var _a;
1552
1561
  return [renderHeader(), renderDescription(), createVNode("div", {
1553
- "class": bem$1q("content")
1562
+ "class": bem$1r("content")
1554
1563
  }, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
1555
1564
  }
1556
1565
  });
1557
1566
  }
1558
1567
  });
1559
- const ActionSheet = withInstall(stdin_default$1E);
1560
- const [name$1u, bem$1p, t$k] = createNamespace("picker");
1568
+ const ActionSheet = withInstall(stdin_default$1F);
1569
+ const [name$1v, bem$1q, t$k] = createNamespace("picker");
1561
1570
  const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
1562
1571
  function getColumnsType(columns, fields) {
1563
1572
  const firstColumn = columns[0];
@@ -1626,10 +1635,10 @@ function assignDefaultFields(fields) {
1626
1635
  const DEFAULT_DURATION = 200;
1627
1636
  const MOMENTUM_TIME = 300;
1628
1637
  const MOMENTUM_DISTANCE = 15;
1629
- const [name$1t, bem$1o] = createNamespace("picker-column");
1630
- const PICKER_KEY = Symbol(name$1t);
1631
- var stdin_default$1D = defineComponent({
1632
- name: name$1t,
1638
+ const [name$1u, bem$1p] = createNamespace("picker-column");
1639
+ const PICKER_KEY = Symbol(name$1u);
1640
+ var stdin_default$1E = defineComponent({
1641
+ name: name$1u,
1633
1642
  props: {
1634
1643
  value: numericProp,
1635
1644
  fields: makeRequiredProp(Object),
@@ -1768,7 +1777,7 @@ var stdin_default$1D = defineComponent({
1768
1777
  role: "button",
1769
1778
  style: optionStyle,
1770
1779
  tabindex: disabled ? -1 : 0,
1771
- class: [bem$1o("item", {
1780
+ class: [bem$1p("item", {
1772
1781
  disabled,
1773
1782
  selected: value === props.value
1774
1783
  }), option.className],
@@ -1796,7 +1805,7 @@ var stdin_default$1D = defineComponent({
1796
1805
  });
1797
1806
  return () => createVNode("div", {
1798
1807
  "ref": root,
1799
- "class": bem$1o(),
1808
+ "class": bem$1p(),
1800
1809
  "onTouchstartPassive": onTouchStart,
1801
1810
  "onTouchend": onTouchEnd,
1802
1811
  "onTouchcancel": onTouchEnd
@@ -1807,12 +1816,12 @@ var stdin_default$1D = defineComponent({
1807
1816
  transitionDuration: `${currentDuration.value}ms`,
1808
1817
  transitionProperty: currentDuration.value ? "all" : "none"
1809
1818
  },
1810
- "class": bem$1o("wrapper"),
1819
+ "class": bem$1p("wrapper"),
1811
1820
  "onTransitionend": stopMomentum
1812
1821
  }, [renderOptions()])]);
1813
1822
  }
1814
1823
  });
1815
- const [name$1s] = createNamespace("picker-toolbar");
1824
+ const [name$1t] = createNamespace("picker-toolbar");
1816
1825
  const pickerToolbarProps = {
1817
1826
  title: String,
1818
1827
  cancelButtonText: String,
@@ -1820,8 +1829,8 @@ const pickerToolbarProps = {
1820
1829
  };
1821
1830
  const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
1822
1831
  const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
1823
- var stdin_default$1C = defineComponent({
1824
- name: name$1s,
1832
+ var stdin_default$1D = defineComponent({
1833
+ name: name$1t,
1825
1834
  props: pickerToolbarProps,
1826
1835
  emits: ["confirm", "cancel"],
1827
1836
  setup(props, {
@@ -1834,7 +1843,7 @@ var stdin_default$1C = defineComponent({
1834
1843
  }
1835
1844
  if (props.title) {
1836
1845
  return createVNode("div", {
1837
- "class": [bem$1p("title"), "van-ellipsis"]
1846
+ "class": [bem$1q("title"), "van-ellipsis"]
1838
1847
  }, [props.title]);
1839
1848
  }
1840
1849
  };
@@ -1844,7 +1853,7 @@ var stdin_default$1C = defineComponent({
1844
1853
  const text = props.cancelButtonText || t$k("cancel");
1845
1854
  return createVNode("button", {
1846
1855
  "type": "button",
1847
- "class": [bem$1p("cancel"), HAPTICS_FEEDBACK],
1856
+ "class": [bem$1q("cancel"), HAPTICS_FEEDBACK],
1848
1857
  "onClick": onCancel
1849
1858
  }, [slots.cancel ? slots.cancel() : text]);
1850
1859
  };
@@ -1852,12 +1861,12 @@ var stdin_default$1C = defineComponent({
1852
1861
  const text = props.confirmButtonText || t$k("confirm");
1853
1862
  return createVNode("button", {
1854
1863
  "type": "button",
1855
- "class": [bem$1p("confirm"), HAPTICS_FEEDBACK],
1864
+ "class": [bem$1q("confirm"), HAPTICS_FEEDBACK],
1856
1865
  "onClick": onConfirm
1857
1866
  }, [slots.confirm ? slots.confirm() : text]);
1858
1867
  };
1859
1868
  return () => createVNode("div", {
1860
- "class": bem$1p("toolbar")
1869
+ "class": bem$1q("toolbar")
1861
1870
  }, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
1862
1871
  }
1863
1872
  });
@@ -1965,7 +1974,7 @@ function useVisibilityChange(target, onChange) {
1965
1974
  onBeforeUnmount(unobserve);
1966
1975
  onMountedOrActivated(observe);
1967
1976
  }
1968
- const [name$1r, bem$1n] = createNamespace("sticky");
1977
+ const [name$1s, bem$1o] = createNamespace("sticky");
1969
1978
  const stickyProps = {
1970
1979
  zIndex: numericProp,
1971
1980
  position: makeStringProp("top"),
@@ -1973,8 +1982,8 @@ const stickyProps = {
1973
1982
  offsetTop: makeNumericProp(0),
1974
1983
  offsetBottom: makeNumericProp(0)
1975
1984
  };
1976
- var stdin_default$1B = defineComponent({
1977
- name: name$1r,
1985
+ var stdin_default$1C = defineComponent({
1986
+ name: name$1s,
1978
1987
  props: stickyProps,
1979
1988
  emits: ["scroll", "change"],
1980
1989
  setup(props, {
@@ -2069,7 +2078,7 @@ var stdin_default$1B = defineComponent({
2069
2078
  passive: true
2070
2079
  });
2071
2080
  useVisibilityChange(root, onScroll);
2072
- watch([windowWidth, windowHeight], () => {
2081
+ watch([windowWidth, windowHeight$1], () => {
2073
2082
  if (!root.value || isHidden(root) || !state.fixed) {
2074
2083
  return;
2075
2084
  }
@@ -2087,7 +2096,7 @@ var stdin_default$1B = defineComponent({
2087
2096
  "ref": root,
2088
2097
  "style": rootStyle.value
2089
2098
  }, [createVNode("div", {
2090
- "class": bem$1n({
2099
+ "class": bem$1o({
2091
2100
  fixed: state.fixed && !isReset.value
2092
2101
  }),
2093
2102
  "style": stickyStyle.value
@@ -2095,8 +2104,8 @@ var stdin_default$1B = defineComponent({
2095
2104
  };
2096
2105
  }
2097
2106
  });
2098
- const Sticky = withInstall(stdin_default$1B);
2099
- const [name$1q, bem$1m] = createNamespace("swipe");
2107
+ const Sticky = withInstall(stdin_default$1C);
2108
+ const [name$1r, bem$1n] = createNamespace("swipe");
2100
2109
  const swipeProps = {
2101
2110
  loop: truthProp,
2102
2111
  width: numericProp,
@@ -2111,9 +2120,9 @@ const swipeProps = {
2111
2120
  showIndicators: truthProp,
2112
2121
  stopPropagation: truthProp
2113
2122
  };
2114
- const SWIPE_KEY = Symbol(name$1q);
2115
- var stdin_default$1A = defineComponent({
2116
- name: name$1q,
2123
+ const SWIPE_KEY = Symbol(name$1r);
2124
+ var stdin_default$1B = defineComponent({
2125
+ name: name$1r,
2117
2126
  props: swipeProps,
2118
2127
  emits: ["change", "dragStart", "dragEnd"],
2119
2128
  setup(props, {
@@ -2391,7 +2400,7 @@ var stdin_default$1A = defineComponent({
2391
2400
  } : void 0;
2392
2401
  return createVNode("i", {
2393
2402
  "style": style,
2394
- "class": bem$1m("indicator", {
2403
+ "class": bem$1n("indicator", {
2395
2404
  active
2396
2405
  })
2397
2406
  }, null);
@@ -2405,7 +2414,7 @@ var stdin_default$1A = defineComponent({
2405
2414
  }
2406
2415
  if (props.showIndicators && count.value > 1) {
2407
2416
  return createVNode("div", {
2408
- "class": bem$1m("indicators", {
2417
+ "class": bem$1n("indicators", {
2409
2418
  vertical: props.vertical
2410
2419
  })
2411
2420
  }, [Array(count.value).fill("").map(renderDot)]);
@@ -2427,7 +2436,7 @@ var stdin_default$1A = defineComponent({
2427
2436
  watch(() => props.initialSwipe, (value) => initialize(+value));
2428
2437
  watch(count, () => initialize(state.active));
2429
2438
  watch(() => props.autoplay, autoplay);
2430
- watch([windowWidth, windowHeight, () => props.width, () => props.height], resize);
2439
+ watch([windowWidth, windowHeight$1, () => props.width, () => props.height], resize);
2431
2440
  watch(usePageVisibility(), (visible) => {
2432
2441
  if (visible === "visible") {
2433
2442
  autoplay();
@@ -2447,11 +2456,11 @@ var stdin_default$1A = defineComponent({
2447
2456
  var _a;
2448
2457
  return createVNode("div", {
2449
2458
  "ref": root,
2450
- "class": bem$1m()
2459
+ "class": bem$1n()
2451
2460
  }, [createVNode("div", {
2452
2461
  "ref": track,
2453
2462
  "style": trackStyle.value,
2454
- "class": bem$1m("track", {
2463
+ "class": bem$1n("track", {
2455
2464
  vertical: props.vertical
2456
2465
  }),
2457
2466
  "onTouchstartPassive": onTouchStart,
@@ -2461,10 +2470,10 @@ var stdin_default$1A = defineComponent({
2461
2470
  };
2462
2471
  }
2463
2472
  });
2464
- const Swipe = withInstall(stdin_default$1A);
2465
- const [name$1p, bem$1l] = createNamespace("tabs");
2466
- var stdin_default$1z = defineComponent({
2467
- name: name$1p,
2473
+ const Swipe = withInstall(stdin_default$1B);
2474
+ const [name$1q, bem$1m] = createNamespace("tabs");
2475
+ var stdin_default$1A = defineComponent({
2476
+ name: name$1q,
2468
2477
  props: {
2469
2478
  count: makeRequiredProp(Number),
2470
2479
  inited: Boolean,
@@ -2488,7 +2497,7 @@ var stdin_default$1z = defineComponent({
2488
2497
  return createVNode(Swipe, {
2489
2498
  "ref": swipeRef,
2490
2499
  "loop": false,
2491
- "class": bem$1l("track"),
2500
+ "class": bem$1m("track"),
2492
2501
  "duration": +props.duration * 1e3,
2493
2502
  "touchable": props.swipeable,
2494
2503
  "lazyRender": props.lazyRender,
@@ -2516,13 +2525,13 @@ var stdin_default$1z = defineComponent({
2516
2525
  swipeRef
2517
2526
  });
2518
2527
  return () => createVNode("div", {
2519
- "class": bem$1l("content", {
2528
+ "class": bem$1m("content", {
2520
2529
  animated: props.animated || props.swipeable
2521
2530
  })
2522
2531
  }, [renderChildren()]);
2523
2532
  }
2524
2533
  });
2525
- const [name$1o, bem$1k] = createNamespace("tabs");
2534
+ const [name$1p, bem$1l] = createNamespace("tabs");
2526
2535
  const tabsProps = {
2527
2536
  type: makeStringProp("line"),
2528
2537
  color: String,
@@ -2545,9 +2554,9 @@ const tabsProps = {
2545
2554
  titleActiveColor: String,
2546
2555
  titleInactiveColor: String
2547
2556
  };
2548
- const TABS_KEY = Symbol(name$1o);
2549
- var stdin_default$1y = defineComponent({
2550
- name: name$1o,
2557
+ const TABS_KEY = Symbol(name$1p);
2558
+ var stdin_default$1z = defineComponent({
2559
+ name: name$1p,
2551
2560
  props: tabsProps,
2552
2561
  emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
2553
2562
  setup(props, {
@@ -2745,7 +2754,7 @@ var stdin_default$1y = defineComponent({
2745
2754
  const renderLine = () => {
2746
2755
  if (props.type === "line" && children.length) {
2747
2756
  return createVNode("div", {
2748
- "class": bem$1k("line"),
2757
+ "class": bem$1l("line"),
2749
2758
  "style": state.lineStyle
2750
2759
  }, null);
2751
2760
  }
@@ -2759,13 +2768,13 @@ var stdin_default$1y = defineComponent({
2759
2768
  } = props;
2760
2769
  const Header = [createVNode("div", {
2761
2770
  "ref": sticky ? void 0 : wrapRef,
2762
- "class": [bem$1k("wrap"), {
2771
+ "class": [bem$1l("wrap"), {
2763
2772
  [BORDER_TOP_BOTTOM]: type === "line" && border
2764
2773
  }]
2765
2774
  }, [createVNode("div", {
2766
2775
  "ref": navRef,
2767
2776
  "role": "tablist",
2768
- "class": bem$1k("nav", [type, {
2777
+ "class": bem$1l("nav", [type, {
2769
2778
  shrink: props.shrink,
2770
2779
  complete: scrollable.value
2771
2780
  }]),
@@ -2838,14 +2847,14 @@ var stdin_default$1y = defineComponent({
2838
2847
  });
2839
2848
  return () => createVNode("div", {
2840
2849
  "ref": root,
2841
- "class": bem$1k([props.type])
2850
+ "class": bem$1l([props.type])
2842
2851
  }, [props.sticky ? createVNode(Sticky, {
2843
2852
  "container": root.value,
2844
2853
  "offsetTop": offsetTopPx.value,
2845
2854
  "onScroll": onStickyScroll
2846
2855
  }, {
2847
2856
  default: () => [renderHeader()]
2848
- }) : renderHeader(), createVNode(stdin_default$1z, {
2857
+ }) : renderHeader(), createVNode(stdin_default$1A, {
2849
2858
  "ref": contentRef,
2850
2859
  "count": children.length,
2851
2860
  "inited": state.inited,
@@ -2865,9 +2874,9 @@ var stdin_default$1y = defineComponent({
2865
2874
  });
2866
2875
  const TAB_STATUS_KEY = Symbol();
2867
2876
  const useTabStatus = () => inject(TAB_STATUS_KEY, null);
2868
- const [name$1n, bem$1j] = createNamespace("tab");
2877
+ const [name$1o, bem$1k] = createNamespace("tab");
2869
2878
  const TabTitle = defineComponent({
2870
- name: name$1n,
2879
+ name: name$1o,
2871
2880
  props: {
2872
2881
  id: String,
2873
2882
  dot: Boolean,
@@ -2916,7 +2925,7 @@ const TabTitle = defineComponent({
2916
2925
  });
2917
2926
  const renderText = () => {
2918
2927
  const Text2 = createVNode("span", {
2919
- "class": bem$1j("text", {
2928
+ "class": bem$1k("text", {
2920
2929
  ellipsis: !props.scrollable
2921
2930
  })
2922
2931
  }, [slots.title ? slots.title() : props.title]);
@@ -2934,7 +2943,7 @@ const TabTitle = defineComponent({
2934
2943
  return () => createVNode("div", {
2935
2944
  "id": props.id,
2936
2945
  "role": "tab",
2937
- "class": [bem$1j([props.type, {
2946
+ "class": [bem$1k([props.type, {
2938
2947
  grow: props.scrollable && !props.shrink,
2939
2948
  shrink: props.shrink,
2940
2949
  active: props.isActive,
@@ -2948,9 +2957,9 @@ const TabTitle = defineComponent({
2948
2957
  }, [renderText()]);
2949
2958
  }
2950
2959
  });
2951
- const [name$1m, bem$1i] = createNamespace("swipe-item");
2952
- var stdin_default$1x = defineComponent({
2953
- name: name$1m,
2960
+ const [name$1n, bem$1j] = createNamespace("swipe-item");
2961
+ var stdin_default$1y = defineComponent({
2962
+ name: name$1n,
2954
2963
  setup(props, {
2955
2964
  slots
2956
2965
  }) {
@@ -3015,14 +3024,14 @@ var stdin_default$1x = defineComponent({
3015
3024
  return () => {
3016
3025
  var _a;
3017
3026
  return createVNode("div", {
3018
- "class": bem$1i(),
3027
+ "class": bem$1j(),
3019
3028
  "style": style.value
3020
3029
  }, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
3021
3030
  };
3022
3031
  }
3023
3032
  });
3024
- const SwipeItem = withInstall(stdin_default$1x);
3025
- const [name$1l, bem$1h] = createNamespace("tab");
3033
+ const SwipeItem = withInstall(stdin_default$1y);
3034
+ const [name$1m, bem$1i] = createNamespace("tab");
3026
3035
  const tabProps = extend({}, routeProps, {
3027
3036
  dot: Boolean,
3028
3037
  name: numericProp,
@@ -3033,8 +3042,8 @@ const tabProps = extend({}, routeProps, {
3033
3042
  titleStyle: [String, Object],
3034
3043
  showZeroBadge: truthProp
3035
3044
  });
3036
- var stdin_default$1w = defineComponent({
3037
- name: name$1l,
3045
+ var stdin_default$1x = defineComponent({
3046
+ name: name$1m,
3038
3047
  props: tabProps,
3039
3048
  setup(props, {
3040
3049
  slots
@@ -3071,12 +3080,22 @@ var stdin_default$1w = defineComponent({
3071
3080
  }
3072
3081
  return isActive;
3073
3082
  });
3083
+ const parsedClass = ref("");
3084
+ const parsedStyle = ref("");
3085
+ watchEffect(() => {
3086
+ const {
3087
+ titleClass,
3088
+ titleStyle
3089
+ } = props;
3090
+ parsedClass.value = titleClass ? normalizeClass(titleClass) : "";
3091
+ parsedStyle.value = titleStyle && typeof titleStyle !== "string" ? stringifyStyle(normalizeStyle(titleStyle)) : titleStyle;
3092
+ });
3074
3093
  const renderTitle = (onClickTab) => createVNode(TabTitle, mergeProps({
3075
3094
  "key": id,
3076
3095
  "id": `${parent.id}-${index.value}`,
3077
3096
  "ref": parent.setTitleRefs(index.value),
3078
- "style": props.titleStyle,
3079
- "class": props.titleClass,
3097
+ "style": parsedStyle.value,
3098
+ "class": parsedClass.value,
3080
3099
  "isActive": active.value,
3081
3100
  "controls": id,
3082
3101
  "scrollable": parent.scrollable.value,
@@ -3122,7 +3141,7 @@ var stdin_default$1w = defineComponent({
3122
3141
  return createVNode(SwipeItem, {
3123
3142
  "id": id,
3124
3143
  "role": "tabpanel",
3125
- "class": bem$1h("panel-wrapper", {
3144
+ "class": bem$1i("panel-wrapper", {
3126
3145
  inactive: hasInactiveClass.value
3127
3146
  }),
3128
3147
  "tabindex": active.value ? 0 : -1,
@@ -3132,7 +3151,7 @@ var stdin_default$1w = defineComponent({
3132
3151
  default: () => {
3133
3152
  var _a2;
3134
3153
  return [createVNode("div", {
3135
- "class": bem$1h("panel")
3154
+ "class": bem$1i("panel")
3136
3155
  }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
3137
3156
  }
3138
3157
  });
@@ -3142,24 +3161,24 @@ var stdin_default$1w = defineComponent({
3142
3161
  return withDirectives(createVNode("div", {
3143
3162
  "id": id,
3144
3163
  "role": "tabpanel",
3145
- "class": bem$1h("panel"),
3164
+ "class": bem$1i("panel"),
3146
3165
  "tabindex": show ? 0 : -1,
3147
3166
  "aria-labelledby": label
3148
3167
  }, [Content]), [[vShow, show]]);
3149
3168
  };
3150
3169
  }
3151
3170
  });
3152
- const Tab = withInstall(stdin_default$1w);
3153
- const Tabs = withInstall(stdin_default$1y);
3154
- const [name$1k, bem$1g] = createNamespace("picker-group");
3155
- const PICKER_GROUP_KEY = Symbol(name$1k);
3171
+ const Tab = withInstall(stdin_default$1x);
3172
+ const Tabs = withInstall(stdin_default$1z);
3173
+ const [name$1l, bem$1h] = createNamespace("picker-group");
3174
+ const PICKER_GROUP_KEY = Symbol(name$1l);
3156
3175
  const pickerGroupProps = extend({
3157
3176
  tabs: makeArrayProp(),
3158
3177
  activeTab: makeNumericProp(0),
3159
3178
  nextStepText: String
3160
3179
  }, pickerToolbarProps);
3161
- var stdin_default$1v = defineComponent({
3162
- name: name$1k,
3180
+ var stdin_default$1w = defineComponent({
3181
+ name: name$1l,
3163
3182
  props: pickerGroupProps,
3164
3183
  emits: ["confirm", "cancel", "update:activeTab"],
3165
3184
  setup(props, {
@@ -3186,8 +3205,8 @@ var stdin_default$1v = defineComponent({
3186
3205
  const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
3187
3206
  const confirmButtonText = showNextButton() ? props.nextStepText : props.confirmButtonText;
3188
3207
  return createVNode("div", {
3189
- "class": bem$1g()
3190
- }, [createVNode(stdin_default$1C, {
3208
+ "class": bem$1h()
3209
+ }, [createVNode(stdin_default$1D, {
3191
3210
  "title": props.title,
3192
3211
  "cancelButtonText": props.cancelButtonText,
3193
3212
  "confirmButtonText": confirmButtonText,
@@ -3196,14 +3215,14 @@ var stdin_default$1v = defineComponent({
3196
3215
  }, pick(slots, pickerToolbarSlots)), createVNode(Tabs, {
3197
3216
  "active": activeTab.value,
3198
3217
  "onUpdate:active": ($event) => activeTab.value = $event,
3199
- "class": bem$1g("tabs"),
3218
+ "class": bem$1h("tabs"),
3200
3219
  "shrink": true,
3201
3220
  "animated": true,
3202
3221
  "lazyRender": false
3203
3222
  }, {
3204
3223
  default: () => [props.tabs.map((title, index) => createVNode(Tab, {
3205
3224
  "title": title,
3206
- "titleClass": bem$1g("tab-title")
3225
+ "titleClass": bem$1h("tab-title")
3207
3226
  }, {
3208
3227
  default: () => [childNodes == null ? void 0 : childNodes[index]]
3209
3228
  }))]
@@ -3226,8 +3245,8 @@ const pickerProps = extend({}, pickerSharedProps, {
3226
3245
  toolbarPosition: makeStringProp("top"),
3227
3246
  columnsFieldNames: Object
3228
3247
  });
3229
- var stdin_default$1u = defineComponent({
3230
- name: name$1u,
3248
+ var stdin_default$1v = defineComponent({
3249
+ name: name$1v,
3231
3250
  props: pickerProps,
3232
3251
  emits: ["confirm", "cancel", "change", "scrollInto", "clickOption", "update:modelValue"],
3233
3252
  setup(props, {
@@ -3308,7 +3327,7 @@ var stdin_default$1u = defineComponent({
3308
3327
  return params;
3309
3328
  };
3310
3329
  const cancel = () => emit("cancel", getEventParams());
3311
- const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$1D, {
3330
+ const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$1E, {
3312
3331
  "value": selectedValues.value[columnIndex],
3313
3332
  "fields": fields.value,
3314
3333
  "options": options,
@@ -3337,10 +3356,10 @@ var stdin_default$1u = defineComponent({
3337
3356
  backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
3338
3357
  };
3339
3358
  return [createVNode("div", {
3340
- "class": bem$1p("mask"),
3359
+ "class": bem$1q("mask"),
3341
3360
  "style": maskStyle
3342
3361
  }, null), createVNode("div", {
3343
- "class": [BORDER_UNSET_TOP_BOTTOM, bem$1p("frame")],
3362
+ "class": [BORDER_UNSET_TOP_BOTTOM, bem$1q("frame")],
3344
3363
  "style": frameStyle
3345
3364
  }, null)];
3346
3365
  }
@@ -3352,13 +3371,13 @@ var stdin_default$1u = defineComponent({
3352
3371
  };
3353
3372
  return createVNode("div", {
3354
3373
  "ref": columnsRef,
3355
- "class": bem$1p("columns"),
3374
+ "class": bem$1q("columns"),
3356
3375
  "style": columnsStyle
3357
3376
  }, [renderColumnItems(), renderMask(wrapHeight)]);
3358
3377
  };
3359
3378
  const renderToolbar = () => {
3360
3379
  if (props.showToolbar && !parent) {
3361
- return createVNode(stdin_default$1C, mergeProps(pick(props, pickerToolbarPropKeys), {
3380
+ return createVNode(stdin_default$1D, mergeProps(pick(props, pickerToolbarPropKeys), {
3362
3381
  "onConfirm": confirm,
3363
3382
  "onCancel": cancel
3364
3383
  }), pick(slots, pickerToolbarSlots));
@@ -3401,9 +3420,9 @@ var stdin_default$1u = defineComponent({
3401
3420
  return () => {
3402
3421
  var _a, _b;
3403
3422
  return createVNode("div", {
3404
- "class": bem$1p()
3423
+ "class": bem$1q()
3405
3424
  }, [props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? createVNode(Loading, {
3406
- "class": bem$1p("loading")
3425
+ "class": bem$1q("loading")
3407
3426
  }, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), props.toolbarPosition === "bottom" ? renderToolbar() : null]);
3408
3427
  };
3409
3428
  }
@@ -3494,8 +3513,8 @@ function formatDataForCascade({
3494
3513
  }
3495
3514
  return options;
3496
3515
  }
3497
- const Picker = withInstall(stdin_default$1u);
3498
- const [name$1j, bem$1f] = createNamespace("area");
3516
+ const Picker = withInstall(stdin_default$1v);
3517
+ const [name$1k, bem$1g] = createNamespace("area");
3499
3518
  const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
3500
3519
  modelValue: String,
3501
3520
  columnsNum: makeNumericProp(3),
@@ -3505,8 +3524,8 @@ const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
3505
3524
  default: () => ({})
3506
3525
  }
3507
3526
  });
3508
- var stdin_default$1t = defineComponent({
3509
- name: name$1j,
3527
+ var stdin_default$1u = defineComponent({
3528
+ name: name$1k,
3510
3529
  props: areaProps,
3511
3530
  emits: ["change", "confirm", "cancel", "update:modelValue"],
3512
3531
  setup(props, {
@@ -3553,7 +3572,7 @@ var stdin_default$1t = defineComponent({
3553
3572
  "ref": picker,
3554
3573
  "modelValue": codes.value,
3555
3574
  "onUpdate:modelValue": ($event) => codes.value = $event,
3556
- "class": bem$1f(),
3575
+ "class": bem$1g(),
3557
3576
  "columns": columns.value,
3558
3577
  "onChange": onChange,
3559
3578
  "onCancel": onCancel,
@@ -3561,8 +3580,8 @@ var stdin_default$1t = defineComponent({
3561
3580
  }, pick(props, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
3562
3581
  }
3563
3582
  });
3564
- const Area = withInstall(stdin_default$1t);
3565
- const [name$1i, bem$1e] = createNamespace("cell");
3583
+ const Area = withInstall(stdin_default$1u);
3584
+ const [name$1j, bem$1f] = createNamespace("cell");
3566
3585
  const cellSharedProps = {
3567
3586
  tag: makeStringProp("div"),
3568
3587
  icon: String,
@@ -3586,8 +3605,8 @@ const cellSharedProps = {
3586
3605
  }
3587
3606
  };
3588
3607
  const cellProps = extend({}, cellSharedProps, routeProps);
3589
- var stdin_default$1s = defineComponent({
3590
- name: name$1i,
3608
+ var stdin_default$1t = defineComponent({
3609
+ name: name$1j,
3591
3610
  props: cellProps,
3592
3611
  setup(props, {
3593
3612
  slots
@@ -3597,7 +3616,7 @@ var stdin_default$1s = defineComponent({
3597
3616
  const showLabel = slots.label || isDef(props.label);
3598
3617
  if (showLabel) {
3599
3618
  return createVNode("div", {
3600
- "class": [bem$1e("label"), props.labelClass]
3619
+ "class": [bem$1f("label"), props.labelClass]
3601
3620
  }, [slots.label ? slots.label() : props.label]);
3602
3621
  }
3603
3622
  };
@@ -3609,7 +3628,7 @@ var stdin_default$1s = defineComponent({
3609
3628
  return;
3610
3629
  }
3611
3630
  return createVNode("div", {
3612
- "class": [bem$1e("title"), props.titleClass],
3631
+ "class": [bem$1f("title"), props.titleClass],
3613
3632
  "style": props.titleStyle
3614
3633
  }, [titleSlot || createVNode("span", null, [props.title]), renderLabel()]);
3615
3634
  }
@@ -3619,7 +3638,7 @@ var stdin_default$1s = defineComponent({
3619
3638
  const hasValue = slot || isDef(props.value);
3620
3639
  if (hasValue) {
3621
3640
  return createVNode("div", {
3622
- "class": [bem$1e("value"), props.valueClass]
3641
+ "class": [bem$1f("value"), props.valueClass]
3623
3642
  }, [slot ? slot() : createVNode("span", null, [props.value])]);
3624
3643
  }
3625
3644
  };
@@ -3630,7 +3649,7 @@ var stdin_default$1s = defineComponent({
3630
3649
  if (props.icon) {
3631
3650
  return createVNode(Icon, {
3632
3651
  "name": props.icon,
3633
- "class": bem$1e("left-icon"),
3652
+ "class": bem$1f("left-icon"),
3634
3653
  "classPrefix": props.iconPrefix
3635
3654
  }, null);
3636
3655
  }
@@ -3643,7 +3662,7 @@ var stdin_default$1s = defineComponent({
3643
3662
  const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
3644
3663
  return createVNode(Icon, {
3645
3664
  "name": name2,
3646
- "class": bem$1e("right-icon")
3665
+ "class": bem$1f("right-icon")
3647
3666
  }, null);
3648
3667
  }
3649
3668
  };
@@ -3668,7 +3687,7 @@ var stdin_default$1s = defineComponent({
3668
3687
  classes[size] = !!size;
3669
3688
  }
3670
3689
  return createVNode(tag, {
3671
- "class": bem$1e(classes),
3690
+ "class": bem$1f(classes),
3672
3691
  "role": clickable ? "button" : void 0,
3673
3692
  "tabindex": clickable ? 0 : void 0,
3674
3693
  "onClick": route2
@@ -3681,8 +3700,8 @@ var stdin_default$1s = defineComponent({
3681
3700
  };
3682
3701
  }
3683
3702
  });
3684
- const Cell = withInstall(stdin_default$1s);
3685
- const [name$1h, bem$1d] = createNamespace("form");
3703
+ const Cell = withInstall(stdin_default$1t);
3704
+ const [name$1i, bem$1e] = createNamespace("form");
3686
3705
  const formProps = {
3687
3706
  colon: Boolean,
3688
3707
  disabled: Boolean,
@@ -3701,8 +3720,8 @@ const formProps = {
3701
3720
  default: "onBlur"
3702
3721
  }
3703
3722
  };
3704
- var stdin_default$1r = defineComponent({
3705
- name: name$1h,
3723
+ var stdin_default$1s = defineComponent({
3724
+ name: name$1i,
3706
3725
  props: formProps,
3707
3726
  emits: ["submit", "failed"],
3708
3727
  setup(props, {
@@ -3828,13 +3847,13 @@ var stdin_default$1r = defineComponent({
3828
3847
  return () => {
3829
3848
  var _a;
3830
3849
  return createVNode("form", {
3831
- "class": bem$1d(),
3850
+ "class": bem$1e(),
3832
3851
  "onSubmit": onSubmit
3833
3852
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
3834
3853
  };
3835
3854
  }
3836
3855
  });
3837
- const Form = withInstall(stdin_default$1r);
3856
+ const Form = withInstall(stdin_default$1s);
3838
3857
  function isEmptyValue(value) {
3839
3858
  if (Array.isArray(value)) {
3840
3859
  return !value.length;
@@ -3923,7 +3942,7 @@ function getStringLength(str) {
3923
3942
  function cutString(str, maxlength) {
3924
3943
  return [...str].slice(0, maxlength).join("");
3925
3944
  }
3926
- const [name$1g, bem$1c] = createNamespace("field");
3945
+ const [name$1h, bem$1d] = createNamespace("field");
3927
3946
  const fieldSharedProps = {
3928
3947
  id: String,
3929
3948
  name: String,
@@ -3970,8 +3989,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
3970
3989
  default: null
3971
3990
  }
3972
3991
  });
3973
- var stdin_default$1q = defineComponent({
3974
- name: name$1g,
3992
+ var stdin_default$1r = defineComponent({
3993
+ name: name$1h,
3975
3994
  props: fieldProps,
3976
3995
  emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
3977
3996
  setup(props, {
@@ -4245,7 +4264,7 @@ var stdin_default$1q = defineComponent({
4245
4264
  const getInputId = () => props.id || `${id}-input`;
4246
4265
  const getValidationStatus = () => state.status;
4247
4266
  const renderInput = () => {
4248
- const controlClass = bem$1c("control", [getProp("inputAlign"), {
4267
+ const controlClass = bem$1d("control", [getProp("inputAlign"), {
4249
4268
  error: showError.value,
4250
4269
  custom: !!slots.input,
4251
4270
  "min-height": props.type === "textarea" && !props.autosize
@@ -4287,7 +4306,7 @@ var stdin_default$1q = defineComponent({
4287
4306
  const leftIconSlot = slots["left-icon"];
4288
4307
  if (props.leftIcon || leftIconSlot) {
4289
4308
  return createVNode("div", {
4290
- "class": bem$1c("left-icon"),
4309
+ "class": bem$1d("left-icon"),
4291
4310
  "onClick": onClickLeftIcon
4292
4311
  }, [leftIconSlot ? leftIconSlot() : createVNode(Icon, {
4293
4312
  "name": props.leftIcon,
@@ -4299,7 +4318,7 @@ var stdin_default$1q = defineComponent({
4299
4318
  const rightIconSlot = slots["right-icon"];
4300
4319
  if (props.rightIcon || rightIconSlot) {
4301
4320
  return createVNode("div", {
4302
- "class": bem$1c("right-icon"),
4321
+ "class": bem$1d("right-icon"),
4303
4322
  "onClick": onClickRightIcon
4304
4323
  }, [rightIconSlot ? rightIconSlot() : createVNode(Icon, {
4305
4324
  "name": props.rightIcon,
@@ -4311,9 +4330,9 @@ var stdin_default$1q = defineComponent({
4311
4330
  if (props.showWordLimit && props.maxlength) {
4312
4331
  const count = getStringLength(getModelValue());
4313
4332
  return createVNode("div", {
4314
- "class": bem$1c("word-limit")
4333
+ "class": bem$1d("word-limit")
4315
4334
  }, [createVNode("span", {
4316
- "class": bem$1c("word-num")
4335
+ "class": bem$1d("word-num")
4317
4336
  }, [count]), createTextVNode("/"), props.maxlength]);
4318
4337
  }
4319
4338
  };
@@ -4326,7 +4345,7 @@ var stdin_default$1q = defineComponent({
4326
4345
  const slot = slots["error-message"];
4327
4346
  const errorMessageAlign = getProp("errorMessageAlign");
4328
4347
  return createVNode("div", {
4329
- "class": bem$1c("error-message", errorMessageAlign)
4348
+ "class": bem$1d("error-message", errorMessageAlign)
4330
4349
  }, [slot ? slot({
4331
4350
  message
4332
4351
  }) : message]);
@@ -4354,13 +4373,13 @@ var stdin_default$1q = defineComponent({
4354
4373
  }
4355
4374
  };
4356
4375
  const renderFieldBody = () => [createVNode("div", {
4357
- "class": bem$1c("body")
4376
+ "class": bem$1d("body")
4358
4377
  }, [renderInput(), showClear.value && createVNode(Icon, {
4359
4378
  "ref": clearIconRef,
4360
4379
  "name": props.clearIcon,
4361
- "class": bem$1c("clear")
4380
+ "class": bem$1d("clear")
4362
4381
  }, null), renderRightIcon(), slots.button && createVNode("div", {
4363
- "class": bem$1c("button")
4382
+ "class": bem$1d("button")
4364
4383
  }, [slots.button()])]), renderWordLimit(), renderMessage()];
4365
4384
  useExpose({
4366
4385
  blur,
@@ -4404,7 +4423,7 @@ var stdin_default$1q = defineComponent({
4404
4423
  };
4405
4424
  return createVNode(Cell, {
4406
4425
  "size": props.size,
4407
- "class": bem$1c({
4426
+ "class": bem$1d({
4408
4427
  error: showError.value,
4409
4428
  disabled,
4410
4429
  [`label-${labelAlign}`]: labelAlign
@@ -4414,8 +4433,8 @@ var stdin_default$1q = defineComponent({
4414
4433
  "isLink": props.isLink,
4415
4434
  "clickable": props.clickable,
4416
4435
  "titleStyle": labelStyle.value,
4417
- "valueClass": bem$1c("value"),
4418
- "titleClass": [bem$1c("label", [labelAlign, {
4436
+ "valueClass": bem$1d("value"),
4437
+ "titleClass": [bem$1d("label", [labelAlign, {
4419
4438
  required: props.required
4420
4439
  }]), props.labelClass],
4421
4440
  "arrowDirection": props.arrowDirection
@@ -4428,7 +4447,7 @@ var stdin_default$1q = defineComponent({
4428
4447
  };
4429
4448
  }
4430
4449
  });
4431
- const Field = withInstall(stdin_default$1q);
4450
+ const Field = withInstall(stdin_default$1r);
4432
4451
  let lockCount = 0;
4433
4452
  function lockClick(lock) {
4434
4453
  if (lock) {
@@ -4443,7 +4462,7 @@ function lockClick(lock) {
4443
4462
  }
4444
4463
  }
4445
4464
  }
4446
- const [name$1f, bem$1b] = createNamespace("toast");
4465
+ const [name$1g, bem$1c] = createNamespace("toast");
4447
4466
  const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
4448
4467
  const toastProps = {
4449
4468
  icon: String,
@@ -4466,8 +4485,8 @@ const toastProps = {
4466
4485
  closeOnClick: Boolean,
4467
4486
  closeOnClickOverlay: Boolean
4468
4487
  };
4469
- var stdin_default$1p = defineComponent({
4470
- name: name$1f,
4488
+ var stdin_default$1q = defineComponent({
4489
+ name: name$1g,
4471
4490
  props: toastProps,
4472
4491
  emits: ["update:show"],
4473
4492
  setup(props, {
@@ -4503,13 +4522,13 @@ var stdin_default$1p = defineComponent({
4503
4522
  return createVNode(Icon, {
4504
4523
  "name": icon || type,
4505
4524
  "size": iconSize,
4506
- "class": bem$1b("icon"),
4525
+ "class": bem$1c("icon"),
4507
4526
  "classPrefix": iconPrefix
4508
4527
  }, null);
4509
4528
  }
4510
4529
  if (type === "loading") {
4511
4530
  return createVNode(Loading, {
4512
- "class": bem$1b("loading"),
4531
+ "class": bem$1c("loading"),
4513
4532
  "size": iconSize,
4514
4533
  "type": loadingType
4515
4534
  }, null);
@@ -4522,16 +4541,16 @@ var stdin_default$1p = defineComponent({
4522
4541
  } = props;
4523
4542
  if (slots.message) {
4524
4543
  return createVNode("div", {
4525
- "class": bem$1b("text")
4544
+ "class": bem$1c("text")
4526
4545
  }, [slots.message()]);
4527
4546
  }
4528
4547
  if (isDef(message) && message !== "") {
4529
4548
  return type === "html" ? createVNode("div", {
4530
4549
  "key": 0,
4531
- "class": bem$1b("text"),
4550
+ "class": bem$1c("text"),
4532
4551
  "innerHTML": String(message)
4533
4552
  }, null) : createVNode("div", {
4534
- "class": bem$1b("text")
4553
+ "class": bem$1c("text")
4535
4554
  }, [message]);
4536
4555
  }
4537
4556
  };
@@ -4547,7 +4566,7 @@ var stdin_default$1p = defineComponent({
4547
4566
  onMounted(toggleClickable);
4548
4567
  onUnmounted(toggleClickable);
4549
4568
  return () => createVNode(Popup, mergeProps({
4550
- "class": [bem$1b([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
4569
+ "class": [bem$1c([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
4551
4570
  [props.type]: !props.icon
4552
4571
  }]), props.className],
4553
4572
  "lockScroll": false,
@@ -4648,7 +4667,7 @@ function createInstance() {
4648
4667
  onClosed,
4649
4668
  "onUpdate:show": toggle
4650
4669
  };
4651
- return createVNode(stdin_default$1p, mergeProps(state, attrs), null);
4670
+ return createVNode(stdin_default$1q, mergeProps(state, attrs), null);
4652
4671
  };
4653
4672
  watch(message, (val) => {
4654
4673
  state.message = val;
@@ -4718,8 +4737,8 @@ const resetToastDefaultOptions = (type) => {
4718
4737
  const allowMultipleToast = (value = true) => {
4719
4738
  allowMultiple = value;
4720
4739
  };
4721
- const Toast = withInstall(stdin_default$1p);
4722
- const [name$1e, bem$1a] = createNamespace("switch");
4740
+ const Toast = withInstall(stdin_default$1q);
4741
+ const [name$1f, bem$1b] = createNamespace("switch");
4723
4742
  const switchProps = {
4724
4743
  size: numericProp,
4725
4744
  loading: Boolean,
@@ -4736,8 +4755,8 @@ const switchProps = {
4736
4755
  default: false
4737
4756
  }
4738
4757
  };
4739
- var stdin_default$1o = defineComponent({
4740
- name: name$1e,
4758
+ var stdin_default$1p = defineComponent({
4759
+ name: name$1f,
4741
4760
  props: switchProps,
4742
4761
  emits: ["change", "update:modelValue"],
4743
4762
  setup(props, {
@@ -4756,7 +4775,7 @@ var stdin_default$1o = defineComponent({
4756
4775
  if (props.loading) {
4757
4776
  const color = isChecked() ? props.activeColor : props.inactiveColor;
4758
4777
  return createVNode(Loading, {
4759
- "class": bem$1a("loading"),
4778
+ "class": bem$1b("loading"),
4760
4779
  "color": color
4761
4780
  }, null);
4762
4781
  }
@@ -4781,7 +4800,7 @@ var stdin_default$1o = defineComponent({
4781
4800
  };
4782
4801
  return createVNode("div", {
4783
4802
  "role": "switch",
4784
- "class": bem$1a({
4803
+ "class": bem$1b({
4785
4804
  on: checked,
4786
4805
  loading,
4787
4806
  disabled
@@ -4791,16 +4810,16 @@ var stdin_default$1o = defineComponent({
4791
4810
  "aria-checked": checked,
4792
4811
  "onClick": onClick
4793
4812
  }, [createVNode("div", {
4794
- "class": bem$1a("node")
4813
+ "class": bem$1b("node")
4795
4814
  }, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
4796
4815
  };
4797
4816
  }
4798
4817
  });
4799
- const Switch = withInstall(stdin_default$1o);
4800
- const [name$1d, bem$19] = createNamespace("address-edit-detail");
4818
+ const Switch = withInstall(stdin_default$1p);
4819
+ const [name$1e, bem$1a] = createNamespace("address-edit-detail");
4801
4820
  const t$j = createNamespace("address-edit")[2];
4802
- var stdin_default$1n = defineComponent({
4803
- name: name$1d,
4821
+ var stdin_default$1o = defineComponent({
4822
+ name: name$1e,
4804
4823
  props: {
4805
4824
  show: Boolean,
4806
4825
  rows: numericProp,
@@ -4834,7 +4853,7 @@ var stdin_default$1n = defineComponent({
4834
4853
  "icon": "location-o",
4835
4854
  "title": express.name,
4836
4855
  "label": express.address,
4837
- "class": bem$19("search-item"),
4856
+ "class": bem$1a("search-item"),
4838
4857
  "border": false,
4839
4858
  "onClick": () => onSelect(express)
4840
4859
  }, null));
@@ -4848,7 +4867,7 @@ var stdin_default$1n = defineComponent({
4848
4867
  "autosize": true,
4849
4868
  "clearable": true,
4850
4869
  "ref": field,
4851
- "class": bem$19(),
4870
+ "class": bem$1a(),
4852
4871
  "rows": props.rows,
4853
4872
  "type": "textarea",
4854
4873
  "rules": props.rules,
@@ -4865,7 +4884,7 @@ var stdin_default$1n = defineComponent({
4865
4884
  };
4866
4885
  }
4867
4886
  });
4868
- const [name$1c, bem$18, t$i] = createNamespace("address-edit");
4887
+ const [name$1d, bem$19, t$i] = createNamespace("address-edit");
4869
4888
  const DEFAULT_DATA = {
4870
4889
  name: "",
4871
4890
  tel: "",
@@ -4905,8 +4924,8 @@ const addressEditProps = {
4905
4924
  default: isMobile
4906
4925
  }
4907
4926
  };
4908
- var stdin_default$1m = defineComponent({
4909
- name: name$1c,
4927
+ var stdin_default$1n = defineComponent({
4928
+ name: name$1d,
4910
4929
  props: addressEditProps,
4911
4930
  emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
4912
4931
  setup(props, {
@@ -5018,7 +5037,7 @@ var stdin_default$1m = defineComponent({
5018
5037
  "center": true,
5019
5038
  "border": false,
5020
5039
  "title": t$i("defaultAddress"),
5021
- "class": bem$18("default")
5040
+ "class": bem$19("default")
5022
5041
  }, slots2), [[vShow, !hideBottomFields.value]]);
5023
5042
  }
5024
5043
  };
@@ -5044,13 +5063,13 @@ var stdin_default$1m = defineComponent({
5044
5063
  disableArea
5045
5064
  } = props;
5046
5065
  return createVNode(Form, {
5047
- "class": bem$18(),
5066
+ "class": bem$19(),
5048
5067
  "onSubmit": onSave
5049
5068
  }, {
5050
5069
  default: () => {
5051
5070
  var _a;
5052
5071
  return [createVNode("div", {
5053
- "class": bem$18("fields")
5072
+ "class": bem$19("fields")
5054
5073
  }, [createVNode(Field, {
5055
5074
  "modelValue": data.name,
5056
5075
  "onUpdate:modelValue": ($event) => data.name = $event,
@@ -5081,7 +5100,7 @@ var stdin_default$1m = defineComponent({
5081
5100
  emit("clickArea");
5082
5101
  showAreaPopup.value = !disableArea;
5083
5102
  }
5084
- }, null), [[vShow, props.showArea]]), createVNode(stdin_default$1n, {
5103
+ }, null), [[vShow, props.showArea]]), createVNode(stdin_default$1o, {
5085
5104
  "show": props.showDetail,
5086
5105
  "rows": props.detailRows,
5087
5106
  "rules": rules.value.addressDetail,
@@ -5095,19 +5114,19 @@ var stdin_default$1m = defineComponent({
5095
5114
  "onInput": onChangeDetail,
5096
5115
  "onSelectSearch": (event) => emit("selectSearch", event)
5097
5116
  }, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), withDirectives(createVNode("div", {
5098
- "class": bem$18("buttons")
5117
+ "class": bem$19("buttons")
5099
5118
  }, [createVNode(Button, {
5100
5119
  "block": true,
5101
5120
  "round": true,
5102
5121
  "type": "primary",
5103
5122
  "text": props.saveButtonText || t$i("save"),
5104
- "class": bem$18("button"),
5123
+ "class": bem$19("button"),
5105
5124
  "loading": props.isSaving,
5106
5125
  "nativeType": "submit"
5107
5126
  }, null), props.showDelete && createVNode(Button, {
5108
5127
  "block": true,
5109
5128
  "round": true,
5110
- "class": bem$18("button"),
5129
+ "class": bem$19("button"),
5111
5130
  "loading": props.isDeleting,
5112
5131
  "text": props.deleteButtonText || t$i("delete"),
5113
5132
  "onClick": onDelete
@@ -5137,8 +5156,8 @@ var stdin_default$1m = defineComponent({
5137
5156
  };
5138
5157
  }
5139
5158
  });
5140
- const AddressEdit = withInstall(stdin_default$1m);
5141
- const [name$1b, bem$17] = createNamespace("radio-group");
5159
+ const AddressEdit = withInstall(stdin_default$1n);
5160
+ const [name$1c, bem$18] = createNamespace("radio-group");
5142
5161
  const radioGroupProps = {
5143
5162
  disabled: Boolean,
5144
5163
  iconSize: numericProp,
@@ -5146,9 +5165,9 @@ const radioGroupProps = {
5146
5165
  modelValue: unknownProp,
5147
5166
  checkedColor: String
5148
5167
  };
5149
- const RADIO_KEY = Symbol(name$1b);
5150
- var stdin_default$1l = defineComponent({
5151
- name: name$1b,
5168
+ const RADIO_KEY = Symbol(name$1c);
5169
+ var stdin_default$1m = defineComponent({
5170
+ name: name$1c,
5152
5171
  props: radioGroupProps,
5153
5172
  emits: ["change", "update:modelValue"],
5154
5173
  setup(props, {
@@ -5168,14 +5187,14 @@ var stdin_default$1l = defineComponent({
5168
5187
  return () => {
5169
5188
  var _a;
5170
5189
  return createVNode("div", {
5171
- "class": bem$17([props.direction]),
5190
+ "class": bem$18([props.direction]),
5172
5191
  "role": "radiogroup"
5173
5192
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
5174
5193
  };
5175
5194
  }
5176
5195
  });
5177
- const RadioGroup = withInstall(stdin_default$1l);
5178
- const [name$1a, bem$16] = createNamespace("tag");
5196
+ const RadioGroup = withInstall(stdin_default$1m);
5197
+ const [name$1b, bem$17] = createNamespace("tag");
5179
5198
  const tagProps = {
5180
5199
  size: String,
5181
5200
  mark: Boolean,
@@ -5187,8 +5206,8 @@ const tagProps = {
5187
5206
  textColor: String,
5188
5207
  closeable: Boolean
5189
5208
  };
5190
- var stdin_default$1k = defineComponent({
5191
- name: name$1a,
5209
+ var stdin_default$1l = defineComponent({
5210
+ name: name$1b,
5192
5211
  props: tagProps,
5193
5212
  emits: ["close"],
5194
5213
  setup(props, {
@@ -5231,12 +5250,12 @@ var stdin_default$1k = defineComponent({
5231
5250
  }
5232
5251
  const CloseIcon = closeable && createVNode(Icon, {
5233
5252
  "name": "cross",
5234
- "class": [bem$16("close"), HAPTICS_FEEDBACK],
5253
+ "class": [bem$17("close"), HAPTICS_FEEDBACK],
5235
5254
  "onClick": onClose
5236
5255
  }, null);
5237
5256
  return createVNode("span", {
5238
5257
  "style": getStyle(),
5239
- "class": bem$16([classes, type])
5258
+ "class": bem$17([classes, type])
5240
5259
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
5241
5260
  };
5242
5261
  return () => createVNode(Transition, {
@@ -5246,7 +5265,7 @@ var stdin_default$1k = defineComponent({
5246
5265
  });
5247
5266
  }
5248
5267
  });
5249
- const Tag = withInstall(stdin_default$1k);
5268
+ const Tag = withInstall(stdin_default$1l);
5250
5269
  const checkerProps = {
5251
5270
  name: unknownProp,
5252
5271
  shape: makeStringProp("round"),
@@ -5257,7 +5276,7 @@ const checkerProps = {
5257
5276
  labelPosition: String,
5258
5277
  labelDisabled: Boolean
5259
5278
  };
5260
- var stdin_default$1j = defineComponent({
5279
+ var stdin_default$1k = defineComponent({
5261
5280
  props: extend({}, checkerProps, {
5262
5281
  bem: makeRequiredProp(Function),
5263
5282
  role: String,
@@ -5359,9 +5378,9 @@ var stdin_default$1j = defineComponent({
5359
5378
  }
5360
5379
  });
5361
5380
  const radioProps = checkerProps;
5362
- const [name$19, bem$15] = createNamespace("radio");
5363
- var stdin_default$1i = defineComponent({
5364
- name: name$19,
5381
+ const [name$1a, bem$16] = createNamespace("radio");
5382
+ var stdin_default$1j = defineComponent({
5383
+ name: name$1a,
5365
5384
  props: checkerProps,
5366
5385
  emits: ["update:modelValue"],
5367
5386
  setup(props, {
@@ -5382,8 +5401,8 @@ var stdin_default$1i = defineComponent({
5382
5401
  emit("update:modelValue", props.name);
5383
5402
  }
5384
5403
  };
5385
- return () => createVNode(stdin_default$1j, mergeProps({
5386
- "bem": bem$15,
5404
+ return () => createVNode(stdin_default$1k, mergeProps({
5405
+ "bem": bem$16,
5387
5406
  "role": "radio",
5388
5407
  "parent": parent,
5389
5408
  "checked": checked(),
@@ -5391,15 +5410,16 @@ var stdin_default$1i = defineComponent({
5391
5410
  }, props), pick(slots, ["default", "icon"]));
5392
5411
  }
5393
5412
  });
5394
- const Radio = withInstall(stdin_default$1i);
5395
- const [name$18, bem$14] = createNamespace("address-item");
5396
- var stdin_default$1h = defineComponent({
5397
- name: name$18,
5413
+ const Radio = withInstall(stdin_default$1j);
5414
+ const [name$19, bem$15] = createNamespace("address-item");
5415
+ var stdin_default$1i = defineComponent({
5416
+ name: name$19,
5398
5417
  props: {
5399
5418
  address: makeRequiredProp(Object),
5400
5419
  disabled: Boolean,
5401
5420
  switchable: Boolean,
5402
- defaultTagText: String
5421
+ defaultTagText: String,
5422
+ rightIcon: makeStringProp("edit")
5403
5423
  },
5404
5424
  emits: ["edit", "click", "select"],
5405
5425
  setup(props, {
@@ -5413,8 +5433,8 @@ var stdin_default$1h = defineComponent({
5413
5433
  emit("click");
5414
5434
  };
5415
5435
  const renderRightIcon = () => createVNode(Icon, {
5416
- "name": "edit",
5417
- "class": bem$14("edit"),
5436
+ "name": props.rightIcon,
5437
+ "class": bem$15("edit"),
5418
5438
  "onClick": (event) => {
5419
5439
  event.stopPropagation();
5420
5440
  emit("edit");
@@ -5429,7 +5449,7 @@ var stdin_default$1h = defineComponent({
5429
5449
  return createVNode(Tag, {
5430
5450
  "type": "primary",
5431
5451
  "round": true,
5432
- "class": bem$14("tag")
5452
+ "class": bem$15("tag")
5433
5453
  }, {
5434
5454
  default: () => [props.defaultTagText]
5435
5455
  });
@@ -5442,9 +5462,9 @@ var stdin_default$1h = defineComponent({
5442
5462
  switchable
5443
5463
  } = props;
5444
5464
  const Info = [createVNode("div", {
5445
- "class": bem$14("name")
5465
+ "class": bem$15("name")
5446
5466
  }, [`${address.name} ${address.tel}`, renderTag()]), createVNode("div", {
5447
- "class": bem$14("address")
5467
+ "class": bem$15("address")
5448
5468
  }, [address.address])];
5449
5469
  if (switchable && !disabled) {
5450
5470
  return createVNode(Radio, {
@@ -5462,13 +5482,13 @@ var stdin_default$1h = defineComponent({
5462
5482
  disabled
5463
5483
  } = props;
5464
5484
  return createVNode("div", {
5465
- "class": bem$14({
5485
+ "class": bem$15({
5466
5486
  disabled
5467
5487
  }),
5468
5488
  "onClick": onClick
5469
5489
  }, [createVNode(Cell, {
5470
5490
  "border": false,
5471
- "titleClass": bem$14("title")
5491
+ "titleClass": bem$15("title")
5472
5492
  }, {
5473
5493
  title: renderContent,
5474
5494
  "right-icon": renderRightIcon
@@ -5478,7 +5498,7 @@ var stdin_default$1h = defineComponent({
5478
5498
  };
5479
5499
  }
5480
5500
  });
5481
- const [name$17, bem$13, t$h] = createNamespace("address-list");
5501
+ const [name$18, bem$14, t$h] = createNamespace("address-list");
5482
5502
  const addressListProps = {
5483
5503
  list: makeArrayProp(),
5484
5504
  modelValue: numericProp,
@@ -5486,10 +5506,11 @@ const addressListProps = {
5486
5506
  disabledText: String,
5487
5507
  disabledList: makeArrayProp(),
5488
5508
  addButtonText: String,
5489
- defaultTagText: String
5509
+ defaultTagText: String,
5510
+ rightIcon: makeStringProp("edit")
5490
5511
  };
5491
- var stdin_default$1g = defineComponent({
5492
- name: name$17,
5512
+ var stdin_default$1h = defineComponent({
5513
+ name: name$18,
5493
5514
  props: addressListProps,
5494
5515
  emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
5495
5516
  setup(props, {
@@ -5505,12 +5526,13 @@ var stdin_default$1g = defineComponent({
5505
5526
  emit("update:modelValue", item.id);
5506
5527
  }
5507
5528
  };
5508
- return createVNode(stdin_default$1h, {
5529
+ return createVNode(stdin_default$1i, {
5509
5530
  "key": item.id,
5510
5531
  "address": item,
5511
5532
  "disabled": disabled,
5512
5533
  "switchable": props.switchable,
5513
5534
  "defaultTagText": props.defaultTagText,
5535
+ "rightIcon": props.rightIcon,
5514
5536
  "onEdit": onEdit,
5515
5537
  "onClick": onClick,
5516
5538
  "onSelect": onSelect
@@ -5525,13 +5547,13 @@ var stdin_default$1g = defineComponent({
5525
5547
  }
5526
5548
  };
5527
5549
  const renderBottom = () => createVNode("div", {
5528
- "class": [bem$13("bottom"), "van-safe-area-bottom"]
5550
+ "class": [bem$14("bottom"), "van-safe-area-bottom"]
5529
5551
  }, [createVNode(Button, {
5530
5552
  "round": true,
5531
5553
  "block": true,
5532
5554
  "type": "primary",
5533
5555
  "text": props.addButtonText || t$h("add"),
5534
- "class": bem$13("add"),
5556
+ "class": bem$14("add"),
5535
5557
  "onClick": () => emit("add")
5536
5558
  }, null)]);
5537
5559
  return () => {
@@ -5539,10 +5561,10 @@ var stdin_default$1g = defineComponent({
5539
5561
  const List2 = renderList(props.list);
5540
5562
  const DisabledList = renderList(props.disabledList, true);
5541
5563
  const DisabledText = props.disabledText && createVNode("div", {
5542
- "class": bem$13("disabled-text")
5564
+ "class": bem$14("disabled-text")
5543
5565
  }, [props.disabledText]);
5544
5566
  return createVNode("div", {
5545
- "class": bem$13()
5567
+ "class": bem$14()
5546
5568
  }, [(_a = slots.top) == null ? void 0 : _a.call(slots), createVNode(RadioGroup, {
5547
5569
  "modelValue": props.modelValue
5548
5570
  }, {
@@ -5551,7 +5573,7 @@ var stdin_default$1g = defineComponent({
5551
5573
  };
5552
5574
  }
5553
5575
  });
5554
- const AddressList = withInstall(stdin_default$1g);
5576
+ const AddressList = withInstall(stdin_default$1h);
5555
5577
  const hasIntersectionObserver = inBrowser$1 && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
5556
5578
  const modeType = {
5557
5579
  event: "event",
@@ -5704,7 +5726,7 @@ class ImageCache {
5704
5726
  this.caches.shift();
5705
5727
  }
5706
5728
  }
5707
- const [name$16, bem$12] = createNamespace("back-top");
5729
+ const [name$17, bem$13] = createNamespace("back-top");
5708
5730
  const backTopProps = {
5709
5731
  right: numericProp,
5710
5732
  bottom: numericProp,
@@ -5717,8 +5739,8 @@ const backTopProps = {
5717
5739
  default: "body"
5718
5740
  }
5719
5741
  };
5720
- var stdin_default$1f = defineComponent({
5721
- name: name$16,
5742
+ var stdin_default$1g = defineComponent({
5743
+ name: name$17,
5722
5744
  inheritAttrs: false,
5723
5745
  props: backTopProps,
5724
5746
  emits: ["click"],
@@ -5727,6 +5749,7 @@ var stdin_default$1f = defineComponent({
5727
5749
  slots,
5728
5750
  attrs
5729
5751
  }) {
5752
+ let shouldReshow = false;
5730
5753
  const show = ref(false);
5731
5754
  const root = ref();
5732
5755
  const scrollParent = ref();
@@ -5773,23 +5796,35 @@ var stdin_default$1f = defineComponent({
5773
5796
  target: scrollParent
5774
5797
  });
5775
5798
  onMounted(updateTarget);
5799
+ onActivated(() => {
5800
+ if (shouldReshow) {
5801
+ show.value = true;
5802
+ shouldReshow = false;
5803
+ }
5804
+ });
5805
+ onDeactivated(() => {
5806
+ if (show.value && props.teleport) {
5807
+ show.value = false;
5808
+ shouldReshow = true;
5809
+ }
5810
+ });
5776
5811
  watch(() => props.target, updateTarget);
5777
5812
  return () => {
5778
5813
  const Content = createVNode("div", mergeProps({
5779
5814
  "ref": !props.teleport ? root : void 0,
5780
- "class": bem$12({
5815
+ "class": bem$13({
5781
5816
  active: show.value
5782
5817
  }),
5783
5818
  "style": style.value,
5784
5819
  "onClick": onClick
5785
5820
  }, attrs), [slots.default ? slots.default() : createVNode(Icon, {
5786
5821
  "name": "back-top",
5787
- "class": bem$12("icon")
5822
+ "class": bem$13("icon")
5788
5823
  }, null)]);
5789
5824
  if (props.teleport) {
5790
5825
  return [createVNode("div", {
5791
5826
  "ref": root,
5792
- "class": bem$12("placeholder")
5827
+ "class": bem$13("placeholder")
5793
5828
  }, null), createVNode(Teleport, {
5794
5829
  "to": props.teleport
5795
5830
  }, {
@@ -5800,7 +5835,7 @@ var stdin_default$1f = defineComponent({
5800
5835
  };
5801
5836
  }
5802
5837
  });
5803
- const BackTop = withInstall(stdin_default$1f);
5838
+ const BackTop = withInstall(stdin_default$1g);
5804
5839
  var __async = (__this, __arguments, generator) => {
5805
5840
  return new Promise((resolve, reject) => {
5806
5841
  var fulfilled = (value) => {
@@ -5829,9 +5864,9 @@ const barrageProps = {
5829
5864
  delay: makeNumberProp(300),
5830
5865
  modelValue: makeArrayProp()
5831
5866
  };
5832
- const [name$15, bem$11] = createNamespace("barrage");
5833
- var stdin_default$1e = defineComponent({
5834
- name: name$15,
5867
+ const [name$16, bem$12] = createNamespace("barrage");
5868
+ var stdin_default$1f = defineComponent({
5869
+ name: name$16,
5835
5870
  props: barrageProps,
5836
5871
  emits: ["update:modelValue"],
5837
5872
  setup(props, {
@@ -5839,7 +5874,7 @@ var stdin_default$1e = defineComponent({
5839
5874
  slots
5840
5875
  }) {
5841
5876
  const barrageWrapper = ref();
5842
- const className = bem$11("item");
5877
+ const className = bem$12("item");
5843
5878
  const total = ref(0);
5844
5879
  const barrageItems = [];
5845
5880
  const createBarrageItem = (text, delay = props.delay) => {
@@ -5920,15 +5955,15 @@ var stdin_default$1e = defineComponent({
5920
5955
  return () => {
5921
5956
  var _a;
5922
5957
  return createVNode("div", {
5923
- "class": bem$11(),
5958
+ "class": bem$12(),
5924
5959
  "ref": barrageWrapper,
5925
5960
  "style": rootStyle.value
5926
5961
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
5927
5962
  };
5928
5963
  }
5929
5964
  });
5930
- const Barrage = withInstall(stdin_default$1e);
5931
- const [name$14, bem$10, t$g] = createNamespace("calendar");
5965
+ const Barrage = withInstall(stdin_default$1f);
5966
+ const [name$15, bem$11, t$g] = createNamespace("calendar");
5932
5967
  const formatMonthTitle = (date) => t$g("monthTitle", date.getFullYear(), date.getMonth() + 1);
5933
5968
  function compareMonth(date1, date2) {
5934
5969
  const year1 = date1.getFullYear();
@@ -5989,7 +6024,7 @@ function times(n, iteratee) {
5989
6024
  return result;
5990
6025
  }
5991
6026
  const getMonthEndDay = (year, month) => 32 - new Date(year, month - 1, 32).getDate();
5992
- const genOptions = (min, max, type, formatter, filter) => {
6027
+ const genOptions = (min, max, type, formatter, filter, values) => {
5993
6028
  const options = times(max - min + 1, (index) => {
5994
6029
  const value = padZero(min + index);
5995
6030
  return formatter(type, {
@@ -5997,7 +6032,7 @@ const genOptions = (min, max, type, formatter, filter) => {
5997
6032
  value
5998
6033
  });
5999
6034
  });
6000
- return filter ? filter(type, options) : options;
6035
+ return filter ? filter(type, options, values) : options;
6001
6036
  };
6002
6037
  const formatValueRange = (values, columns) => values.map((value, index) => {
6003
6038
  const column = columns[index];
@@ -6008,9 +6043,9 @@ const formatValueRange = (values, columns) => values.map((value, index) => {
6008
6043
  }
6009
6044
  return value;
6010
6045
  });
6011
- const [name$13] = createNamespace("calendar-day");
6012
- var stdin_default$1d = defineComponent({
6013
- name: name$13,
6046
+ const [name$14] = createNamespace("calendar-day");
6047
+ var stdin_default$1e = defineComponent({
6048
+ name: name$14,
6014
6049
  props: {
6015
6050
  item: makeRequiredProp(Object),
6016
6051
  color: String,
@@ -6072,7 +6107,7 @@ var stdin_default$1d = defineComponent({
6072
6107
  } = props.item;
6073
6108
  if (topInfo || slots["top-info"]) {
6074
6109
  return createVNode("div", {
6075
- "class": bem$10("top-info")
6110
+ "class": bem$11("top-info")
6076
6111
  }, [slots["top-info"] ? slots["top-info"](props.item) : topInfo]);
6077
6112
  }
6078
6113
  };
@@ -6082,7 +6117,7 @@ var stdin_default$1d = defineComponent({
6082
6117
  } = props.item;
6083
6118
  if (bottomInfo || slots["bottom-info"]) {
6084
6119
  return createVNode("div", {
6085
- "class": bem$10("bottom-info")
6120
+ "class": bem$11("bottom-info")
6086
6121
  }, [slots["bottom-info"] ? slots["bottom-info"](props.item) : bottomInfo]);
6087
6122
  }
6088
6123
  };
@@ -6099,7 +6134,7 @@ var stdin_default$1d = defineComponent({
6099
6134
  const Nodes = [renderTopInfo(), text, renderBottomInfo()];
6100
6135
  if (type === "selected") {
6101
6136
  return createVNode("div", {
6102
- "class": bem$10("selected-day"),
6137
+ "class": bem$11("selected-day"),
6103
6138
  "style": {
6104
6139
  width: rowHeight,
6105
6140
  height: rowHeight,
@@ -6116,21 +6151,21 @@ var stdin_default$1d = defineComponent({
6116
6151
  } = props.item;
6117
6152
  if (type === "placeholder") {
6118
6153
  return createVNode("div", {
6119
- "class": bem$10("day"),
6154
+ "class": bem$11("day"),
6120
6155
  "style": style.value
6121
6156
  }, null);
6122
6157
  }
6123
6158
  return createVNode("div", {
6124
6159
  "role": "gridcell",
6125
6160
  "style": style.value,
6126
- "class": [bem$10("day", type), className],
6161
+ "class": [bem$11("day", type), className],
6127
6162
  "tabindex": type === "disabled" ? void 0 : -1,
6128
6163
  "onClick": onClick
6129
6164
  }, [renderContent()]);
6130
6165
  };
6131
6166
  }
6132
6167
  });
6133
- const [name$12] = createNamespace("calendar-month");
6168
+ const [name$13] = createNamespace("calendar-month");
6134
6169
  const calendarMonthProps = {
6135
6170
  date: makeRequiredProp(Date),
6136
6171
  type: String,
@@ -6147,8 +6182,8 @@ const calendarMonthProps = {
6147
6182
  showMonthTitle: Boolean,
6148
6183
  firstDayOfWeek: Number
6149
6184
  };
6150
- var stdin_default$1c = defineComponent({
6151
- name: name$12,
6185
+ var stdin_default$1d = defineComponent({
6186
+ name: name$13,
6152
6187
  props: calendarMonthProps,
6153
6188
  emits: ["click"],
6154
6189
  setup(props, {
@@ -6253,7 +6288,7 @@ var stdin_default$1c = defineComponent({
6253
6288
  const renderTitle = () => {
6254
6289
  if (props.showMonthTitle) {
6255
6290
  return createVNode("div", {
6256
- "class": bem$10("month-title")
6291
+ "class": bem$11("month-title")
6257
6292
  }, [slots["month-title"] ? slots["month-title"]({
6258
6293
  date: props.date,
6259
6294
  text: title.value
@@ -6263,7 +6298,7 @@ var stdin_default$1c = defineComponent({
6263
6298
  const renderMark = () => {
6264
6299
  if (props.showMark && shouldRender.value) {
6265
6300
  return createVNode("div", {
6266
- "class": bem$10("month-mark")
6301
+ "class": bem$11("month-mark")
6267
6302
  }, [props.date.getMonth() + 1]);
6268
6303
  }
6269
6304
  };
@@ -6303,7 +6338,7 @@ var stdin_default$1c = defineComponent({
6303
6338
  setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - useRect(body).top);
6304
6339
  }
6305
6340
  };
6306
- const renderDay = (item, index) => createVNode(stdin_default$1d, {
6341
+ const renderDay = (item, index) => createVNode(stdin_default$1e, {
6307
6342
  "item": item,
6308
6343
  "index": index,
6309
6344
  "color": props.color,
@@ -6314,7 +6349,7 @@ var stdin_default$1c = defineComponent({
6314
6349
  const renderDays = () => createVNode("div", {
6315
6350
  "ref": daysRef,
6316
6351
  "role": "grid",
6317
- "class": bem$10("days")
6352
+ "class": bem$11("days")
6318
6353
  }, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
6319
6354
  useExpose({
6320
6355
  getTitle,
@@ -6324,14 +6359,14 @@ var stdin_default$1c = defineComponent({
6324
6359
  disabledDays
6325
6360
  });
6326
6361
  return () => createVNode("div", {
6327
- "class": bem$10("month"),
6362
+ "class": bem$11("month"),
6328
6363
  "ref": monthRef
6329
6364
  }, [renderTitle(), renderDays()]);
6330
6365
  }
6331
6366
  });
6332
- const [name$11] = createNamespace("calendar-header");
6333
- var stdin_default$1b = defineComponent({
6334
- name: name$11,
6367
+ const [name$12] = createNamespace("calendar-header");
6368
+ var stdin_default$1c = defineComponent({
6369
+ name: name$12,
6335
6370
  props: {
6336
6371
  date: Date,
6337
6372
  title: String,
@@ -6350,7 +6385,7 @@ var stdin_default$1b = defineComponent({
6350
6385
  const text = props.title || t$g("title");
6351
6386
  const title = slots.title ? slots.title() : text;
6352
6387
  return createVNode("div", {
6353
- "class": bem$10("header-title")
6388
+ "class": bem$11("header-title")
6354
6389
  }, [title]);
6355
6390
  }
6356
6391
  };
@@ -6362,7 +6397,7 @@ var stdin_default$1b = defineComponent({
6362
6397
  text: props.subtitle
6363
6398
  }) : props.subtitle;
6364
6399
  return createVNode("div", {
6365
- "class": bem$10("header-subtitle"),
6400
+ "class": bem$11("header-subtitle"),
6366
6401
  "onClick": onClickSubtitle
6367
6402
  }, [title]);
6368
6403
  }
@@ -6374,13 +6409,13 @@ var stdin_default$1b = defineComponent({
6374
6409
  const weekdays = t$g("weekdays");
6375
6410
  const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
6376
6411
  return createVNode("div", {
6377
- "class": bem$10("weekdays")
6412
+ "class": bem$11("weekdays")
6378
6413
  }, [renderWeekDays2.map((text) => createVNode("span", {
6379
- "class": bem$10("weekday")
6414
+ "class": bem$11("weekday")
6380
6415
  }, [text]))]);
6381
6416
  };
6382
6417
  return () => createVNode("div", {
6383
- "class": bem$10("header")
6418
+ "class": bem$11("header")
6384
6419
  }, [renderTitle(), renderSubtitle(), renderWeekDays()]);
6385
6420
  }
6386
6421
  });
@@ -6431,8 +6466,8 @@ const calendarProps = {
6431
6466
  validator: (val) => val >= 0 && val <= 6
6432
6467
  }
6433
6468
  };
6434
- var stdin_default$1a = defineComponent({
6435
- name: name$14,
6469
+ var stdin_default$1b = defineComponent({
6470
+ name: name$15,
6436
6471
  props: calendarProps,
6437
6472
  emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
6438
6473
  setup(props, {
@@ -6695,7 +6730,7 @@ var stdin_default$1a = defineComponent({
6695
6730
  const updateShow = (value) => emit("update:show", value);
6696
6731
  const renderMonth = (date, index) => {
6697
6732
  const showMonthTitle = index !== 0 || !props.showSubtitle;
6698
- return createVNode(stdin_default$1c, mergeProps({
6733
+ return createVNode(stdin_default$1d, mergeProps({
6699
6734
  "ref": setMonthRefs(index),
6700
6735
  "date": date,
6701
6736
  "currentDate": currentDate.value,
@@ -6718,7 +6753,7 @@ var stdin_default$1a = defineComponent({
6718
6753
  "block": true,
6719
6754
  "type": "primary",
6720
6755
  "color": props.color,
6721
- "class": bem$10("confirm"),
6756
+ "class": bem$11("confirm"),
6722
6757
  "disabled": disabled,
6723
6758
  "nativeType": "button",
6724
6759
  "onClick": onConfirm
@@ -6730,13 +6765,13 @@ var stdin_default$1a = defineComponent({
6730
6765
  }
6731
6766
  };
6732
6767
  const renderFooter = () => createVNode("div", {
6733
- "class": [bem$10("footer"), {
6768
+ "class": [bem$11("footer"), {
6734
6769
  "van-safe-area-bottom": props.safeAreaInsetBottom
6735
6770
  }]
6736
6771
  }, [renderFooterButton()]);
6737
6772
  const renderCalendar = () => createVNode("div", {
6738
- "class": bem$10()
6739
- }, [createVNode(stdin_default$1b, {
6773
+ "class": bem$11()
6774
+ }, [createVNode(stdin_default$1c, {
6740
6775
  "date": subtitle.value.date,
6741
6776
  "title": props.title,
6742
6777
  "subtitle": subtitle.value.text,
@@ -6746,7 +6781,7 @@ var stdin_default$1a = defineComponent({
6746
6781
  "onClickSubtitle": (event) => emit("clickSubtitle", event)
6747
6782
  }, pick(slots, ["title", "subtitle"])), createVNode("div", {
6748
6783
  "ref": bodyRef,
6749
- "class": bem$10("body"),
6784
+ "class": bem$11("body"),
6750
6785
  "onScroll": onScroll
6751
6786
  }, [months.value.map(renderMonth)]), renderFooter()]);
6752
6787
  watch(() => props.show, init);
@@ -6765,7 +6800,7 @@ var stdin_default$1a = defineComponent({
6765
6800
  if (props.poppable) {
6766
6801
  return createVNode(Popup, {
6767
6802
  "show": props.show,
6768
- "class": bem$10("popup"),
6803
+ "class": bem$11("popup"),
6769
6804
  "round": props.round,
6770
6805
  "position": props.position,
6771
6806
  "closeable": props.showTitle || props.showSubtitle,
@@ -6782,8 +6817,8 @@ var stdin_default$1a = defineComponent({
6782
6817
  };
6783
6818
  }
6784
6819
  });
6785
- const Calendar = withInstall(stdin_default$1a);
6786
- const [name$10, bem$$] = createNamespace("image");
6820
+ const Calendar = withInstall(stdin_default$1b);
6821
+ const [name$11, bem$10] = createNamespace("image");
6787
6822
  const imageProps = {
6788
6823
  src: String,
6789
6824
  alt: String,
@@ -6802,8 +6837,8 @@ const imageProps = {
6802
6837
  showLoading: truthProp,
6803
6838
  loadingIcon: makeStringProp("photo")
6804
6839
  };
6805
- var stdin_default$19 = defineComponent({
6806
- name: name$10,
6840
+ var stdin_default$1a = defineComponent({
6841
+ name: name$11,
6807
6842
  props: imageProps,
6808
6843
  emits: ["load", "error"],
6809
6844
  setup(props, {
@@ -6864,13 +6899,13 @@ var stdin_default$19 = defineComponent({
6864
6899
  const renderPlaceholder = () => {
6865
6900
  if (loading.value && props.showLoading) {
6866
6901
  return createVNode("div", {
6867
- "class": bem$$("loading")
6868
- }, [renderIcon(props.loadingIcon, bem$$("loading-icon"), slots.loading)]);
6902
+ "class": bem$10("loading")
6903
+ }, [renderIcon(props.loadingIcon, bem$10("loading-icon"), slots.loading)]);
6869
6904
  }
6870
6905
  if (error.value && props.showError) {
6871
6906
  return createVNode("div", {
6872
- "class": bem$$("error")
6873
- }, [renderIcon(props.errorIcon, bem$$("error-icon"), slots.error)]);
6907
+ "class": bem$10("error")
6908
+ }, [renderIcon(props.errorIcon, bem$10("error-icon"), slots.error)]);
6874
6909
  }
6875
6910
  };
6876
6911
  const renderImage = () => {
@@ -6879,7 +6914,7 @@ var stdin_default$19 = defineComponent({
6879
6914
  }
6880
6915
  const attrs = {
6881
6916
  alt: props.alt,
6882
- class: bem$$("img"),
6917
+ class: bem$10("img"),
6883
6918
  style: {
6884
6919
  objectFit: props.fit,
6885
6920
  objectPosition: props.position
@@ -6937,7 +6972,7 @@ var stdin_default$19 = defineComponent({
6937
6972
  return () => {
6938
6973
  var _a;
6939
6974
  return createVNode("div", {
6940
- "class": bem$$({
6975
+ "class": bem$10({
6941
6976
  round: props.round,
6942
6977
  block: props.block
6943
6978
  }),
@@ -6946,8 +6981,8 @@ var stdin_default$19 = defineComponent({
6946
6981
  };
6947
6982
  }
6948
6983
  });
6949
- const Image$1 = withInstall(stdin_default$19);
6950
- const [name$$, bem$_] = createNamespace("card");
6984
+ const Image$1 = withInstall(stdin_default$1a);
6985
+ const [name$10, bem$$] = createNamespace("card");
6951
6986
  const cardProps = {
6952
6987
  tag: String,
6953
6988
  num: numericProp,
@@ -6961,8 +6996,8 @@ const cardProps = {
6961
6996
  thumbLink: String,
6962
6997
  originPrice: numericProp
6963
6998
  };
6964
- var stdin_default$18 = defineComponent({
6965
- name: name$$,
6999
+ var stdin_default$19 = defineComponent({
7000
+ name: name$10,
6966
7001
  props: cardProps,
6967
7002
  emits: ["clickThumb"],
6968
7003
  setup(props, {
@@ -6975,14 +7010,14 @@ var stdin_default$18 = defineComponent({
6975
7010
  }
6976
7011
  if (props.title) {
6977
7012
  return createVNode("div", {
6978
- "class": [bem$_("title"), "van-multi-ellipsis--l2"]
7013
+ "class": [bem$$("title"), "van-multi-ellipsis--l2"]
6979
7014
  }, [props.title]);
6980
7015
  }
6981
7016
  };
6982
7017
  const renderThumbTag = () => {
6983
7018
  if (slots.tag || props.tag) {
6984
7019
  return createVNode("div", {
6985
- "class": bem$_("tag")
7020
+ "class": bem$$("tag")
6986
7021
  }, [slots.tag ? slots.tag() : createVNode(Tag, {
6987
7022
  "mark": true,
6988
7023
  "type": "primary"
@@ -7007,7 +7042,7 @@ var stdin_default$18 = defineComponent({
7007
7042
  if (slots.thumb || props.thumb) {
7008
7043
  return createVNode("a", {
7009
7044
  "href": props.thumbLink,
7010
- "class": bem$_("thumb"),
7045
+ "class": bem$$("thumb"),
7011
7046
  "onClick": (event) => emit("clickThumb", event)
7012
7047
  }, [renderThumbImage(), renderThumbTag()]);
7013
7048
  }
@@ -7018,18 +7053,18 @@ var stdin_default$18 = defineComponent({
7018
7053
  }
7019
7054
  if (props.desc) {
7020
7055
  return createVNode("div", {
7021
- "class": [bem$_("desc"), "van-ellipsis"]
7056
+ "class": [bem$$("desc"), "van-ellipsis"]
7022
7057
  }, [props.desc]);
7023
7058
  }
7024
7059
  };
7025
7060
  const renderPriceText = () => {
7026
7061
  const priceArr = props.price.toString().split(".");
7027
7062
  return createVNode("div", null, [createVNode("span", {
7028
- "class": bem$_("price-currency")
7063
+ "class": bem$$("price-currency")
7029
7064
  }, [props.currency]), createVNode("span", {
7030
- "class": bem$_("price-integer")
7065
+ "class": bem$$("price-integer")
7031
7066
  }, [priceArr[0]]), createTextVNode("."), createVNode("span", {
7032
- "class": bem$_("price-decimal")
7067
+ "class": bem$$("price-decimal")
7033
7068
  }, [priceArr[1]])]);
7034
7069
  };
7035
7070
  return () => {
@@ -7039,34 +7074,34 @@ var stdin_default$18 = defineComponent({
7039
7074
  const showOriginPrice = slots["origin-price"] || isDef(props.originPrice);
7040
7075
  const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
7041
7076
  const Price = showPrice && createVNode("div", {
7042
- "class": bem$_("price")
7077
+ "class": bem$$("price")
7043
7078
  }, [slots.price ? slots.price() : renderPriceText()]);
7044
7079
  const OriginPrice = showOriginPrice && createVNode("div", {
7045
- "class": bem$_("origin-price")
7080
+ "class": bem$$("origin-price")
7046
7081
  }, [slots["origin-price"] ? slots["origin-price"]() : `${props.currency} ${props.originPrice}`]);
7047
7082
  const Num = showNum && createVNode("div", {
7048
- "class": bem$_("num")
7083
+ "class": bem$$("num")
7049
7084
  }, [slots.num ? slots.num() : `x${props.num}`]);
7050
7085
  const Footer = slots.footer && createVNode("div", {
7051
- "class": bem$_("footer")
7086
+ "class": bem$$("footer")
7052
7087
  }, [slots.footer()]);
7053
7088
  const Bottom = showBottom && createVNode("div", {
7054
- "class": bem$_("bottom")
7089
+ "class": bem$$("bottom")
7055
7090
  }, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
7056
7091
  return createVNode("div", {
7057
- "class": bem$_()
7092
+ "class": bem$$()
7058
7093
  }, [createVNode("div", {
7059
- "class": bem$_("header")
7094
+ "class": bem$$("header")
7060
7095
  }, [renderThumb(), createVNode("div", {
7061
- "class": bem$_("content", {
7096
+ "class": bem$$("content", {
7062
7097
  centered: props.centered
7063
7098
  })
7064
7099
  }, [createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
7065
7100
  };
7066
7101
  }
7067
7102
  });
7068
- const Card = withInstall(stdin_default$18);
7069
- const [name$_, bem$Z, t$f] = createNamespace("cascader");
7103
+ const Card = withInstall(stdin_default$19);
7104
+ const [name$$, bem$_, t$f] = createNamespace("cascader");
7070
7105
  const cascaderProps = {
7071
7106
  title: String,
7072
7107
  options: makeArrayProp(),
@@ -7079,8 +7114,8 @@ const cascaderProps = {
7079
7114
  placeholder: String,
7080
7115
  activeColor: String
7081
7116
  };
7082
- var stdin_default$17 = defineComponent({
7083
- name: name$_,
7117
+ var stdin_default$18 = defineComponent({
7118
+ name: name$$,
7084
7119
  props: cascaderProps,
7085
7120
  emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
7086
7121
  setup(props, {
@@ -7189,12 +7224,12 @@ var stdin_default$17 = defineComponent({
7189
7224
  title
7190
7225
  }) => emit("clickTab", name2, title);
7191
7226
  const renderHeader = () => props.showHeader ? createVNode("div", {
7192
- "class": bem$Z("header")
7227
+ "class": bem$_("header")
7193
7228
  }, [createVNode("h2", {
7194
- "class": bem$Z("title")
7229
+ "class": bem$_("title")
7195
7230
  }, [slots.title ? slots.title() : props.title]), props.closeable ? createVNode(Icon, {
7196
7231
  "name": props.closeIcon,
7197
- "class": [bem$Z("close-icon"), HAPTICS_FEEDBACK],
7232
+ "class": [bem$_("close-icon"), HAPTICS_FEEDBACK],
7198
7233
  "onClick": onClose
7199
7234
  }, null) : null]) : null;
7200
7235
  const renderOption = (option, selectedOption, tabIndex) => {
@@ -7210,7 +7245,7 @@ var stdin_default$17 = defineComponent({
7210
7245
  return createVNode("li", {
7211
7246
  "ref": selected ? setSelectedElementRefs(tabIndex) : void 0,
7212
7247
  "role": "menuitemradio",
7213
- "class": [bem$Z("option", {
7248
+ "class": [bem$_("option", {
7214
7249
  selected,
7215
7250
  disabled
7216
7251
  }), option.className],
@@ -7223,12 +7258,12 @@ var stdin_default$17 = defineComponent({
7223
7258
  "onClick": () => onSelect(option, tabIndex)
7224
7259
  }, [Text2, selected ? createVNode(Icon, {
7225
7260
  "name": "success",
7226
- "class": bem$Z("selected-icon")
7261
+ "class": bem$_("selected-icon")
7227
7262
  }, null) : null]);
7228
7263
  };
7229
7264
  const renderOptions = (options, selectedOption, tabIndex) => createVNode("ul", {
7230
7265
  "role": "menu",
7231
- "class": bem$Z("options")
7266
+ "class": bem$_("options")
7232
7267
  }, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
7233
7268
  const renderTab = (tab, tabIndex) => {
7234
7269
  const {
@@ -7239,7 +7274,7 @@ var stdin_default$17 = defineComponent({
7239
7274
  const title = selected ? selected[textKey] : placeholder;
7240
7275
  return createVNode(Tab, {
7241
7276
  "title": title,
7242
- "titleClass": bem$Z("tab", {
7277
+ "titleClass": bem$_("tab", {
7243
7278
  unselected: !selected
7244
7279
  })
7245
7280
  }, {
@@ -7258,7 +7293,7 @@ var stdin_default$17 = defineComponent({
7258
7293
  "onUpdate:active": ($event) => activeTab.value = $event,
7259
7294
  "shrink": true,
7260
7295
  "animated": true,
7261
- "class": bem$Z("tabs"),
7296
+ "class": bem$_("tabs"),
7262
7297
  "color": props.activeColor,
7263
7298
  "swipeable": props.swipeable,
7264
7299
  "onClickTab": onClickTab
@@ -7293,19 +7328,19 @@ var stdin_default$17 = defineComponent({
7293
7328
  updateTabs();
7294
7329
  });
7295
7330
  return () => createVNode("div", {
7296
- "class": bem$Z()
7331
+ "class": bem$_()
7297
7332
  }, [renderHeader(), renderTabs()]);
7298
7333
  }
7299
7334
  });
7300
- const Cascader = withInstall(stdin_default$17);
7301
- const [name$Z, bem$Y] = createNamespace("cell-group");
7335
+ const Cascader = withInstall(stdin_default$18);
7336
+ const [name$_, bem$Z] = createNamespace("cell-group");
7302
7337
  const cellGroupProps = {
7303
7338
  title: String,
7304
7339
  inset: Boolean,
7305
7340
  border: truthProp
7306
7341
  };
7307
- var stdin_default$16 = defineComponent({
7308
- name: name$Z,
7342
+ var stdin_default$17 = defineComponent({
7343
+ name: name$_,
7309
7344
  inheritAttrs: false,
7310
7345
  props: cellGroupProps,
7311
7346
  setup(props, {
@@ -7315,7 +7350,7 @@ var stdin_default$16 = defineComponent({
7315
7350
  const renderGroup = () => {
7316
7351
  var _a;
7317
7352
  return createVNode("div", mergeProps({
7318
- "class": [bem$Y({
7353
+ "class": [bem$Z({
7319
7354
  inset: props.inset
7320
7355
  }), {
7321
7356
  [BORDER_TOP_BOTTOM]: props.border && !props.inset
@@ -7323,7 +7358,7 @@ var stdin_default$16 = defineComponent({
7323
7358
  }, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
7324
7359
  };
7325
7360
  const renderTitle = () => createVNode("div", {
7326
- "class": bem$Y("title", {
7361
+ "class": bem$Z("title", {
7327
7362
  inset: props.inset
7328
7363
  })
7329
7364
  }, [slots.title ? slots.title() : props.title]);
@@ -7335,8 +7370,8 @@ var stdin_default$16 = defineComponent({
7335
7370
  };
7336
7371
  }
7337
7372
  });
7338
- const CellGroup = withInstall(stdin_default$16);
7339
- const [name$Y, bem$X] = createNamespace("checkbox-group");
7373
+ const CellGroup = withInstall(stdin_default$17);
7374
+ const [name$Z, bem$Y] = createNamespace("checkbox-group");
7340
7375
  const checkboxGroupProps = {
7341
7376
  max: numericProp,
7342
7377
  disabled: Boolean,
@@ -7345,9 +7380,9 @@ const checkboxGroupProps = {
7345
7380
  modelValue: makeArrayProp(),
7346
7381
  checkedColor: String
7347
7382
  };
7348
- const CHECKBOX_GROUP_KEY = Symbol(name$Y);
7349
- var stdin_default$15 = defineComponent({
7350
- name: name$Y,
7383
+ const CHECKBOX_GROUP_KEY = Symbol(name$Z);
7384
+ var stdin_default$16 = defineComponent({
7385
+ name: name$Z,
7351
7386
  props: checkboxGroupProps,
7352
7387
  emits: ["change", "update:modelValue"],
7353
7388
  setup(props, {
@@ -7393,17 +7428,17 @@ var stdin_default$15 = defineComponent({
7393
7428
  return () => {
7394
7429
  var _a;
7395
7430
  return createVNode("div", {
7396
- "class": bem$X([props.direction])
7431
+ "class": bem$Y([props.direction])
7397
7432
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
7398
7433
  };
7399
7434
  }
7400
7435
  });
7401
- const [name$X, bem$W] = createNamespace("checkbox");
7436
+ const [name$Y, bem$X] = createNamespace("checkbox");
7402
7437
  const checkboxProps = extend({}, checkerProps, {
7403
7438
  bindGroup: truthProp
7404
7439
  });
7405
- var stdin_default$14 = defineComponent({
7406
- name: name$X,
7440
+ var stdin_default$15 = defineComponent({
7441
+ name: name$Y,
7407
7442
  props: checkboxProps,
7408
7443
  emits: ["change", "update:modelValue"],
7409
7444
  setup(props, {
@@ -7460,8 +7495,8 @@ var stdin_default$14 = defineComponent({
7460
7495
  checked
7461
7496
  });
7462
7497
  useCustomFieldValue(() => props.modelValue);
7463
- return () => createVNode(stdin_default$1j, mergeProps({
7464
- "bem": bem$W,
7498
+ return () => createVNode(stdin_default$1k, mergeProps({
7499
+ "bem": bem$X,
7465
7500
  "role": "checkbox",
7466
7501
  "parent": parent,
7467
7502
  "checked": checked.value,
@@ -7469,9 +7504,9 @@ var stdin_default$14 = defineComponent({
7469
7504
  }, props), pick(slots, ["default", "icon"]));
7470
7505
  }
7471
7506
  });
7472
- const Checkbox = withInstall(stdin_default$14);
7473
- const CheckboxGroup = withInstall(stdin_default$15);
7474
- const [name$W, bem$V] = createNamespace("circle");
7507
+ const Checkbox = withInstall(stdin_default$15);
7508
+ const CheckboxGroup = withInstall(stdin_default$16);
7509
+ const [name$X, bem$W] = createNamespace("circle");
7475
7510
  let uid = 0;
7476
7511
  const format = (rate) => Math.min(Math.max(+rate, 0), 100);
7477
7512
  function getPath(clockwise, viewBoxSize) {
@@ -7492,8 +7527,8 @@ const circleProps = {
7492
7527
  strokeLinecap: String,
7493
7528
  startPosition: makeStringProp("top")
7494
7529
  };
7495
- var stdin_default$13 = defineComponent({
7496
- name: name$W,
7530
+ var stdin_default$14 = defineComponent({
7531
+ name: name$X,
7497
7532
  props: circleProps,
7498
7533
  emits: ["update:currentRate"],
7499
7534
  setup(props, {
@@ -7561,7 +7596,7 @@ var stdin_default$13 = defineComponent({
7561
7596
  return createVNode("path", {
7562
7597
  "d": path.value,
7563
7598
  "style": style,
7564
- "class": bem$V("hover"),
7599
+ "class": bem$W("hover"),
7565
7600
  "stroke": color
7566
7601
  }, null);
7567
7602
  };
@@ -7572,7 +7607,7 @@ var stdin_default$13 = defineComponent({
7572
7607
  strokeWidth: `${props.strokeWidth}px`
7573
7608
  };
7574
7609
  return createVNode("path", {
7575
- "class": bem$V("layer"),
7610
+ "class": bem$W("layer"),
7576
7611
  "style": style,
7577
7612
  "d": path.value
7578
7613
  }, null);
@@ -7603,12 +7638,12 @@ var stdin_default$13 = defineComponent({
7603
7638
  }
7604
7639
  if (props.text) {
7605
7640
  return createVNode("div", {
7606
- "class": bem$V("text")
7641
+ "class": bem$W("text")
7607
7642
  }, [props.text]);
7608
7643
  }
7609
7644
  };
7610
7645
  return () => createVNode("div", {
7611
- "class": bem$V(),
7646
+ "class": bem$W(),
7612
7647
  "style": getSizeStyle(props.size)
7613
7648
  }, [createVNode("svg", {
7614
7649
  "viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
@@ -7616,9 +7651,9 @@ var stdin_default$13 = defineComponent({
7616
7651
  }, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
7617
7652
  }
7618
7653
  });
7619
- const Circle = withInstall(stdin_default$13);
7620
- const [name$V, bem$U] = createNamespace("row");
7621
- const ROW_KEY = Symbol(name$V);
7654
+ const Circle = withInstall(stdin_default$14);
7655
+ const [name$W, bem$V] = createNamespace("row");
7656
+ const ROW_KEY = Symbol(name$W);
7622
7657
  const rowProps = {
7623
7658
  tag: makeStringProp("div"),
7624
7659
  wrap: truthProp,
@@ -7626,8 +7661,8 @@ const rowProps = {
7626
7661
  gutter: makeNumericProp(0),
7627
7662
  justify: String
7628
7663
  };
7629
- var stdin_default$12 = defineComponent({
7630
- name: name$V,
7664
+ var stdin_default$13 = defineComponent({
7665
+ name: name$W,
7631
7666
  props: rowProps,
7632
7667
  setup(props, {
7633
7668
  slots
@@ -7686,7 +7721,7 @@ var stdin_default$12 = defineComponent({
7686
7721
  justify
7687
7722
  } = props;
7688
7723
  return createVNode(tag, {
7689
- "class": bem$U({
7724
+ "class": bem$V({
7690
7725
  [`align-${align}`]: align,
7691
7726
  [`justify-${justify}`]: justify,
7692
7727
  nowrap: !wrap
@@ -7700,14 +7735,14 @@ var stdin_default$12 = defineComponent({
7700
7735
  };
7701
7736
  }
7702
7737
  });
7703
- const [name$U, bem$T] = createNamespace("col");
7738
+ const [name$V, bem$U] = createNamespace("col");
7704
7739
  const colProps = {
7705
7740
  tag: makeStringProp("div"),
7706
7741
  span: makeNumericProp(0),
7707
7742
  offset: numericProp
7708
7743
  };
7709
- var stdin_default$11 = defineComponent({
7710
- name: name$U,
7744
+ var stdin_default$12 = defineComponent({
7745
+ name: name$V,
7711
7746
  props: colProps,
7712
7747
  setup(props, {
7713
7748
  slots
@@ -7742,7 +7777,7 @@ var stdin_default$11 = defineComponent({
7742
7777
  } = props;
7743
7778
  return createVNode(tag, {
7744
7779
  "style": style.value,
7745
- "class": bem$T({
7780
+ "class": bem$U({
7746
7781
  [span]: span,
7747
7782
  [`offset-${offset}`]: offset
7748
7783
  })
@@ -7755,9 +7790,9 @@ var stdin_default$11 = defineComponent({
7755
7790
  };
7756
7791
  }
7757
7792
  });
7758
- const Col = withInstall(stdin_default$11);
7759
- const [name$T, bem$S] = createNamespace("collapse");
7760
- const COLLAPSE_KEY = Symbol(name$T);
7793
+ const Col = withInstall(stdin_default$12);
7794
+ const [name$U, bem$T] = createNamespace("collapse");
7795
+ const COLLAPSE_KEY = Symbol(name$U);
7761
7796
  const collapseProps = {
7762
7797
  border: truthProp,
7763
7798
  accordion: Boolean,
@@ -7777,8 +7812,8 @@ function validateModelValue(modelValue, accordion) {
7777
7812
  }
7778
7813
  return true;
7779
7814
  }
7780
- var stdin_default$10 = defineComponent({
7781
- name: name$T,
7815
+ var stdin_default$11 = defineComponent({
7816
+ name: name$U,
7782
7817
  props: collapseProps,
7783
7818
  emits: ["change", "update:modelValue"],
7784
7819
  setup(props, {
@@ -7848,15 +7883,15 @@ var stdin_default$10 = defineComponent({
7848
7883
  return () => {
7849
7884
  var _a;
7850
7885
  return createVNode("div", {
7851
- "class": [bem$S(), {
7886
+ "class": [bem$T(), {
7852
7887
  [BORDER_TOP_BOTTOM]: props.border
7853
7888
  }]
7854
7889
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
7855
7890
  };
7856
7891
  }
7857
7892
  });
7858
- const Collapse = withInstall(stdin_default$10);
7859
- const [name$S, bem$R] = createNamespace("collapse-item");
7893
+ const Collapse = withInstall(stdin_default$11);
7894
+ const [name$T, bem$S] = createNamespace("collapse-item");
7860
7895
  const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
7861
7896
  const collapseItemProps = extend({}, cellSharedProps, {
7862
7897
  name: numericProp,
@@ -7865,8 +7900,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
7865
7900
  readonly: Boolean,
7866
7901
  lazyRender: truthProp
7867
7902
  });
7868
- var stdin_default$$ = defineComponent({
7869
- name: name$S,
7903
+ var stdin_default$10 = defineComponent({
7904
+ name: name$T,
7870
7905
  props: collapseItemProps,
7871
7906
  setup(props, {
7872
7907
  slots
@@ -7948,7 +7983,7 @@ var stdin_default$$ = defineComponent({
7948
7983
  }
7949
7984
  return createVNode(Cell, mergeProps({
7950
7985
  "role": "button",
7951
- "class": bem$R("title", {
7986
+ "class": bem$S("title", {
7952
7987
  disabled,
7953
7988
  expanded: expanded.value,
7954
7989
  borderless: !border
@@ -7961,11 +7996,11 @@ var stdin_default$$ = defineComponent({
7961
7996
  var _a;
7962
7997
  return withDirectives(createVNode("div", {
7963
7998
  "ref": wrapperRef,
7964
- "class": bem$R("wrapper"),
7999
+ "class": bem$S("wrapper"),
7965
8000
  "onTransitionend": onTransitionEnd
7966
8001
  }, [createVNode("div", {
7967
8002
  "ref": contentRef,
7968
- "class": bem$R("content")
8003
+ "class": bem$S("content")
7969
8004
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vShow, show.value]]);
7970
8005
  });
7971
8006
  useExpose({
@@ -7974,15 +8009,15 @@ var stdin_default$$ = defineComponent({
7974
8009
  itemName: name2
7975
8010
  });
7976
8011
  return () => createVNode("div", {
7977
- "class": [bem$R({
8012
+ "class": [bem$S({
7978
8013
  border: index.value && props.border
7979
8014
  })]
7980
8015
  }, [renderTitle(), renderContent()]);
7981
8016
  }
7982
8017
  });
7983
- const CollapseItem = withInstall(stdin_default$$);
7984
- const ConfigProvider = withInstall(stdin_default$1M);
7985
- const [name$R, bem$Q, t$e] = createNamespace("contact-card");
8018
+ const CollapseItem = withInstall(stdin_default$10);
8019
+ const ConfigProvider = withInstall(stdin_default$1N);
8020
+ const [name$S, bem$R, t$e] = createNamespace("contact-card");
7986
8021
  const contactCardProps = {
7987
8022
  tel: String,
7988
8023
  name: String,
@@ -7990,8 +8025,8 @@ const contactCardProps = {
7990
8025
  addText: String,
7991
8026
  editable: truthProp
7992
8027
  };
7993
- var stdin_default$_ = defineComponent({
7994
- name: name$R,
8028
+ var stdin_default$$ = defineComponent({
8029
+ name: name$S,
7995
8030
  props: contactCardProps,
7996
8031
  emits: ["click"],
7997
8032
  setup(props, {
@@ -8011,18 +8046,18 @@ var stdin_default$_ = defineComponent({
8011
8046
  return () => createVNode(Cell, {
8012
8047
  "center": true,
8013
8048
  "icon": props.type === "edit" ? "contact" : "add-square",
8014
- "class": bem$Q([props.type]),
8049
+ "class": bem$R([props.type]),
8015
8050
  "border": false,
8016
8051
  "isLink": props.editable,
8017
- "titleClass": bem$Q("title"),
8052
+ "titleClass": bem$R("title"),
8018
8053
  "onClick": onClick
8019
8054
  }, {
8020
8055
  title: renderContent
8021
8056
  });
8022
8057
  }
8023
8058
  });
8024
- const ContactCard = withInstall(stdin_default$_);
8025
- const [name$Q, bem$P, t$d] = createNamespace("contact-edit");
8059
+ const ContactCard = withInstall(stdin_default$$);
8060
+ const [name$R, bem$Q, t$d] = createNamespace("contact-edit");
8026
8061
  const DEFAULT_CONTACT = {
8027
8062
  tel: "",
8028
8063
  name: ""
@@ -8042,8 +8077,8 @@ const contactEditProps = {
8042
8077
  default: isMobile
8043
8078
  }
8044
8079
  };
8045
- var stdin_default$Z = defineComponent({
8046
- name: name$Q,
8080
+ var stdin_default$_ = defineComponent({
8081
+ name: name$R,
8047
8082
  props: contactEditProps,
8048
8083
  emits: ["save", "delete", "changeDefault"],
8049
8084
  setup(props, {
@@ -8057,20 +8092,20 @@ var stdin_default$Z = defineComponent({
8057
8092
  };
8058
8093
  const onDelete = () => emit("delete", contact);
8059
8094
  const renderButtons = () => createVNode("div", {
8060
- "class": bem$P("buttons")
8095
+ "class": bem$Q("buttons")
8061
8096
  }, [createVNode(Button, {
8062
8097
  "block": true,
8063
8098
  "round": true,
8064
8099
  "type": "primary",
8065
8100
  "text": t$d("save"),
8066
- "class": bem$P("button"),
8101
+ "class": bem$Q("button"),
8067
8102
  "loading": props.isSaving,
8068
8103
  "nativeType": "submit"
8069
8104
  }, null), props.isEdit && createVNode(Button, {
8070
8105
  "block": true,
8071
8106
  "round": true,
8072
8107
  "text": t$d("delete"),
8073
- "class": bem$P("button"),
8108
+ "class": bem$Q("button"),
8074
8109
  "loading": props.isDeleting,
8075
8110
  "onClick": onDelete
8076
8111
  }, null)]);
@@ -8083,7 +8118,7 @@ var stdin_default$Z = defineComponent({
8083
8118
  if (props.showSetDefault) {
8084
8119
  return createVNode(Cell, {
8085
8120
  "title": props.setDefaultLabel,
8086
- "class": bem$P("switch-cell"),
8121
+ "class": bem$Q("switch-cell"),
8087
8122
  "border": false
8088
8123
  }, {
8089
8124
  "right-icon": renderSwitch
@@ -8092,11 +8127,11 @@ var stdin_default$Z = defineComponent({
8092
8127
  };
8093
8128
  watch(() => props.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
8094
8129
  return () => createVNode(Form, {
8095
- "class": bem$P(),
8130
+ "class": bem$Q(),
8096
8131
  "onSubmit": onSave
8097
8132
  }, {
8098
8133
  default: () => [createVNode("div", {
8099
- "class": bem$P("fields")
8134
+ "class": bem$Q("fields")
8100
8135
  }, [createVNode(Field, {
8101
8136
  "modelValue": contact.name,
8102
8137
  "onUpdate:modelValue": ($event) => contact.name = $event,
@@ -8123,16 +8158,16 @@ var stdin_default$Z = defineComponent({
8123
8158
  });
8124
8159
  }
8125
8160
  });
8126
- const ContactEdit = withInstall(stdin_default$Z);
8127
- const [name$P, bem$O, t$c] = createNamespace("contact-list");
8161
+ const ContactEdit = withInstall(stdin_default$_);
8162
+ const [name$Q, bem$P, t$c] = createNamespace("contact-list");
8128
8163
  const contactListProps = {
8129
8164
  list: Array,
8130
8165
  addText: String,
8131
8166
  modelValue: unknownProp,
8132
8167
  defaultTagText: String
8133
8168
  };
8134
- var stdin_default$Y = defineComponent({
8135
- name: name$P,
8169
+ var stdin_default$Z = defineComponent({
8170
+ name: name$Q,
8136
8171
  props: contactListProps,
8137
8172
  emits: ["add", "edit", "select", "update:modelValue"],
8138
8173
  setup(props, {
@@ -8144,13 +8179,13 @@ var stdin_default$Y = defineComponent({
8144
8179
  emit("select", item, index);
8145
8180
  };
8146
8181
  const renderRightIcon = () => createVNode(Radio, {
8147
- "class": bem$O("radio"),
8182
+ "class": bem$P("radio"),
8148
8183
  "name": item.id,
8149
8184
  "iconSize": 18
8150
8185
  }, null);
8151
8186
  const renderEditIcon = () => createVNode(Icon, {
8152
8187
  "name": "edit",
8153
- "class": bem$O("edit"),
8188
+ "class": bem$P("edit"),
8154
8189
  "onClick": (event) => {
8155
8190
  event.stopPropagation();
8156
8191
  emit("edit", item, index);
@@ -8162,7 +8197,7 @@ var stdin_default$Y = defineComponent({
8162
8197
  nodes.push(createVNode(Tag, {
8163
8198
  "type": "primary",
8164
8199
  "round": true,
8165
- "class": bem$O("item-tag")
8200
+ "class": bem$P("item-tag")
8166
8201
  }, {
8167
8202
  default: () => [props.defaultTagText]
8168
8203
  }));
@@ -8173,8 +8208,8 @@ var stdin_default$Y = defineComponent({
8173
8208
  "key": item.id,
8174
8209
  "isLink": true,
8175
8210
  "center": true,
8176
- "class": bem$O("item"),
8177
- "titleClass": bem$O("item-title"),
8211
+ "class": bem$P("item"),
8212
+ "titleClass": bem$P("item-title"),
8178
8213
  "onClick": onClick
8179
8214
  }, {
8180
8215
  icon: renderEditIcon,
@@ -8183,25 +8218,25 @@ var stdin_default$Y = defineComponent({
8183
8218
  });
8184
8219
  };
8185
8220
  return () => createVNode("div", {
8186
- "class": bem$O()
8221
+ "class": bem$P()
8187
8222
  }, [createVNode(RadioGroup, {
8188
8223
  "modelValue": props.modelValue,
8189
- "class": bem$O("group")
8224
+ "class": bem$P("group")
8190
8225
  }, {
8191
8226
  default: () => [props.list && props.list.map(renderItem)]
8192
8227
  }), createVNode("div", {
8193
- "class": [bem$O("bottom"), "van-safe-area-bottom"]
8228
+ "class": [bem$P("bottom"), "van-safe-area-bottom"]
8194
8229
  }, [createVNode(Button, {
8195
8230
  "round": true,
8196
8231
  "block": true,
8197
8232
  "type": "primary",
8198
- "class": bem$O("add"),
8233
+ "class": bem$P("add"),
8199
8234
  "text": props.addText || t$c("addContact"),
8200
8235
  "onClick": () => emit("add")
8201
8236
  }, null)])]);
8202
8237
  }
8203
8238
  });
8204
- const ContactList = withInstall(stdin_default$Y);
8239
+ const ContactList = withInstall(stdin_default$Z);
8205
8240
  function parseFormat(format2, currentTime) {
8206
8241
  const { days } = currentTime;
8207
8242
  let { hours, minutes, seconds, milliseconds } = currentTime;
@@ -8237,15 +8272,15 @@ function parseFormat(format2, currentTime) {
8237
8272
  }
8238
8273
  return format2;
8239
8274
  }
8240
- const [name$O, bem$N] = createNamespace("count-down");
8275
+ const [name$P, bem$O] = createNamespace("count-down");
8241
8276
  const countDownProps = {
8242
8277
  time: makeNumericProp(0),
8243
8278
  format: makeStringProp("HH:mm:ss"),
8244
8279
  autoStart: truthProp,
8245
8280
  millisecond: Boolean
8246
8281
  };
8247
- var stdin_default$X = defineComponent({
8248
- name: name$O,
8282
+ var stdin_default$Y = defineComponent({
8283
+ name: name$P,
8249
8284
  props: countDownProps,
8250
8285
  emits: ["change", "finish"],
8251
8286
  setup(props, {
@@ -8280,11 +8315,11 @@ var stdin_default$X = defineComponent({
8280
8315
  });
8281
8316
  return () => createVNode("div", {
8282
8317
  "role": "timer",
8283
- "class": bem$N()
8318
+ "class": bem$O()
8284
8319
  }, [slots.default ? slots.default(current2.value) : timeText.value]);
8285
8320
  }
8286
8321
  });
8287
- const CountDown = withInstall(stdin_default$X);
8322
+ const CountDown = withInstall(stdin_default$Y);
8288
8323
  function getDate(timeStamp) {
8289
8324
  const date = new Date(timeStamp * 1e3);
8290
8325
  return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
@@ -8293,9 +8328,9 @@ function getDate(timeStamp) {
8293
8328
  }
8294
8329
  const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
8295
8330
  const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
8296
- const [name$N, bem$M, t$b] = createNamespace("coupon");
8297
- var stdin_default$W = defineComponent({
8298
- name: name$N,
8331
+ const [name$O, bem$N, t$b] = createNamespace("coupon");
8332
+ var stdin_default$X = defineComponent({
8333
+ name: name$O,
8299
8334
  props: {
8300
8335
  chosen: Boolean,
8301
8336
  coupon: makeRequiredProp(Object),
@@ -8339,34 +8374,34 @@ var stdin_default$W = defineComponent({
8339
8374
  } = props;
8340
8375
  const description = disabled && coupon.reason || coupon.description;
8341
8376
  return createVNode("div", {
8342
- "class": bem$M({
8377
+ "class": bem$N({
8343
8378
  disabled
8344
8379
  })
8345
8380
  }, [createVNode("div", {
8346
- "class": bem$M("content")
8381
+ "class": bem$N("content")
8347
8382
  }, [createVNode("div", {
8348
- "class": bem$M("head")
8383
+ "class": bem$N("head")
8349
8384
  }, [createVNode("h2", {
8350
- "class": bem$M("amount")
8385
+ "class": bem$N("amount")
8351
8386
  }, [faceAmount.value]), createVNode("p", {
8352
- "class": bem$M("condition")
8387
+ "class": bem$N("condition")
8353
8388
  }, [coupon.condition || conditionMessage.value])]), createVNode("div", {
8354
- "class": bem$M("body")
8389
+ "class": bem$N("body")
8355
8390
  }, [createVNode("p", {
8356
- "class": bem$M("name")
8391
+ "class": bem$N("name")
8357
8392
  }, [coupon.name]), createVNode("p", {
8358
- "class": bem$M("valid")
8393
+ "class": bem$N("valid")
8359
8394
  }, [validPeriod.value]), !disabled && createVNode(Checkbox, {
8360
- "class": bem$M("corner"),
8395
+ "class": bem$N("corner"),
8361
8396
  "modelValue": chosen
8362
8397
  }, null)])]), description && createVNode("p", {
8363
- "class": bem$M("description")
8398
+ "class": bem$N("description")
8364
8399
  }, [description])]);
8365
8400
  };
8366
8401
  }
8367
8402
  });
8368
- const Coupon = withInstall(stdin_default$W);
8369
- const [name$M, bem$L, t$a] = createNamespace("coupon-cell");
8403
+ const Coupon = withInstall(stdin_default$X);
8404
+ const [name$N, bem$M, t$a] = createNamespace("coupon-cell");
8370
8405
  const couponCellProps = {
8371
8406
  title: String,
8372
8407
  border: truthProp,
@@ -8394,34 +8429,34 @@ function formatValue({
8394
8429
  }
8395
8430
  return coupons.length === 0 ? t$a("noCoupon") : t$a("count", coupons.length);
8396
8431
  }
8397
- var stdin_default$V = defineComponent({
8398
- name: name$M,
8432
+ var stdin_default$W = defineComponent({
8433
+ name: name$N,
8399
8434
  props: couponCellProps,
8400
8435
  setup(props) {
8401
8436
  return () => {
8402
8437
  const selected = props.coupons[+props.chosenCoupon];
8403
8438
  return createVNode(Cell, {
8404
- "class": bem$L(),
8439
+ "class": bem$M(),
8405
8440
  "value": formatValue(props),
8406
8441
  "title": props.title || t$a("title"),
8407
8442
  "border": props.border,
8408
8443
  "isLink": props.editable,
8409
- "valueClass": bem$L("value", {
8444
+ "valueClass": bem$M("value", {
8410
8445
  selected
8411
8446
  })
8412
8447
  }, null);
8413
8448
  };
8414
8449
  }
8415
8450
  });
8416
- const CouponCell = withInstall(stdin_default$V);
8417
- const [name$L, bem$K] = createNamespace("empty");
8451
+ const CouponCell = withInstall(stdin_default$W);
8452
+ const [name$M, bem$L] = createNamespace("empty");
8418
8453
  const emptyProps = {
8419
8454
  image: makeStringProp("default"),
8420
8455
  imageSize: [Number, String, Array],
8421
8456
  description: String
8422
8457
  };
8423
- var stdin_default$U = defineComponent({
8424
- name: name$L,
8458
+ var stdin_default$V = defineComponent({
8459
+ name: name$M,
8425
8460
  props: emptyProps,
8426
8461
  setup(props, {
8427
8462
  slots
@@ -8430,14 +8465,14 @@ var stdin_default$U = defineComponent({
8430
8465
  const description = slots.description ? slots.description() : props.description;
8431
8466
  if (description) {
8432
8467
  return createVNode("p", {
8433
- "class": bem$K("description")
8468
+ "class": bem$L("description")
8434
8469
  }, [description]);
8435
8470
  }
8436
8471
  };
8437
8472
  const renderBottom = () => {
8438
8473
  if (slots.default) {
8439
8474
  return createVNode("div", {
8440
- "class": bem$K("bottom")
8475
+ "class": bem$L("bottom")
8441
8476
  }, [slots.default()]);
8442
8477
  }
8443
8478
  };
@@ -8722,15 +8757,15 @@ var stdin_default$U = defineComponent({
8722
8757
  }, null);
8723
8758
  };
8724
8759
  return () => createVNode("div", {
8725
- "class": bem$K()
8760
+ "class": bem$L()
8726
8761
  }, [createVNode("div", {
8727
- "class": bem$K("image"),
8762
+ "class": bem$L("image"),
8728
8763
  "style": getSizeStyle(props.imageSize)
8729
8764
  }, [renderImage()]), renderDescription(), renderBottom()]);
8730
8765
  }
8731
8766
  });
8732
- const Empty = withInstall(stdin_default$U);
8733
- const [name$K, bem$J, t$9] = createNamespace("coupon-list");
8767
+ const Empty = withInstall(stdin_default$V);
8768
+ const [name$L, bem$K, t$9] = createNamespace("coupon-list");
8734
8769
  const couponListProps = {
8735
8770
  code: makeStringProp(""),
8736
8771
  coupons: makeArrayProp(),
@@ -8751,8 +8786,8 @@ const couponListProps = {
8751
8786
  exchangeButtonLoading: Boolean,
8752
8787
  exchangeButtonDisabled: Boolean
8753
8788
  };
8754
- var stdin_default$T = defineComponent({
8755
- name: name$K,
8789
+ var stdin_default$U = defineComponent({
8790
+ name: name$L,
8756
8791
  props: couponListProps,
8757
8792
  emits: ["change", "exchange", "update:code"],
8758
8793
  setup(props, {
@@ -8770,7 +8805,7 @@ var stdin_default$T = defineComponent({
8770
8805
  const TABS_HEIGHT = 44;
8771
8806
  const rootHeight = useRect(root).height;
8772
8807
  const headerHeight = useRect(barRef).height + TABS_HEIGHT;
8773
- listHeight.value = (rootHeight > headerHeight ? rootHeight : windowHeight.value) - headerHeight;
8808
+ listHeight.value = (rootHeight > headerHeight ? rootHeight : windowHeight$1.value) - headerHeight;
8774
8809
  };
8775
8810
  const onExchange = () => {
8776
8811
  emit("exchange", currentCode.value);
@@ -8788,26 +8823,26 @@ var stdin_default$T = defineComponent({
8788
8823
  "image": props.emptyImage
8789
8824
  }, {
8790
8825
  default: () => [createVNode("p", {
8791
- "class": bem$J("empty-tip")
8826
+ "class": bem$K("empty-tip")
8792
8827
  }, [t$9("noCoupon")])]
8793
8828
  });
8794
8829
  const renderExchangeBar = () => {
8795
8830
  if (props.showExchangeBar) {
8796
8831
  return createVNode("div", {
8797
8832
  "ref": barRef,
8798
- "class": bem$J("exchange-bar")
8833
+ "class": bem$K("exchange-bar")
8799
8834
  }, [createVNode(Field, {
8800
8835
  "modelValue": currentCode.value,
8801
8836
  "onUpdate:modelValue": ($event) => currentCode.value = $event,
8802
8837
  "clearable": true,
8803
8838
  "border": false,
8804
- "class": bem$J("field"),
8839
+ "class": bem$K("field"),
8805
8840
  "placeholder": props.inputPlaceholder || t$9("placeholder"),
8806
8841
  "maxlength": "20"
8807
8842
  }, null), createVNode(Button, {
8808
8843
  "plain": true,
8809
8844
  "type": "primary",
8810
- "class": bem$J("exchange"),
8845
+ "class": bem$K("exchange"),
8811
8846
  "text": props.exchangeButtonText || t$9("exchange"),
8812
8847
  "loading": props.exchangeButtonLoading,
8813
8848
  "disabled": buttonDisabled.value,
@@ -8827,7 +8862,7 @@ var stdin_default$T = defineComponent({
8827
8862
  default: () => {
8828
8863
  var _a;
8829
8864
  return [createVNode("div", {
8830
- "class": bem$J("list", {
8865
+ "class": bem$K("list", {
8831
8866
  "with-bottom": props.showCloseButton
8832
8867
  }),
8833
8868
  "style": {
@@ -8856,7 +8891,7 @@ var stdin_default$T = defineComponent({
8856
8891
  default: () => {
8857
8892
  var _a;
8858
8893
  return [createVNode("div", {
8859
- "class": bem$J("list", {
8894
+ "class": bem$K("list", {
8860
8895
  "with-bottom": props.showCloseButton
8861
8896
  }),
8862
8897
  "style": {
@@ -8874,7 +8909,7 @@ var stdin_default$T = defineComponent({
8874
8909
  watch(() => props.code, (value) => {
8875
8910
  currentCode.value = value;
8876
8911
  });
8877
- watch(windowHeight, updateListHeight);
8912
+ watch(windowHeight$1, updateListHeight);
8878
8913
  watch(currentCode, (value) => emit("update:code", value));
8879
8914
  watch(() => props.displayedCouponIndex, scrollToCoupon);
8880
8915
  onMounted(() => {
@@ -8883,28 +8918,28 @@ var stdin_default$T = defineComponent({
8883
8918
  });
8884
8919
  return () => createVNode("div", {
8885
8920
  "ref": root,
8886
- "class": bem$J()
8921
+ "class": bem$K()
8887
8922
  }, [renderExchangeBar(), createVNode(Tabs, {
8888
8923
  "active": activeTab.value,
8889
8924
  "onUpdate:active": ($event) => activeTab.value = $event,
8890
- "class": bem$J("tab")
8925
+ "class": bem$K("tab")
8891
8926
  }, {
8892
8927
  default: () => [renderCouponTab(), renderDisabledTab()]
8893
8928
  }), createVNode("div", {
8894
- "class": bem$J("bottom")
8929
+ "class": bem$K("bottom")
8895
8930
  }, [withDirectives(createVNode(Button, {
8896
8931
  "round": true,
8897
8932
  "block": true,
8898
8933
  "type": "primary",
8899
- "class": bem$J("close"),
8934
+ "class": bem$K("close"),
8900
8935
  "text": props.closeButtonText || t$9("close"),
8901
8936
  "onClick": () => emit("change", -1)
8902
8937
  }, null), [[vShow, props.showCloseButton]])])]);
8903
8938
  }
8904
8939
  });
8905
- const CouponList = withInstall(stdin_default$T);
8940
+ const CouponList = withInstall(stdin_default$U);
8906
8941
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
8907
- const [name$J] = createNamespace("date-picker");
8942
+ const [name$K] = createNamespace("date-picker");
8908
8943
  const datePickerProps = extend({}, sharedProps, {
8909
8944
  columnsType: {
8910
8945
  type: Array,
@@ -8921,8 +8956,8 @@ const datePickerProps = extend({}, sharedProps, {
8921
8956
  validator: isDate
8922
8957
  }
8923
8958
  });
8924
- var stdin_default$S = defineComponent({
8925
- name: name$J,
8959
+ var stdin_default$T = defineComponent({
8960
+ name: name$K,
8926
8961
  props: datePickerProps,
8927
8962
  emits: ["confirm", "cancel", "change", "update:modelValue"],
8928
8963
  setup(props, {
@@ -9015,8 +9050,8 @@ var stdin_default$S = defineComponent({
9015
9050
  }, pick(props, pickerInheritKeys)), slots);
9016
9051
  }
9017
9052
  });
9018
- const DatePicker = withInstall(stdin_default$S);
9019
- const [name$I, bem$I, t$8] = createNamespace("dialog");
9053
+ const DatePicker = withInstall(stdin_default$T);
9054
+ const [name$J, bem$J, t$8] = createNamespace("dialog");
9020
9055
  const dialogProps = extend({}, popupSharedProps, {
9021
9056
  title: String,
9022
9057
  theme: String,
@@ -9039,8 +9074,8 @@ const dialogProps = extend({}, popupSharedProps, {
9039
9074
  closeOnClickOverlay: Boolean
9040
9075
  });
9041
9076
  const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
9042
- var stdin_default$R = defineComponent({
9043
- name: name$I,
9077
+ var stdin_default$S = defineComponent({
9078
+ name: name$J,
9044
9079
  props: dialogProps,
9045
9080
  emits: ["confirm", "cancel", "keydown", "update:show"],
9046
9081
  setup(props, {
@@ -9097,7 +9132,7 @@ var stdin_default$R = defineComponent({
9097
9132
  const title = slots.title ? slots.title() : props.title;
9098
9133
  if (title) {
9099
9134
  return createVNode("div", {
9100
- "class": bem$I("header", {
9135
+ "class": bem$J("header", {
9101
9136
  isolated: !props.message && !slots.default
9102
9137
  })
9103
9138
  }, [title]);
@@ -9109,7 +9144,7 @@ var stdin_default$R = defineComponent({
9109
9144
  allowHtml,
9110
9145
  messageAlign
9111
9146
  } = props;
9112
- const classNames = bem$I("message", {
9147
+ const classNames = bem$J("message", {
9113
9148
  "has-title": hasTitle,
9114
9149
  [messageAlign]: messageAlign
9115
9150
  });
@@ -9127,7 +9162,7 @@ var stdin_default$R = defineComponent({
9127
9162
  const renderContent = () => {
9128
9163
  if (slots.default) {
9129
9164
  return createVNode("div", {
9130
- "class": bem$I("content")
9165
+ "class": bem$J("content")
9131
9166
  }, [slots.default()]);
9132
9167
  }
9133
9168
  const {
@@ -9139,18 +9174,18 @@ var stdin_default$R = defineComponent({
9139
9174
  const hasTitle = !!(title || slots.title);
9140
9175
  return createVNode("div", {
9141
9176
  "key": allowHtml ? 1 : 0,
9142
- "class": bem$I("content", {
9177
+ "class": bem$J("content", {
9143
9178
  isolated: !hasTitle
9144
9179
  })
9145
9180
  }, [renderMessage(hasTitle)]);
9146
9181
  }
9147
9182
  };
9148
9183
  const renderButtons = () => createVNode("div", {
9149
- "class": [BORDER_TOP, bem$I("footer")]
9184
+ "class": [BORDER_TOP, bem$J("footer")]
9150
9185
  }, [props.showCancelButton && createVNode(Button, {
9151
9186
  "size": "large",
9152
9187
  "text": props.cancelButtonText || t$8("cancel"),
9153
- "class": bem$I("cancel"),
9188
+ "class": bem$J("cancel"),
9154
9189
  "style": {
9155
9190
  color: props.cancelButtonColor
9156
9191
  },
@@ -9160,7 +9195,7 @@ var stdin_default$R = defineComponent({
9160
9195
  }, null), props.showConfirmButton && createVNode(Button, {
9161
9196
  "size": "large",
9162
9197
  "text": props.confirmButtonText || t$8("confirm"),
9163
- "class": [bem$I("confirm"), {
9198
+ "class": [bem$J("confirm"), {
9164
9199
  [BORDER_LEFT]: props.showCancelButton
9165
9200
  }],
9166
9201
  "style": {
@@ -9171,12 +9206,12 @@ var stdin_default$R = defineComponent({
9171
9206
  "onClick": onConfirm
9172
9207
  }, null)]);
9173
9208
  const renderRoundButtons = () => createVNode(ActionBar, {
9174
- "class": bem$I("footer")
9209
+ "class": bem$J("footer")
9175
9210
  }, {
9176
9211
  default: () => [props.showCancelButton && createVNode(ActionBarButton, {
9177
9212
  "type": "warning",
9178
9213
  "text": props.cancelButtonText || t$8("cancel"),
9179
- "class": bem$I("cancel"),
9214
+ "class": bem$J("cancel"),
9180
9215
  "color": props.cancelButtonColor,
9181
9216
  "loading": loading.cancel,
9182
9217
  "disabled": props.cancelButtonDisabled,
@@ -9184,7 +9219,7 @@ var stdin_default$R = defineComponent({
9184
9219
  }, null), props.showConfirmButton && createVNode(ActionBarButton, {
9185
9220
  "type": "danger",
9186
9221
  "text": props.confirmButtonText || t$8("confirm"),
9187
- "class": bem$I("confirm"),
9222
+ "class": bem$J("confirm"),
9188
9223
  "color": props.confirmButtonColor,
9189
9224
  "loading": loading.confirm,
9190
9225
  "disabled": props.confirmButtonDisabled,
@@ -9208,7 +9243,7 @@ var stdin_default$R = defineComponent({
9208
9243
  return createVNode(Popup, mergeProps({
9209
9244
  "ref": root,
9210
9245
  "role": "dialog",
9211
- "class": [bem$I([theme]), className],
9246
+ "class": [bem$J([theme]), className],
9212
9247
  "style": {
9213
9248
  width: addUnit(width)
9214
9249
  },
@@ -9258,7 +9293,7 @@ function initInstance$2() {
9258
9293
  state,
9259
9294
  toggle
9260
9295
  } = usePopupState();
9261
- return () => createVNode(stdin_default$R, mergeProps(state, {
9296
+ return () => createVNode(stdin_default$S, mergeProps(state, {
9262
9297
  "onUpdate:show": toggle
9263
9298
  }), null);
9264
9299
  }
@@ -9296,16 +9331,16 @@ const closeDialog = () => {
9296
9331
  instance$2.toggle(false);
9297
9332
  }
9298
9333
  };
9299
- const Dialog = withInstall(stdin_default$R);
9300
- const [name$H, bem$H] = createNamespace("divider");
9334
+ const Dialog = withInstall(stdin_default$S);
9335
+ const [name$I, bem$I] = createNamespace("divider");
9301
9336
  const dividerProps = {
9302
9337
  dashed: Boolean,
9303
9338
  hairline: truthProp,
9304
9339
  vertical: Boolean,
9305
9340
  contentPosition: makeStringProp("center")
9306
9341
  };
9307
- var stdin_default$Q = defineComponent({
9308
- name: name$H,
9342
+ var stdin_default$R = defineComponent({
9343
+ name: name$I,
9309
9344
  props: dividerProps,
9310
9345
  setup(props, {
9311
9346
  slots
@@ -9314,7 +9349,7 @@ var stdin_default$Q = defineComponent({
9314
9349
  var _a;
9315
9350
  return createVNode("div", {
9316
9351
  "role": "separator",
9317
- "class": bem$H({
9352
+ "class": bem$I({
9318
9353
  dashed: props.dashed,
9319
9354
  hairline: props.hairline,
9320
9355
  vertical: props.vertical,
@@ -9324,8 +9359,8 @@ var stdin_default$Q = defineComponent({
9324
9359
  };
9325
9360
  }
9326
9361
  });
9327
- const Divider = withInstall(stdin_default$Q);
9328
- const [name$G, bem$G] = createNamespace("dropdown-menu");
9362
+ const Divider = withInstall(stdin_default$R);
9363
+ const [name$H, bem$H] = createNamespace("dropdown-menu");
9329
9364
  const dropdownMenuProps = {
9330
9365
  overlay: truthProp,
9331
9366
  zIndex: numericProp,
@@ -9335,9 +9370,9 @@ const dropdownMenuProps = {
9335
9370
  closeOnClickOutside: truthProp,
9336
9371
  closeOnClickOverlay: truthProp
9337
9372
  };
9338
- const DROPDOWN_KEY = Symbol(name$G);
9339
- var stdin_default$P = defineComponent({
9340
- name: name$G,
9373
+ const DROPDOWN_KEY = Symbol(name$H);
9374
+ var stdin_default$Q = defineComponent({
9375
+ name: name$H,
9341
9376
  props: dropdownMenuProps,
9342
9377
  setup(props, {
9343
9378
  slots
@@ -9359,11 +9394,14 @@ var stdin_default$P = defineComponent({
9359
9394
  };
9360
9395
  }
9361
9396
  });
9397
+ const close = () => {
9398
+ children.forEach((item) => {
9399
+ item.toggle(false);
9400
+ });
9401
+ };
9362
9402
  const onClickAway = () => {
9363
9403
  if (props.closeOnClickOutside) {
9364
- children.forEach((item) => {
9365
- item.toggle(false);
9366
- });
9404
+ close();
9367
9405
  }
9368
9406
  };
9369
9407
  const updateOffset = () => {
@@ -9372,7 +9410,7 @@ var stdin_default$P = defineComponent({
9372
9410
  if (props.direction === "down") {
9373
9411
  offset.value = rect.bottom;
9374
9412
  } else {
9375
- offset.value = windowHeight.value - rect.top;
9413
+ offset.value = windowHeight$1.value - rect.top;
9376
9414
  }
9377
9415
  }
9378
9416
  };
@@ -9404,7 +9442,7 @@ var stdin_default$P = defineComponent({
9404
9442
  "id": `${id}-${index}`,
9405
9443
  "role": "button",
9406
9444
  "tabindex": disabled ? void 0 : 0,
9407
- "class": [bem$G("item", {
9445
+ "class": [bem$H("item", {
9408
9446
  disabled
9409
9447
  }), {
9410
9448
  [HAPTICS_FEEDBACK]: !disabled
@@ -9415,7 +9453,7 @@ var stdin_default$P = defineComponent({
9415
9453
  }
9416
9454
  }
9417
9455
  }, [createVNode("span", {
9418
- "class": [bem$G("title", {
9456
+ "class": [bem$H("title", {
9419
9457
  down: showPopup === (props.direction === "down"),
9420
9458
  active: showPopup
9421
9459
  }), titleClass],
@@ -9426,6 +9464,9 @@ var stdin_default$P = defineComponent({
9426
9464
  "class": "van-ellipsis"
9427
9465
  }, [item.renderTitle()])])]);
9428
9466
  };
9467
+ useExpose({
9468
+ close
9469
+ });
9429
9470
  linkChildren({
9430
9471
  id,
9431
9472
  props,
@@ -9441,18 +9482,18 @@ var stdin_default$P = defineComponent({
9441
9482
  var _a;
9442
9483
  return createVNode("div", {
9443
9484
  "ref": root,
9444
- "class": bem$G()
9485
+ "class": bem$H()
9445
9486
  }, [createVNode("div", {
9446
9487
  "ref": barRef,
9447
9488
  "style": barStyle.value,
9448
- "class": bem$G("bar", {
9489
+ "class": bem$H("bar", {
9449
9490
  opened: opened.value
9450
9491
  })
9451
9492
  }, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
9452
9493
  };
9453
9494
  }
9454
9495
  });
9455
- const [name$F, bem$F] = createNamespace("dropdown-item");
9496
+ const [name$G, bem$G] = createNamespace("dropdown-item");
9456
9497
  const dropdownItemProps = {
9457
9498
  title: String,
9458
9499
  options: makeArrayProp(),
@@ -9462,8 +9503,8 @@ const dropdownItemProps = {
9462
9503
  modelValue: unknownProp,
9463
9504
  titleClass: unknownProp
9464
9505
  };
9465
- var stdin_default$O = defineComponent({
9466
- name: name$F,
9506
+ var stdin_default$P = defineComponent({
9507
+ name: name$G,
9467
9508
  inheritAttrs: false,
9468
9509
  props: dropdownItemProps,
9469
9510
  emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
@@ -9536,7 +9577,7 @@ var stdin_default$O = defineComponent({
9536
9577
  const renderIcon = () => {
9537
9578
  if (active) {
9538
9579
  return createVNode(Icon, {
9539
- "class": bem$F("icon"),
9580
+ "class": bem$G("icon"),
9540
9581
  "color": activeColor,
9541
9582
  "name": "success"
9542
9583
  }, null);
@@ -9547,7 +9588,7 @@ var stdin_default$O = defineComponent({
9547
9588
  "key": option.value,
9548
9589
  "icon": option.icon,
9549
9590
  "title": option.text,
9550
- "class": bem$F("option", {
9591
+ "class": bem$G("option", {
9551
9592
  active
9552
9593
  }),
9553
9594
  "style": {
@@ -9579,13 +9620,13 @@ var stdin_default$O = defineComponent({
9579
9620
  }
9580
9621
  return withDirectives(createVNode("div", mergeProps({
9581
9622
  "style": style,
9582
- "class": bem$F([direction]),
9623
+ "class": bem$G([direction]),
9583
9624
  "onClick": onClickWrapper
9584
9625
  }, attrs), [createVNode(Popup, {
9585
9626
  "show": state.showPopup,
9586
9627
  "onUpdate:show": ($event) => state.showPopup = $event,
9587
9628
  "role": "menu",
9588
- "class": bem$F("content"),
9629
+ "class": bem$G("content"),
9589
9630
  "overlay": overlay,
9590
9631
  "position": direction === "down" ? "top" : "bottom",
9591
9632
  "duration": state.transition ? duration : 0,
@@ -9623,8 +9664,124 @@ var stdin_default$O = defineComponent({
9623
9664
  };
9624
9665
  }
9625
9666
  });
9626
- const DropdownItem = withInstall(stdin_default$O);
9627
- const DropdownMenu = withInstall(stdin_default$P);
9667
+ const DropdownItem = withInstall(stdin_default$P);
9668
+ const DropdownMenu = withInstall(stdin_default$Q);
9669
+ const {
9670
+ height: windowHeight
9671
+ } = useWindowSize();
9672
+ const floatingPanelProps = {
9673
+ height: makeNumericProp(0),
9674
+ anchors: makeArrayProp(),
9675
+ duration: makeNumericProp(0.2),
9676
+ contentDraggable: truthProp,
9677
+ safeAreaInsetBottom: truthProp
9678
+ };
9679
+ const [name$F, bem$F] = createNamespace("floating-panel");
9680
+ const DAMP = 0.2;
9681
+ var stdin_default$O = defineComponent({
9682
+ name: name$F,
9683
+ props: floatingPanelProps,
9684
+ emits: ["heightChange", "update:height"],
9685
+ setup(props, {
9686
+ emit,
9687
+ slots
9688
+ }) {
9689
+ const rootRef = ref();
9690
+ const contentRef = ref();
9691
+ const height = useSyncPropRef(() => +props.height, (value) => emit("update:height", value));
9692
+ const boundary = computed(() => {
9693
+ var _a, _b;
9694
+ return {
9695
+ min: (_a = props.anchors[0]) != null ? _a : 100,
9696
+ max: (_b = props.anchors[props.anchors.length - 1]) != null ? _b : Math.round(windowHeight.value * 0.6)
9697
+ };
9698
+ });
9699
+ const anchors = computed(() => props.anchors.length >= 2 ? props.anchors : [boundary.value.min, boundary.value.max]);
9700
+ const dragging = ref(false);
9701
+ const rootStyle = computed(() => ({
9702
+ height: addUnit(boundary.value.max),
9703
+ transform: `translateY(calc(100% + ${addUnit(-height.value)}))`,
9704
+ transition: !dragging.value ? `transform ${props.duration}s` : "none"
9705
+ }));
9706
+ const ease = (moveY) => {
9707
+ const absDistance = Math.abs(moveY);
9708
+ const {
9709
+ min,
9710
+ max
9711
+ } = boundary.value;
9712
+ if (absDistance > max) {
9713
+ return -(max + (absDistance - max) * DAMP);
9714
+ }
9715
+ if (absDistance < min) {
9716
+ return -(min - (min - absDistance) * DAMP);
9717
+ }
9718
+ return moveY;
9719
+ };
9720
+ const closest = (arr, target) => arr.reduce((pre, cur) => Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur);
9721
+ let startY;
9722
+ const touch = useTouch();
9723
+ const onTouchstart = (e) => {
9724
+ touch.start(e);
9725
+ dragging.value = true;
9726
+ startY = -height.value;
9727
+ };
9728
+ const onTouchmove = (e) => {
9729
+ var _a;
9730
+ touch.move(e);
9731
+ const target = e.target;
9732
+ if (contentRef.value === target || ((_a = contentRef.value) == null ? void 0 : _a.contains(target))) {
9733
+ if (!props.contentDraggable)
9734
+ return;
9735
+ if (-startY < boundary.value.max) {
9736
+ if (e.cancelable)
9737
+ e.preventDefault();
9738
+ e.stopPropagation();
9739
+ } else if (!(contentRef.value.scrollTop <= 0 && touch.deltaY.value > 0)) {
9740
+ return;
9741
+ }
9742
+ }
9743
+ const moveY = touch.deltaY.value + startY;
9744
+ height.value = -ease(moveY);
9745
+ };
9746
+ const onTouchend = () => {
9747
+ dragging.value = false;
9748
+ height.value = closest(anchors.value, height.value);
9749
+ if (height.value !== -startY) {
9750
+ emit("heightChange", {
9751
+ height: height.value
9752
+ });
9753
+ }
9754
+ };
9755
+ watch(boundary, () => {
9756
+ height.value = closest(anchors.value, height.value);
9757
+ }, {
9758
+ immediate: true
9759
+ });
9760
+ useLockScroll(rootRef, () => true);
9761
+ return () => {
9762
+ var _a;
9763
+ return createVNode("div", {
9764
+ "class": [bem$F(), {
9765
+ "van-safe-area-bottom": props.safeAreaInsetBottom
9766
+ }],
9767
+ "ref": rootRef,
9768
+ "style": rootStyle.value,
9769
+ "onTouchstartPassive": onTouchstart,
9770
+ "onTouchmove": onTouchmove,
9771
+ "onTouchend": onTouchend,
9772
+ "onTouchcancel": onTouchend
9773
+ }, [createVNode("div", {
9774
+ "class": bem$F("header")
9775
+ }, [createVNode("div", {
9776
+ "class": bem$F("header-bar")
9777
+ }, null)]), createVNode("div", {
9778
+ "class": bem$F("content"),
9779
+ "ref": contentRef
9780
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
9781
+ };
9782
+ }
9783
+ });
9784
+ const FloatingPanel = withInstall(stdin_default$O);
9628
9785
  const [name$E, bem$E] = createNamespace("grid");
9629
9786
  const gridProps = {
9630
9787
  square: Boolean,
@@ -9828,6 +9985,7 @@ var stdin_default$L = defineComponent({
9828
9985
  moveY: 0,
9829
9986
  moving: false,
9830
9987
  zooming: false,
9988
+ initializing: false,
9831
9989
  imageRatio: 0
9832
9990
  });
9833
9991
  const touch = useTouch();
@@ -9842,10 +10000,11 @@ var stdin_default$L = defineComponent({
9842
10000
  moveX,
9843
10001
  moveY,
9844
10002
  moving,
9845
- zooming
10003
+ zooming,
10004
+ initializing
9846
10005
  } = state;
9847
10006
  const style = {
9848
- transitionDuration: zooming || moving ? "0s" : ".3s"
10007
+ transitionDuration: zooming || moving || initializing ? "0s" : ".3s"
9849
10008
  };
9850
10009
  if (scale !== 1 || isLongImage.value) {
9851
10010
  style.transform = `matrix(${scale}, 0, 0, ${scale}, ${moveX}, ${moveY})`;
@@ -10045,6 +10204,10 @@ var stdin_default$L = defineComponent({
10045
10204
  if (isLongImage.value) {
10046
10205
  initialMoveY = (imageRatio * rootWidth - rootHeight) / 2;
10047
10206
  state.moveY = initialMoveY;
10207
+ state.initializing = true;
10208
+ raf(() => {
10209
+ state.initializing = false;
10210
+ });
10048
10211
  }
10049
10212
  resetScale();
10050
10213
  };
@@ -10233,7 +10396,7 @@ var stdin_default$K = defineComponent({
10233
10396
  swipeTo
10234
10397
  });
10235
10398
  onMounted(resize);
10236
- watch([windowWidth, windowHeight], resize);
10399
+ watch([windowWidth, windowHeight$1], resize);
10237
10400
  watch(() => props.startPosition, (value) => setActive(+value));
10238
10401
  watch(() => props.show, (value) => {
10239
10402
  const {
@@ -11617,7 +11780,7 @@ var stdin_default$A = defineComponent({
11617
11780
  }
11618
11781
  });
11619
11782
  const PasswordInput = withInstall(stdin_default$A);
11620
- const PickerGroup = withInstall(stdin_default$1v);
11783
+ const PickerGroup = withInstall(stdin_default$1w);
11621
11784
  const [name$r, bem$q] = createNamespace("popover");
11622
11785
  const popupProps = ["overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
11623
11786
  const popoverProps = {
@@ -11625,6 +11788,7 @@ const popoverProps = {
11625
11788
  theme: makeStringProp("light"),
11626
11789
  overlay: Boolean,
11627
11790
  actions: makeArrayProp(),
11791
+ actionsDirection: makeStringProp("vertical"),
11628
11792
  trigger: makeStringProp("click"),
11629
11793
  duration: numericProp,
11630
11794
  showArrow: truthProp,
@@ -11728,7 +11892,9 @@ var stdin_default$z = defineComponent({
11728
11892
  "classPrefix": props.iconPrefix,
11729
11893
  "class": bem$q("action-icon")
11730
11894
  }, null), createVNode("div", {
11731
- "class": [bem$q("action-text"), BORDER_BOTTOM]
11895
+ "class": [bem$q("action-text"), {
11896
+ [BORDER_BOTTOM]: props.actionsDirection === "vertical"
11897
+ }]
11732
11898
  }, [action.text])];
11733
11899
  };
11734
11900
  const renderAction = (action, index) => {
@@ -11743,7 +11909,9 @@ var stdin_default$z = defineComponent({
11743
11909
  "class": [bem$q("action", {
11744
11910
  disabled,
11745
11911
  "with-icon": icon
11746
- }), className],
11912
+ }), {
11913
+ [BORDER_RIGHT]: props.actionsDirection === "horizontal"
11914
+ }, className],
11747
11915
  "style": {
11748
11916
  color
11749
11917
  },
@@ -11792,7 +11960,7 @@ var stdin_default$z = defineComponent({
11792
11960
  "class": bem$q("arrow")
11793
11961
  }, null), createVNode("div", {
11794
11962
  "role": "menu",
11795
- "class": bem$q("content")
11963
+ "class": bem$q("content", props.actionsDirection)
11796
11964
  }, [slots.default ? slots.default() : props.actions.map(renderAction)])]
11797
11965
  })]);
11798
11966
  };
@@ -12265,7 +12433,7 @@ var stdin_default$w = defineComponent({
12265
12433
  }
12266
12434
  });
12267
12435
  const Rate = withInstall(stdin_default$w);
12268
- const Row = withInstall(stdin_default$12);
12436
+ const Row = withInstall(stdin_default$13);
12269
12437
  const [name$n, bem$m, t$4] = createNamespace("search");
12270
12438
  const searchProps = extend({}, fieldSharedProps, {
12271
12439
  label: String,
@@ -12979,6 +13147,14 @@ var stdin_default$i = defineComponent({
12979
13147
  const diff = Math.round((value - min) / step) * step;
12980
13148
  return addNumber(min, diff);
12981
13149
  };
13150
+ const updateStartValue = () => {
13151
+ const current22 = props.modelValue;
13152
+ if (isRange(current22)) {
13153
+ startValue = current22.map(format2);
13154
+ } else {
13155
+ startValue = format2(current22);
13156
+ }
13157
+ };
12982
13158
  const handleRangeValue = (value) => {
12983
13159
  var _a, _b;
12984
13160
  const left = (_a = value[0]) != null ? _a : Number(props.min);
@@ -13003,6 +13179,7 @@ var stdin_default$i = defineComponent({
13003
13179
  if (props.disabled || props.readonly) {
13004
13180
  return;
13005
13181
  }
13182
+ updateStartValue();
13006
13183
  const {
13007
13184
  min,
13008
13185
  reverse,
@@ -13042,11 +13219,7 @@ var stdin_default$i = defineComponent({
13042
13219
  }
13043
13220
  touch.start(event);
13044
13221
  current2 = props.modelValue;
13045
- if (isRange(current2)) {
13046
- startValue = current2.map(format2);
13047
- } else {
13048
- startValue = format2(current2);
13049
- }
13222
+ updateStartValue();
13050
13223
  dragStatus.value = "start";
13051
13224
  };
13052
13225
  const onTouchMove = (event) => {
@@ -13092,17 +13265,25 @@ var stdin_default$i = defineComponent({
13092
13265
  return bem$c("button-wrapper", props.reverse ? "left" : "right");
13093
13266
  };
13094
13267
  const renderButtonContent = (value, index) => {
13268
+ const dragging = dragStatus.value === "dragging";
13095
13269
  if (typeof index === "number") {
13096
13270
  const slot = slots[index === 0 ? "left-button" : "right-button"];
13271
+ let dragIndex;
13272
+ if (dragging && Array.isArray(current2)) {
13273
+ dragIndex = current2[0] > current2[1] ? buttonIndex ^ 1 : buttonIndex;
13274
+ }
13097
13275
  if (slot) {
13098
13276
  return slot({
13099
- value
13277
+ value,
13278
+ dragging,
13279
+ dragIndex
13100
13280
  });
13101
13281
  }
13102
13282
  }
13103
13283
  if (slots.button) {
13104
13284
  return slots.button({
13105
- value
13285
+ value,
13286
+ dragging
13106
13287
  });
13107
13288
  }
13108
13289
  return createVNode("div", {
@@ -14178,6 +14359,8 @@ var stdin_default$9 = defineComponent({
14178
14359
  });
14179
14360
  const TextEllipsis = withInstall(stdin_default$9);
14180
14361
  const [name$3] = createNamespace("time-picker");
14362
+ const validateTime = (val) => /^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(val);
14363
+ const fullColumns = ["hour", "minute", "second"];
14181
14364
  const timePickerProps = extend({}, sharedProps, {
14182
14365
  minHour: makeNumericProp(0),
14183
14366
  maxHour: makeNumericProp(23),
@@ -14185,10 +14368,19 @@ const timePickerProps = extend({}, sharedProps, {
14185
14368
  maxMinute: makeNumericProp(59),
14186
14369
  minSecond: makeNumericProp(0),
14187
14370
  maxSecond: makeNumericProp(59),
14371
+ minTime: {
14372
+ type: String,
14373
+ validator: validateTime
14374
+ },
14375
+ maxTime: {
14376
+ type: String,
14377
+ validator: validateTime
14378
+ },
14188
14379
  columnsType: {
14189
14380
  type: Array,
14190
14381
  default: () => ["hour", "minute"]
14191
- }
14382
+ },
14383
+ filter: Function
14192
14384
  });
14193
14385
  var stdin_default$8 = defineComponent({
14194
14386
  name: name$3,
@@ -14199,25 +14391,66 @@ var stdin_default$8 = defineComponent({
14199
14391
  slots
14200
14392
  }) {
14201
14393
  const currentValues = ref(props.modelValue);
14202
- const columns = computed(() => props.columnsType.map((type) => {
14203
- const {
14204
- filter,
14205
- formatter
14394
+ const getValidTime = (time) => {
14395
+ const timeLimitArr = time.split(":");
14396
+ return fullColumns.map((col, i) => props.columnsType.includes(col) ? timeLimitArr[i] : "00");
14397
+ };
14398
+ const columns = computed(() => {
14399
+ let {
14400
+ minHour,
14401
+ maxHour,
14402
+ minMinute,
14403
+ maxMinute,
14404
+ minSecond,
14405
+ maxSecond
14206
14406
  } = props;
14207
- switch (type) {
14208
- case "hour":
14209
- return genOptions(+props.minHour, +props.maxHour, type, formatter, filter);
14210
- case "minute":
14211
- return genOptions(+props.minMinute, +props.maxMinute, type, formatter, filter);
14212
- case "second":
14213
- return genOptions(+props.minSecond, +props.maxSecond, type, formatter, filter);
14214
- default:
14215
- if (process.env.NODE_ENV !== "production") {
14216
- throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
14217
- }
14218
- return [];
14219
- }
14220
- }));
14407
+ if (props.minTime || props.maxTime) {
14408
+ const fullTime = {
14409
+ hour: 0,
14410
+ minute: 0,
14411
+ second: 0
14412
+ };
14413
+ props.columnsType.forEach((col, i) => {
14414
+ var _a;
14415
+ fullTime[col] = (_a = currentValues.value[i]) != null ? _a : 0;
14416
+ });
14417
+ const {
14418
+ hour,
14419
+ minute
14420
+ } = fullTime;
14421
+ if (props.minTime) {
14422
+ const [minH, minM, minS] = getValidTime(props.minTime);
14423
+ minHour = minH;
14424
+ minMinute = +hour <= +minHour ? minM : "00";
14425
+ minSecond = +hour <= +minHour && +minute <= +minMinute ? minS : "00";
14426
+ }
14427
+ if (props.maxTime) {
14428
+ const [maxH, maxM, maxS] = getValidTime(props.maxTime);
14429
+ maxHour = maxH;
14430
+ maxMinute = +hour >= +maxHour ? maxM : "59";
14431
+ maxSecond = +hour >= +maxHour && +minute >= +maxMinute ? maxS : "59";
14432
+ }
14433
+ }
14434
+ return props.columnsType.map((type) => {
14435
+ const {
14436
+ filter,
14437
+ formatter
14438
+ } = props;
14439
+ switch (type) {
14440
+ case "hour":
14441
+ return genOptions(+minHour, +maxHour, type, formatter, filter, currentValues.value);
14442
+ case "minute":
14443
+ return genOptions(+minMinute, +maxMinute, type, formatter, filter, currentValues.value);
14444
+ case "second":
14445
+ return genOptions(+minSecond, +maxSecond, type, formatter, filter, currentValues.value);
14446
+ default:
14447
+ if (process.env.NODE_ENV !== "production") {
14448
+ throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
14449
+ }
14450
+ return [];
14451
+ }
14452
+ });
14453
+ });
14221
14454
  watch(currentValues, (newValues) => {
14222
14455
  if (!isSameValue(newValues, props.modelValue)) {
14223
14456
  emit("update:modelValue", newValues);
@@ -15773,7 +16006,7 @@ const Lazyload = {
15773
16006
  });
15774
16007
  }
15775
16008
  };
15776
- const version = "4.4.0";
16009
+ const version = "4.5.0";
15777
16010
  function install(app) {
15778
16011
  const components = [
15779
16012
  ActionBar,
@@ -15813,6 +16046,7 @@ function install(app) {
15813
16046
  DropdownMenu,
15814
16047
  Empty,
15815
16048
  Field,
16049
+ FloatingPanel,
15816
16050
  Form,
15817
16051
  Grid,
15818
16052
  GridItem,
@@ -15925,6 +16159,7 @@ export {
15925
16159
  DropdownMenu,
15926
16160
  Empty,
15927
16161
  Field,
16162
+ FloatingPanel,
15928
16163
  Form,
15929
16164
  Grid,
15930
16165
  GridItem,