vant 3.5.0-beta.0 → 3.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/es/action-bar/ActionBar.mjs +1 -1
  2. package/es/action-bar/index.mjs +2 -2
  3. package/es/action-bar-button/ActionBarButton.mjs +5 -5
  4. package/es/action-bar-button/index.mjs +2 -2
  5. package/es/action-bar-icon/ActionBarIcon.mjs +5 -5
  6. package/es/action-bar-icon/index.mjs +2 -2
  7. package/es/action-sheet/ActionSheet.mjs +5 -5
  8. package/es/action-sheet/index.mjs +2 -2
  9. package/es/address-edit/AddressEdit.mjs +11 -11
  10. package/es/address-edit/AddressEditDetail.mjs +3 -3
  11. package/es/address-edit/index.mjs +2 -2
  12. package/es/address-list/AddressList.mjs +4 -4
  13. package/es/address-list/AddressListItem.mjs +5 -5
  14. package/es/address-list/index.mjs +2 -2
  15. package/es/area/Area.mjs +5 -5
  16. package/es/area/index.mjs +2 -2
  17. package/es/badge/Badge.mjs +1 -1
  18. package/es/badge/index.mjs +2 -2
  19. package/es/button/Button.mjs +4 -4
  20. package/es/button/index.mjs +2 -2
  21. package/es/calendar/Calendar.mjs +9 -9
  22. package/es/calendar/CalendarDay.mjs +2 -2
  23. package/es/calendar/CalendarHeader.mjs +2 -2
  24. package/es/calendar/CalendarMonth.mjs +6 -6
  25. package/es/calendar/index.mjs +2 -2
  26. package/es/calendar/utils.mjs +1 -1
  27. package/es/card/Card.mjs +3 -3
  28. package/es/card/index.mjs +2 -2
  29. package/es/cascader/Cascader.mjs +4 -4
  30. package/es/cascader/index.mjs +2 -2
  31. package/es/cell/Cell.mjs +3 -3
  32. package/es/cell/index.mjs +2 -2
  33. package/es/cell-group/CellGroup.mjs +1 -1
  34. package/es/cell-group/index.mjs +2 -2
  35. package/es/checkbox/Checkbox.mjs +4 -4
  36. package/es/checkbox/Checker.mjs +2 -2
  37. package/es/checkbox/index.mjs +2 -2
  38. package/es/checkbox-group/CheckboxGroup.mjs +2 -2
  39. package/es/checkbox-group/index.mjs +2 -2
  40. package/es/circle/Circle.mjs +1 -1
  41. package/es/circle/index.mjs +2 -2
  42. package/es/col/Col.mjs +2 -2
  43. package/es/col/index.mjs +2 -2
  44. package/es/collapse/Collapse.mjs +1 -1
  45. package/es/collapse/index.mjs +2 -2
  46. package/es/collapse-item/CollapseItem.mjs +6 -6
  47. package/es/collapse-item/index.mjs +2 -2
  48. package/es/composables/use-expose.mjs +1 -1
  49. package/es/composables/use-lock-scroll.mjs +2 -2
  50. package/es/composables/use-placeholder.mjs +1 -1
  51. package/es/composables/use-visibility-change.mjs +1 -1
  52. package/es/config-provider/ConfigProvider.mjs +1 -1
  53. package/es/config-provider/index.mjs +2 -2
  54. package/es/contact-card/ContactCard.mjs +2 -2
  55. package/es/contact-card/index.mjs +2 -2
  56. package/es/contact-edit/ContactEdit.mjs +6 -6
  57. package/es/contact-edit/index.mjs +2 -2
  58. package/es/contact-list/ContactList.mjs +7 -7
  59. package/es/contact-list/index.mjs +2 -2
  60. package/es/count-down/CountDown.mjs +3 -3
  61. package/es/count-down/index.mjs +2 -2
  62. package/es/count-down/utils.mjs +1 -1
  63. package/es/coupon/Coupon.mjs +3 -3
  64. package/es/coupon/index.mjs +2 -2
  65. package/es/coupon/utils.mjs +1 -1
  66. package/es/coupon-cell/CouponCell.mjs +2 -2
  67. package/es/coupon-cell/index.mjs +2 -2
  68. package/es/coupon-list/CouponList.mjs +8 -8
  69. package/es/coupon-list/index.mjs +2 -2
  70. package/es/datetime-picker/DatePicker.mjs +4 -4
  71. package/es/datetime-picker/DatetimePicker.mjs +4 -4
  72. package/es/datetime-picker/TimePicker.mjs +4 -4
  73. package/es/datetime-picker/index.mjs +2 -2
  74. package/es/datetime-picker/utils.mjs +2 -2
  75. package/es/dialog/Dialog.mjs +6 -6
  76. package/es/dialog/function-call.mjs +3 -3
  77. package/es/dialog/index.mjs +1 -1
  78. package/es/divider/Divider.mjs +1 -1
  79. package/es/divider/index.mjs +2 -2
  80. package/es/dropdown-item/DropdownItem.mjs +6 -6
  81. package/es/dropdown-item/index.mjs +2 -2
  82. package/es/dropdown-menu/DropdownMenu.mjs +2 -2
  83. package/es/dropdown-menu/index.mjs +2 -2
  84. package/es/empty/Empty.mjs +2 -2
  85. package/es/empty/index.mjs +2 -2
  86. package/es/field/Field.mjs +7 -7
  87. package/es/field/index.mjs +2 -2
  88. package/es/field/utils.mjs +1 -1
  89. package/es/form/Form.mjs +2 -2
  90. package/es/form/index.mjs +2 -2
  91. package/es/grid/Grid.mjs +2 -2
  92. package/es/grid/index.mjs +2 -2
  93. package/es/grid-item/GridItem.mjs +5 -5
  94. package/es/grid-item/index.mjs +2 -2
  95. package/es/icon/Icon.mjs +3 -3
  96. package/es/icon/index.mjs +2 -2
  97. package/es/image/Image.mjs +2 -2
  98. package/es/image/index.mjs +2 -2
  99. package/es/image-preview/ImagePreview.mjs +6 -6
  100. package/es/image-preview/ImagePreviewItem.mjs +5 -5
  101. package/es/image-preview/function-call.mjs +3 -3
  102. package/es/image-preview/index.mjs +1 -1
  103. package/es/index-anchor/IndexAnchor.mjs +4 -4
  104. package/es/index-anchor/index.mjs +2 -2
  105. package/es/index-bar/IndexBar.mjs +3 -3
  106. package/es/index-bar/index.mjs +2 -2
  107. package/es/index.d.ts +1 -1
  108. package/es/index.mjs +172 -172
  109. package/es/lazyload/index.mjs +1 -1
  110. package/es/lazyload/vue-lazyload/index.mjs +4 -4
  111. package/es/lazyload/vue-lazyload/lazy-container.mjs +1 -1
  112. package/es/lazyload/vue-lazyload/lazy-image.mjs +2 -2
  113. package/es/lazyload/vue-lazyload/lazy.mjs +3 -3
  114. package/es/lazyload/vue-lazyload/listener.mjs +2 -2
  115. package/es/list/List.mjs +4 -4
  116. package/es/list/index.mjs +2 -2
  117. package/es/loading/Loading.mjs +1 -1
  118. package/es/loading/index.mjs +2 -2
  119. package/es/locale/index.mjs +2 -2
  120. package/es/nav-bar/NavBar.mjs +3 -3
  121. package/es/nav-bar/index.mjs +2 -2
  122. package/es/notice-bar/NoticeBar.mjs +4 -4
  123. package/es/notice-bar/index.mjs +2 -2
  124. package/es/notify/Notify.mjs +3 -3
  125. package/es/notify/function-call.mjs +3 -3
  126. package/es/notify/index.mjs +1 -1
  127. package/es/number-keyboard/NumberKeyboard.mjs +2 -2
  128. package/es/number-keyboard/NumberKeyboardKey.mjs +3 -3
  129. package/es/number-keyboard/index.mjs +2 -2
  130. package/es/overlay/Overlay.mjs +2 -2
  131. package/es/overlay/index.mjs +2 -2
  132. package/es/pagination/Pagination.mjs +1 -1
  133. package/es/pagination/index.mjs +2 -2
  134. package/es/password-input/PasswordInput.mjs +1 -1
  135. package/es/password-input/index.mjs +2 -2
  136. package/es/picker/Picker.mjs +4 -4
  137. package/es/picker/PickerColumn.mjs +4 -4
  138. package/es/picker/index.mjs +2 -2
  139. package/es/popover/Popover.mjs +3 -3
  140. package/es/popover/index.mjs +2 -2
  141. package/es/popup/Popup.mjs +8 -8
  142. package/es/popup/index.mjs +2 -2
  143. package/es/popup/shared.mjs +1 -1
  144. package/es/progress/Progress.mjs +1 -1
  145. package/es/progress/index.mjs +2 -2
  146. package/es/pull-refresh/PullRefresh.mjs +3 -3
  147. package/es/pull-refresh/index.mjs +2 -2
  148. package/es/radio/Radio.mjs +3 -3
  149. package/es/radio/index.mjs +2 -2
  150. package/es/radio-group/RadioGroup.mjs +1 -1
  151. package/es/radio-group/index.mjs +2 -2
  152. package/es/rate/Rate.mjs +4 -4
  153. package/es/rate/index.mjs +2 -2
  154. package/es/row/Row.mjs +1 -1
  155. package/es/row/index.mjs +2 -2
  156. package/es/search/Search.mjs +5 -5
  157. package/es/search/index.mjs +2 -2
  158. package/es/share-sheet/ShareSheet.mjs +4 -4
  159. package/es/share-sheet/index.mjs +2 -2
  160. package/es/sidebar/Sidebar.mjs +1 -1
  161. package/es/sidebar/index.mjs +2 -2
  162. package/es/sidebar-item/SidebarItem.mjs +4 -4
  163. package/es/sidebar-item/index.mjs +2 -2
  164. package/es/skeleton/Skeleton.mjs +1 -1
  165. package/es/skeleton/index.mjs +2 -2
  166. package/es/slider/Slider.mjs +2 -2
  167. package/es/slider/index.mjs +2 -2
  168. package/es/step/Step.mjs +3 -3
  169. package/es/step/index.mjs +2 -2
  170. package/es/stepper/Stepper.mjs +1 -1
  171. package/es/stepper/index.mjs +2 -2
  172. package/es/steps/Steps.mjs +1 -1
  173. package/es/steps/index.mjs +2 -2
  174. package/es/sticky/Sticky.mjs +2 -2
  175. package/es/sticky/index.mjs +2 -2
  176. package/es/submit-bar/SubmitBar.mjs +3 -3
  177. package/es/submit-bar/index.mjs +2 -2
  178. package/es/swipe/Swipe.mjs +4 -4
  179. package/es/swipe/index.mjs +2 -2
  180. package/es/swipe-cell/SwipeCell.mjs +3 -3
  181. package/es/swipe-cell/index.mjs +2 -2
  182. package/es/swipe-item/SwipeItem.mjs +3 -3
  183. package/es/swipe-item/index.mjs +2 -2
  184. package/es/switch/Switch.mjs +2 -2
  185. package/es/switch/index.mjs +2 -2
  186. package/es/tab/Tab.mjs +7 -7
  187. package/es/tab/index.mjs +2 -2
  188. package/es/tabbar/Tabbar.mjs +2 -2
  189. package/es/tabbar/index.mjs +2 -2
  190. package/es/tabbar-item/TabbarItem.mjs +5 -5
  191. package/es/tabbar-item/index.mjs +2 -2
  192. package/es/tabs/Tabs.mjs +10 -10
  193. package/es/tabs/TabsContent.mjs +2 -2
  194. package/es/tabs/TabsTitle.mjs +2 -2
  195. package/es/tabs/index.mjs +2 -2
  196. package/es/tabs/utils.mjs +1 -1
  197. package/es/tag/Tag.mjs +2 -2
  198. package/es/tag/index.mjs +2 -2
  199. package/es/toast/Toast.mjs +5 -5
  200. package/es/toast/function-call.mjs +3 -3
  201. package/es/toast/index.mjs +1 -1
  202. package/es/tree-select/TreeSelect.mjs +4 -4
  203. package/es/tree-select/index.mjs +2 -2
  204. package/es/uploader/Uploader.mjs +6 -6
  205. package/es/uploader/UploaderPreviewItem.mjs +5 -5
  206. package/es/uploader/index.mjs +2 -2
  207. package/es/uploader/utils.mjs +1 -1
  208. package/es/utils/create.mjs +4 -4
  209. package/es/utils/deep-assign.mjs +1 -1
  210. package/es/utils/deep-clone.mjs +1 -1
  211. package/es/utils/dom.mjs +1 -1
  212. package/es/utils/format.mjs +3 -3
  213. package/es/utils/index.mjs +9 -9
  214. package/es/utils/interceptor.mjs +2 -2
  215. package/es/utils/mount-component.mjs +2 -2
  216. package/es/utils/validate.mjs +1 -1
  217. package/es/utils/with-install.mjs +1 -1
  218. package/lib/index.d.ts +1 -1
  219. package/lib/index.js +1 -1
  220. package/lib/vant.cjs.js +1 -1
  221. package/lib/vant.cjs.min.js +1 -1
  222. package/lib/vant.es.js +1 -1
  223. package/lib/vant.es.min.js +1 -1
  224. package/lib/vant.js +1 -1
  225. package/lib/vant.min.js +1 -1
  226. package/package.json +1 -1
  227. package/vetur/attributes.json +281 -281
  228. package/vetur/tags.json +86 -86
  229. package/vetur/web-types.json +996 -996
