vant 4.0.0-rc.7 → 4.0.0-rc.9

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 (433) hide show
  1. package/es/action-bar/ActionBar.d.ts +1 -1
  2. package/es/action-bar/types.d.ts +1 -1
  3. package/es/action-bar-button/ActionBarButton.d.ts +1 -1
  4. package/es/action-bar-button/types.d.ts +1 -1
  5. package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
  6. package/es/action-bar-icon/types.d.ts +1 -1
  7. package/es/action-sheet/ActionSheet.d.ts +3 -3
  8. package/es/action-sheet/index.d.ts +1 -1
  9. package/es/action-sheet/types.d.ts +1 -1
  10. package/es/address-edit/AddressEdit.d.ts +1 -1
  11. package/es/address-edit/types.d.ts +5 -5
  12. package/es/address-list/AddressList.d.ts +1 -1
  13. package/es/address-list/AddressListItem.d.ts +1 -1
  14. package/es/address-list/types.d.ts +1 -1
  15. package/es/area/Area.d.ts +2 -2
  16. package/es/area/index.d.ts +1 -1
  17. package/es/area/types.d.ts +2 -2
  18. package/es/back-top/BackTop.d.ts +66 -0
  19. package/es/back-top/BackTop.mjs +99 -0
  20. package/es/back-top/index.css +1 -0
  21. package/es/back-top/index.d.ts +53 -0
  22. package/es/back-top/index.mjs +10 -0
  23. package/es/back-top/style/index.d.ts +1 -0
  24. package/es/back-top/style/index.mjs +4 -0
  25. package/es/back-top/types.d.ts +6 -0
  26. package/es/back-top/types.mjs +0 -0
  27. package/es/badge/Badge.d.ts +2 -2
  28. package/es/badge/types.d.ts +1 -1
  29. package/es/button/Button.d.ts +1 -1
  30. package/es/button/types.d.ts +5 -5
  31. package/es/calendar/Calendar.d.ts +1 -1
  32. package/es/calendar/CalendarMonth.d.ts +1 -1
  33. package/es/calendar/types.d.ts +7 -7
  34. package/es/card/Card.d.ts +1 -1
  35. package/es/card/types.d.ts +1 -1
  36. package/es/cascader/Cascader.d.ts +1 -1
  37. package/es/cascader/types.d.ts +4 -4
  38. package/es/cell/Cell.d.ts +4 -4
  39. package/es/cell/Cell.mjs +1 -1
  40. package/es/cell/index.d.ts +1 -1
  41. package/es/cell/types.d.ts +1 -1
  42. package/es/cell-group/CellGroup.d.ts +1 -1
  43. package/es/cell-group/types.d.ts +1 -1
  44. package/es/checkbox/Checkbox.d.ts +1 -1
  45. package/es/checkbox/Checker.d.ts +4 -4
  46. package/es/checkbox/types.d.ts +5 -5
  47. package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
  48. package/es/checkbox-group/types.d.ts +5 -5
  49. package/es/circle/Circle.d.ts +2 -2
  50. package/es/circle/types.d.ts +1 -1
  51. package/es/col/Col.d.ts +1 -1
  52. package/es/collapse/Collapse.d.ts +4 -4
  53. package/es/collapse-item/CollapseItem.d.ts +2 -2
  54. package/es/collapse-item/index.d.ts +1 -1
  55. package/es/collapse-item/types.d.ts +3 -3
  56. package/es/composables/use-route.d.ts +1 -1
  57. package/es/composables/use-touch.d.ts +1 -1
  58. package/es/config-provider/ConfigProvider.d.ts +4 -4
  59. package/es/config-provider/types.d.ts +1 -1
  60. package/es/contact-card/ContactCard.d.ts +2 -2
  61. package/es/contact-card/types.d.ts +1 -1
  62. package/es/contact-edit/ContactEdit.d.ts +2 -2
  63. package/es/contact-edit/types.d.ts +1 -1
  64. package/es/contact-list/ContactList.d.ts +2 -2
  65. package/es/contact-list/types.d.ts +1 -1
  66. package/es/count-down/CountDown.d.ts +1 -1
  67. package/es/count-down/types.d.ts +4 -4
  68. package/es/coupon/Coupon.d.ts +1 -1
  69. package/es/coupon/types.d.ts +1 -1
  70. package/es/coupon-cell/CouponCell.d.ts +1 -1
  71. package/es/coupon-cell/types.d.ts +1 -1
  72. package/es/coupon-list/CouponList.d.ts +1 -1
  73. package/es/coupon-list/types.d.ts +1 -1
  74. package/es/date-picker/DatePicker.d.ts +3 -3
  75. package/es/date-picker/index.d.ts +1 -1
  76. package/es/date-picker/utils.d.ts +2 -2
  77. package/es/dialog/Dialog.d.ts +2 -2
  78. package/es/dialog/index.d.ts +1 -1
  79. package/es/dialog/types.d.ts +6 -6
  80. package/es/divider/Divider.d.ts +2 -2
  81. package/es/divider/types.d.ts +1 -1
  82. package/es/dropdown-item/DropdownItem.d.ts +3 -3
  83. package/es/dropdown-item/DropdownItem.mjs +6 -4
  84. package/es/dropdown-item/index.d.ts +2 -2
  85. package/es/dropdown-item/types.d.ts +4 -4
  86. package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
  87. package/es/dropdown-menu/types.d.ts +3 -3
  88. package/es/empty/Empty.d.ts +1 -1
  89. package/es/empty/types.d.ts +1 -1
  90. package/es/field/Field.d.ts +2 -2
  91. package/es/field/index.d.ts +1 -1
  92. package/es/field/types.d.ts +16 -16
  93. package/es/form/Form.d.ts +1 -1
  94. package/es/form/types.d.ts +3 -3
  95. package/es/grid/Grid.d.ts +3 -3
  96. package/es/grid-item/GridItem.d.ts +1 -1
  97. package/es/grid-item/types.d.ts +1 -1
  98. package/es/icon/Icon.d.ts +1 -1
  99. package/es/image/Image.d.ts +3 -3
  100. package/es/image/types.d.ts +1 -1
  101. package/es/image-preview/ImagePreview.d.ts +1 -1
  102. package/es/image-preview/types.d.ts +5 -5
  103. package/es/index-anchor/IndexAnchor.d.ts +1 -1
  104. package/es/index-anchor/types.d.ts +1 -1
  105. package/es/index-bar/IndexBar.d.ts +1 -1
  106. package/es/index-bar/types.d.ts +4 -4
  107. package/es/index.d.ts +2 -1
  108. package/es/index.mjs +4 -1
  109. package/es/lazyload/vue-lazyload/util.d.ts +25 -0
  110. package/es/list/List.d.ts +1 -1
  111. package/es/list/List.mjs +1 -1
  112. package/es/list/types.d.ts +4 -4
  113. package/es/loading/Loading.d.ts +2 -2
  114. package/es/loading/types.d.ts +1 -1
  115. package/es/locale/index.d.ts +1 -1
  116. package/es/nav-bar/NavBar.d.ts +1 -1
  117. package/es/nav-bar/types.d.ts +1 -1
  118. package/es/notice-bar/NoticeBar.d.ts +1 -1
  119. package/es/notice-bar/types.d.ts +4 -4
  120. package/es/notify/Notify.d.ts +1 -1
  121. package/es/notify/types.d.ts +5 -5
  122. package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
  123. package/es/number-keyboard/NumberKeyboard.mjs +6 -4
  124. package/es/number-keyboard/NumberKeyboardKey.d.ts +1 -1
  125. package/es/number-keyboard/types.d.ts +1 -1
  126. package/es/overlay/Overlay.d.ts +1 -1
  127. package/es/overlay/types.d.ts +1 -1
  128. package/es/pagination/Pagination.d.ts +2 -2
  129. package/es/pagination/types.d.ts +1 -1
  130. package/es/password-input/PasswordInput.d.ts +1 -1
  131. package/es/password-input/types.d.ts +1 -1
  132. package/es/picker/Picker.d.ts +2 -2
  133. package/es/picker/PickerToolbar.d.ts +1 -1
  134. package/es/picker/index.d.ts +1 -1
  135. package/es/picker/types.d.ts +11 -11
  136. package/es/picker-group/PickerGroup.d.ts +2 -2
  137. package/es/picker-group/types.d.ts +1 -1
  138. package/es/popover/Popover.d.ts +1 -1
  139. package/es/popover/types.d.ts +5 -5
  140. package/es/popup/Popup.d.ts +3 -3
  141. package/es/popup/index.d.ts +2 -2
  142. package/es/popup/shared.d.ts +1 -1
  143. package/es/popup/types.d.ts +5 -5
  144. package/es/progress/Progress.d.ts +1 -1
  145. package/es/progress/types.d.ts +3 -3
  146. package/es/pull-refresh/PullRefresh.d.ts +1 -1
  147. package/es/pull-refresh/types.d.ts +1 -1
  148. package/es/radio/Radio.d.ts +3 -3
  149. package/es/radio/types.d.ts +1 -1
  150. package/es/radio-group/RadioGroup.d.ts +3 -3
  151. package/es/rate/Rate.d.ts +1 -1
  152. package/es/rate/types.d.ts +1 -1
  153. package/es/row/Row.d.ts +5 -5
  154. package/es/search/Search.d.ts +1 -1
  155. package/es/search/types.d.ts +4 -4
  156. package/es/share-sheet/ShareSheet.d.ts +4 -4
  157. package/es/share-sheet/index.d.ts +1 -1
  158. package/es/share-sheet/types.d.ts +1 -1
  159. package/es/sidebar/Sidebar.d.ts +2 -2
  160. package/es/sidebar/types.d.ts +1 -1
  161. package/es/sidebar-item/SidebarItem.d.ts +1 -1
  162. package/es/sidebar-item/types.d.ts +1 -1
  163. package/es/skeleton/Skeleton.d.ts +1 -1
  164. package/es/skeleton/SkeletonAvatar.d.ts +1 -1
  165. package/es/skeleton/SkeletonImage.d.ts +1 -1
  166. package/es/skeleton/SkeletonParagraph.d.ts +1 -1
  167. package/es/skeleton/SkeletonTitle.d.ts +1 -1
  168. package/es/skeleton/types.d.ts +3 -3
  169. package/es/slider/Slider.d.ts +3 -3
  170. package/es/slider/types.d.ts +1 -1
  171. package/es/space/Space.d.ts +3 -3
  172. package/es/step/types.d.ts +1 -1
  173. package/es/stepper/Stepper.d.ts +2 -2
  174. package/es/stepper/types.d.ts +1 -1
  175. package/es/steps/Steps.d.ts +3 -3
  176. package/es/steps/types.d.ts +1 -1
  177. package/es/sticky/Sticky.d.ts +2 -2
  178. package/es/sticky/types.d.ts +1 -1
  179. package/es/style/base.css +1 -1
  180. package/es/style/normalize.css +1 -1
  181. package/es/submit-bar/SubmitBar.d.ts +2 -2
  182. package/es/submit-bar/types.d.ts +1 -1
  183. package/es/swipe/Swipe.d.ts +1 -1
  184. package/es/swipe/types.d.ts +6 -6
  185. package/es/swipe-cell/SwipeCell.d.ts +3 -3
  186. package/es/swipe-cell/index.d.ts +2 -2
  187. package/es/swipe-cell/types.d.ts +4 -4
  188. package/es/switch/Switch.d.ts +1 -1
  189. package/es/switch/types.d.ts +1 -1
  190. package/es/tab/Tab.d.ts +1 -1
  191. package/es/tabbar/Tabbar.d.ts +2 -2
  192. package/es/tabbar/types.d.ts +1 -1
  193. package/es/tabbar-item/TabbarItem.d.ts +1 -1
  194. package/es/tabbar-item/types.d.ts +1 -1
  195. package/es/tabs/Tabs.d.ts +1 -1
  196. package/es/tabs/types.d.ts +6 -6
  197. package/es/tag/Tag.d.ts +1 -1
  198. package/es/tag/types.d.ts +3 -3
  199. package/es/time-picker/TimePicker.d.ts +3 -3
  200. package/es/time-picker/index.d.ts +1 -1
  201. package/es/toast/Toast.d.ts +1 -1
  202. package/es/toast/types.d.ts +6 -6
  203. package/es/tree-select/TreeSelect.d.ts +3 -3
  204. package/es/tree-select/types.d.ts +1 -1
  205. package/es/uploader/Uploader.d.ts +1 -1
  206. package/es/uploader/types.d.ts +8 -8
  207. package/es/utils/basic.d.ts +3 -3
  208. package/es/utils/create.d.ts +4 -4
  209. package/es/utils/deep-assign.d.ts +1 -1
  210. package/es/utils/dom.d.ts +1 -1
  211. package/es/utils/interceptor.d.ts +1 -1
  212. package/es/utils/mount-component.d.ts +1 -1
  213. package/es/utils/with-install.d.ts +2 -2
  214. package/lib/action-bar/ActionBar.d.ts +1 -1
  215. package/lib/action-bar/types.d.ts +1 -1
  216. package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
  217. package/lib/action-bar-button/types.d.ts +1 -1
  218. package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
  219. package/lib/action-bar-icon/types.d.ts +1 -1
  220. package/lib/action-sheet/ActionSheet.d.ts +3 -3
  221. package/lib/action-sheet/index.d.ts +1 -1
  222. package/lib/action-sheet/types.d.ts +1 -1
  223. package/lib/address-edit/AddressEdit.d.ts +1 -1
  224. package/lib/address-edit/types.d.ts +5 -5
  225. package/lib/address-list/AddressList.d.ts +1 -1
  226. package/lib/address-list/AddressListItem.d.ts +1 -1
  227. package/lib/address-list/types.d.ts +1 -1
  228. package/lib/area/Area.d.ts +2 -2
  229. package/lib/area/index.d.ts +1 -1
  230. package/lib/area/types.d.ts +2 -2
  231. package/lib/back-top/BackTop.d.ts +66 -0
  232. package/lib/back-top/BackTop.js +118 -0
  233. package/lib/back-top/index.css +1 -0
  234. package/lib/back-top/index.d.ts +53 -0
  235. package/lib/back-top/index.js +35 -0
  236. package/lib/back-top/style/index.d.ts +1 -0
  237. package/lib/back-top/style/index.js +4 -0
  238. package/lib/back-top/types.d.ts +6 -0
  239. package/lib/back-top/types.js +15 -0
  240. package/lib/badge/Badge.d.ts +2 -2
  241. package/lib/badge/types.d.ts +1 -1
  242. package/lib/button/Button.d.ts +1 -1
  243. package/lib/button/types.d.ts +5 -5
  244. package/lib/calendar/Calendar.d.ts +1 -1
  245. package/lib/calendar/CalendarMonth.d.ts +1 -1
  246. package/lib/calendar/types.d.ts +7 -7
  247. package/lib/card/Card.d.ts +1 -1
  248. package/lib/card/types.d.ts +1 -1
  249. package/lib/cascader/Cascader.d.ts +1 -1
  250. package/lib/cascader/types.d.ts +4 -4
  251. package/lib/cell/Cell.d.ts +4 -4
  252. package/lib/cell/Cell.js +1 -1
  253. package/lib/cell/index.d.ts +1 -1
  254. package/lib/cell/types.d.ts +1 -1
  255. package/lib/cell-group/CellGroup.d.ts +1 -1
  256. package/lib/cell-group/types.d.ts +1 -1
  257. package/lib/checkbox/Checkbox.d.ts +1 -1
  258. package/lib/checkbox/Checker.d.ts +4 -4
  259. package/lib/checkbox/types.d.ts +5 -5
  260. package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
  261. package/lib/checkbox-group/types.d.ts +5 -5
  262. package/lib/circle/Circle.d.ts +2 -2
  263. package/lib/circle/types.d.ts +1 -1
  264. package/lib/col/Col.d.ts +1 -1
  265. package/lib/collapse/Collapse.d.ts +4 -4
  266. package/lib/collapse-item/CollapseItem.d.ts +2 -2
  267. package/lib/collapse-item/index.d.ts +1 -1
  268. package/lib/collapse-item/types.d.ts +3 -3
  269. package/lib/composables/use-route.d.ts +1 -1
  270. package/lib/composables/use-touch.d.ts +1 -1
  271. package/lib/config-provider/ConfigProvider.d.ts +4 -4
  272. package/lib/config-provider/types.d.ts +1 -1
  273. package/lib/contact-card/ContactCard.d.ts +2 -2
  274. package/lib/contact-card/types.d.ts +1 -1
  275. package/lib/contact-edit/ContactEdit.d.ts +2 -2
  276. package/lib/contact-edit/types.d.ts +1 -1
  277. package/lib/contact-list/ContactList.d.ts +2 -2
  278. package/lib/contact-list/types.d.ts +1 -1
  279. package/lib/count-down/CountDown.d.ts +1 -1
  280. package/lib/count-down/types.d.ts +4 -4
  281. package/lib/coupon/Coupon.d.ts +1 -1
  282. package/lib/coupon/types.d.ts +1 -1
  283. package/lib/coupon-cell/CouponCell.d.ts +1 -1
  284. package/lib/coupon-cell/types.d.ts +1 -1
  285. package/lib/coupon-list/CouponList.d.ts +1 -1
  286. package/lib/coupon-list/types.d.ts +1 -1
  287. package/lib/date-picker/DatePicker.d.ts +3 -3
  288. package/lib/date-picker/index.d.ts +1 -1
  289. package/lib/date-picker/utils.d.ts +2 -2
  290. package/lib/dialog/Dialog.d.ts +2 -2
  291. package/lib/dialog/index.d.ts +1 -1
  292. package/lib/dialog/types.d.ts +6 -6
  293. package/lib/divider/Divider.d.ts +2 -2
  294. package/lib/divider/types.d.ts +1 -1
  295. package/lib/dropdown-item/DropdownItem.d.ts +3 -3
  296. package/lib/dropdown-item/DropdownItem.js +5 -3
  297. package/lib/dropdown-item/index.d.ts +2 -2
  298. package/lib/dropdown-item/types.d.ts +4 -4
  299. package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
  300. package/lib/dropdown-menu/types.d.ts +3 -3
  301. package/lib/empty/Empty.d.ts +1 -1
  302. package/lib/empty/types.d.ts +1 -1
  303. package/lib/field/Field.d.ts +2 -2
  304. package/lib/field/index.d.ts +1 -1
  305. package/lib/field/types.d.ts +16 -16
  306. package/lib/form/Form.d.ts +1 -1
  307. package/lib/form/types.d.ts +3 -3
  308. package/lib/grid/Grid.d.ts +3 -3
  309. package/lib/grid-item/GridItem.d.ts +1 -1
  310. package/lib/grid-item/types.d.ts +1 -1
  311. package/lib/icon/Icon.d.ts +1 -1
  312. package/lib/image/Image.d.ts +3 -3
  313. package/lib/image/types.d.ts +1 -1
  314. package/lib/image-preview/ImagePreview.d.ts +1 -1
  315. package/lib/image-preview/types.d.ts +5 -5
  316. package/lib/index-anchor/IndexAnchor.d.ts +1 -1
  317. package/lib/index-anchor/types.d.ts +1 -1
  318. package/lib/index-bar/IndexBar.d.ts +1 -1
  319. package/lib/index-bar/types.d.ts +4 -4
  320. package/lib/index.css +1 -1
  321. package/lib/index.d.ts +2 -1
  322. package/lib/index.js +4 -1
  323. package/lib/lazyload/vue-lazyload/util.d.ts +25 -0
  324. package/lib/list/List.d.ts +1 -1
  325. package/lib/list/List.js +1 -1
  326. package/lib/list/types.d.ts +4 -4
  327. package/lib/loading/Loading.d.ts +2 -2
  328. package/lib/loading/types.d.ts +1 -1
  329. package/lib/locale/index.d.ts +1 -1
  330. package/lib/nav-bar/NavBar.d.ts +1 -1
  331. package/lib/nav-bar/types.d.ts +1 -1
  332. package/lib/notice-bar/NoticeBar.d.ts +1 -1
  333. package/lib/notice-bar/types.d.ts +4 -4
  334. package/lib/notify/Notify.d.ts +1 -1
  335. package/lib/notify/types.d.ts +5 -5
  336. package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
  337. package/lib/number-keyboard/NumberKeyboard.js +5 -3
  338. package/lib/number-keyboard/NumberKeyboardKey.d.ts +1 -1
  339. package/lib/number-keyboard/types.d.ts +1 -1
  340. package/lib/overlay/Overlay.d.ts +1 -1
  341. package/lib/overlay/types.d.ts +1 -1
  342. package/lib/pagination/Pagination.d.ts +2 -2
  343. package/lib/pagination/types.d.ts +1 -1
  344. package/lib/password-input/PasswordInput.d.ts +1 -1
  345. package/lib/password-input/types.d.ts +1 -1
  346. package/lib/picker/Picker.d.ts +2 -2
  347. package/lib/picker/PickerToolbar.d.ts +1 -1
  348. package/lib/picker/index.d.ts +1 -1
  349. package/lib/picker/types.d.ts +11 -11
  350. package/lib/picker-group/PickerGroup.d.ts +2 -2
  351. package/lib/picker-group/types.d.ts +1 -1
  352. package/lib/popover/Popover.d.ts +1 -1
  353. package/lib/popover/types.d.ts +5 -5
  354. package/lib/popup/Popup.d.ts +3 -3
  355. package/lib/popup/index.d.ts +2 -2
  356. package/lib/popup/shared.d.ts +1 -1
  357. package/lib/popup/types.d.ts +5 -5
  358. package/lib/progress/Progress.d.ts +1 -1
  359. package/lib/progress/types.d.ts +3 -3
  360. package/lib/pull-refresh/PullRefresh.d.ts +1 -1
  361. package/lib/pull-refresh/types.d.ts +1 -1
  362. package/lib/radio/Radio.d.ts +3 -3
  363. package/lib/radio/types.d.ts +1 -1
  364. package/lib/radio-group/RadioGroup.d.ts +3 -3
  365. package/lib/rate/Rate.d.ts +1 -1
  366. package/lib/rate/types.d.ts +1 -1
  367. package/lib/row/Row.d.ts +5 -5
  368. package/lib/search/Search.d.ts +1 -1
  369. package/lib/search/types.d.ts +4 -4
  370. package/lib/share-sheet/ShareSheet.d.ts +4 -4
  371. package/lib/share-sheet/index.d.ts +1 -1
  372. package/lib/share-sheet/types.d.ts +1 -1
  373. package/lib/sidebar/Sidebar.d.ts +2 -2
  374. package/lib/sidebar/types.d.ts +1 -1
  375. package/lib/sidebar-item/SidebarItem.d.ts +1 -1
  376. package/lib/sidebar-item/types.d.ts +1 -1
  377. package/lib/skeleton/Skeleton.d.ts +1 -1
  378. package/lib/skeleton/SkeletonAvatar.d.ts +1 -1
  379. package/lib/skeleton/SkeletonImage.d.ts +1 -1
  380. package/lib/skeleton/SkeletonParagraph.d.ts +1 -1
  381. package/lib/skeleton/SkeletonTitle.d.ts +1 -1
  382. package/lib/skeleton/types.d.ts +3 -3
  383. package/lib/slider/Slider.d.ts +3 -3
  384. package/lib/slider/types.d.ts +1 -1
  385. package/lib/space/Space.d.ts +3 -3
  386. package/lib/step/types.d.ts +1 -1
  387. package/lib/stepper/Stepper.d.ts +2 -2
  388. package/lib/stepper/types.d.ts +1 -1
  389. package/lib/steps/Steps.d.ts +3 -3
  390. package/lib/steps/types.d.ts +1 -1
  391. package/lib/sticky/Sticky.d.ts +2 -2
  392. package/lib/sticky/types.d.ts +1 -1
  393. package/lib/style/base.css +1 -1
  394. package/lib/style/normalize.css +1 -1
  395. package/lib/submit-bar/SubmitBar.d.ts +2 -2
  396. package/lib/submit-bar/types.d.ts +1 -1
  397. package/lib/swipe/Swipe.d.ts +1 -1
  398. package/lib/swipe/types.d.ts +6 -6
  399. package/lib/swipe-cell/SwipeCell.d.ts +3 -3
  400. package/lib/swipe-cell/index.d.ts +2 -2
  401. package/lib/swipe-cell/types.d.ts +4 -4
  402. package/lib/switch/Switch.d.ts +1 -1
  403. package/lib/switch/types.d.ts +1 -1
  404. package/lib/tab/Tab.d.ts +1 -1
  405. package/lib/tabbar/Tabbar.d.ts +2 -2
  406. package/lib/tabbar/types.d.ts +1 -1
  407. package/lib/tabbar-item/TabbarItem.d.ts +1 -1
  408. package/lib/tabbar-item/types.d.ts +1 -1
  409. package/lib/tabs/Tabs.d.ts +1 -1
  410. package/lib/tabs/types.d.ts +6 -6
  411. package/lib/tag/Tag.d.ts +1 -1
  412. package/lib/tag/types.d.ts +3 -3
  413. package/lib/time-picker/TimePicker.d.ts +3 -3
  414. package/lib/time-picker/index.d.ts +1 -1
  415. package/lib/toast/Toast.d.ts +1 -1
  416. package/lib/toast/types.d.ts +6 -6
  417. package/lib/tree-select/TreeSelect.d.ts +3 -3
  418. package/lib/tree-select/types.d.ts +1 -1
  419. package/lib/uploader/Uploader.d.ts +1 -1
  420. package/lib/uploader/types.d.ts +8 -8
  421. package/lib/utils/basic.d.ts +3 -3
  422. package/lib/utils/create.d.ts +4 -4
  423. package/lib/utils/deep-assign.d.ts +1 -1
  424. package/lib/utils/dom.d.ts +1 -1
  425. package/lib/utils/interceptor.d.ts +1 -1
  426. package/lib/utils/mount-component.d.ts +1 -1
  427. package/lib/utils/with-install.d.ts +2 -2
  428. package/lib/vant.cjs.js +533 -436
  429. package/lib/vant.es.js +534 -437
  430. package/lib/vant.js +533 -436
  431. package/lib/vant.min.js +1 -1
  432. package/lib/web-types.json +1 -1
  433. package/package.json +2 -2
