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.
- package/es/action-bar/ActionBar.mjs +1 -1
- package/es/action-bar/index.mjs +2 -2
- package/es/action-bar-button/ActionBarButton.mjs +5 -5
- package/es/action-bar-button/index.mjs +2 -2
- package/es/action-bar-icon/ActionBarIcon.mjs +5 -5
- package/es/action-bar-icon/index.mjs +2 -2
- package/es/action-sheet/ActionSheet.mjs +5 -5
- package/es/action-sheet/index.mjs +2 -2
- package/es/address-edit/AddressEdit.mjs +11 -11
- package/es/address-edit/AddressEditDetail.mjs +3 -3
- package/es/address-edit/index.mjs +2 -2
- package/es/address-list/AddressList.mjs +4 -4
- package/es/address-list/AddressListItem.mjs +5 -5
- package/es/address-list/index.mjs +2 -2
- package/es/area/Area.mjs +5 -5
- package/es/area/index.mjs +2 -2
- package/es/badge/Badge.mjs +1 -1
- package/es/badge/index.mjs +2 -2
- package/es/button/Button.mjs +4 -4
- package/es/button/index.mjs +2 -2
- package/es/calendar/Calendar.mjs +9 -9
- package/es/calendar/CalendarDay.mjs +2 -2
- package/es/calendar/CalendarHeader.mjs +2 -2
- package/es/calendar/CalendarMonth.mjs +6 -6
- package/es/calendar/index.mjs +2 -2
- package/es/calendar/utils.mjs +1 -1
- package/es/card/Card.mjs +3 -3
- package/es/card/index.mjs +2 -2
- package/es/cascader/Cascader.mjs +4 -4
- package/es/cascader/index.mjs +2 -2
- package/es/cell/Cell.mjs +3 -3
- package/es/cell/index.mjs +2 -2
- package/es/cell-group/CellGroup.mjs +1 -1
- package/es/cell-group/index.mjs +2 -2
- package/es/checkbox/Checkbox.mjs +4 -4
- package/es/checkbox/Checker.mjs +2 -2
- package/es/checkbox/index.mjs +2 -2
- package/es/checkbox-group/CheckboxGroup.mjs +2 -2
- package/es/checkbox-group/index.mjs +2 -2
- package/es/circle/Circle.mjs +1 -1
- package/es/circle/index.mjs +2 -2
- package/es/col/Col.mjs +2 -2
- package/es/col/index.mjs +2 -2
- package/es/collapse/Collapse.mjs +1 -1
- package/es/collapse/index.mjs +2 -2
- package/es/collapse-item/CollapseItem.mjs +6 -6
- package/es/collapse-item/index.mjs +2 -2
- package/es/composables/use-expose.mjs +1 -1
- package/es/composables/use-lock-scroll.mjs +2 -2
- package/es/composables/use-placeholder.mjs +1 -1
- package/es/composables/use-visibility-change.mjs +1 -1
- package/es/config-provider/ConfigProvider.mjs +1 -1
- package/es/config-provider/index.mjs +2 -2
- package/es/contact-card/ContactCard.mjs +2 -2
- package/es/contact-card/index.mjs +2 -2
- package/es/contact-edit/ContactEdit.mjs +6 -6
- package/es/contact-edit/index.mjs +2 -2
- package/es/contact-list/ContactList.mjs +7 -7
- package/es/contact-list/index.mjs +2 -2
- package/es/count-down/CountDown.mjs +3 -3
- package/es/count-down/index.mjs +2 -2
- package/es/count-down/utils.mjs +1 -1
- package/es/coupon/Coupon.mjs +3 -3
- package/es/coupon/index.mjs +2 -2
- package/es/coupon/utils.mjs +1 -1
- package/es/coupon-cell/CouponCell.mjs +2 -2
- package/es/coupon-cell/index.mjs +2 -2
- package/es/coupon-list/CouponList.mjs +8 -8
- package/es/coupon-list/index.mjs +2 -2
- package/es/datetime-picker/DatePicker.mjs +4 -4
- package/es/datetime-picker/DatetimePicker.mjs +4 -4
- package/es/datetime-picker/TimePicker.mjs +4 -4
- package/es/datetime-picker/index.mjs +2 -2
- package/es/datetime-picker/utils.mjs +2 -2
- package/es/dialog/Dialog.mjs +6 -6
- package/es/dialog/function-call.mjs +3 -3
- package/es/dialog/index.mjs +1 -1
- package/es/divider/Divider.mjs +1 -1
- package/es/divider/index.mjs +2 -2
- package/es/dropdown-item/DropdownItem.mjs +6 -6
- package/es/dropdown-item/index.mjs +2 -2
- package/es/dropdown-menu/DropdownMenu.mjs +2 -2
- package/es/dropdown-menu/index.mjs +2 -2
- package/es/empty/Empty.mjs +2 -2
- package/es/empty/index.mjs +2 -2
- package/es/field/Field.mjs +7 -7
- package/es/field/index.mjs +2 -2
- package/es/field/utils.mjs +1 -1
- package/es/form/Form.mjs +2 -2
- package/es/form/index.mjs +2 -2
- package/es/grid/Grid.mjs +2 -2
- package/es/grid/index.mjs +2 -2
- package/es/grid-item/GridItem.mjs +5 -5
- package/es/grid-item/index.mjs +2 -2
- package/es/icon/Icon.mjs +3 -3
- package/es/icon/index.mjs +2 -2
- package/es/image/Image.mjs +2 -2
- package/es/image/index.mjs +2 -2
- package/es/image-preview/ImagePreview.mjs +6 -6
- package/es/image-preview/ImagePreviewItem.mjs +5 -5
- package/es/image-preview/function-call.mjs +3 -3
- package/es/image-preview/index.mjs +1 -1
- package/es/index-anchor/IndexAnchor.mjs +4 -4
- package/es/index-anchor/index.mjs +2 -2
- package/es/index-bar/IndexBar.mjs +3 -3
- package/es/index-bar/index.mjs +2 -2
- package/es/index.d.ts +1 -1
- package/es/index.mjs +172 -172
- package/es/lazyload/index.mjs +1 -1
- package/es/lazyload/vue-lazyload/index.mjs +4 -4
- package/es/lazyload/vue-lazyload/lazy-container.mjs +1 -1
- package/es/lazyload/vue-lazyload/lazy-image.mjs +2 -2
- package/es/lazyload/vue-lazyload/lazy.mjs +3 -3
- package/es/lazyload/vue-lazyload/listener.mjs +2 -2
- package/es/list/List.mjs +4 -4
- package/es/list/index.mjs +2 -2
- package/es/loading/Loading.mjs +1 -1
- package/es/loading/index.mjs +2 -2
- package/es/locale/index.mjs +2 -2
- package/es/nav-bar/NavBar.mjs +3 -3
- package/es/nav-bar/index.mjs +2 -2
- package/es/notice-bar/NoticeBar.mjs +4 -4
- package/es/notice-bar/index.mjs +2 -2
- package/es/notify/Notify.mjs +3 -3
- package/es/notify/function-call.mjs +3 -3
- package/es/notify/index.mjs +1 -1
- package/es/number-keyboard/NumberKeyboard.mjs +2 -2
- package/es/number-keyboard/NumberKeyboardKey.mjs +3 -3
- package/es/number-keyboard/index.mjs +2 -2
- package/es/overlay/Overlay.mjs +2 -2
- package/es/overlay/index.mjs +2 -2
- package/es/pagination/Pagination.mjs +1 -1
- package/es/pagination/index.mjs +2 -2
- package/es/password-input/PasswordInput.mjs +1 -1
- package/es/password-input/index.mjs +2 -2
- package/es/picker/Picker.mjs +4 -4
- package/es/picker/PickerColumn.mjs +4 -4
- package/es/picker/index.mjs +2 -2
- package/es/popover/Popover.mjs +3 -3
- package/es/popover/index.mjs +2 -2
- package/es/popup/Popup.mjs +8 -8
- package/es/popup/index.mjs +2 -2
- package/es/popup/shared.mjs +1 -1
- package/es/progress/Progress.mjs +1 -1
- package/es/progress/index.mjs +2 -2
- package/es/pull-refresh/PullRefresh.mjs +3 -3
- package/es/pull-refresh/index.mjs +2 -2
- package/es/radio/Radio.mjs +3 -3
- package/es/radio/index.mjs +2 -2
- package/es/radio-group/RadioGroup.mjs +1 -1
- package/es/radio-group/index.mjs +2 -2
- package/es/rate/Rate.mjs +4 -4
- package/es/rate/index.mjs +2 -2
- package/es/row/Row.mjs +1 -1
- package/es/row/index.mjs +2 -2
- package/es/search/Search.mjs +5 -5
- package/es/search/index.mjs +2 -2
- package/es/share-sheet/ShareSheet.mjs +4 -4
- package/es/share-sheet/index.mjs +2 -2
- package/es/sidebar/Sidebar.mjs +1 -1
- package/es/sidebar/index.mjs +2 -2
- package/es/sidebar-item/SidebarItem.mjs +4 -4
- package/es/sidebar-item/index.mjs +2 -2
- package/es/skeleton/Skeleton.mjs +1 -1
- package/es/skeleton/index.mjs +2 -2
- package/es/slider/Slider.mjs +2 -2
- package/es/slider/index.mjs +2 -2
- package/es/step/Step.mjs +3 -3
- package/es/step/index.mjs +2 -2
- package/es/stepper/Stepper.mjs +1 -1
- package/es/stepper/index.mjs +2 -2
- package/es/steps/Steps.mjs +1 -1
- package/es/steps/index.mjs +2 -2
- package/es/sticky/Sticky.mjs +2 -2
- package/es/sticky/index.mjs +2 -2
- package/es/submit-bar/SubmitBar.mjs +3 -3
- package/es/submit-bar/index.mjs +2 -2
- package/es/swipe/Swipe.mjs +4 -4
- package/es/swipe/index.mjs +2 -2
- package/es/swipe-cell/SwipeCell.mjs +3 -3
- package/es/swipe-cell/index.mjs +2 -2
- package/es/swipe-item/SwipeItem.mjs +3 -3
- package/es/swipe-item/index.mjs +2 -2
- package/es/switch/Switch.mjs +2 -2
- package/es/switch/index.mjs +2 -2
- package/es/tab/Tab.mjs +7 -7
- package/es/tab/index.mjs +2 -2
- package/es/tabbar/Tabbar.mjs +2 -2
- package/es/tabbar/index.mjs +2 -2
- package/es/tabbar-item/TabbarItem.mjs +5 -5
- package/es/tabbar-item/index.mjs +2 -2
- package/es/tabs/Tabs.mjs +10 -10
- package/es/tabs/TabsContent.mjs +2 -2
- package/es/tabs/TabsTitle.mjs +2 -2
- package/es/tabs/index.mjs +2 -2
- package/es/tabs/utils.mjs +1 -1
- package/es/tag/Tag.mjs +2 -2
- package/es/tag/index.mjs +2 -2
- package/es/toast/Toast.mjs +5 -5
- package/es/toast/function-call.mjs +3 -3
- package/es/toast/index.mjs +1 -1
- package/es/tree-select/TreeSelect.mjs +4 -4
- package/es/tree-select/index.mjs +2 -2
- package/es/uploader/Uploader.mjs +6 -6
- package/es/uploader/UploaderPreviewItem.mjs +5 -5
- package/es/uploader/index.mjs +2 -2
- package/es/uploader/utils.mjs +1 -1
- package/es/utils/create.mjs +4 -4
- package/es/utils/deep-assign.mjs +1 -1
- package/es/utils/deep-clone.mjs +1 -1
- package/es/utils/dom.mjs +1 -1
- package/es/utils/format.mjs +3 -3
- package/es/utils/index.mjs +9 -9
- package/es/utils/interceptor.mjs +2 -2
- package/es/utils/mount-component.mjs +2 -2
- package/es/utils/validate.mjs +1 -1
- package/es/utils/with-install.mjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/vant.cjs.js +1 -1
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +1 -1
- package/lib/vant.es.min.js +1 -1
- package/lib/vant.js +1 -1
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +281 -281
- package/vetur/tags.json +86 -86
- package/vetur/web-types.json +996 -996
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { truthProp, createNamespace } from "../utils";
|
3
|
+
import { truthProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
import { useChildren } from "@vant/use";
|
5
5
|
const [name, bem] = createNamespace("action-bar");
|
6
6
|
const ACTION_BAR_KEY = Symbol(name);
|
package/es/action-bar/index.mjs
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { computed, defineComponent } from "vue";
|
3
|
-
import { extend, createNamespace } from "../utils";
|
4
|
-
import { ACTION_BAR_KEY } from "../action-bar/ActionBar";
|
3
|
+
import { extend, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { ACTION_BAR_KEY } from "../action-bar/ActionBar.mjs";
|
5
5
|
import { useParent } from "@vant/use";
|
6
|
-
import { useExpose } from "../composables/use-expose";
|
7
|
-
import { useRoute, routeProps } from "../composables/use-route";
|
8
|
-
import { Button } from "../button";
|
6
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
7
|
+
import { useRoute, routeProps } from "../composables/use-route.mjs";
|
8
|
+
import { Button } from "../button/index.mjs";
|
9
9
|
const [name, bem] = createNamespace("action-bar-button");
|
10
10
|
const actionBarButtonProps = extend({}, routeProps, {
|
11
11
|
type: String,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _ActionBarButton from "./ActionBarButton";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _ActionBarButton from "./ActionBarButton.mjs";
|
3
3
|
const ActionBarButton = withInstall(_ActionBarButton);
|
4
4
|
var stdin_default = ActionBarButton;
|
5
5
|
export {
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { extend, createNamespace, unknownProp, numericProp } from "../utils";
|
4
|
-
import { ACTION_BAR_KEY } from "../action-bar/ActionBar";
|
3
|
+
import { extend, createNamespace, unknownProp, numericProp } from "../utils/index.mjs";
|
4
|
+
import { ACTION_BAR_KEY } from "../action-bar/ActionBar.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("action-bar-icon");
|
10
10
|
const actionBarIconProps = extend({}, routeProps, {
|
11
11
|
dot: Boolean,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _ActionBarIcon from "./ActionBarIcon";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _ActionBarIcon from "./ActionBarIcon.mjs";
|
3
3
|
const ActionBarIcon = withInstall(_ActionBarIcon);
|
4
4
|
var stdin_default = ActionBarIcon;
|
5
5
|
export {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
import { nextTick, defineComponent } from "vue";
|
3
|
-
import { pick, extend, truthProp, makeArrayProp, makeStringProp, createNamespace, HAPTICS_FEEDBACK } from "../utils";
|
4
|
-
import { Icon } from "../icon";
|
5
|
-
import { Popup } from "../popup";
|
6
|
-
import { Loading } from "../loading";
|
7
|
-
import { popupSharedProps, popupSharedPropKeys } from "../popup/shared";
|
3
|
+
import { pick, extend, truthProp, makeArrayProp, makeStringProp, createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
|
4
|
+
import { Icon } from "../icon/index.mjs";
|
5
|
+
import { Popup } from "../popup/index.mjs";
|
6
|
+
import { Loading } from "../loading/index.mjs";
|
7
|
+
import { popupSharedProps, popupSharedPropKeys } from "../popup/shared.mjs";
|
8
8
|
const [name, bem] = createNamespace("action-sheet");
|
9
9
|
const actionSheetProps = extend({}, popupSharedProps, {
|
10
10
|
title: String,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _ActionSheet from "./ActionSheet";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _ActionSheet from "./ActionSheet.mjs";
|
3
3
|
const ActionSheet = withInstall(_ActionSheet);
|
4
4
|
var stdin_default = ActionSheet;
|
5
5
|
export {
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, computed, nextTick, reactive, defineComponent } from "vue";
|
3
|
-
import { extend, isObject, isMobile, truthProp, numericProp, makeArrayProp, makeNumericProp, createNamespace } from "../utils";
|
4
|
-
import { useExpose } from "../composables/use-expose";
|
5
|
-
import { Area } from "../area";
|
6
|
-
import { Cell } from "../cell";
|
7
|
-
import { Form } from "../form";
|
8
|
-
import { Field } from "../field";
|
9
|
-
import { Popup } from "../popup";
|
10
|
-
import { Toast } from "../toast";
|
11
|
-
import { Button } from "../button";
|
12
|
-
import { Switch } from "../switch";
|
13
|
-
import AddressEditDetail from "./AddressEditDetail";
|
3
|
+
import { extend, isObject, isMobile, truthProp, numericProp, makeArrayProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
5
|
+
import { Area } from "../area/index.mjs";
|
6
|
+
import { Cell } from "../cell/index.mjs";
|
7
|
+
import { Form } from "../form/index.mjs";
|
8
|
+
import { Field } from "../field/index.mjs";
|
9
|
+
import { Popup } from "../popup/index.mjs";
|
10
|
+
import { Toast } from "../toast/index.mjs";
|
11
|
+
import { Button } from "../button/index.mjs";
|
12
|
+
import { Switch } from "../switch/index.mjs";
|
13
|
+
import AddressEditDetail from "./AddressEditDetail.mjs";
|
14
14
|
const [name, bem, t] = createNamespace("address-edit");
|
15
15
|
const DEFAULT_DATA = {
|
16
16
|
name: "",
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Fragment as _Fragment, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, defineComponent } from "vue";
|
3
|
-
import { createNamespace, numericProp } from "../utils";
|
4
|
-
import { Cell } from "../cell";
|
5
|
-
import { Field } from "../field";
|
3
|
+
import { createNamespace, numericProp } from "../utils/index.mjs";
|
4
|
+
import { Cell } from "../cell/index.mjs";
|
5
|
+
import { Field } from "../field/index.mjs";
|
6
6
|
const [name, bem] = createNamespace("address-edit-detail");
|
7
7
|
const t = createNamespace("address-edit")[2];
|
8
8
|
var stdin_default = defineComponent({
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _AddressEdit from "./AddressEdit";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _AddressEdit from "./AddressEdit.mjs";
|
3
3
|
const AddressEdit = withInstall(_AddressEdit);
|
4
4
|
var stdin_default = AddressEdit;
|
5
5
|
export {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { truthProp, numericProp, makeArrayProp, createNamespace } from "../utils";
|
4
|
-
import { Button } from "../button";
|
5
|
-
import { RadioGroup } from "../radio-group";
|
6
|
-
import AddressListItem from "./AddressListItem";
|
3
|
+
import { truthProp, numericProp, makeArrayProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { Button } from "../button/index.mjs";
|
5
|
+
import { RadioGroup } from "../radio-group/index.mjs";
|
6
|
+
import AddressListItem from "./AddressListItem.mjs";
|
7
7
|
const [name, bem, t] = createNamespace("address-list");
|
8
8
|
const addressListProps = {
|
9
9
|
list: makeArrayProp(),
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { extend, createNamespace, makeRequiredProp } from "../utils";
|
4
|
-
import { Tag } from "../tag";
|
5
|
-
import { Icon } from "../icon";
|
6
|
-
import { Cell } from "../cell";
|
7
|
-
import { Radio } from "../radio";
|
3
|
+
import { extend, createNamespace, makeRequiredProp } 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
8
|
const [name, bem] = createNamespace("address-item");
|
9
9
|
var stdin_default = defineComponent({
|
10
10
|
name,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _AddressList from "./AddressList";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _AddressList from "./AddressList.mjs";
|
3
3
|
const AddressList = withInstall(_AddressList);
|
4
4
|
var stdin_default = AddressList;
|
5
5
|
export {
|
package/es/area/Area.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { ref, watch, computed, reactive, nextTick, onMounted, defineComponent } from "vue";
|
3
|
-
import { deepClone } from "../utils/deep-clone";
|
4
|
-
import { pick, extend, makeArrayProp, makeNumericProp, createNamespace } from "../utils";
|
5
|
-
import { pickerSharedProps } from "../picker/Picker";
|
6
|
-
import { useExpose } from "../composables/use-expose";
|
7
|
-
import { Picker } from "../picker";
|
3
|
+
import { deepClone } from "../utils/deep-clone.mjs";
|
4
|
+
import { pick, extend, makeArrayProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
5
|
+
import { pickerSharedProps } from "../picker/Picker.mjs";
|
6
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
7
|
+
import { Picker } from "../picker/index.mjs";
|
8
8
|
const [name, bem] = createNamespace("area");
|
9
9
|
const EMPTY_CODE = "000000";
|
10
10
|
const INHERIT_SLOTS = ["title", "cancel", "confirm", "toolbar", "columns-top", "columns-bottom"];
|
package/es/area/index.mjs
CHANGED
package/es/badge/Badge.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { computed, defineComponent } from "vue";
|
3
|
-
import { isDef, addUnit, isNumeric, truthProp, numericProp, makeStringProp, createNamespace } from "../utils";
|
3
|
+
import { isDef, addUnit, isNumeric, truthProp, numericProp, makeStringProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
const [name, bem] = createNamespace("badge");
|
5
5
|
const badgeProps = {
|
6
6
|
dot: Boolean,
|
package/es/badge/index.mjs
CHANGED
package/es/button/Button.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { extend, numericProp, preventDefault, makeStringProp, createNamespace, BORDER_SURROUND } from "../utils";
|
4
|
-
import { useRoute, routeProps } from "../composables/use-route";
|
5
|
-
import { Icon } from "../icon";
|
6
|
-
import { Loading } from "../loading";
|
3
|
+
import { extend, numericProp, preventDefault, makeStringProp, createNamespace, BORDER_SURROUND } from "../utils/index.mjs";
|
4
|
+
import { useRoute, routeProps } from "../composables/use-route.mjs";
|
5
|
+
import { Icon } from "../icon/index.mjs";
|
6
|
+
import { Loading } from "../loading/index.mjs";
|
7
7
|
const [name, bem] = createNamespace("button");
|
8
8
|
const buttonProps = extend({}, routeProps, {
|
9
9
|
tag: makeStringProp("button"),
|
package/es/button/index.mjs
CHANGED
package/es/calendar/Calendar.mjs
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { ref, watch, computed, defineComponent } from "vue";
|
3
|
-
import { pick, isDate, truthProp, numericProp, getScrollTop, makeStringProp, makeNumericProp } from "../utils";
|
4
|
-
import { t, bem, name, getToday, cloneDate, cloneDates, getPrevDay, getNextDay, compareDay, calcDateNum, compareMonth, getDayByOffset } from "./utils";
|
3
|
+
import { pick, isDate, truthProp, numericProp, getScrollTop, makeStringProp, makeNumericProp } from "../utils/index.mjs";
|
4
|
+
import { t, bem, name, getToday, cloneDate, cloneDates, getPrevDay, getNextDay, compareDay, calcDateNum, compareMonth, getDayByOffset } from "./utils.mjs";
|
5
5
|
import { raf, useRect, onMountedOrActivated } from "@vant/use";
|
6
|
-
import { useRefs } from "../composables/use-refs";
|
7
|
-
import { useExpose } from "../composables/use-expose";
|
8
|
-
import { Popup } from "../popup";
|
9
|
-
import { Button } from "../button";
|
10
|
-
import { Toast } from "../toast";
|
11
|
-
import CalendarMonth from "./CalendarMonth";
|
12
|
-
import CalendarHeader from "./CalendarHeader";
|
6
|
+
import { useRefs } from "../composables/use-refs.mjs";
|
7
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
8
|
+
import { Popup } from "../popup/index.mjs";
|
9
|
+
import { Button } from "../button/index.mjs";
|
10
|
+
import { Toast } from "../toast/index.mjs";
|
11
|
+
import CalendarMonth from "./CalendarMonth.mjs";
|
12
|
+
import CalendarHeader from "./CalendarHeader.mjs";
|
13
13
|
const calendarProps = {
|
14
14
|
show: Boolean,
|
15
15
|
type: makeStringProp("single"),
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { computed, defineComponent } from "vue";
|
3
|
-
import { makeNumberProp, createNamespace, makeRequiredProp } from "../utils";
|
4
|
-
import { bem } from "./utils";
|
3
|
+
import { makeNumberProp, createNamespace, makeRequiredProp } from "../utils/index.mjs";
|
4
|
+
import { bem } from "./utils.mjs";
|
5
5
|
const [name] = createNamespace("calendar-day");
|
6
6
|
var stdin_default = defineComponent({
|
7
7
|
name,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { createNamespace } from "../utils";
|
4
|
-
import { t, bem } from "./utils";
|
3
|
+
import { createNamespace } from "../utils/index.mjs";
|
4
|
+
import { t, bem } from "./utils.mjs";
|
5
5
|
const [name] = createNamespace("calendar-header");
|
6
6
|
var stdin_default = defineComponent({
|
7
7
|
name,
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, computed, defineComponent } from "vue";
|
3
|
-
import { pick, addUnit, numericProp, setScrollTop, createNamespace, makeRequiredProp } from "../utils";
|
4
|
-
import { getMonthEndDay } from "../datetime-picker/utils";
|
5
|
-
import { t, bem, compareDay, getPrevDay, getNextDay, formatMonthTitle } from "./utils";
|
3
|
+
import { pick, addUnit, numericProp, setScrollTop, createNamespace, makeRequiredProp } from "../utils/index.mjs";
|
4
|
+
import { getMonthEndDay } from "../datetime-picker/utils.mjs";
|
5
|
+
import { t, bem, compareDay, getPrevDay, getNextDay, formatMonthTitle } from "./utils.mjs";
|
6
6
|
import { useRect, useToggle } from "@vant/use";
|
7
|
-
import { useExpose } from "../composables/use-expose";
|
8
|
-
import { useHeight } from "../composables/use-height";
|
9
|
-
import CalendarDay from "./CalendarDay";
|
7
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
8
|
+
import { useHeight } from "../composables/use-height.mjs";
|
9
|
+
import CalendarDay from "./CalendarDay.mjs";
|
10
10
|
const [name] = createNamespace("calendar-month");
|
11
11
|
const calendarMonthProps = {
|
12
12
|
date: makeRequiredProp(Date),
|
package/es/calendar/index.mjs
CHANGED
package/es/calendar/utils.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { createNamespace } from "../utils";
|
1
|
+
import { createNamespace } from "../utils/index.mjs";
|
2
2
|
const [name, bem, t] = createNamespace("calendar");
|
3
3
|
const formatMonthTitle = (date) => t("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
4
4
|
function compareMonth(date1, date2) {
|
package/es/card/Card.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { isDef, numericProp, makeStringProp, createNamespace } from "../utils";
|
4
|
-
import { Tag } from "../tag";
|
5
|
-
import { Image } from "../image";
|
3
|
+
import { isDef, numericProp, makeStringProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { Tag } from "../tag/index.mjs";
|
5
|
+
import { Image } from "../image/index.mjs";
|
6
6
|
const [name, bem] = createNamespace("card");
|
7
7
|
const cardProps = {
|
8
8
|
tag: String,
|
package/es/card/index.mjs
CHANGED
package/es/cascader/Cascader.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, nextTick, defineComponent } from "vue";
|
3
|
-
import { extend, truthProp, numericProp, makeArrayProp, makeStringProp, createNamespace, HAPTICS_FEEDBACK } from "../utils";
|
4
|
-
import { Tab } from "../tab";
|
5
|
-
import { Tabs } from "../tabs";
|
6
|
-
import { Icon } from "../icon";
|
3
|
+
import { extend, truthProp, numericProp, makeArrayProp, makeStringProp, createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
|
4
|
+
import { Tab } from "../tab/index.mjs";
|
5
|
+
import { Tabs } from "../tabs/index.mjs";
|
6
|
+
import { Icon } from "../icon/index.mjs";
|
7
7
|
const [name, bem, t] = createNamespace("cascader");
|
8
8
|
const cascaderProps = {
|
9
9
|
title: String,
|
package/es/cascader/index.mjs
CHANGED
package/es/cell/Cell.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { isDef, extend, truthProp, unknownProp, numericProp, createNamespace } from "../utils";
|
4
|
-
import { useRoute, routeProps } from "../composables/use-route";
|
5
|
-
import { Icon } from "../icon";
|
3
|
+
import { isDef, extend, truthProp, unknownProp, numericProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { useRoute, routeProps } from "../composables/use-route.mjs";
|
5
|
+
import { Icon } from "../icon/index.mjs";
|
6
6
|
const [name, bem] = createNamespace("cell");
|
7
7
|
const cellSharedProps = {
|
8
8
|
icon: String,
|
package/es/cell/index.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Fragment as _Fragment, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { truthProp, createNamespace, BORDER_TOP_BOTTOM } from "../utils";
|
3
|
+
import { truthProp, createNamespace, BORDER_TOP_BOTTOM } from "../utils/index.mjs";
|
4
4
|
const [name, bem] = createNamespace("cell-group");
|
5
5
|
const cellGroupProps = {
|
6
6
|
title: String,
|
package/es/cell-group/index.mjs
CHANGED
package/es/checkbox/Checkbox.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { watch, computed, defineComponent } from "vue";
|
3
|
-
import { createNamespace, extend, pick, truthProp } from "../utils";
|
4
|
-
import { CHECKBOX_GROUP_KEY } from "../checkbox-group/CheckboxGroup";
|
3
|
+
import { createNamespace, extend, pick, truthProp } from "../utils/index.mjs";
|
4
|
+
import { CHECKBOX_GROUP_KEY } from "../checkbox-group/CheckboxGroup.mjs";
|
5
5
|
import { useParent, useCustomFieldValue } from "@vant/use";
|
6
|
-
import { useExpose } from "../composables/use-expose";
|
7
|
-
import Checker, { checkerProps } from "./Checker";
|
6
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
7
|
+
import Checker, { checkerProps } from "./Checker.mjs";
|
8
8
|
const [name, bem] = createNamespace("checkbox");
|
9
9
|
const checkboxProps = extend({}, checkerProps, {
|
10
10
|
bindGroup: truthProp
|
package/es/checkbox/Checker.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, computed, defineComponent } from "vue";
|
3
|
-
import { extend, addUnit, truthProp, numericProp, unknownProp, makeStringProp, makeRequiredProp } from "../utils";
|
4
|
-
import { Icon } from "../icon";
|
3
|
+
import { extend, addUnit, truthProp, numericProp, unknownProp, makeStringProp, makeRequiredProp } from "../utils/index.mjs";
|
4
|
+
import { Icon } from "../icon/index.mjs";
|
5
5
|
const checkerProps = {
|
6
6
|
name: unknownProp,
|
7
7
|
shape: makeStringProp("round"),
|
package/es/checkbox/index.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { watch, defineComponent } from "vue";
|
3
|
-
import { numericProp, createNamespace, makeArrayProp } from "../utils";
|
3
|
+
import { numericProp, createNamespace, makeArrayProp } from "../utils/index.mjs";
|
4
4
|
import { useChildren, useCustomFieldValue } from "@vant/use";
|
5
|
-
import { useExpose } from "../composables/use-expose";
|
5
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
6
6
|
const [name, bem] = createNamespace("checkbox-group");
|
7
7
|
const checkboxGroupProps = {
|
8
8
|
max: numericProp,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _CheckboxGroup from "./CheckboxGroup";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _CheckboxGroup from "./CheckboxGroup.mjs";
|
3
3
|
const CheckboxGroup = withInstall(_CheckboxGroup);
|
4
4
|
var stdin_default = CheckboxGroup;
|
5
5
|
export {
|
package/es/circle/Circle.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { watch, computed, defineComponent } from "vue";
|
3
3
|
import { raf, cancelRaf } from "@vant/use";
|
4
|
-
import { isObject, truthProp, numericProp, getSizeStyle, makeStringProp, makeNumberProp, makeNumericProp, createNamespace } from "../utils";
|
4
|
+
import { isObject, truthProp, numericProp, getSizeStyle, makeStringProp, makeNumberProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
5
5
|
const [name, bem] = createNamespace("circle");
|
6
6
|
let uid = 0;
|
7
7
|
const format = (rate) => Math.min(Math.max(+rate, 0), 100);
|
package/es/circle/index.mjs
CHANGED
package/es/col/Col.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { computed, defineComponent } from "vue";
|
3
|
-
import { numericProp, createNamespace, makeNumericProp, makeStringProp } from "../utils";
|
3
|
+
import { numericProp, createNamespace, makeNumericProp, makeStringProp } from "../utils/index.mjs";
|
4
4
|
import { useParent } from "@vant/use";
|
5
|
-
import { ROW_KEY } from "../row/Row";
|
5
|
+
import { ROW_KEY } from "../row/Row.mjs";
|
6
6
|
const [name, bem] = createNamespace("col");
|
7
7
|
const colProps = {
|
8
8
|
tag: makeStringProp("div"),
|
package/es/col/index.mjs
CHANGED
package/es/collapse/Collapse.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { truthProp, createNamespace, BORDER_TOP_BOTTOM } from "../utils";
|
3
|
+
import { truthProp, createNamespace, BORDER_TOP_BOTTOM } from "../utils/index.mjs";
|
4
4
|
import { useChildren } from "@vant/use";
|
5
5
|
const [name, bem] = createNamespace("collapse");
|
6
6
|
const COLLAPSE_KEY = Symbol(name);
|
package/es/collapse/index.mjs
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { ref, watch, computed, nextTick, defineComponent } from "vue";
|
3
|
-
import { cellSharedProps } from "../cell/Cell";
|
4
|
-
import { pick, extend, truthProp, numericProp, createNamespace } from "../utils";
|
5
|
-
import { COLLAPSE_KEY } from "../collapse/Collapse";
|
3
|
+
import { cellSharedProps } from "../cell/Cell.mjs";
|
4
|
+
import { pick, extend, truthProp, numericProp, createNamespace } from "../utils/index.mjs";
|
5
|
+
import { COLLAPSE_KEY } from "../collapse/Collapse.mjs";
|
6
6
|
import { raf, doubleRaf, useParent } from "@vant/use";
|
7
|
-
import { useExpose } from "../composables/use-expose";
|
8
|
-
import { useLazyRender } from "../composables/use-lazy-render";
|
9
|
-
import { Cell } from "../cell";
|
7
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
8
|
+
import { useLazyRender } from "../composables/use-lazy-render.mjs";
|
9
|
+
import { Cell } from "../cell/index.mjs";
|
10
10
|
const [name, bem] = createNamespace("collapse-item");
|
11
11
|
const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
|
12
12
|
const collapseItemProps = extend({}, cellSharedProps, {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _CollapseItem from "./CollapseItem";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _CollapseItem from "./CollapseItem.mjs";
|
3
3
|
const CollapseItem = withInstall(_CollapseItem);
|
4
4
|
var stdin_default = CollapseItem;
|
5
5
|
export {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { watch, onBeforeUnmount, onDeactivated } from "vue";
|
2
2
|
import { getScrollParent, onMountedOrActivated } from "@vant/use";
|
3
|
-
import { useTouch } from "./use-touch";
|
4
|
-
import { preventDefault } from "../utils";
|
3
|
+
import { useTouch } from "./use-touch.mjs";
|
4
|
+
import { preventDefault } from "../utils/index.mjs";
|
5
5
|
let totalLockCount = 0;
|
6
6
|
const BODY_LOCK_CLASS = "van-overflow-hidden";
|
7
7
|
function useLockScroll(rootRef, shouldLock) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
|
-
import { useHeight } from "./use-height";
|
2
|
+
import { useHeight } from "./use-height.mjs";
|
3
3
|
function usePlaceholder(contentRef, bem) {
|
4
4
|
const height = useHeight(contentRef);
|
5
5
|
return (renderContent) => _createVNode("div", {
|