@@ -1,4 +1,4 @@
1
- import { inBrowser } from "../utils";
1
+ import { inBrowser } from "../utils/index.mjs";
2
2
  import { onDeactivated, onBeforeUnmount } from "vue";
3
3
  import { onMountedOrActivated } from "@vant/use";
4
4
  function useVisibilityChange(target, onChange) {
@@ -1,6 +1,6 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { provide, computed, defineComponent } from "vue";
3
- import { kebabCase, makeStringProp, createNamespace } from "../utils";
3
+ import { kebabCase, makeStringProp, createNamespace } from "../utils/index.mjs";
4
4
  const [name, bem] = createNamespace("config-provider");
5
5
  const CONFIG_PROVIDER_KEY = Symbol(name);
6
6
  const configProviderProps = {
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _ConfigProvider from "./ConfigProvider";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _ConfigProvider from "./ConfigProvider.mjs";
3
3
  const ConfigProvider = withInstall(_ConfigProvider);
4
4
  var stdin_default = ConfigProvider;
5
5
  export {
@@ -1,7 +1,7 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "vue";
3
- import { truthProp, makeStringProp, createNamespace } from "../utils";
4
- import { Cell } from "../cell";
3
+ import { truthProp, makeStringProp, createNamespace } from "../utils/index.mjs";
4
+ import { Cell } from "../cell/index.mjs";
5
5
  const [name, bem, t] = createNamespace("contact-card");
6
6
  const contactCardProps = {
7
7
  tel: String,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _ContactCard from "./ContactCard";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _ContactCard from "./ContactCard.mjs";
3
3
  const ContactCard = withInstall(_ContactCard);
4
4
  var stdin_default = ContactCard;
5
5
  export {
@@ -1,11 +1,11 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { watch, reactive, defineComponent } from "vue";
3
- import { isMobile, createNamespace, extend } from "../utils";
4
- import { Cell } from "../cell";
5
- import { Form } from "../form";
6
- import { Field } from "../field";
7
- import { Button } from "../button";
8
- import { Switch } from "../switch";
3
+ import { isMobile, createNamespace, extend } from "../utils/index.mjs";
4
+ import { Cell } from "../cell/index.mjs";
5
+ import { Form } from "../form/index.mjs";
6
+ import { Field } from "../field/index.mjs";
7
+ import { Button } from "../button/index.mjs";
8
+ import { Switch } from "../switch/index.mjs";
9
9
  const [name, bem, t] = createNamespace("contact-edit");
10
10
  const DEFAULT_CONTACT = {
11
11
  tel: "",
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _ContactEdit from "./ContactEdit";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _ContactEdit from "./ContactEdit.mjs";
3
3
  const ContactEdit = withInstall(_ContactEdit);
4
4
  var stdin_default = ContactEdit;
5
5
  export {
@@ -1,12 +1,12 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "vue";
3
- import { createNamespace, unknownProp } from "../utils";
4
- import { Tag } from "../tag";
5
- import { Icon } from "../icon";
6
- import { Cell } from "../cell";
7
- import { Radio } from "../radio";
8
- import { Button } from "../button";
9
- import { RadioGroup } from "../radio-group";
3
+ import { createNamespace, unknownProp } from "../utils/index.mjs";
4
+ import { Tag } from "../tag/index.mjs";
5
+ import { Icon } from "../icon/index.mjs";
6
+ import { Cell } from "../cell/index.mjs";
7
+ import { Radio } from "../radio/index.mjs";
8
+ import { Button } from "../button/index.mjs";
9
+ import { RadioGroup } from "../radio-group/index.mjs";
10
10
  const [name, bem, t] = createNamespace("contact-list");
11
11
  const contactListProps = {
12
12
  list: Array,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _ContactList from "./ContactList";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _ContactList from "./ContactList.mjs";
3
3
  const ContactList = withInstall(_ContactList);
4
4
  var stdin_default = ContactList;
5
5
  export {
@@ -1,9 +1,9 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { watch, computed, defineComponent } from "vue";
3
- import { truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils";
4
- import { parseFormat } from "./utils";
3
+ import { truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
4
+ import { parseFormat } from "./utils.mjs";
5
5
  import { useCountDown } from "@vant/use";
6
- import { useExpose } from "../composables/use-expose";
6
+ import { useExpose } from "../composables/use-expose.mjs";
7
7
  const [name, bem] = createNamespace("count-down");
8
8
  const countDownProps = {
9
9
  time: makeNumericProp(0),
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _CountDown from "./CountDown";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _CountDown from "./CountDown.mjs";
3
3
  const CountDown = withInstall(_CountDown);
4
4
  var stdin_default = CountDown;
5
5
  export {
@@ -1,4 +1,4 @@
1
- import { padZero } from "../utils";
1
+ import { padZero } from "../utils/index.mjs";
2
2
  function parseFormat(format, currentTime) {
3
3
  const { days } = currentTime;
4
4
  let { hours, minutes, seconds, milliseconds } = currentTime;
@@ -1,8 +1,8 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { computed, defineComponent } from "vue";
3
- import { makeStringProp, createNamespace, makeRequiredProp } from "../utils";
4
- import { getDate, formatAmount, formatDiscount } from "./utils";
5
- import { Checkbox } from "../checkbox";
3
+ import { makeStringProp, createNamespace, makeRequiredProp } from "../utils/index.mjs";
4
+ import { getDate, formatAmount, formatDiscount } from "./utils.mjs";
5
+ import { Checkbox } from "../checkbox/index.mjs";
6
6
  const [name, bem, t] = createNamespace("coupon");
7
7
  var stdin_default = defineComponent({
8
8
  name,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Coupon from "./Coupon";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Coupon from "./Coupon.mjs";
3
3
  const Coupon = withInstall(_Coupon);
4
4
  var stdin_default = Coupon;
5
5
  export {
@@ -1,4 +1,4 @@
1
- import { padZero } from "../utils";
1
+ import { padZero } from "../utils/index.mjs";
2
2
  function getDate(timeStamp) {
3
3
  const date = new Date(timeStamp * 1e3);
4
4
  return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(date.getDate())}`;
@@ -1,7 +1,7 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "vue";
3
- import { isDef, truthProp, makeArrayProp, makeStringProp, makeNumericProp, createNamespace } from "../utils";
4
- import { Cell } from "../cell";
3
+ import { isDef, truthProp, makeArrayProp, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
4
+ import { Cell } from "../cell/index.mjs";
5
5
  const [name, bem, t] = createNamespace("coupon-cell");
6
6
  const couponCellProps = {
7
7
  title: String,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _CouponCell from "./CouponCell";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _CouponCell from "./CouponCell.mjs";
3
3
  const CouponCell = withInstall(_CouponCell);
4
4
  var stdin_default = CouponCell;
5
5
  export {
@@ -1,13 +1,13 @@
1
1
  import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
2
2
  import { ref, watch, computed, nextTick, onMounted, defineComponent } from "vue";
3
- import { truthProp, windowHeight, makeArrayProp, makeStringProp, makeNumberProp, createNamespace } from "../utils";
4
- import { useRefs } from "../composables/use-refs";
5
- import { Tab } from "../tab";
6
- import { Tabs } from "../tabs";
7
- import { Empty } from "../empty";
8
- import { Field } from "../field";
9
- import { Button } from "../button";
10
- import { Coupon } from "../coupon";
3
+ import { truthProp, windowHeight, makeArrayProp, makeStringProp, makeNumberProp, createNamespace } from "../utils/index.mjs";
4
+ import { useRefs } from "../composables/use-refs.mjs";
5
+ import { Tab } from "../tab/index.mjs";
6
+ import { Tabs } from "../tabs/index.mjs";
7
+ import { Empty } from "../empty/index.mjs";
8
+ import { Field } from "../field/index.mjs";
9
+ import { Button } from "../button/index.mjs";
10
+ import { Coupon } from "../coupon/index.mjs";
11
11
  import { useRect } from "@vant/use";
12
12
  const [name, bem, t] = createNamespace("coupon-list");
13
13
  const couponListProps = {
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _CouponList from "./CouponList";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _CouponList from "./CouponList.mjs";
3
3
  const CouponList = withInstall(_CouponList);
4
4
  var stdin_default = CouponList;
5
5
  export {
@@ -1,9 +1,9 @@
1
1
  import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  import { ref, watch, computed, nextTick, onMounted, defineComponent } from "vue";
3
- import { pick, clamp, extend, isDate, padZero, makeStringProp, createNamespace } from "../utils";
4
- import { times, sharedProps, getTrueValue, getMonthEndDay, pickerInheritKeys, proxyPickerMethods } from "./utils";
5
- import { useExpose } from "../composables/use-expose";
6
- import { Picker } from "../picker";
3
+ import { pick, clamp, extend, isDate, padZero, makeStringProp, createNamespace } from "../utils/index.mjs";
4
+ import { times, sharedProps, getTrueValue, getMonthEndDay, pickerInheritKeys, proxyPickerMethods } from "./utils.mjs";
5
+ import { useExpose } from "../composables/use-expose.mjs";
6
+ import { Picker } from "../picker/index.mjs";
7
7
  const currentYear = new Date().getFullYear();
8
8
  const [name] = createNamespace("date-picker");
9
9
  var stdin_default = defineComponent({
@@ -1,9 +1,9 @@
1
1
  import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  import { ref, defineComponent } from "vue";
3
- import { pick, extend, createNamespace } from "../utils";
4
- import { useExpose } from "../composables/use-expose";
5
- import TimePicker from "./TimePicker";
6
- import DatePicker from "./DatePicker";
3
+ import { pick, extend, createNamespace } from "../utils/index.mjs";
4
+ import { useExpose } from "../composables/use-expose.mjs";
5
+ import TimePicker from "./TimePicker.mjs";
6
+ import DatePicker from "./DatePicker.mjs";
7
7
  const [name, bem] = createNamespace("datetime-picker");
8
8
  const timePickerPropKeys = Object.keys(TimePicker.props);
9
9
  const datePickerPropKeys = Object.keys(DatePicker.props);
@@ -1,9 +1,9 @@
1
1
  import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  import { ref, watch, computed, nextTick, onMounted, defineComponent } from "vue";
3
- import { pick, clamp, extend, padZero, createNamespace, makeNumericProp } from "../utils";
4
- import { times, sharedProps, pickerInheritKeys, proxyPickerMethods } from "./utils";
5
- import { useExpose } from "../composables/use-expose";
6
- import { Picker } from "../picker";
3
+ import { pick, clamp, extend, padZero, createNamespace, makeNumericProp } from "../utils/index.mjs";
4
+ import { times, sharedProps, pickerInheritKeys, proxyPickerMethods } from "./utils.mjs";
5
+ import { useExpose } from "../composables/use-expose.mjs";
6
+ import { Picker } from "../picker/index.mjs";
7
7
  const [name] = createNamespace("time-picker");
8
8
  var stdin_default = defineComponent({
9
9
  name,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _DatetimePicker from "./DatetimePicker";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _DatetimePicker from "./DatetimePicker.mjs";
3
3
  const DatetimePicker = withInstall(_DatetimePicker);
4
4
  var stdin_default = DatetimePicker;
5
5
  export {
@@ -1,5 +1,5 @@
1
- import { extend } from "../utils";
2
- import { pickerSharedProps } from "../picker/Picker";
1
+ import { extend } from "../utils/index.mjs";
2
+ import { pickerSharedProps } from "../picker/Picker.mjs";
3
3
  const sharedProps = extend({}, pickerSharedProps, {
4
4
  filter: Function,
5
5
  columnsOrder: Array,
@@ -1,11 +1,11 @@
1
1
  import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
2
  import { ref, reactive, withKeys, defineComponent } from "vue";
3
- import { noop, pick, extend, addUnit, truthProp, isFunction, BORDER_TOP, BORDER_LEFT, unknownProp, numericProp, makeStringProp, callInterceptor, createNamespace } from "../utils";
4
- import { popupSharedProps, popupSharedPropKeys } from "../popup/shared";
5
- import { Popup } from "../popup";
6
- import { Button } from "../button";
7
- import { ActionBar } from "../action-bar";
8
- import { ActionBarButton } from "../action-bar-button";
3
+ import { noop, pick, extend, addUnit, truthProp, isFunction, BORDER_TOP, BORDER_LEFT, unknownProp, numericProp, makeStringProp, callInterceptor, createNamespace } from "../utils/index.mjs";
4
+ import { popupSharedProps, popupSharedPropKeys } from "../popup/shared.mjs";
5
+ import { Popup } from "../popup/index.mjs";
6
+ import { Button } from "../button/index.mjs";
7
+ import { ActionBar } from "../action-bar/index.mjs";
8
+ import { ActionBarButton } from "../action-bar-button/index.mjs";
9
9
  const [name, bem, t] = createNamespace("dialog");
10
10
  const dialogProps = extend({}, popupSharedProps, {
11
11
  title: String,
@@ -1,7 +1,7 @@
1
1
  import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
- import { extend, inBrowser, withInstall } from "../utils";
3
- import { mountComponent, usePopupState } from "../utils/mount-component";
4
- import VanDialog from "./Dialog";
2
+ import { extend, inBrowser, withInstall } from "../utils/index.mjs";
3
+ import { mountComponent, usePopupState } from "../utils/mount-component.mjs";
4
+ import VanDialog from "./Dialog.mjs";
5
5
  let instance;
6
6
  function initInstance() {
7
7
  const Wrapper = {
@@ -1,4 +1,4 @@
1
- import { Dialog } from "./function-call";
1
+ import { Dialog } from "./function-call.mjs";
2
2
  var stdin_default = Dialog;
3
3
  export {
4
4
  Dialog,
@@ -1,6 +1,6 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "vue";
3
- import { truthProp, makeStringProp, createNamespace } from "../utils";
3
+ import { truthProp, makeStringProp, createNamespace } from "../utils/index.mjs";
4
4
  const [name, bem] = createNamespace("divider");
5
5
  const dividerProps = {
6
6
  dashed: Boolean,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Divider from "./Divider";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Divider from "./Divider.mjs";
3
3
  const Divider = withInstall(_Divider);
4
4
  var stdin_default = Divider;
5
5
  export {
@@ -1,12 +1,12 @@
1
1
  import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
2
2
  import { reactive, Teleport, defineComponent } from "vue";
3
- import { truthProp, unknownProp, getZIndexStyle, createNamespace, makeArrayProp } from "../utils";
4
- import { DROPDOWN_KEY } from "../dropdown-menu/DropdownMenu";
3
+ import { truthProp, unknownProp, getZIndexStyle, createNamespace, makeArrayProp } from "../utils/index.mjs";
4
+ import { DROPDOWN_KEY } from "../dropdown-menu/DropdownMenu.mjs";
5
5
  import { useParent } from "@vant/use";
6
- import { useExpose } from "../composables/use-expose";
7
- import { Cell } from "../cell";
8
- import { Icon } from "../icon";
9
- import { Popup } from "../popup";
6
+ import { useExpose } from "../composables/use-expose.mjs";
7
+ import { Cell } from "../cell/index.mjs";
8
+ import { Icon } from "../icon/index.mjs";
9
+ import { Popup } from "../popup/index.mjs";
10
10
  const [name, bem] = createNamespace("dropdown-item");
11
11
  const dropdownItemProps = {
12
12
  title: String,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _DropdownItem from "./DropdownItem";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _DropdownItem from "./DropdownItem.mjs";
3
3
  const DropdownItem = withInstall(_DropdownItem);
4
4
  var stdin_default = DropdownItem;
5
5
  export {
@@ -1,7 +1,7 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { ref, computed, defineComponent } from "vue";
3
- import { isDef, truthProp, numericProp, windowHeight, makeStringProp, makeNumericProp, createNamespace, HAPTICS_FEEDBACK } from "../utils";
4
- import { useId } from "../composables/use-id";
3
+ import { isDef, truthProp, numericProp, windowHeight, makeStringProp, makeNumericProp, createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
4
+ import { useId } from "../composables/use-id.mjs";
5
5
  import { useRect, useChildren, useClickAway, useScrollParent, useEventListener } from "@vant/use";
6
6
  const [name, bem] = createNamespace("dropdown-menu");
7
7
  const dropdownMenuProps = {
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _DropdownMenu from "./DropdownMenu";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _DropdownMenu from "./DropdownMenu.mjs";
3
3
  const DropdownMenu = withInstall(_DropdownMenu);
4
4
  var stdin_default = DropdownMenu;
5
5
  export {
@@ -1,7 +1,7 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "vue";
3
- import { getSizeStyle, makeStringProp, createNamespace } from "../utils";
4
- import { renderError, renderSearch, renderNetwork, renderMaterial } from "./Images";
3
+ import { getSizeStyle, makeStringProp, createNamespace } from "../utils/index.mjs";
4
+ import { renderError, renderSearch, renderNetwork, renderMaterial } from "./Images.mjs";
5
5
  const [name, bem] = createNamespace("empty");
6
6
  const PRESET_IMAGES = {
7
7
  error: renderError,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Empty from "./Empty";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Empty from "./Empty.mjs";
3
3
  const Empty = withInstall(_Empty);
4
4
  var stdin_default = Empty;
5
5
  export {
@@ -1,13 +1,13 @@
1
1
  import { createTextVNode as _createTextVNode, mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
2
  import { ref, watch, provide, computed, nextTick, reactive, onMounted, defineComponent } from "vue";
3
- import { isDef, extend, addUnit, toArray, FORM_KEY, numericProp, unknownProp, resetScroll, formatNumber, preventDefault, makeStringProp, makeNumericProp, createNamespace } from "../utils";
4
- import { cutString, runSyncRule, endComposing, mapInputType, startComposing, getRuleMessage, resizeTextarea, getStringLength, runRuleValidator } from "./utils";
5
- import { cellSharedProps } from "../cell/Cell";
3
+ import { isDef, extend, addUnit, toArray, FORM_KEY, numericProp, unknownProp, resetScroll, formatNumber, preventDefault, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
4
+ import { cutString, runSyncRule, endComposing, mapInputType, startComposing, getRuleMessage, resizeTextarea, getStringLength, runRuleValidator } from "./utils.mjs";
5
+ import { cellSharedProps } from "../cell/Cell.mjs";
6
6
  import { CUSTOM_FIELD_INJECTION_KEY, useParent } from "@vant/use";
7
- import { useId } from "../composables/use-id";
8
- import { useExpose } from "../composables/use-expose";
9
- import { Icon } from "../icon";
10
- import { Cell } from "../cell";
7
+ import { useId } from "../composables/use-id.mjs";
8
+ import { useExpose } from "../composables/use-expose.mjs";
9
+ import { Icon } from "../icon/index.mjs";
10
+ import { Cell } from "../cell/index.mjs";
11
11
  const [name, bem] = createNamespace("field");
12
12
  const fieldSharedProps = {
13
13
  id: String,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Field from "./Field";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Field from "./Field.mjs";
3
3
  const Field = withInstall(_Field);
4
4
  var stdin_default = Field;
5
5
  export {
@@ -4,7 +4,7 @@ import {
4
4
  isFunction,
5
5
  getRootScrollTop,
6
6
  setRootScrollTop
7
- } from "../utils";
7
+ } from "../utils/index.mjs";
8
8
  function isEmptyValue(value) {
9
9
  if (Array.isArray(value)) {
10
10
  return !value.length;
package/es/form/Form.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "vue";
3
- import { FORM_KEY, truthProp, numericProp, preventDefault, createNamespace } from "../utils";
3
+ import { FORM_KEY, truthProp, numericProp, preventDefault, createNamespace } from "../utils/index.mjs";
4
4
  import { useChildren } from "@vant/use";
5
- import { useExpose } from "../composables/use-expose";
5
+ import { useExpose } from "../composables/use-expose.mjs";
6
6
  const [name, bem] = createNamespace("form");
7
7
  const formProps = {
8
8
  colon: Boolean,
package/es/form/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Form from "./Form";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Form from "./Form.mjs";
3
3
  const Form = withInstall(_Form);
4
4
  var stdin_default = Form;
5
5
  export {
package/es/grid/Grid.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "vue";
3
- import { createNamespace, addUnit, truthProp, numericProp, makeNumericProp } from "../utils";
4
- import { BORDER_TOP } from "../utils/constant";
3
+ import { createNamespace, addUnit, truthProp, numericProp, makeNumericProp } from "../utils/index.mjs";
4
+ import { BORDER_TOP } from "../utils/constant.mjs";
5
5
  import { useChildren } from "@vant/use";
6
6
  const [name, bem] = createNamespace("grid");
7
7
  const gridProps = {
package/es/grid/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Grid from "./Grid";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Grid from "./Grid.mjs";
3
3
  const Grid = withInstall(_Grid);
4
4
  var stdin_default = Grid;
5
5
  export {
@@ -1,11 +1,11 @@
1
1
  import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  import { computed, defineComponent } from "vue";
3
- import { BORDER, extend, addUnit, numericProp, createNamespace } from "../utils";
4
- import { GRID_KEY } from "../grid/Grid";
3
+ import { BORDER, extend, addUnit, numericProp, createNamespace } from "../utils/index.mjs";
4
+ import { GRID_KEY } from "../grid/Grid.mjs";
5
5
  import { useParent } from "@vant/use";
6
- import { useRoute, routeProps } from "../composables/use-route";
7
- import { Icon } from "../icon";
8
- import { Badge } from "../badge";
6
+ import { useRoute, routeProps } from "../composables/use-route.mjs";
7
+ import { Icon } from "../icon/index.mjs";
8
+ import { Badge } from "../badge/index.mjs";
9
9
  const [name, bem] = createNamespace("grid-item");
10
10
  const gridItemProps = extend({}, routeProps, {
11
11
  dot: Boolean,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _GridItem from "./GridItem";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _GridItem from "./GridItem.mjs";
3
3
  const GridItem = withInstall(_GridItem);
4
4
  var stdin_default = GridItem;
5
5
  export {
package/es/icon/Icon.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
2
  import { inject, computed, defineComponent } from "vue";
3
- import { addUnit, numericProp, makeStringProp, createNamespace } from "../utils";
4
- import { Badge } from "../badge";
5
- import { CONFIG_PROVIDER_KEY } from "../config-provider/ConfigProvider";
3
+ import { addUnit, numericProp, makeStringProp, createNamespace } from "../utils/index.mjs";
4
+ import { Badge } from "../badge/index.mjs";
5
+ import { CONFIG_PROVIDER_KEY } from "../config-provider/ConfigProvider.mjs";
6
6
  const [name, bem] = createNamespace("icon");
7
7
  const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
8
8
  const iconProps = {
package/es/icon/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Icon from "./Icon";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Icon from "./Icon.mjs";
3
3
  const Icon = withInstall(_Icon);
4
4
  var stdin_default = Icon;
5
5
  export {
@@ -1,7 +1,7 @@
1
1
  import { withDirectives as _withDirectives, mergeProps as _mergeProps, resolveDirective as _resolveDirective, createVNode as _createVNode } from "vue";
2
2
  import { ref, watch, computed, nextTick, onBeforeUnmount, defineComponent, getCurrentInstance } from "vue";
3
- import { isDef, addUnit, inBrowser, truthProp, numericProp, makeStringProp, createNamespace } from "../utils";
4
- import { Icon } from "../icon";
3
+ import { isDef, addUnit, inBrowser, truthProp, numericProp, makeStringProp, createNamespace } from "../utils/index.mjs";
4
+ import { Icon } from "../icon/index.mjs";
5
5
  const [name, bem] = createNamespace("image");
6
6
  const imageProps = {
7
7
  src: String,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Image from "./Image";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Image from "./Image.mjs";
3
3
  const Image = withInstall(_Image);
4
4
  var stdin_default = Image;
5
5
  export {
@@ -1,12 +1,12 @@
1
1
  import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
2
  import { ref, watch, nextTick, reactive, onMounted, defineComponent } from "vue";
3
- import { pick, truthProp, unknownProp, windowWidth, windowHeight, makeArrayProp, makeStringProp, makeNumericProp, callInterceptor, createNamespace, HAPTICS_FEEDBACK } from "../utils";
3
+ import { pick, truthProp, unknownProp, windowWidth, windowHeight, makeArrayProp, makeStringProp, makeNumericProp, callInterceptor, createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
4
4
  import { useRect } from "@vant/use";
5
- import { useExpose } from "../composables/use-expose";
6
- import { Icon } from "../icon";
7
- import { Swipe } from "../swipe";
8
- import { Popup } from "../popup";
9
- import ImagePreviewItem from "./ImagePreviewItem";
5
+ import { useExpose } from "../composables/use-expose.mjs";
6
+ import { Icon } from "../icon/index.mjs";
7
+ import { Swipe } from "../swipe/index.mjs";
8
+ import { Popup } from "../popup/index.mjs";
9
+ import ImagePreviewItem from "./ImagePreviewItem.mjs";
10
10
  const [name, bem] = createNamespace("image-preview");
11
11
  const popupProps = ["show", "transition", "overlayStyle", "closeOnPopstate"];
12
12
  const imagePreviewProps = {
@@ -1,10 +1,10 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { watch, computed, reactive, defineComponent } from "vue";
3
- import { clamp, numericProp, preventDefault, createNamespace, makeRequiredProp } from "../utils";
4
- import { useTouch } from "../composables/use-touch";
5
- import { Image } from "../image";
6
- import { Loading } from "../loading";
7
- import { SwipeItem } from "../swipe-item";
3
+ import { clamp, numericProp, preventDefault, createNamespace, makeRequiredProp } from "../utils/index.mjs";
4
+ import { useTouch } from "../composables/use-touch.mjs";
5
+ import { Image } from "../image/index.mjs";
6
+ import { Loading } from "../loading/index.mjs";
7
+ import { SwipeItem } from "../swipe-item/index.mjs";
8
8
  const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
9
9
  const bem = createNamespace("image-preview")[1];
10
10
  var stdin_default = defineComponent({