package/lib/vant.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useWindowSize, useRect, useChildren, useParent, onMountedOrActivated, getScrollParent, useEventListener, raf, useScrollParent, usePageVisibility, doubleRaf, CUSTOM_FIELD_INJECTION_KEY, useCustomFieldValue, useToggle, cancelRaf, useCountDown, useClickAway, inBrowser as inBrowser$1 } from "@vant/use";
1
+ import { useWindowSize, useRect, useChildren, useParent, onMountedOrActivated, getScrollParent, useEventListener, raf, useScrollParent, usePageVisibility, doubleRaf, CUSTOM_FIELD_INJECTION_KEY, useCustomFieldValue, inBrowser as inBrowser$1, useToggle, cancelRaf, useCountDown, useClickAway } from "@vant/use";
2
2
  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, h } from "vue";
3
3
  import { offsetModifier, createPopper } from "@vant/popperjs";
4
4
  const isDef = (val) => val !== void 0 && val !== null;
@@ -235,7 +235,7 @@ function deepAssign(to, from) {
235
235
  });
236
236
  return to;
237
237
  }
238
- var stdin_default$1J = {
238
+ var stdin_default$1K = {
239
239
  name: "\u59D3\u540D",
240
240
  tel: "\u7535\u8BDD",
241
241
  save: "\u4FDD\u5B58",
@@ -298,7 +298,7 @@ var stdin_default$1J = {
298
298
  };
299
299
  const lang = ref("zh-CN");
300
300
  const messages = reactive({
301
- "zh-CN": stdin_default$1J
301
+ "zh-CN": stdin_default$1K
302
302
  });
303
303
  const Locale = {
304
304
  messages() {
@@ -312,11 +312,11 @@ const Locale = {
312
312
  deepAssign(messages, newMessages);
313
313
  }
314
314
  };
315
- var stdin_default$1I = Locale;
315
+ var stdin_default$1J = Locale;
316
316
  function createTranslate(name2) {
317
317
  const prefix = camelize(name2) + ".";
318
318
  return (path, ...args) => {
319
- const messages2 = stdin_default$1I.messages();
319
+ const messages2 = stdin_default$1J.messages();
320
320
  const message = get(messages2, prefix + path) || get(messages2, path);
321
321
  return isFunction(message) ? message(...args) : message;
322
322
  };
@@ -437,20 +437,20 @@ function usePlaceholder(contentRef, bem2) {
437
437
  }
438
438
  }, [renderContent()]);
439
439
  }
440
- const [name$1A, bem$1v] = createNamespace("action-bar");
441
- const ACTION_BAR_KEY = Symbol(name$1A);
440
+ const [name$1B, bem$1w] = createNamespace("action-bar");
441
+ const ACTION_BAR_KEY = Symbol(name$1B);
442
442
  const actionBarProps = {
443
443
  placeholder: Boolean,
444
444
  safeAreaInsetBottom: truthProp
445
445
  };
446
- var stdin_default$1H = defineComponent({
447
- name: name$1A,
446
+ var stdin_default$1I = defineComponent({
447
+ name: name$1B,
448
448
  props: actionBarProps,
449
449
  setup(props, {
450
450
  slots
451
451
  }) {
452
452
  const root = ref();
453
- const renderPlaceholder = usePlaceholder(root, bem$1v);
453
+ const renderPlaceholder = usePlaceholder(root, bem$1w);
454
454
  const {
455
455
  linkChildren
456
456
  } = useChildren(ACTION_BAR_KEY);
@@ -459,7 +459,7 @@ var stdin_default$1H = defineComponent({
459
459
  var _a;
460
460
  return createVNode("div", {
461
461
  "ref": root,
462
- "class": [bem$1v(), {
462
+ "class": [bem$1w(), {
463
463
  "van-safe-area-bottom": props.safeAreaInsetBottom
464
464
  }]
465
465
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
@@ -472,7 +472,7 @@ var stdin_default$1H = defineComponent({
472
472
  };
473
473
  }
474
474
  });
475
- const ActionBar = withInstall(stdin_default$1H);
475
+ const ActionBar = withInstall(stdin_default$1I);
476
476
  function useExpose(apis) {
477
477
  const instance2 = getCurrentInstance();
478
478
  if (instance2) {
@@ -500,7 +500,7 @@ function useRoute() {
500
500
  const vm = getCurrentInstance().proxy;
501
501
  return () => route(vm);
502
502
  }
503
- const [name$1z, bem$1u] = createNamespace("badge");
503
+ const [name$1A, bem$1v] = createNamespace("badge");
504
504
  const badgeProps = {
505
505
  dot: Boolean,
506
506
  max: numericProp,
@@ -511,8 +511,8 @@ const badgeProps = {
511
511
  showZero: truthProp,
512
512
  position: makeStringProp("top-right")
513
513
  };
514
- var stdin_default$1G = defineComponent({
515
- name: name$1z,
514
+ var stdin_default$1H = defineComponent({
515
+ name: name$1A,
516
516
  props: badgeProps,
517
517
  setup(props, {
518
518
  slots
@@ -566,7 +566,7 @@ var stdin_default$1G = defineComponent({
566
566
  const renderBadge = () => {
567
567
  if (hasContent() || props.dot) {
568
568
  return createVNode("div", {
569
- "class": bem$1u([props.position, {
569
+ "class": bem$1v([props.position, {
570
570
  dot: props.dot,
571
571
  fixed: !!slots.default
572
572
  }]),
@@ -580,7 +580,7 @@ var stdin_default$1G = defineComponent({
580
580
  tag
581
581
  } = props;
582
582
  return createVNode(tag, {
583
- "class": bem$1u("wrapper")
583
+ "class": bem$1v("wrapper")
584
584
  }, {
585
585
  default: () => [slots.default(), renderBadge()]
586
586
  });
@@ -589,14 +589,14 @@ var stdin_default$1G = defineComponent({
589
589
  };
590
590
  }
591
591
  });
592
- const Badge = withInstall(stdin_default$1G);
592
+ const Badge = withInstall(stdin_default$1H);
593
593
  let globalZIndex = 2e3;
594
594
  const useGlobalZIndex = () => ++globalZIndex;
595
595
  const setGlobalZIndex = (val) => {
596
596
  globalZIndex = val;
597
597
  };
598
- const [name$1y, bem$1t] = createNamespace("config-provider");
599
- const CONFIG_PROVIDER_KEY = Symbol(name$1y);
598
+ const [name$1z, bem$1u] = createNamespace("config-provider");
599
+ const CONFIG_PROVIDER_KEY = Symbol(name$1z);
600
600
  const configProviderProps = {
601
601
  tag: makeStringProp("div"),
602
602
  theme: makeStringProp("light"),
@@ -613,8 +613,8 @@ function mapThemeVarsToCSSVars(themeVars) {
613
613
  });
614
614
  return cssVars;
615
615
  }
616
- var stdin_default$1F = defineComponent({
617
- name: name$1y,
616
+ var stdin_default$1G = defineComponent({
617
+ name: name$1z,
618
618
  props: configProviderProps,
619
619
  setup(props, {
620
620
  slots
@@ -646,7 +646,7 @@ var stdin_default$1F = defineComponent({
646
646
  }
647
647
  });
648
648
  return () => createVNode(props.tag, {
649
- "class": bem$1t(),
649
+ "class": bem$1u(),
650
650
  "style": style.value
651
651
  }, {
652
652
  default: () => {
@@ -656,7 +656,7 @@ var stdin_default$1F = defineComponent({
656
656
  });
657
657
  }
658
658
  });
659
- const [name$1x, bem$1s] = createNamespace("icon");
659
+ const [name$1y, bem$1t] = createNamespace("icon");
660
660
  const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
661
661
  const iconProps = {
662
662
  dot: Boolean,
@@ -668,14 +668,14 @@ const iconProps = {
668
668
  badgeProps: Object,
669
669
  classPrefix: String
670
670
  };
671
- var stdin_default$1E = defineComponent({
672
- name: name$1x,
671
+ var stdin_default$1F = defineComponent({
672
+ name: name$1y,
673
673
  props: iconProps,
674
674
  setup(props, {
675
675
  slots
676
676
  }) {
677
677
  const config = inject(CONFIG_PROVIDER_KEY, null);
678
- const classPrefix = computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1s());
678
+ const classPrefix = computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1t());
679
679
  return () => {
680
680
  const {
681
681
  tag,
@@ -699,7 +699,7 @@ var stdin_default$1E = defineComponent({
699
699
  default: () => {
700
700
  var _a;
701
701
  return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && createVNode("img", {
702
- "class": bem$1s("image"),
702
+ "class": bem$1t("image"),
703
703
  "src": name2
704
704
  }, null)];
705
705
  }
@@ -707,13 +707,13 @@ var stdin_default$1E = defineComponent({
707
707
  };
708
708
  }
709
709
  });
710
- const Icon = withInstall(stdin_default$1E);
711
- const [name$1w, bem$1r] = createNamespace("loading");
710
+ const Icon = withInstall(stdin_default$1F);
711
+ const [name$1x, bem$1s] = createNamespace("loading");
712
712
  const SpinIcon = Array(12).fill(null).map((_, index) => createVNode("i", {
713
- "class": bem$1r("line", String(index + 1))
713
+ "class": bem$1s("line", String(index + 1))
714
714
  }, null));
715
715
  const CircularIcon = createVNode("svg", {
716
- "class": bem$1r("circular"),
716
+ "class": bem$1s("circular"),
717
717
  "viewBox": "25 25 50 50"
718
718
  }, [createVNode("circle", {
719
719
  "cx": "50",
@@ -729,8 +729,8 @@ const loadingProps = {
729
729
  textSize: numericProp,
730
730
  textColor: String
731
731
  };
732
- var stdin_default$1D = defineComponent({
733
- name: name$1w,
732
+ var stdin_default$1E = defineComponent({
733
+ name: name$1x,
734
734
  props: loadingProps,
735
735
  setup(props, {
736
736
  slots
@@ -741,7 +741,7 @@ var stdin_default$1D = defineComponent({
741
741
  const renderIcon = () => {
742
742
  const DefaultIcon = props.type === "spinner" ? SpinIcon : CircularIcon;
743
743
  return createVNode("span", {
744
- "class": bem$1r("spinner", props.type),
744
+ "class": bem$1s("spinner", props.type),
745
745
  "style": spinnerStyle.value
746
746
  }, [slots.icon ? slots.icon() : DefaultIcon]);
747
747
  };
@@ -749,7 +749,7 @@ var stdin_default$1D = defineComponent({
749
749
  var _a;
750
750
  if (slots.default) {
751
751
  return createVNode("span", {
752
- "class": bem$1r("text"),
752
+ "class": bem$1s("text"),
753
753
  "style": {
754
754
  fontSize: addUnit(props.textSize),
755
755
  color: (_a = props.textColor) != null ? _a : props.color
@@ -763,7 +763,7 @@ var stdin_default$1D = defineComponent({
763
763
  vertical
764
764
  } = props;
765
765
  return createVNode("div", {
766
- "class": bem$1r([type, {
766
+ "class": bem$1s([type, {
767
767
  vertical
768
768
  }]),
769
769
  "aria-live": "polite",
@@ -772,8 +772,8 @@ var stdin_default$1D = defineComponent({
772
772
  };
773
773
  }
774
774
  });
775
- const Loading = withInstall(stdin_default$1D);
776
- const [name$1v, bem$1q] = createNamespace("button");
775
+ const Loading = withInstall(stdin_default$1E);
776
+ const [name$1w, bem$1r] = createNamespace("button");
777
777
  const buttonProps = extend({}, routeProps, {
778
778
  tag: makeStringProp("button"),
779
779
  text: String,
@@ -795,8 +795,8 @@ const buttonProps = extend({}, routeProps, {
795
795
  loadingType: String,
796
796
  iconPosition: makeStringProp("left")
797
797
  });
798
- var stdin_default$1C = defineComponent({
799
- name: name$1v,
798
+ var stdin_default$1D = defineComponent({
799
+ name: name$1w,
800
800
  props: buttonProps,
801
801
  emits: ["click"],
802
802
  setup(props, {
@@ -811,7 +811,7 @@ var stdin_default$1C = defineComponent({
811
811
  return createVNode(Loading, {
812
812
  "size": props.loadingSize,
813
813
  "type": props.loadingType,
814
- "class": bem$1q("loading")
814
+ "class": bem$1r("loading")
815
815
  }, null);
816
816
  };
817
817
  const renderIcon = () => {
@@ -820,13 +820,13 @@ var stdin_default$1C = defineComponent({
820
820
  }
821
821
  if (slots.icon) {
822
822
  return createVNode("div", {
823
- "class": bem$1q("icon")
823
+ "class": bem$1r("icon")
824
824
  }, [slots.icon()]);
825
825
  }
826
826
  if (props.icon) {
827
827
  return createVNode(Icon, {
828
828
  "name": props.icon,
829
- "class": bem$1q("icon"),
829
+ "class": bem$1r("icon"),
830
830
  "classPrefix": props.iconPrefix
831
831
  }, null);
832
832
  }
@@ -840,7 +840,7 @@ var stdin_default$1C = defineComponent({
840
840
  }
841
841
  if (text) {
842
842
  return createVNode("span", {
843
- "class": bem$1q("text")
843
+ "class": bem$1r("text")
844
844
  }, [text]);
845
845
  }
846
846
  };
@@ -887,7 +887,7 @@ var stdin_default$1C = defineComponent({
887
887
  nativeType,
888
888
  iconPosition
889
889
  } = props;
890
- const classes = [bem$1q([type, size, {
890
+ const classes = [bem$1r([type, size, {
891
891
  plain,
892
892
  block,
893
893
  round,
@@ -906,14 +906,14 @@ var stdin_default$1C = defineComponent({
906
906
  "onClick": onClick
907
907
  }, {
908
908
  default: () => [createVNode("div", {
909
- "class": bem$1q("content")
909
+ "class": bem$1r("content")
910
910
  }, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
911
911
  });
912
912
  };
913
913
  }
914
914
  });
915
- const Button = withInstall(stdin_default$1C);
916
- const [name$1u, bem$1p] = createNamespace("action-bar-button");
915
+ const Button = withInstall(stdin_default$1D);
916
+ const [name$1v, bem$1q] = createNamespace("action-bar-button");
917
917
  const actionBarButtonProps = extend({}, routeProps, {
918
918
  type: String,
919
919
  text: String,
@@ -922,8 +922,8 @@ const actionBarButtonProps = extend({}, routeProps, {
922
922
  loading: Boolean,
923
923
  disabled: Boolean
924
924
  });
925
- var stdin_default$1B = defineComponent({
926
- name: name$1u,
925
+ var stdin_default$1C = defineComponent({
926
+ name: name$1v,
927
927
  props: actionBarButtonProps,
928
928
  setup(props, {
929
929
  slots
@@ -958,7 +958,7 @@ var stdin_default$1B = defineComponent({
958
958
  disabled
959
959
  } = props;
960
960
  return createVNode(Button, {
961
- "class": bem$1p([type, {
961
+ "class": bem$1q([type, {
962
962
  last: isLast.value,
963
963
  first: isFirst.value
964
964
  }]),
@@ -975,8 +975,8 @@ var stdin_default$1B = defineComponent({
975
975
  };
976
976
  }
977
977
  });
978
- const ActionBarButton = withInstall(stdin_default$1B);
979
- const [name$1t, bem$1o] = createNamespace("action-bar-icon");
978
+ const ActionBarButton = withInstall(stdin_default$1C);
979
+ const [name$1u, bem$1p] = createNamespace("action-bar-icon");
980
980
  const actionBarIconProps = extend({}, routeProps, {
981
981
  dot: Boolean,
982
982
  text: String,
@@ -987,8 +987,8 @@ const actionBarIconProps = extend({}, routeProps, {
987
987
  badgeProps: Object,
988
988
  iconPrefix: String
989
989
  });
990
- var stdin_default$1A = defineComponent({
991
- name: name$1t,
990
+ var stdin_default$1B = defineComponent({
991
+ name: name$1u,
992
992
  props: actionBarIconProps,
993
993
  setup(props, {
994
994
  slots
@@ -1008,7 +1008,7 @@ var stdin_default$1A = defineComponent({
1008
1008
  if (slots.icon) {
1009
1009
  return createVNode(Badge, mergeProps({
1010
1010
  "dot": dot,
1011
- "class": bem$1o("icon"),
1011
+ "class": bem$1p("icon"),
1012
1012
  "content": badge
1013
1013
  }, badgeProps2), {
1014
1014
  default: slots.icon
@@ -1020,20 +1020,20 @@ var stdin_default$1A = defineComponent({
1020
1020
  "name": icon,
1021
1021
  "badge": badge,
1022
1022
  "color": color,
1023
- "class": [bem$1o("icon"), iconClass],
1023
+ "class": [bem$1p("icon"), iconClass],
1024
1024
  "badgeProps": badgeProps2,
1025
1025
  "classPrefix": iconPrefix
1026
1026
  }, null);
1027
1027
  };
1028
1028
  return () => createVNode("div", {
1029
1029
  "role": "button",
1030
- "class": bem$1o(),
1030
+ "class": bem$1p(),
1031
1031
  "tabindex": 0,
1032
1032
  "onClick": route2
1033
1033
  }, [renderIcon(), slots.default ? slots.default() : props.text]);
1034
1034
  }
1035
1035
  });
1036
- const ActionBarIcon = withInstall(stdin_default$1A);
1036
+ const ActionBarIcon = withInstall(stdin_default$1B);
1037
1037
  const popupSharedProps = {
1038
1038
  show: Boolean,
1039
1039
  zIndex: numericProp,
@@ -1172,7 +1172,7 @@ function useLazyRender(show) {
1172
1172
  );
1173
1173
  return (render) => () => inited.value ? render() : null;
1174
1174
  }
1175
- const [name$1s, bem$1n] = createNamespace("overlay");
1175
+ const [name$1t, bem$1o] = createNamespace("overlay");
1176
1176
  const overlayProps = {
1177
1177
  show: Boolean,
1178
1178
  zIndex: numericProp,
@@ -1182,8 +1182,8 @@ const overlayProps = {
1182
1182
  lazyRender: truthProp,
1183
1183
  customStyle: Object
1184
1184
  };
1185
- var stdin_default$1z = defineComponent({
1186
- name: name$1s,
1185
+ var stdin_default$1A = defineComponent({
1186
+ name: name$1t,
1187
1187
  props: overlayProps,
1188
1188
  setup(props, {
1189
1189
  slots
@@ -1204,7 +1204,7 @@ var stdin_default$1z = defineComponent({
1204
1204
  return withDirectives(createVNode("div", {
1205
1205
  "ref": root,
1206
1206
  "style": style,
1207
- "class": [bem$1n(), props.className]
1207
+ "class": [bem$1o(), props.className]
1208
1208
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vShow, props.show]]);
1209
1209
  });
1210
1210
  useEventListener("touchmove", onTouchMove, {
@@ -1218,7 +1218,7 @@ var stdin_default$1z = defineComponent({
1218
1218
  });
1219
1219
  }
1220
1220
  });
1221
- const Overlay = withInstall(stdin_default$1z);
1221
+ const Overlay = withInstall(stdin_default$1A);
1222
1222
  const popupProps$2 = extend({}, popupSharedProps, {
1223
1223
  round: Boolean,
1224
1224
  position: makeStringProp("center"),
@@ -1231,9 +1231,9 @@ const popupProps$2 = extend({}, popupSharedProps, {
1231
1231
  safeAreaInsetTop: Boolean,
1232
1232
  safeAreaInsetBottom: Boolean
1233
1233
  });
1234
- const [name$1r, bem$1m] = createNamespace("popup");
1235
- var stdin_default$1y = defineComponent({
1236
- name: name$1r,
1234
+ const [name$1s, bem$1n] = createNamespace("popup");
1235
+ var stdin_default$1z = defineComponent({
1236
+ name: name$1s,
1237
1237
  inheritAttrs: false,
1238
1238
  props: popupProps$2,
1239
1239
  emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
@@ -1307,7 +1307,7 @@ var stdin_default$1y = defineComponent({
1307
1307
  "role": "button",
1308
1308
  "tabindex": 0,
1309
1309
  "name": props.closeIcon,
1310
- "class": [bem$1m("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1310
+ "class": [bem$1n("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
1311
1311
  "classPrefix": props.iconPrefix,
1312
1312
  "onClick": onClickCloseIcon
1313
1313
  }, null);
@@ -1329,7 +1329,7 @@ var stdin_default$1y = defineComponent({
1329
1329
  "style": style.value,
1330
1330
  "role": "dialog",
1331
1331
  "tabindex": 0,
1332
- "class": [bem$1m({
1332
+ "class": [bem$1n({
1333
1333
  round,
1334
1334
  [position]: position
1335
1335
  }), {
@@ -1410,8 +1410,8 @@ var stdin_default$1y = defineComponent({
1410
1410
  };
1411
1411
  }
1412
1412
  });
1413
- const Popup = withInstall(stdin_default$1y);
1414
- const [name$1q, bem$1l] = createNamespace("action-sheet");
1413
+ const Popup = withInstall(stdin_default$1z);
1414
+ const [name$1r, bem$1m] = createNamespace("action-sheet");
1415
1415
  const actionSheetProps = extend({}, popupSharedProps, {
1416
1416
  title: String,
1417
1417
  round: truthProp,
@@ -1425,8 +1425,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
1425
1425
  safeAreaInsetBottom: truthProp
1426
1426
  });
1427
1427
  const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1428
- var stdin_default$1x = defineComponent({
1429
- name: name$1q,
1428
+ var stdin_default$1y = defineComponent({
1429
+ name: name$1r,
1430
1430
  props: actionSheetProps,
1431
1431
  emits: ["select", "cancel", "update:show"],
1432
1432
  setup(props, {
@@ -1441,10 +1441,10 @@ var stdin_default$1x = defineComponent({
1441
1441
  const renderHeader = () => {
1442
1442
  if (props.title) {
1443
1443
  return createVNode("div", {
1444
- "class": bem$1l("header")
1444
+ "class": bem$1m("header")
1445
1445
  }, [props.title, props.closeable && createVNode(Icon, {
1446
1446
  "name": props.closeIcon,
1447
- "class": [bem$1l("close"), HAPTICS_FEEDBACK],
1447
+ "class": [bem$1m("close"), HAPTICS_FEEDBACK],
1448
1448
  "onClick": onCancel
1449
1449
  }, null)]);
1450
1450
  }
@@ -1452,10 +1452,10 @@ var stdin_default$1x = defineComponent({
1452
1452
  const renderCancel = () => {
1453
1453
  if (slots.cancel || props.cancelText) {
1454
1454
  return [createVNode("div", {
1455
- "class": bem$1l("gap")
1455
+ "class": bem$1m("gap")
1456
1456
  }, null), createVNode("button", {
1457
1457
  "type": "button",
1458
- "class": bem$1l("cancel"),
1458
+ "class": bem$1m("cancel"),
1459
1459
  "onClick": onCancel
1460
1460
  }, [slots.cancel ? slots.cancel() : props.cancelText])];
1461
1461
  }
@@ -1463,7 +1463,7 @@ var stdin_default$1x = defineComponent({
1463
1463
  const renderActionContent = (action, index) => {
1464
1464
  if (action.loading) {
1465
1465
  return createVNode(Loading, {
1466
- "class": bem$1l("loading-icon")
1466
+ "class": bem$1m("loading-icon")
1467
1467
  }, null);
1468
1468
  }
1469
1469
  if (slots.action) {
@@ -1473,9 +1473,9 @@ var stdin_default$1x = defineComponent({
1473
1473
  });
1474
1474
  }
1475
1475
  return [createVNode("span", {
1476
- "class": bem$1l("name")
1476
+ "class": bem$1m("name")
1477
1477
  }, [action.name]), action.subname && createVNode("div", {
1478
- "class": bem$1l("subname")
1478
+ "class": bem$1m("subname")
1479
1479
  }, [action.subname])];
1480
1480
  };
1481
1481
  const renderAction = (action, index) => {
@@ -1503,7 +1503,7 @@ var stdin_default$1x = defineComponent({
1503
1503
  "style": {
1504
1504
  color
1505
1505
  },
1506
- "class": [bem$1l("item", {
1506
+ "class": [bem$1m("item", {
1507
1507
  loading,
1508
1508
  disabled
1509
1509
  }), className],
@@ -1514,26 +1514,26 @@ var stdin_default$1x = defineComponent({
1514
1514
  if (props.description || slots.description) {
1515
1515
  const content = slots.description ? slots.description() : props.description;
1516
1516
  return createVNode("div", {
1517
- "class": bem$1l("description")
1517
+ "class": bem$1m("description")
1518
1518
  }, [content]);
1519
1519
  }
1520
1520
  };
1521
1521
  return () => createVNode(Popup, mergeProps({
1522
- "class": bem$1l(),
1522
+ "class": bem$1m(),
1523
1523
  "position": "bottom",
1524
1524
  "onUpdate:show": updateShow
1525
1525
  }, pick(props, popupInheritKeys$2)), {
1526
1526
  default: () => {
1527
1527
  var _a;
1528
1528
  return [renderHeader(), renderDescription(), createVNode("div", {
1529
- "class": bem$1l("content")
1529
+ "class": bem$1m("content")
1530
1530
  }, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
1531
1531
  }
1532
1532
  });
1533
1533
  }
1534
1534
  });
1535
- const ActionSheet = withInstall(stdin_default$1x);
1536
- const [name$1p, bem$1k, t$j] = createNamespace("picker");
1535
+ const ActionSheet = withInstall(stdin_default$1y);
1536
+ const [name$1q, bem$1l, t$j] = createNamespace("picker");
1537
1537
  const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
1538
1538
  function getColumnsType(columns, fields) {
1539
1539
  const firstColumn = columns[0];
@@ -1602,10 +1602,10 @@ function assignDefaultFields(fields) {
1602
1602
  const DEFAULT_DURATION = 200;
1603
1603
  const MOMENTUM_TIME = 300;
1604
1604
  const MOMENTUM_DISTANCE = 15;
1605
- const [name$1o, bem$1j] = createNamespace("picker-column");
1606
- const PICKER_KEY = Symbol(name$1o);
1607
- var stdin_default$1w = defineComponent({
1608
- name: name$1o,
1605
+ const [name$1p, bem$1k] = createNamespace("picker-column");
1606
+ const PICKER_KEY = Symbol(name$1p);
1607
+ var stdin_default$1x = defineComponent({
1608
+ name: name$1p,
1609
1609
  props: {
1610
1610
  value: numericProp,
1611
1611
  fields: makeRequiredProp(Object),
@@ -1738,7 +1738,7 @@ var stdin_default$1w = defineComponent({
1738
1738
  role: "button",
1739
1739
  style: optionStyle,
1740
1740
  tabindex: disabled ? -1 : 0,
1741
- class: [bem$1j("item", {
1741
+ class: [bem$1k("item", {
1742
1742
  disabled,
1743
1743
  selected: value === props.value
1744
1744
  }), option.className],
@@ -1766,7 +1766,7 @@ var stdin_default$1w = defineComponent({
1766
1766
  });
1767
1767
  return () => createVNode("div", {
1768
1768
  "ref": root,
1769
- "class": bem$1j(),
1769
+ "class": bem$1k(),
1770
1770
  "onTouchstartPassive": onTouchStart,
1771
1771
  "onTouchend": onTouchEnd,
1772
1772
  "onTouchcancel": onTouchEnd
@@ -1777,12 +1777,12 @@ var stdin_default$1w = defineComponent({
1777
1777
  transitionDuration: `${currentDuration.value}ms`,
1778
1778
  transitionProperty: currentDuration.value ? "all" : "none"
1779
1779
  },
1780
- "class": bem$1j("wrapper"),
1780
+ "class": bem$1k("wrapper"),
1781
1781
  "onTransitionend": stopMomentum
1782
1782
  }, [renderOptions()])]);
1783
1783
  }
1784
1784
  });
1785
- const [name$1n] = createNamespace("picker-toolbar");
1785
+ const [name$1o] = createNamespace("picker-toolbar");
1786
1786
  const pickerToolbarProps = {
1787
1787
  title: String,
1788
1788
  cancelButtonText: String,
@@ -1790,8 +1790,8 @@ const pickerToolbarProps = {
1790
1790
  };
1791
1791
  const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
1792
1792
  const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
1793
- var stdin_default$1v = defineComponent({
1794
- name: name$1n,
1793
+ var stdin_default$1w = defineComponent({
1794
+ name: name$1o,
1795
1795
  props: pickerToolbarProps,
1796
1796
  emits: ["confirm", "cancel"],
1797
1797
  setup(props, {
@@ -1804,7 +1804,7 @@ var stdin_default$1v = defineComponent({
1804
1804
  }
1805
1805
  if (props.title) {
1806
1806
  return createVNode("div", {
1807
- "class": [bem$1k("title"), "van-ellipsis"]
1807
+ "class": [bem$1l("title"), "van-ellipsis"]
1808
1808
  }, [props.title]);
1809
1809
  }
1810
1810
  };
@@ -1814,7 +1814,7 @@ var stdin_default$1v = defineComponent({
1814
1814
  const text = props.cancelButtonText || t$j("cancel");
1815
1815
  return createVNode("button", {
1816
1816
  "type": "button",
1817
- "class": [bem$1k("cancel"), HAPTICS_FEEDBACK],
1817
+ "class": [bem$1l("cancel"), HAPTICS_FEEDBACK],
1818
1818
  "onClick": onCancel
1819
1819
  }, [slots.cancel ? slots.cancel() : text]);
1820
1820
  };
@@ -1822,12 +1822,12 @@ var stdin_default$1v = defineComponent({
1822
1822
  const text = props.confirmButtonText || t$j("confirm");
1823
1823
  return createVNode("button", {
1824
1824
  "type": "button",
1825
- "class": [bem$1k("confirm"), HAPTICS_FEEDBACK],
1825
+ "class": [bem$1l("confirm"), HAPTICS_FEEDBACK],
1826
1826
  "onClick": onConfirm
1827
1827
  }, [slots.confirm ? slots.confirm() : text]);
1828
1828
  };
1829
1829
  return () => createVNode("div", {
1830
- "class": bem$1k("toolbar")
1830
+ "class": bem$1l("toolbar")
1831
1831
  }, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
1832
1832
  }
1833
1833
  });
@@ -1911,7 +1911,7 @@ function useVisibilityChange(target, onChange) {
1911
1911
  onBeforeUnmount(unobserve);
1912
1912
  onMountedOrActivated(observe);
1913
1913
  }
1914
- const [name$1m, bem$1i] = createNamespace("sticky");
1914
+ const [name$1n, bem$1j] = createNamespace("sticky");
1915
1915
  const stickyProps = {
1916
1916
  zIndex: numericProp,
1917
1917
  position: makeStringProp("top"),
@@ -1919,8 +1919,8 @@ const stickyProps = {
1919
1919
  offsetTop: makeNumericProp(0),
1920
1920
  offsetBottom: makeNumericProp(0)
1921
1921
  };
1922
- var stdin_default$1u = defineComponent({
1923
- name: name$1m,
1922
+ var stdin_default$1v = defineComponent({
1923
+ name: name$1n,
1924
1924
  props: stickyProps,
1925
1925
  emits: ["scroll", "change"],
1926
1926
  setup(props, {
@@ -2015,7 +2015,7 @@ var stdin_default$1u = defineComponent({
2015
2015
  "ref": root,
2016
2016
  "style": rootStyle.value
2017
2017
  }, [createVNode("div", {
2018
- "class": bem$1i({
2018
+ "class": bem$1j({
2019
2019
  fixed: state.fixed
2020
2020
  }),
2021
2021
  "style": stickyStyle.value
@@ -2023,10 +2023,10 @@ var stdin_default$1u = defineComponent({
2023
2023
  };
2024
2024
  }
2025
2025
  });
2026
- const Sticky = withInstall(stdin_default$1u);
2027
- const [name$1l, bem$1h] = createNamespace("tab");
2028
- var stdin_default$1t = defineComponent({
2029
- name: name$1l,
2026
+ const Sticky = withInstall(stdin_default$1v);
2027
+ const [name$1m, bem$1i] = createNamespace("tab");
2028
+ var stdin_default$1u = defineComponent({
2029
+ name: name$1m,
2030
2030
  props: {
2031
2031
  id: String,
2032
2032
  dot: Boolean,
@@ -2075,7 +2075,7 @@ var stdin_default$1t = defineComponent({
2075
2075
  });
2076
2076
  const renderText = () => {
2077
2077
  const Text2 = createVNode("span", {
2078
- "class": bem$1h("text", {
2078
+ "class": bem$1i("text", {
2079
2079
  ellipsis: !props.scrollable
2080
2080
  })
2081
2081
  }, [slots.title ? slots.title() : props.title]);
@@ -2093,7 +2093,7 @@ var stdin_default$1t = defineComponent({
2093
2093
  return () => createVNode("div", {
2094
2094
  "id": props.id,
2095
2095
  "role": "tab",
2096
- "class": [bem$1h([props.type, {
2096
+ "class": [bem$1i([props.type, {
2097
2097
  grow: props.scrollable && !props.shrink,
2098
2098
  shrink: props.shrink,
2099
2099
  active: props.isActive,
@@ -2107,7 +2107,7 @@ var stdin_default$1t = defineComponent({
2107
2107
  }, [renderText()]);
2108
2108
  }
2109
2109
  });
2110
- const [name$1k, bem$1g] = createNamespace("swipe");
2110
+ const [name$1l, bem$1h] = createNamespace("swipe");
2111
2111
  const swipeProps = {
2112
2112
  loop: truthProp,
2113
2113
  width: numericProp,
@@ -2122,9 +2122,9 @@ const swipeProps = {
2122
2122
  showIndicators: truthProp,
2123
2123
  stopPropagation: truthProp
2124
2124
  };
2125
- const SWIPE_KEY = Symbol(name$1k);
2126
- var stdin_default$1s = defineComponent({
2127
- name: name$1k,
2125
+ const SWIPE_KEY = Symbol(name$1l);
2126
+ var stdin_default$1t = defineComponent({
2127
+ name: name$1l,
2128
2128
  props: swipeProps,
2129
2129
  emits: ["change"],
2130
2130
  setup(props, {
@@ -2386,7 +2386,7 @@ var stdin_default$1s = defineComponent({
2386
2386
  } : void 0;
2387
2387
  return createVNode("i", {
2388
2388
  "style": style,
2389
- "class": bem$1g("indicator", {
2389
+ "class": bem$1h("indicator", {
2390
2390
  active
2391
2391
  })
2392
2392
  }, null);
@@ -2400,7 +2400,7 @@ var stdin_default$1s = defineComponent({
2400
2400
  }
2401
2401
  if (props.showIndicators && count.value > 1) {
2402
2402
  return createVNode("div", {
2403
- "class": bem$1g("indicators", {
2403
+ "class": bem$1h("indicators", {
2404
2404
  vertical: props.vertical
2405
2405
  })
2406
2406
  }, [Array(count.value).fill("").map(renderDot)]);
@@ -2442,11 +2442,11 @@ var stdin_default$1s = defineComponent({
2442
2442
  var _a;
2443
2443
  return createVNode("div", {
2444
2444
  "ref": root,
2445
- "class": bem$1g()
2445
+ "class": bem$1h()
2446
2446
  }, [createVNode("div", {
2447
2447
  "ref": track,
2448
2448
  "style": trackStyle.value,
2449
- "class": bem$1g("track", {
2449
+ "class": bem$1h("track", {
2450
2450
  vertical: props.vertical
2451
2451
  }),
2452
2452
  "onTouchstartPassive": onTouchStart,
@@ -2456,10 +2456,10 @@ var stdin_default$1s = defineComponent({
2456
2456
  };
2457
2457
  }
2458
2458
  });
2459
- const Swipe = withInstall(stdin_default$1s);
2460
- const [name$1j, bem$1f] = createNamespace("tabs");
2461
- var stdin_default$1r = defineComponent({
2462
- name: name$1j,
2459
+ const Swipe = withInstall(stdin_default$1t);
2460
+ const [name$1k, bem$1g] = createNamespace("tabs");
2461
+ var stdin_default$1s = defineComponent({
2462
+ name: name$1k,
2463
2463
  props: {
2464
2464
  count: makeRequiredProp(Number),
2465
2465
  inited: Boolean,
@@ -2483,7 +2483,7 @@ var stdin_default$1r = defineComponent({
2483
2483
  return createVNode(Swipe, {
2484
2484
  "ref": swipeRef,
2485
2485
  "loop": false,
2486
- "class": bem$1f("track"),
2486
+ "class": bem$1g("track"),
2487
2487
  "duration": +props.duration * 1e3,
2488
2488
  "touchable": props.swipeable,
2489
2489
  "lazyRender": props.lazyRender,
@@ -2511,13 +2511,13 @@ var stdin_default$1r = defineComponent({
2511
2511
  swipeRef
2512
2512
  });
2513
2513
  return () => createVNode("div", {
2514
- "class": bem$1f("content", {
2514
+ "class": bem$1g("content", {
2515
2515
  animated: props.animated || props.swipeable
2516
2516
  })
2517
2517
  }, [renderChildren()]);
2518
2518
  }
2519
2519
  });
2520
- const [name$1i, bem$1e] = createNamespace("tabs");
2520
+ const [name$1j, bem$1f] = createNamespace("tabs");
2521
2521
  const tabsProps = {
2522
2522
  type: makeStringProp("line"),
2523
2523
  color: String,
@@ -2540,9 +2540,9 @@ const tabsProps = {
2540
2540
  titleActiveColor: String,
2541
2541
  titleInactiveColor: String
2542
2542
  };
2543
- const TABS_KEY = Symbol(name$1i);
2544
- var stdin_default$1q = defineComponent({
2545
- name: name$1i,
2543
+ const TABS_KEY = Symbol(name$1j);
2544
+ var stdin_default$1r = defineComponent({
2545
+ name: name$1j,
2546
2546
  props: tabsProps,
2547
2547
  emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
2548
2548
  setup(props, {
@@ -2731,7 +2731,7 @@ var stdin_default$1q = defineComponent({
2731
2731
  setCurrentIndex(index);
2732
2732
  }
2733
2733
  };
2734
- const renderNav = () => children.map((item, index) => createVNode(stdin_default$1t, mergeProps({
2734
+ const renderNav = () => children.map((item, index) => createVNode(stdin_default$1u, mergeProps({
2735
2735
  "key": item.id,
2736
2736
  "id": `${id}-${index}`,
2737
2737
  "ref": setTitleRefs(index),
@@ -2752,7 +2752,7 @@ var stdin_default$1q = defineComponent({
2752
2752
  const renderLine = () => {
2753
2753
  if (props.type === "line" && children.length) {
2754
2754
  return createVNode("div", {
2755
- "class": bem$1e("line"),
2755
+ "class": bem$1f("line"),
2756
2756
  "style": state.lineStyle
2757
2757
  }, null);
2758
2758
  }
@@ -2766,13 +2766,13 @@ var stdin_default$1q = defineComponent({
2766
2766
  } = props;
2767
2767
  const Header = [createVNode("div", {
2768
2768
  "ref": sticky ? void 0 : wrapRef,
2769
- "class": [bem$1e("wrap"), {
2769
+ "class": [bem$1f("wrap"), {
2770
2770
  [BORDER_TOP_BOTTOM]: type === "line" && border
2771
2771
  }]
2772
2772
  }, [createVNode("div", {
2773
2773
  "ref": navRef,
2774
2774
  "role": "tablist",
2775
- "class": bem$1e("nav", [type, {
2775
+ "class": bem$1f("nav", [type, {
2776
2776
  shrink: props.shrink,
2777
2777
  complete: scrollable.value
2778
2778
  }]),
@@ -2840,14 +2840,14 @@ var stdin_default$1q = defineComponent({
2840
2840
  });
2841
2841
  return () => createVNode("div", {
2842
2842
  "ref": root,
2843
- "class": bem$1e([props.type])
2843
+ "class": bem$1f([props.type])
2844
2844
  }, [props.sticky ? createVNode(Sticky, {
2845
2845
  "container": root.value,
2846
2846
  "offsetTop": offsetTopPx.value,
2847
2847
  "onScroll": onStickyScroll
2848
2848
  }, {
2849
2849
  default: () => [renderHeader()]
2850
- }) : renderHeader(), createVNode(stdin_default$1r, {
2850
+ }) : renderHeader(), createVNode(stdin_default$1s, {
2851
2851
  "ref": contentRef,
2852
2852
  "count": children.length,
2853
2853
  "inited": state.inited,
@@ -2867,9 +2867,9 @@ var stdin_default$1q = defineComponent({
2867
2867
  });
2868
2868
  const TAB_STATUS_KEY = Symbol();
2869
2869
  const useTabStatus = () => inject(TAB_STATUS_KEY, null);
2870
- const [name$1h, bem$1d] = createNamespace("swipe-item");
2871
- var stdin_default$1p = defineComponent({
2872
- name: name$1h,
2870
+ const [name$1i, bem$1e] = createNamespace("swipe-item");
2871
+ var stdin_default$1q = defineComponent({
2872
+ name: name$1i,
2873
2873
  setup(props, {
2874
2874
  slots
2875
2875
  }) {
@@ -2934,14 +2934,14 @@ var stdin_default$1p = defineComponent({
2934
2934
  return () => {
2935
2935
  var _a;
2936
2936
  return createVNode("div", {
2937
- "class": bem$1d(),
2937
+ "class": bem$1e(),
2938
2938
  "style": style.value
2939
2939
  }, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
2940
2940
  };
2941
2941
  }
2942
2942
  });
2943
- const SwipeItem = withInstall(stdin_default$1p);
2944
- const [name$1g, bem$1c] = createNamespace("tab");
2943
+ const SwipeItem = withInstall(stdin_default$1q);
2944
+ const [name$1h, bem$1d] = createNamespace("tab");
2945
2945
  const tabProps = extend({}, routeProps, {
2946
2946
  dot: Boolean,
2947
2947
  name: numericProp,
@@ -2952,8 +2952,8 @@ const tabProps = extend({}, routeProps, {
2952
2952
  titleStyle: [String, Object],
2953
2953
  showZeroBadge: truthProp
2954
2954
  });
2955
- var stdin_default$1o = defineComponent({
2956
- name: name$1g,
2955
+ var stdin_default$1p = defineComponent({
2956
+ name: name$1h,
2957
2957
  props: tabProps,
2958
2958
  setup(props, {
2959
2959
  slots
@@ -3021,7 +3021,7 @@ var stdin_default$1o = defineComponent({
3021
3021
  return createVNode(SwipeItem, {
3022
3022
  "id": id,
3023
3023
  "role": "tabpanel",
3024
- "class": bem$1c("panel-wrapper", {
3024
+ "class": bem$1d("panel-wrapper", {
3025
3025
  inactive: hasInactiveClass.value
3026
3026
  }),
3027
3027
  "tabindex": active.value ? 0 : -1,
@@ -3031,7 +3031,7 @@ var stdin_default$1o = defineComponent({
3031
3031
  default: () => {
3032
3032
  var _a2;
3033
3033
  return [createVNode("div", {
3034
- "class": bem$1c("panel")
3034
+ "class": bem$1d("panel")
3035
3035
  }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
3036
3036
  }
3037
3037
  });
@@ -3044,22 +3044,22 @@ var stdin_default$1o = defineComponent({
3044
3044
  return withDirectives(createVNode("div", {
3045
3045
  "id": id,
3046
3046
  "role": "tabpanel",
3047
- "class": bem$1c("panel"),
3047
+ "class": bem$1d("panel"),
3048
3048
  "tabindex": show ? 0 : -1,
3049
3049
  "aria-labelledby": label
3050
3050
  }, [Content]), [[vShow, show]]);
3051
3051
  };
3052
3052
  }
3053
3053
  });
3054
- const Tab = withInstall(stdin_default$1o);
3055
- const Tabs = withInstall(stdin_default$1q);
3056
- const [name$1f, bem$1b] = createNamespace("picker-group");
3057
- const PICKER_GROUP_KEY = Symbol(name$1f);
3054
+ const Tab = withInstall(stdin_default$1p);
3055
+ const Tabs = withInstall(stdin_default$1r);
3056
+ const [name$1g, bem$1c] = createNamespace("picker-group");
3057
+ const PICKER_GROUP_KEY = Symbol(name$1g);
3058
3058
  const pickerGroupProps = extend({
3059
3059
  tabs: makeArrayProp()
3060
3060
  }, pickerToolbarProps);
3061
- var stdin_default$1n = defineComponent({
3062
- name: name$1f,
3061
+ var stdin_default$1o = defineComponent({
3062
+ name: name$1g,
3063
3063
  props: pickerGroupProps,
3064
3064
  emits: ["confirm", "cancel"],
3065
3065
  setup(props, {
@@ -3079,18 +3079,18 @@ var stdin_default$1n = defineComponent({
3079
3079
  var _a;
3080
3080
  const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
3081
3081
  return createVNode("div", {
3082
- "class": bem$1b()
3083
- }, [createVNode(stdin_default$1v, mergeProps(props, {
3082
+ "class": bem$1c()
3083
+ }, [createVNode(stdin_default$1w, mergeProps(props, {
3084
3084
  "onConfirm": onConfirm,
3085
3085
  "onCancel": onCancel
3086
3086
  }), null), createVNode(Tabs, {
3087
3087
  "shrink": true,
3088
- "class": bem$1b("tabs"),
3088
+ "class": bem$1c("tabs"),
3089
3089
  "animated": true
3090
3090
  }, {
3091
3091
  default: () => [props.tabs.map((title, index) => createVNode(Tab, {
3092
3092
  "title": title,
3093
- "titleClass": bem$1b("tab-title")
3093
+ "titleClass": bem$1c("tab-title")
3094
3094
  }, {
3095
3095
  default: () => [childNodes == null ? void 0 : childNodes[index]]
3096
3096
  }))]
@@ -3113,8 +3113,8 @@ const pickerProps = extend({}, pickerSharedProps, {
3113
3113
  toolbarPosition: makeStringProp("top"),
3114
3114
  columnsFieldNames: Object
3115
3115
  });
3116
- var stdin_default$1m = defineComponent({
3117
- name: name$1p,
3116
+ var stdin_default$1n = defineComponent({
3117
+ name: name$1q,
3118
3118
  props: pickerProps,
3119
3119
  emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue"],
3120
3120
  setup(props, {
@@ -3187,7 +3187,7 @@ var stdin_default$1m = defineComponent({
3187
3187
  return params;
3188
3188
  };
3189
3189
  const cancel = () => emit("cancel", getEventParams());
3190
- const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$1w, {
3190
+ const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$1x, {
3191
3191
  "value": selectedValues.value[columnIndex],
3192
3192
  "fields": fields.value,
3193
3193
  "options": options,
@@ -3210,10 +3210,10 @@ var stdin_default$1m = defineComponent({
3210
3210
  backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
3211
3211
  };
3212
3212
  return [createVNode("div", {
3213
- "class": bem$1k("mask"),
3213
+ "class": bem$1l("mask"),
3214
3214
  "style": maskStyle
3215
3215
  }, null), createVNode("div", {
3216
- "class": [BORDER_UNSET_TOP_BOTTOM, bem$1k("frame")],
3216
+ "class": [BORDER_UNSET_TOP_BOTTOM, bem$1l("frame")],
3217
3217
  "style": frameStyle
3218
3218
  }, null)];
3219
3219
  }
@@ -3225,13 +3225,13 @@ var stdin_default$1m = defineComponent({
3225
3225
  };
3226
3226
  return createVNode("div", {
3227
3227
  "ref": columnsRef,
3228
- "class": bem$1k("columns"),
3228
+ "class": bem$1l("columns"),
3229
3229
  "style": columnsStyle
3230
3230
  }, [renderColumnItems(), renderMask(wrapHeight)]);
3231
3231
  };
3232
3232
  const renderToolbar = () => {
3233
3233
  if (props.showToolbar && !parent) {
3234
- return createVNode(stdin_default$1v, mergeProps(pick(props, pickerToolbarPropKeys), {
3234
+ return createVNode(stdin_default$1w, mergeProps(pick(props, pickerToolbarPropKeys), {
3235
3235
  "onConfirm": confirm,
3236
3236
  "onCancel": cancel
3237
3237
  }), pick(slots, pickerToolbarSlots));
@@ -3273,9 +3273,9 @@ var stdin_default$1m = defineComponent({
3273
3273
  return () => {
3274
3274
  var _a, _b;
3275
3275
  return createVNode("div", {
3276
- "class": bem$1k()
3276
+ "class": bem$1l()
3277
3277
  }, [props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? createVNode(Loading, {
3278
- "class": bem$1k("loading")
3278
+ "class": bem$1l("loading")
3279
3279
  }, 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]);
3280
3280
  };
3281
3281
  }
@@ -3366,8 +3366,8 @@ function formatDataForCascade({
3366
3366
  }
3367
3367
  return options;
3368
3368
  }
3369
- const Picker = withInstall(stdin_default$1m);
3370
- const [name$1e, bem$1a] = createNamespace("area");
3369
+ const Picker = withInstall(stdin_default$1n);
3370
+ const [name$1f, bem$1b] = createNamespace("area");
3371
3371
  const areaProps = extend({}, pickerSharedProps, {
3372
3372
  modelValue: String,
3373
3373
  columnsNum: makeNumericProp(3),
@@ -3377,8 +3377,8 @@ const areaProps = extend({}, pickerSharedProps, {
3377
3377
  default: () => ({})
3378
3378
  }
3379
3379
  });
3380
- var stdin_default$1l = defineComponent({
3381
- name: name$1e,
3380
+ var stdin_default$1m = defineComponent({
3381
+ name: name$1f,
3382
3382
  props: areaProps,
3383
3383
  emits: ["change", "confirm", "cancel", "update:modelValue"],
3384
3384
  setup(props, {
@@ -3425,7 +3425,7 @@ var stdin_default$1l = defineComponent({
3425
3425
  "ref": picker,
3426
3426
  "modelValue": codes.value,
3427
3427
  "onUpdate:modelValue": ($event) => codes.value = $event,
3428
- "class": bem$1a(),
3428
+ "class": bem$1b(),
3429
3429
  "columns": columns.value,
3430
3430
  "onChange": onChange,
3431
3431
  "onCancel": onCancel,
@@ -3433,8 +3433,8 @@ var stdin_default$1l = defineComponent({
3433
3433
  }, pick(props, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
3434
3434
  }
3435
3435
  });
3436
- const Area = withInstall(stdin_default$1l);
3437
- const [name$1d, bem$19] = createNamespace("cell");
3436
+ const Area = withInstall(stdin_default$1m);
3437
+ const [name$1e, bem$1a] = createNamespace("cell");
3438
3438
  const cellSharedProps = {
3439
3439
  tag: makeStringProp("div"),
3440
3440
  icon: String,
@@ -3458,8 +3458,8 @@ const cellSharedProps = {
3458
3458
  }
3459
3459
  };
3460
3460
  const cellProps = extend({}, cellSharedProps, routeProps);
3461
- var stdin_default$1k = defineComponent({
3462
- name: name$1d,
3461
+ var stdin_default$1l = defineComponent({
3462
+ name: name$1e,
3463
3463
  props: cellProps,
3464
3464
  setup(props, {
3465
3465
  slots
@@ -3469,14 +3469,14 @@ var stdin_default$1k = defineComponent({
3469
3469
  const showLabel = slots.label || isDef(props.label);
3470
3470
  if (showLabel) {
3471
3471
  return createVNode("div", {
3472
- "class": [bem$19("label"), props.labelClass]
3472
+ "class": [bem$1a("label"), props.labelClass]
3473
3473
  }, [slots.label ? slots.label() : props.label]);
3474
3474
  }
3475
3475
  };
3476
3476
  const renderTitle = () => {
3477
3477
  if (slots.title || isDef(props.title)) {
3478
3478
  return createVNode("div", {
3479
- "class": [bem$19("title"), props.titleClass],
3479
+ "class": [bem$1a("title"), props.titleClass],
3480
3480
  "style": props.titleStyle
3481
3481
  }, [slots.title ? slots.title() : createVNode("span", null, [props.title]), renderLabel()]);
3482
3482
  }
@@ -3486,7 +3486,7 @@ var stdin_default$1k = defineComponent({
3486
3486
  const hasValue = slot || isDef(props.value);
3487
3487
  if (hasValue) {
3488
3488
  return createVNode("div", {
3489
- "class": [bem$19("value"), props.valueClass]
3489
+ "class": [bem$1a("value"), props.valueClass]
3490
3490
  }, [slot ? slot() : createVNode("span", null, [props.value])]);
3491
3491
  }
3492
3492
  };
@@ -3497,7 +3497,7 @@ var stdin_default$1k = defineComponent({
3497
3497
  if (props.icon) {
3498
3498
  return createVNode(Icon, {
3499
3499
  "name": props.icon,
3500
- "class": bem$19("left-icon"),
3500
+ "class": bem$1a("left-icon"),
3501
3501
  "classPrefix": props.iconPrefix
3502
3502
  }, null);
3503
3503
  }
@@ -3507,10 +3507,10 @@ var stdin_default$1k = defineComponent({
3507
3507
  return slots["right-icon"]();
3508
3508
  }
3509
3509
  if (props.isLink) {
3510
- const name2 = props.arrowDirection ? `arrow-${props.arrowDirection}` : "arrow";
3510
+ const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
3511
3511
  return createVNode(Icon, {
3512
3512
  "name": name2,
3513
- "class": bem$19("right-icon")
3513
+ "class": bem$1a("right-icon")
3514
3514
  }, null);
3515
3515
  }
3516
3516
  };
@@ -3535,7 +3535,7 @@ var stdin_default$1k = defineComponent({
3535
3535
  classes[size] = !!size;
3536
3536
  }
3537
3537
  return createVNode(tag, {
3538
- "class": bem$19(classes),
3538
+ "class": bem$1a(classes),
3539
3539
  "role": clickable ? "button" : void 0,
3540
3540
  "tabindex": clickable ? 0 : void 0,
3541
3541
  "onClick": route2
@@ -3548,8 +3548,8 @@ var stdin_default$1k = defineComponent({
3548
3548
  };
3549
3549
  }
3550
3550
  });
3551
- const Cell = withInstall(stdin_default$1k);
3552
- const [name$1c, bem$18] = createNamespace("form");
3551
+ const Cell = withInstall(stdin_default$1l);
3552
+ const [name$1d, bem$19] = createNamespace("form");
3553
3553
  const formProps = {
3554
3554
  colon: Boolean,
3555
3555
  disabled: Boolean,
@@ -3568,8 +3568,8 @@ const formProps = {
3568
3568
  default: "onBlur"
3569
3569
  }
3570
3570
  };
3571
- var stdin_default$1j = defineComponent({
3572
- name: name$1c,
3571
+ var stdin_default$1k = defineComponent({
3572
+ name: name$1d,
3573
3573
  props: formProps,
3574
3574
  emits: ["submit", "failed"],
3575
3575
  setup(props, {
@@ -3693,13 +3693,13 @@ var stdin_default$1j = defineComponent({
3693
3693
  return () => {
3694
3694
  var _a;
3695
3695
  return createVNode("form", {
3696
- "class": bem$18(),
3696
+ "class": bem$19(),
3697
3697
  "onSubmit": onSubmit
3698
3698
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
3699
3699
  };
3700
3700
  }
3701
3701
  });
3702
- const Form = withInstall(stdin_default$1j);
3702
+ const Form = withInstall(stdin_default$1k);
3703
3703
  function isEmptyValue(value) {
3704
3704
  if (Array.isArray(value)) {
3705
3705
  return !value.length;
@@ -3788,7 +3788,7 @@ function getStringLength(str) {
3788
3788
  function cutString(str, maxlength) {
3789
3789
  return [...str].slice(0, maxlength).join("");
3790
3790
  }
3791
- const [name$1b, bem$17] = createNamespace("field");
3791
+ const [name$1c, bem$18] = createNamespace("field");
3792
3792
  const fieldSharedProps = {
3793
3793
  id: String,
3794
3794
  name: String,
@@ -3835,8 +3835,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
3835
3835
  default: null
3836
3836
  }
3837
3837
  });
3838
- var stdin_default$1i = defineComponent({
3839
- name: name$1b,
3838
+ var stdin_default$1j = defineComponent({
3839
+ name: name$1c,
3840
3840
  props: fieldProps,
3841
3841
  emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
3842
3842
  setup(props, {
@@ -4065,7 +4065,7 @@ var stdin_default$1i = defineComponent({
4065
4065
  const getInputId = () => props.id || `${id}-input`;
4066
4066
  const getValidationStatus = () => state.status;
4067
4067
  const renderInput = () => {
4068
- const controlClass = bem$17("control", [getProp("inputAlign"), {
4068
+ const controlClass = bem$18("control", [getProp("inputAlign"), {
4069
4069
  error: showError.value,
4070
4070
  custom: !!slots.input,
4071
4071
  "min-height": props.type === "textarea" && !props.autosize
@@ -4107,7 +4107,7 @@ var stdin_default$1i = defineComponent({
4107
4107
  const leftIconSlot = slots["left-icon"];
4108
4108
  if (props.leftIcon || leftIconSlot) {
4109
4109
  return createVNode("div", {
4110
- "class": bem$17("left-icon"),
4110
+ "class": bem$18("left-icon"),
4111
4111
  "onClick": onClickLeftIcon
4112
4112
  }, [leftIconSlot ? leftIconSlot() : createVNode(Icon, {
4113
4113
  "name": props.leftIcon,
@@ -4119,7 +4119,7 @@ var stdin_default$1i = defineComponent({
4119
4119
  const rightIconSlot = slots["right-icon"];
4120
4120
  if (props.rightIcon || rightIconSlot) {
4121
4121
  return createVNode("div", {
4122
- "class": bem$17("right-icon"),
4122
+ "class": bem$18("right-icon"),
4123
4123
  "onClick": onClickRightIcon
4124
4124
  }, [rightIconSlot ? rightIconSlot() : createVNode(Icon, {
4125
4125
  "name": props.rightIcon,
@@ -4131,9 +4131,9 @@ var stdin_default$1i = defineComponent({
4131
4131
  if (props.showWordLimit && props.maxlength) {
4132
4132
  const count = getStringLength(getModelValue());
4133
4133
  return createVNode("div", {
4134
- "class": bem$17("word-limit")
4134
+ "class": bem$18("word-limit")
4135
4135
  }, [createVNode("span", {
4136
- "class": bem$17("word-num")
4136
+ "class": bem$18("word-num")
4137
4137
  }, [count]), createTextVNode("/"), props.maxlength]);
4138
4138
  }
4139
4139
  };
@@ -4146,7 +4146,7 @@ var stdin_default$1i = defineComponent({
4146
4146
  const slot = slots["error-message"];
4147
4147
  const errorMessageAlign = getProp("errorMessageAlign");
4148
4148
  return createVNode("div", {
4149
- "class": bem$17("error-message", errorMessageAlign)
4149
+ "class": bem$18("error-message", errorMessageAlign)
4150
4150
  }, [slot ? slot({
4151
4151
  message
4152
4152
  }) : message]);
@@ -4165,13 +4165,13 @@ var stdin_default$1i = defineComponent({
4165
4165
  }
4166
4166
  };
4167
4167
  const renderFieldBody = () => [createVNode("div", {
4168
- "class": bem$17("body")
4168
+ "class": bem$18("body")
4169
4169
  }, [renderInput(), showClear.value && createVNode(Icon, {
4170
4170
  "ref": clearIconRef,
4171
4171
  "name": props.clearIcon,
4172
- "class": bem$17("clear")
4172
+ "class": bem$18("clear")
4173
4173
  }, null), renderRightIcon(), slots.button && createVNode("div", {
4174
- "class": bem$17("button")
4174
+ "class": bem$18("button")
4175
4175
  }, [slots.button()])]), renderWordLimit(), renderMessage()];
4176
4176
  useExpose({
4177
4177
  blur,
@@ -4210,7 +4210,7 @@ var stdin_default$1i = defineComponent({
4210
4210
  const renderTitle = () => labelAlign === "top" ? [LeftIcon, Label] : Label;
4211
4211
  return createVNode(Cell, {
4212
4212
  "size": props.size,
4213
- "class": bem$17({
4213
+ "class": bem$18({
4214
4214
  error: showError.value,
4215
4215
  disabled,
4216
4216
  [`label-${labelAlign}`]: labelAlign
@@ -4220,8 +4220,8 @@ var stdin_default$1i = defineComponent({
4220
4220
  "isLink": props.isLink,
4221
4221
  "clickable": props.clickable,
4222
4222
  "titleStyle": labelStyle.value,
4223
- "valueClass": bem$17("value"),
4224
- "titleClass": [bem$17("label", [labelAlign, {
4223
+ "valueClass": bem$18("value"),
4224
+ "titleClass": [bem$18("label", [labelAlign, {
4225
4225
  required: props.required
4226
4226
  }]), props.labelClass],
4227
4227
  "arrowDirection": props.arrowDirection
@@ -4234,7 +4234,7 @@ var stdin_default$1i = defineComponent({
4234
4234
  };
4235
4235
  }
4236
4236
  });
4237
- const Field = withInstall(stdin_default$1i);
4237
+ const Field = withInstall(stdin_default$1j);
4238
4238
  let lockCount = 0;
4239
4239
  function lockClick(lock) {
4240
4240
  if (lock) {
@@ -4249,7 +4249,7 @@ function lockClick(lock) {
4249
4249
  }
4250
4250
  }
4251
4251
  }
4252
- const [name$1a, bem$16] = createNamespace("toast");
4252
+ const [name$1b, bem$17] = createNamespace("toast");
4253
4253
  const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
4254
4254
  const toastProps = {
4255
4255
  icon: String,
@@ -4272,8 +4272,8 @@ const toastProps = {
4272
4272
  closeOnClick: Boolean,
4273
4273
  closeOnClickOverlay: Boolean
4274
4274
  };
4275
- var stdin_default$1h = defineComponent({
4276
- name: name$1a,
4275
+ var stdin_default$1i = defineComponent({
4276
+ name: name$1b,
4277
4277
  props: toastProps,
4278
4278
  emits: ["update:show"],
4279
4279
  setup(props, {
@@ -4309,13 +4309,13 @@ var stdin_default$1h = defineComponent({
4309
4309
  return createVNode(Icon, {
4310
4310
  "name": icon || type,
4311
4311
  "size": iconSize,
4312
- "class": bem$16("icon"),
4312
+ "class": bem$17("icon"),
4313
4313
  "classPrefix": iconPrefix
4314
4314
  }, null);
4315
4315
  }
4316
4316
  if (type === "loading") {
4317
4317
  return createVNode(Loading, {
4318
- "class": bem$16("loading"),
4318
+ "class": bem$17("loading"),
4319
4319
  "size": iconSize,
4320
4320
  "type": loadingType
4321
4321
  }, null);
@@ -4328,16 +4328,16 @@ var stdin_default$1h = defineComponent({
4328
4328
  } = props;
4329
4329
  if (slots.message) {
4330
4330
  return createVNode("div", {
4331
- "class": bem$16("text")
4331
+ "class": bem$17("text")
4332
4332
  }, [slots.message()]);
4333
4333
  }
4334
4334
  if (isDef(message) && message !== "") {
4335
4335
  return type === "html" ? createVNode("div", {
4336
4336
  "key": 0,
4337
- "class": bem$16("text"),
4337
+ "class": bem$17("text"),
4338
4338
  "innerHTML": String(message)
4339
4339
  }, null) : createVNode("div", {
4340
- "class": bem$16("text")
4340
+ "class": bem$17("text")
4341
4341
  }, [message]);
4342
4342
  }
4343
4343
  };
@@ -4353,7 +4353,7 @@ var stdin_default$1h = defineComponent({
4353
4353
  onMounted(toggleClickable);
4354
4354
  onUnmounted(toggleClickable);
4355
4355
  return () => createVNode(Popup, mergeProps({
4356
- "class": [bem$16([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
4356
+ "class": [bem$17([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
4357
4357
  [props.type]: !props.icon
4358
4358
  }]), props.className],
4359
4359
  "lockScroll": false,
@@ -4454,7 +4454,7 @@ function createInstance() {
4454
4454
  onClosed,
4455
4455
  "onUpdate:show": toggle
4456
4456
  };
4457
- return createVNode(stdin_default$1h, mergeProps(state, attrs), null);
4457
+ return createVNode(stdin_default$1i, mergeProps(state, attrs), null);
4458
4458
  };
4459
4459
  watch(message, (val) => {
4460
4460
  state.message = val;
@@ -4524,8 +4524,8 @@ const resetToastDefaultOptions = (type) => {
4524
4524
  const allowMultipleToast = (value = true) => {
4525
4525
  allowMultiple = value;
4526
4526
  };
4527
- const Toast = withInstall(stdin_default$1h);
4528
- const [name$19, bem$15] = createNamespace("switch");
4527
+ const Toast = withInstall(stdin_default$1i);
4528
+ const [name$1a, bem$16] = createNamespace("switch");
4529
4529
  const switchProps = {
4530
4530
  size: numericProp,
4531
4531
  loading: Boolean,
@@ -4542,8 +4542,8 @@ const switchProps = {
4542
4542
  default: false
4543
4543
  }
4544
4544
  };
4545
- var stdin_default$1g = defineComponent({
4546
- name: name$19,
4545
+ var stdin_default$1h = defineComponent({
4546
+ name: name$1a,
4547
4547
  props: switchProps,
4548
4548
  emits: ["change", "update:modelValue"],
4549
4549
  setup(props, {
@@ -4562,7 +4562,7 @@ var stdin_default$1g = defineComponent({
4562
4562
  if (props.loading) {
4563
4563
  const color = isChecked() ? props.activeColor : props.inactiveColor;
4564
4564
  return createVNode(Loading, {
4565
- "class": bem$15("loading"),
4565
+ "class": bem$16("loading"),
4566
4566
  "color": color
4567
4567
  }, null);
4568
4568
  }
@@ -4587,7 +4587,7 @@ var stdin_default$1g = defineComponent({
4587
4587
  };
4588
4588
  return createVNode("div", {
4589
4589
  "role": "switch",
4590
- "class": bem$15({
4590
+ "class": bem$16({
4591
4591
  on: checked,
4592
4592
  loading,
4593
4593
  disabled
@@ -4597,16 +4597,16 @@ var stdin_default$1g = defineComponent({
4597
4597
  "aria-checked": checked,
4598
4598
  "onClick": onClick
4599
4599
  }, [createVNode("div", {
4600
- "class": bem$15("node")
4600
+ "class": bem$16("node")
4601
4601
  }, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
4602
4602
  };
4603
4603
  }
4604
4604
  });
4605
- const Switch = withInstall(stdin_default$1g);
4606
- const [name$18, bem$14] = createNamespace("address-edit-detail");
4605
+ const Switch = withInstall(stdin_default$1h);
4606
+ const [name$19, bem$15] = createNamespace("address-edit-detail");
4607
4607
  const t$i = createNamespace("address-edit")[2];
4608
- var stdin_default$1f = defineComponent({
4609
- name: name$18,
4608
+ var stdin_default$1g = defineComponent({
4609
+ name: name$19,
4610
4610
  props: {
4611
4611
  show: Boolean,
4612
4612
  rows: numericProp,
@@ -4640,7 +4640,7 @@ var stdin_default$1f = defineComponent({
4640
4640
  "icon": "location-o",
4641
4641
  "title": express.name,
4642
4642
  "label": express.address,
4643
- "class": bem$14("search-item"),
4643
+ "class": bem$15("search-item"),
4644
4644
  "border": false,
4645
4645
  "onClick": () => onSelect(express)
4646
4646
  }, null));
@@ -4654,7 +4654,7 @@ var stdin_default$1f = defineComponent({
4654
4654
  "autosize": true,
4655
4655
  "clearable": true,
4656
4656
  "ref": field,
4657
- "class": bem$14(),
4657
+ "class": bem$15(),
4658
4658
  "rows": props.rows,
4659
4659
  "type": "textarea",
4660
4660
  "rules": props.rules,
@@ -4671,7 +4671,7 @@ var stdin_default$1f = defineComponent({
4671
4671
  };
4672
4672
  }
4673
4673
  });
4674
- const [name$17, bem$13, t$h] = createNamespace("address-edit");
4674
+ const [name$18, bem$14, t$h] = createNamespace("address-edit");
4675
4675
  const DEFAULT_DATA = {
4676
4676
  name: "",
4677
4677
  tel: "",
@@ -4711,8 +4711,8 @@ const addressEditProps = {
4711
4711
  default: isMobile
4712
4712
  }
4713
4713
  };
4714
- var stdin_default$1e = defineComponent({
4715
- name: name$17,
4714
+ var stdin_default$1f = defineComponent({
4715
+ name: name$18,
4716
4716
  props: addressEditProps,
4717
4717
  emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
4718
4718
  setup(props, {
@@ -4823,7 +4823,7 @@ var stdin_default$1e = defineComponent({
4823
4823
  return withDirectives(createVNode(Cell, {
4824
4824
  "center": true,
4825
4825
  "title": t$h("defaultAddress"),
4826
- "class": bem$13("default")
4826
+ "class": bem$14("default")
4827
4827
  }, slots2), [[vShow, !hideBottomFields.value]]);
4828
4828
  }
4829
4829
  };
@@ -4849,13 +4849,13 @@ var stdin_default$1e = defineComponent({
4849
4849
  disableArea
4850
4850
  } = props;
4851
4851
  return createVNode(Form, {
4852
- "class": bem$13(),
4852
+ "class": bem$14(),
4853
4853
  "onSubmit": onSave
4854
4854
  }, {
4855
4855
  default: () => {
4856
4856
  var _a;
4857
4857
  return [createVNode("div", {
4858
- "class": bem$13("fields")
4858
+ "class": bem$14("fields")
4859
4859
  }, [createVNode(Field, {
4860
4860
  "modelValue": data.name,
4861
4861
  "onUpdate:modelValue": ($event) => data.name = $event,
@@ -4886,7 +4886,7 @@ var stdin_default$1e = defineComponent({
4886
4886
  emit("clickArea");
4887
4887
  showAreaPopup.value = !disableArea;
4888
4888
  }
4889
- }, null), [[vShow, props.showArea]]), createVNode(stdin_default$1f, {
4889
+ }, null), [[vShow, props.showArea]]), createVNode(stdin_default$1g, {
4890
4890
  "show": props.showDetail,
4891
4891
  "rows": props.detailRows,
4892
4892
  "rules": rules.value.addressDetail,
@@ -4900,19 +4900,19 @@ var stdin_default$1e = defineComponent({
4900
4900
  "onInput": onChangeDetail,
4901
4901
  "onSelectSearch": (event) => emit("selectSearch", event)
4902
4902
  }, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), withDirectives(createVNode("div", {
4903
- "class": bem$13("buttons")
4903
+ "class": bem$14("buttons")
4904
4904
  }, [createVNode(Button, {
4905
4905
  "block": true,
4906
4906
  "round": true,
4907
4907
  "type": "primary",
4908
4908
  "text": props.saveButtonText || t$h("save"),
4909
- "class": bem$13("button"),
4909
+ "class": bem$14("button"),
4910
4910
  "loading": props.isSaving,
4911
4911
  "nativeType": "submit"
4912
4912
  }, null), props.showDelete && createVNode(Button, {
4913
4913
  "block": true,
4914
4914
  "round": true,
4915
- "class": bem$13("button"),
4915
+ "class": bem$14("button"),
4916
4916
  "loading": props.isDeleting,
4917
4917
  "text": props.deleteButtonText || t$h("delete"),
4918
4918
  "onClick": onDelete
@@ -4942,8 +4942,8 @@ var stdin_default$1e = defineComponent({
4942
4942
  };
4943
4943
  }
4944
4944
  });
4945
- const AddressEdit = withInstall(stdin_default$1e);
4946
- const [name$16, bem$12] = createNamespace("radio-group");
4945
+ const AddressEdit = withInstall(stdin_default$1f);
4946
+ const [name$17, bem$13] = createNamespace("radio-group");
4947
4947
  const radioGroupProps = {
4948
4948
  disabled: Boolean,
4949
4949
  iconSize: numericProp,
@@ -4951,9 +4951,9 @@ const radioGroupProps = {
4951
4951
  modelValue: unknownProp,
4952
4952
  checkedColor: String
4953
4953
  };
4954
- const RADIO_KEY = Symbol(name$16);
4955
- var stdin_default$1d = defineComponent({
4956
- name: name$16,
4954
+ const RADIO_KEY = Symbol(name$17);
4955
+ var stdin_default$1e = defineComponent({
4956
+ name: name$17,
4957
4957
  props: radioGroupProps,
4958
4958
  emits: ["change", "update:modelValue"],
4959
4959
  setup(props, {
@@ -4973,14 +4973,14 @@ var stdin_default$1d = defineComponent({
4973
4973
  return () => {
4974
4974
  var _a;
4975
4975
  return createVNode("div", {
4976
- "class": bem$12([props.direction]),
4976
+ "class": bem$13([props.direction]),
4977
4977
  "role": "radiogroup"
4978
4978
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
4979
4979
  };
4980
4980
  }
4981
4981
  });
4982
- const RadioGroup = withInstall(stdin_default$1d);
4983
- const [name$15, bem$11] = createNamespace("tag");
4982
+ const RadioGroup = withInstall(stdin_default$1e);
4983
+ const [name$16, bem$12] = createNamespace("tag");
4984
4984
  const tagProps = {
4985
4985
  size: String,
4986
4986
  mark: Boolean,
@@ -4992,8 +4992,8 @@ const tagProps = {
4992
4992
  textColor: String,
4993
4993
  closeable: Boolean
4994
4994
  };
4995
- var stdin_default$1c = defineComponent({
4996
- name: name$15,
4995
+ var stdin_default$1d = defineComponent({
4996
+ name: name$16,
4997
4997
  props: tagProps,
4998
4998
  emits: ["close"],
4999
4999
  setup(props, {
@@ -5036,12 +5036,12 @@ var stdin_default$1c = defineComponent({
5036
5036
  }
5037
5037
  const CloseIcon = closeable && createVNode(Icon, {
5038
5038
  "name": "cross",
5039
- "class": [bem$11("close"), HAPTICS_FEEDBACK],
5039
+ "class": [bem$12("close"), HAPTICS_FEEDBACK],
5040
5040
  "onClick": onClose
5041
5041
  }, null);
5042
5042
  return createVNode("span", {
5043
5043
  "style": getStyle(),
5044
- "class": bem$11([classes, type])
5044
+ "class": bem$12([classes, type])
5045
5045
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
5046
5046
  };
5047
5047
  return () => createVNode(Transition, {
@@ -5051,7 +5051,7 @@ var stdin_default$1c = defineComponent({
5051
5051
  });
5052
5052
  }
5053
5053
  });
5054
- const Tag = withInstall(stdin_default$1c);
5054
+ const Tag = withInstall(stdin_default$1d);
5055
5055
  const checkerProps = {
5056
5056
  name: unknownProp,
5057
5057
  shape: makeStringProp("round"),
@@ -5062,7 +5062,7 @@ const checkerProps = {
5062
5062
  labelPosition: String,
5063
5063
  labelDisabled: Boolean
5064
5064
  };
5065
- var stdin_default$1b = defineComponent({
5065
+ var stdin_default$1c = defineComponent({
5066
5066
  props: extend({}, checkerProps, {
5067
5067
  bem: makeRequiredProp(Function),
5068
5068
  role: String,
@@ -5152,9 +5152,9 @@ var stdin_default$1b = defineComponent({
5152
5152
  }
5153
5153
  });
5154
5154
  const radioProps = checkerProps;
5155
- const [name$14, bem$10] = createNamespace("radio");
5156
- var stdin_default$1a = defineComponent({
5157
- name: name$14,
5155
+ const [name$15, bem$11] = createNamespace("radio");
5156
+ var stdin_default$1b = defineComponent({
5157
+ name: name$15,
5158
5158
  props: checkerProps,
5159
5159
  emits: ["update:modelValue"],
5160
5160
  setup(props, {
@@ -5175,8 +5175,8 @@ var stdin_default$1a = defineComponent({
5175
5175
  emit("update:modelValue", props.name);
5176
5176
  }
5177
5177
  };
5178
- return () => createVNode(stdin_default$1b, mergeProps({
5179
- "bem": bem$10,
5178
+ return () => createVNode(stdin_default$1c, mergeProps({
5179
+ "bem": bem$11,
5180
5180
  "role": "radio",
5181
5181
  "parent": parent,
5182
5182
  "checked": checked(),
@@ -5184,10 +5184,10 @@ var stdin_default$1a = defineComponent({
5184
5184
  }, props), pick(slots, ["default", "icon"]));
5185
5185
  }
5186
5186
  });
5187
- const Radio = withInstall(stdin_default$1a);
5188
- const [name$13, bem$$] = createNamespace("address-item");
5189
- var stdin_default$19 = defineComponent({
5190
- name: name$13,
5187
+ const Radio = withInstall(stdin_default$1b);
5188
+ const [name$14, bem$10] = createNamespace("address-item");
5189
+ var stdin_default$1a = defineComponent({
5190
+ name: name$14,
5191
5191
  props: {
5192
5192
  address: makeRequiredProp(Object),
5193
5193
  disabled: Boolean,
@@ -5207,7 +5207,7 @@ var stdin_default$19 = defineComponent({
5207
5207
  };
5208
5208
  const renderRightIcon = () => createVNode(Icon, {
5209
5209
  "name": "edit",
5210
- "class": bem$$("edit"),
5210
+ "class": bem$10("edit"),
5211
5211
  "onClick": (event) => {
5212
5212
  event.stopPropagation();
5213
5213
  emit("edit");
@@ -5222,7 +5222,7 @@ var stdin_default$19 = defineComponent({
5222
5222
  return createVNode(Tag, {
5223
5223
  "type": "primary",
5224
5224
  "round": true,
5225
- "class": bem$$("tag")
5225
+ "class": bem$10("tag")
5226
5226
  }, {
5227
5227
  default: () => [props.defaultTagText]
5228
5228
  });
@@ -5235,9 +5235,9 @@ var stdin_default$19 = defineComponent({
5235
5235
  switchable
5236
5236
  } = props;
5237
5237
  const Info = [createVNode("div", {
5238
- "class": bem$$("name")
5238
+ "class": bem$10("name")
5239
5239
  }, [`${address.name} ${address.tel}`, renderTag()]), createVNode("div", {
5240
- "class": bem$$("address")
5240
+ "class": bem$10("address")
5241
5241
  }, [address.address])];
5242
5242
  if (switchable && !disabled) {
5243
5243
  return createVNode(Radio, {
@@ -5255,13 +5255,13 @@ var stdin_default$19 = defineComponent({
5255
5255
  disabled
5256
5256
  } = props;
5257
5257
  return createVNode("div", {
5258
- "class": bem$$({
5258
+ "class": bem$10({
5259
5259
  disabled
5260
5260
  }),
5261
5261
  "onClick": onClick
5262
5262
  }, [createVNode(Cell, {
5263
5263
  "border": false,
5264
- "titleClass": bem$$("title")
5264
+ "titleClass": bem$10("title")
5265
5265
  }, {
5266
5266
  title: renderContent,
5267
5267
  "right-icon": renderRightIcon
@@ -5271,7 +5271,7 @@ var stdin_default$19 = defineComponent({
5271
5271
  };
5272
5272
  }
5273
5273
  });
5274
- const [name$12, bem$_, t$g] = createNamespace("address-list");
5274
+ const [name$13, bem$$, t$g] = createNamespace("address-list");
5275
5275
  const addressListProps = {
5276
5276
  list: makeArrayProp(),
5277
5277
  modelValue: numericProp,
@@ -5281,8 +5281,8 @@ const addressListProps = {
5281
5281
  addButtonText: String,
5282
5282
  defaultTagText: String
5283
5283
  };
5284
- var stdin_default$18 = defineComponent({
5285
- name: name$12,
5284
+ var stdin_default$19 = defineComponent({
5285
+ name: name$13,
5286
5286
  props: addressListProps,
5287
5287
  emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
5288
5288
  setup(props, {
@@ -5298,7 +5298,7 @@ var stdin_default$18 = defineComponent({
5298
5298
  emit("update:modelValue", item.id);
5299
5299
  }
5300
5300
  };
5301
- return createVNode(stdin_default$19, {
5301
+ return createVNode(stdin_default$1a, {
5302
5302
  "key": item.id,
5303
5303
  "address": item,
5304
5304
  "disabled": disabled,
@@ -5318,13 +5318,13 @@ var stdin_default$18 = defineComponent({
5318
5318
  }
5319
5319
  };
5320
5320
  const renderBottom = () => createVNode("div", {
5321
- "class": [bem$_("bottom"), "van-safe-area-bottom"]
5321
+ "class": [bem$$("bottom"), "van-safe-area-bottom"]
5322
5322
  }, [createVNode(Button, {
5323
5323
  "round": true,
5324
5324
  "block": true,
5325
5325
  "type": "primary",
5326
5326
  "text": props.addButtonText || t$g("add"),
5327
- "class": bem$_("add"),
5327
+ "class": bem$$("add"),
5328
5328
  "onClick": () => emit("add")
5329
5329
  }, null)]);
5330
5330
  return () => {
@@ -5332,10 +5332,10 @@ var stdin_default$18 = defineComponent({
5332
5332
  const List2 = renderList(props.list);
5333
5333
  const DisabledList = renderList(props.disabledList, true);
5334
5334
  const DisabledText = props.disabledText && createVNode("div", {
5335
- "class": bem$_("disabled-text")
5335
+ "class": bem$$("disabled-text")
5336
5336
  }, [props.disabledText]);
5337
5337
  return createVNode("div", {
5338
- "class": bem$_()
5338
+ "class": bem$$()
5339
5339
  }, [(_a = slots.top) == null ? void 0 : _a.call(slots), createVNode(RadioGroup, {
5340
5340
  "modelValue": props.modelValue
5341
5341
  }, {
@@ -5344,7 +5344,249 @@ var stdin_default$18 = defineComponent({
5344
5344
  };
5345
5345
  }
5346
5346
  });
5347
- const AddressList = withInstall(stdin_default$18);
5347
+ const AddressList = withInstall(stdin_default$19);
5348
+ const hasIntersectionObserver = inBrowser$1 && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
5349
+ const modeType = {
5350
+ event: "event",
5351
+ observer: "observer"
5352
+ };
5353
+ function remove(arr, item) {
5354
+ if (!arr.length)
5355
+ return;
5356
+ const index = arr.indexOf(item);
5357
+ if (index > -1)
5358
+ return arr.splice(index, 1);
5359
+ }
5360
+ function getBestSelectionFromSrcset(el, scale) {
5361
+ if (el.tagName !== "IMG" || !el.getAttribute("data-srcset"))
5362
+ return;
5363
+ let options = el.getAttribute("data-srcset");
5364
+ const container = el.parentNode;
5365
+ const containerWidth = container.offsetWidth * scale;
5366
+ let spaceIndex;
5367
+ let tmpSrc;
5368
+ let tmpWidth;
5369
+ options = options.trim().split(",");
5370
+ const result = options.map((item) => {
5371
+ item = item.trim();
5372
+ spaceIndex = item.lastIndexOf(" ");
5373
+ if (spaceIndex === -1) {
5374
+ tmpSrc = item;
5375
+ tmpWidth = 999998;
5376
+ } else {
5377
+ tmpSrc = item.substr(0, spaceIndex);
5378
+ tmpWidth = parseInt(
5379
+ item.substr(spaceIndex + 1, item.length - spaceIndex - 2),
5380
+ 10
5381
+ );
5382
+ }
5383
+ return [tmpWidth, tmpSrc];
5384
+ });
5385
+ result.sort((a, b) => {
5386
+ if (a[0] < b[0]) {
5387
+ return 1;
5388
+ }
5389
+ if (a[0] > b[0]) {
5390
+ return -1;
5391
+ }
5392
+ if (a[0] === b[0]) {
5393
+ if (b[1].indexOf(".webp", b[1].length - 5) !== -1) {
5394
+ return 1;
5395
+ }
5396
+ if (a[1].indexOf(".webp", a[1].length - 5) !== -1) {
5397
+ return -1;
5398
+ }
5399
+ }
5400
+ return 0;
5401
+ });
5402
+ let bestSelectedSrc = "";
5403
+ let tmpOption;
5404
+ for (let i = 0; i < result.length; i++) {
5405
+ tmpOption = result[i];
5406
+ bestSelectedSrc = tmpOption[1];
5407
+ const next = result[i + 1];
5408
+ if (next && next[0] < containerWidth) {
5409
+ bestSelectedSrc = tmpOption[1];
5410
+ break;
5411
+ } else if (!next) {
5412
+ bestSelectedSrc = tmpOption[1];
5413
+ break;
5414
+ }
5415
+ }
5416
+ return bestSelectedSrc;
5417
+ }
5418
+ const getDPR = (scale = 1) => inBrowser$1 ? window.devicePixelRatio || scale : scale;
5419
+ function supportWebp() {
5420
+ if (!inBrowser$1)
5421
+ return false;
5422
+ let support = true;
5423
+ try {
5424
+ const elem = document.createElement("canvas");
5425
+ if (elem.getContext && elem.getContext("2d")) {
5426
+ support = elem.toDataURL("image/webp").indexOf("data:image/webp") === 0;
5427
+ }
5428
+ } catch (err) {
5429
+ support = false;
5430
+ }
5431
+ return support;
5432
+ }
5433
+ function throttle(action, delay) {
5434
+ let timeout = null;
5435
+ let lastRun = 0;
5436
+ return function(...args) {
5437
+ if (timeout) {
5438
+ return;
5439
+ }
5440
+ const elapsed = Date.now() - lastRun;
5441
+ const runCallback = () => {
5442
+ lastRun = Date.now();
5443
+ timeout = false;
5444
+ action.apply(this, args);
5445
+ };
5446
+ if (elapsed >= delay) {
5447
+ runCallback();
5448
+ } else {
5449
+ timeout = setTimeout(runCallback, delay);
5450
+ }
5451
+ };
5452
+ }
5453
+ function on(el, type, func) {
5454
+ el.addEventListener(type, func, {
5455
+ capture: false,
5456
+ passive: true
5457
+ });
5458
+ }
5459
+ function off(el, type, func) {
5460
+ el.removeEventListener(type, func, false);
5461
+ }
5462
+ const loadImageAsync = (item, resolve, reject) => {
5463
+ const image = new Image();
5464
+ if (!item || !item.src) {
5465
+ return reject(new Error("image src is required"));
5466
+ }
5467
+ image.src = item.src;
5468
+ if (item.cors) {
5469
+ image.crossOrigin = item.cors;
5470
+ }
5471
+ image.onload = () => resolve({
5472
+ naturalHeight: image.naturalHeight,
5473
+ naturalWidth: image.naturalWidth,
5474
+ src: image.src
5475
+ });
5476
+ image.onerror = (e) => reject(e);
5477
+ };
5478
+ class ImageCache {
5479
+ constructor({ max }) {
5480
+ this.options = {
5481
+ max: max || 100
5482
+ };
5483
+ this.caches = [];
5484
+ }
5485
+ has(key) {
5486
+ return this.caches.indexOf(key) > -1;
5487
+ }
5488
+ add(key) {
5489
+ if (this.has(key))
5490
+ return;
5491
+ this.caches.push(key);
5492
+ if (this.caches.length > this.options.max) {
5493
+ this.free();
5494
+ }
5495
+ }
5496
+ free() {
5497
+ this.caches.shift();
5498
+ }
5499
+ }
5500
+ const [name$12, bem$_] = createNamespace("back-top");
5501
+ const backTopProps = {
5502
+ right: makeNumericProp(30),
5503
+ bottom: makeNumericProp(40),
5504
+ target: [String, Object],
5505
+ visibilityHeight: makeNumericProp(200),
5506
+ teleport: {
5507
+ type: [String, Object],
5508
+ default: "body"
5509
+ }
5510
+ };
5511
+ var stdin_default$18 = defineComponent({
5512
+ name: name$12,
5513
+ inheritAttrs: false,
5514
+ props: backTopProps,
5515
+ emits: ["click"],
5516
+ setup(props, {
5517
+ emit,
5518
+ slots,
5519
+ attrs
5520
+ }) {
5521
+ const show = ref(false);
5522
+ const scrollParent = ref();
5523
+ const root = ref(null);
5524
+ let target;
5525
+ const style = computed(() => ({
5526
+ right: addUnit(props.right),
5527
+ bottom: addUnit(props.bottom)
5528
+ }));
5529
+ const onClick = (event) => {
5530
+ emit("click", event);
5531
+ target.scrollTo({
5532
+ top: 0,
5533
+ behavior: "smooth"
5534
+ });
5535
+ };
5536
+ const scroll = () => {
5537
+ show.value = getScrollTop(target) >= props.visibilityHeight;
5538
+ };
5539
+ const getTarget = () => {
5540
+ const {
5541
+ target: target2
5542
+ } = props;
5543
+ if (typeof target2 === "string") {
5544
+ const el = document.querySelector(props.target);
5545
+ if (!el) {
5546
+ throw Error("[Vant] BackTop: target element is not found.");
5547
+ }
5548
+ return el;
5549
+ }
5550
+ if (isObject(target2)) {
5551
+ return target2;
5552
+ }
5553
+ throw Error('[Vant] BackTop: type of prop "target" should be a selector or an element object');
5554
+ };
5555
+ useEventListener("scroll", throttle(scroll, 300), {
5556
+ target: scrollParent
5557
+ });
5558
+ onMounted(() => {
5559
+ nextTick(() => {
5560
+ if (inBrowser) {
5561
+ target = props.target ? getTarget() : getScrollParent(root.value);
5562
+ scrollParent.value = target;
5563
+ }
5564
+ });
5565
+ });
5566
+ return () => {
5567
+ const Content = createVNode("div", mergeProps({
5568
+ "ref": root,
5569
+ "class": bem$_({
5570
+ active: show.value
5571
+ }),
5572
+ "style": style.value,
5573
+ "onClick": onClick
5574
+ }, attrs), [slots.default ? slots.default() : createVNode(Icon, {
5575
+ "name": "back-top",
5576
+ "class": bem$_("icon")
5577
+ }, null)]);
5578
+ if (props.teleport) {
5579
+ return createVNode(Teleport, {
5580
+ "to": props.teleport
5581
+ }, {
5582
+ default: () => [Content]
5583
+ });
5584
+ }
5585
+ return Content;
5586
+ };
5587
+ }
5588
+ });
5589
+ const BackTop = withInstall(stdin_default$18);
5348
5590
  const [name$11, bem$Z, t$f] = createNamespace("calendar");
5349
5591
  const formatMonthTitle = (date) => t$f("monthTitle", date.getFullYear(), date.getMonth() + 1);
5350
5592
  function compareMonth(date1, date2) {
@@ -6843,7 +7085,7 @@ var stdin_default$_ = defineComponent({
6843
7085
  checked
6844
7086
  });
6845
7087
  useCustomFieldValue(() => props.modelValue);
6846
- return () => createVNode(stdin_default$1b, mergeProps({
7088
+ return () => createVNode(stdin_default$1c, mergeProps({
6847
7089
  "bem": bem$T,
6848
7090
  "role": "checkbox",
6849
7091
  "parent": parent,
@@ -7364,7 +7606,7 @@ var stdin_default$V = defineComponent({
7364
7606
  }
7365
7607
  });
7366
7608
  const CollapseItem = withInstall(stdin_default$V);
7367
- const ConfigProvider = withInstall(stdin_default$1F);
7609
+ const ConfigProvider = withInstall(stdin_default$1G);
7368
7610
  const [name$O, bem$N, t$d] = createNamespace("contact-card");
7369
7611
  const contactCardProps = {
7370
7612
  tel: String,
@@ -8842,11 +9084,13 @@ const dropdownItemProps = {
8842
9084
  };
8843
9085
  var stdin_default$I = defineComponent({
8844
9086
  name: name$C,
9087
+ inheritAttrs: false,
8845
9088
  props: dropdownItemProps,
8846
9089
  emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
8847
9090
  setup(props, {
8848
9091
  emit,
8849
- slots
9092
+ slots,
9093
+ attrs
8850
9094
  }) {
8851
9095
  const state = reactive({
8852
9096
  showPopup: false,
@@ -8952,11 +9196,11 @@ var stdin_default$I = defineComponent({
8952
9196
  } else {
8953
9197
  style.bottom = `${offset.value}px`;
8954
9198
  }
8955
- return withDirectives(createVNode("div", {
9199
+ return withDirectives(createVNode("div", mergeProps({
8956
9200
  "style": style,
8957
9201
  "class": bem$C([direction]),
8958
9202
  "onClick": onClickWrapper
8959
- }, [createVNode(Popup, {
9203
+ }, attrs), [createVNode(Popup, {
8960
9204
  "show": state.showPopup,
8961
9205
  "onUpdate:show": ($event) => state.showPopup = $event,
8962
9206
  "role": "menu",
@@ -9955,7 +10199,7 @@ var stdin_default$B = defineComponent({
9955
10199
  emit,
9956
10200
  slots
9957
10201
  }) {
9958
- const loading = ref(false);
10202
+ const loading = ref(props.loading);
9959
10203
  const root = ref();
9960
10204
  const placeholder = ref();
9961
10205
  const tabStatus = useTabStatus();
@@ -10521,11 +10765,13 @@ function shuffle(array) {
10521
10765
  }
10522
10766
  var stdin_default$w = defineComponent({
10523
10767
  name: name$r,
10768
+ inheritAttrs: false,
10524
10769
  props: numberKeyboardProps,
10525
10770
  emits: ["show", "hide", "blur", "input", "close", "delete", "update:modelValue"],
10526
10771
  setup(props, {
10527
10772
  emit,
10528
- slots
10773
+ slots,
10774
+ attrs
10529
10775
  }) {
10530
10776
  const root = ref();
10531
10777
  const genBasicKeys = () => {
@@ -10681,7 +10927,7 @@ var stdin_default$w = defineComponent({
10681
10927
  const Content = createVNode(Transition, {
10682
10928
  "name": props.transition ? "van-slide-up" : ""
10683
10929
  }, {
10684
- default: () => [withDirectives(createVNode("div", {
10930
+ default: () => [withDirectives(createVNode("div", mergeProps({
10685
10931
  "ref": root,
10686
10932
  "style": getZIndexStyle(props.zIndex),
10687
10933
  "class": bem$q({
@@ -10690,7 +10936,7 @@ var stdin_default$w = defineComponent({
10690
10936
  }),
10691
10937
  "onAnimationend": onAnimationEnd,
10692
10938
  "onTouchstartPassive": stopPropagation
10693
- }, [Title, createVNode("div", {
10939
+ }, attrs), [Title, createVNode("div", {
10694
10940
  "class": bem$q("body")
10695
10941
  }, [createVNode("div", {
10696
10942
  "class": bem$q("keys")
@@ -10920,7 +11166,7 @@ var stdin_default$u = defineComponent({
10920
11166
  }
10921
11167
  });
10922
11168
  const PasswordInput = withInstall(stdin_default$u);
10923
- const PickerGroup = withInstall(stdin_default$1n);
11169
+ const PickerGroup = withInstall(stdin_default$1o);
10924
11170
  const useSyncPropRef = (getProp, setProp) => {
10925
11171
  const propRef = ref(getProp());
10926
11172
  watch(getProp, (value) => {
@@ -13816,158 +14062,6 @@ var stdin_default$4 = defineComponent({
13816
14062
  }
13817
14063
  });
13818
14064
  const Uploader = withInstall(stdin_default$4);
13819
- const hasIntersectionObserver = inBrowser$1 && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
13820
- const modeType = {
13821
- event: "event",
13822
- observer: "observer"
13823
- };
13824
- function remove(arr, item) {
13825
- if (!arr.length)
13826
- return;
13827
- const index = arr.indexOf(item);
13828
- if (index > -1)
13829
- return arr.splice(index, 1);
13830
- }
13831
- function getBestSelectionFromSrcset(el, scale) {
13832
- if (el.tagName !== "IMG" || !el.getAttribute("data-srcset"))
13833
- return;
13834
- let options = el.getAttribute("data-srcset");
13835
- const container = el.parentNode;
13836
- const containerWidth = container.offsetWidth * scale;
13837
- let spaceIndex;
13838
- let tmpSrc;
13839
- let tmpWidth;
13840
- options = options.trim().split(",");
13841
- const result = options.map((item) => {
13842
- item = item.trim();
13843
- spaceIndex = item.lastIndexOf(" ");
13844
- if (spaceIndex === -1) {
13845
- tmpSrc = item;
13846
- tmpWidth = 999998;
13847
- } else {
13848
- tmpSrc = item.substr(0, spaceIndex);
13849
- tmpWidth = parseInt(
13850
- item.substr(spaceIndex + 1, item.length - spaceIndex - 2),
13851
- 10
13852
- );
13853
- }
13854
- return [tmpWidth, tmpSrc];
13855
- });
13856
- result.sort((a, b) => {
13857
- if (a[0] < b[0]) {
13858
- return 1;
13859
- }
13860
- if (a[0] > b[0]) {
13861
- return -1;
13862
- }
13863
- if (a[0] === b[0]) {
13864
- if (b[1].indexOf(".webp", b[1].length - 5) !== -1) {
13865
- return 1;
13866
- }
13867
- if (a[1].indexOf(".webp", a[1].length - 5) !== -1) {
13868
- return -1;
13869
- }
13870
- }
13871
- return 0;
13872
- });
13873
- let bestSelectedSrc = "";
13874
- let tmpOption;
13875
- for (let i = 0; i < result.length; i++) {
13876
- tmpOption = result[i];
13877
- bestSelectedSrc = tmpOption[1];
13878
- const next = result[i + 1];
13879
- if (next && next[0] < containerWidth) {
13880
- bestSelectedSrc = tmpOption[1];
13881
- break;
13882
- } else if (!next) {
13883
- bestSelectedSrc = tmpOption[1];
13884
- break;
13885
- }
13886
- }
13887
- return bestSelectedSrc;
13888
- }
13889
- const getDPR = (scale = 1) => inBrowser$1 ? window.devicePixelRatio || scale : scale;
13890
- function supportWebp() {
13891
- if (!inBrowser$1)
13892
- return false;
13893
- let support = true;
13894
- try {
13895
- const elem = document.createElement("canvas");
13896
- if (elem.getContext && elem.getContext("2d")) {
13897
- support = elem.toDataURL("image/webp").indexOf("data:image/webp") === 0;
13898
- }
13899
- } catch (err) {
13900
- support = false;
13901
- }
13902
- return support;
13903
- }
13904
- function throttle(action, delay) {
13905
- let timeout = null;
13906
- let lastRun = 0;
13907
- return function(...args) {
13908
- if (timeout) {
13909
- return;
13910
- }
13911
- const elapsed = Date.now() - lastRun;
13912
- const runCallback = () => {
13913
- lastRun = Date.now();
13914
- timeout = false;
13915
- action.apply(this, args);
13916
- };
13917
- if (elapsed >= delay) {
13918
- runCallback();
13919
- } else {
13920
- timeout = setTimeout(runCallback, delay);
13921
- }
13922
- };
13923
- }
13924
- function on(el, type, func) {
13925
- el.addEventListener(type, func, {
13926
- capture: false,
13927
- passive: true
13928
- });
13929
- }
13930
- function off(el, type, func) {
13931
- el.removeEventListener(type, func, false);
13932
- }
13933
- const loadImageAsync = (item, resolve, reject) => {
13934
- const image = new Image();
13935
- if (!item || !item.src) {
13936
- return reject(new Error("image src is required"));
13937
- }
13938
- image.src = item.src;
13939
- if (item.cors) {
13940
- image.crossOrigin = item.cors;
13941
- }
13942
- image.onload = () => resolve({
13943
- naturalHeight: image.naturalHeight,
13944
- naturalWidth: image.naturalWidth,
13945
- src: image.src
13946
- });
13947
- image.onerror = (e) => reject(e);
13948
- };
13949
- class ImageCache {
13950
- constructor({ max }) {
13951
- this.options = {
13952
- max: max || 100
13953
- };
13954
- this.caches = [];
13955
- }
13956
- has(key) {
13957
- return this.caches.indexOf(key) > -1;
13958
- }
13959
- add(key) {
13960
- if (this.has(key))
13961
- return;
13962
- this.caches.push(key);
13963
- if (this.caches.length > this.options.max) {
13964
- this.free();
13965
- }
13966
- }
13967
- free() {
13968
- this.caches.shift();
13969
- }
13970
- }
13971
14065
  class ReactiveListener {
13972
14066
  constructor({
13973
14067
  el,
@@ -14713,7 +14807,7 @@ const Lazyload = {
14713
14807
  });
14714
14808
  }
14715
14809
  };
14716
- const version = "4.0.0-rc.7";
14810
+ const version = "4.0.0-rc.9";
14717
14811
  function install(app) {
14718
14812
  const components = [
14719
14813
  ActionBar,
@@ -14723,6 +14817,7 @@ function install(app) {
14723
14817
  AddressEdit,
14724
14818
  AddressList,
14725
14819
  Area,
14820
+ BackTop,
14726
14821
  Badge,
14727
14822
  Button,
14728
14823
  Calendar,
@@ -14825,6 +14920,7 @@ export {
14825
14920
  AddressEdit,
14826
14921
  AddressList,
14827
14922
  Area,
14923
+ BackTop,
14828
14924
  Badge,
14829
14925
  Button,
14830
14926
  Calendar,
@@ -14919,6 +15015,7 @@ export {
14919
15015
  addressListProps,
14920
15016
  allowMultipleToast,
14921
15017
  areaProps,
15018
+ backTopProps,
14922
15019
  badgeProps,
14923
15020
  buttonProps,
14924
15021
  calendarProps,