vant 3.5.0-beta.0 → 3.5.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 +12 -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.d.ts +8 -0
- package/es/dialog/Dialog.mjs +12 -6
- package/es/dialog/function-call.d.ts +10 -0
- package/es/dialog/function-call.mjs +5 -3
- package/es/dialog/index.mjs +1 -1
- package/es/dialog/types.d.ts +3 -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 +5 -5
- package/es/picker/PickerColumn.mjs +6 -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 +9 -9
- 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.d.ts +2 -1
- package/es/pull-refresh/PullRefresh.mjs +8 -4
- package/es/pull-refresh/index.d.ts +2 -1
- 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 +4 -3
- 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.d.ts +5 -6
- package/es/toast/function-call.mjs +3 -3
- package/es/toast/index.mjs +1 -1
- package/es/toast/types.d.ts +10 -1
- package/es/tree-select/TreeSelect.mjs +4 -4
- package/es/tree-select/index.mjs +2 -2
- package/es/uploader/Uploader.d.ts +3 -3
- package/es/uploader/Uploader.mjs +6 -6
- package/es/uploader/UploaderPreviewItem.mjs +5 -5
- package/es/uploader/index.d.ts +2 -2
- 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/calendar/Calendar.js +3 -0
- package/lib/dialog/Dialog.d.ts +8 -0
- package/lib/dialog/Dialog.js +6 -0
- package/lib/dialog/function-call.d.ts +10 -0
- package/lib/dialog/function-call.js +2 -0
- package/lib/dialog/types.d.ts +3 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/picker/Picker.js +1 -1
- package/lib/picker/PickerColumn.js +2 -0
- package/lib/popup/Popup.js +1 -1
- package/lib/pull-refresh/PullRefresh.d.ts +2 -1
- package/lib/pull-refresh/PullRefresh.js +5 -1
- package/lib/pull-refresh/index.d.ts +2 -1
- package/lib/switch/Switch.js +2 -1
- package/lib/toast/function-call.d.ts +5 -6
- package/lib/toast/types.d.ts +10 -1
- package/lib/uploader/Uploader.d.ts +3 -3
- package/lib/uploader/index.d.ts +2 -2
- package/lib/vant.cjs.js +23 -5
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +23 -5
- package/lib/vant.es.min.js +23 -5
- package/lib/vant.js +23 -5
- package/lib/vant.min.js +1 -1
- package/package.json +3 -3
- package/vetur/attributes.json +398 -390
- package/vetur/tags.json +140 -138
- package/vetur/web-types.json +1526 -1493
package/es/share-sheet/index.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _ShareSheet from "./ShareSheet";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _ShareSheet from "./ShareSheet.mjs";
|
3
3
|
const ShareSheet = withInstall(_ShareSheet);
|
4
4
|
var stdin_default = ShareSheet;
|
5
5
|
export {
|
package/es/sidebar/Sidebar.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { makeNumericProp, createNamespace } from "../utils";
|
3
|
+
import { makeNumericProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
import { useChildren } from "@vant/use";
|
5
5
|
const [name, bem] = createNamespace("sidebar");
|
6
6
|
const SIDEBAR_KEY = Symbol(name);
|
package/es/sidebar/index.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { extend, numericProp, createNamespace } from "../utils";
|
4
|
-
import { SIDEBAR_KEY } from "../sidebar/Sidebar";
|
3
|
+
import { extend, numericProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { SIDEBAR_KEY } from "../sidebar/Sidebar.mjs";
|
5
5
|
import { useParent } from "@vant/use";
|
6
|
-
import { useRoute, routeProps } from "../composables/use-route";
|
7
|
-
import { Badge } from "../badge";
|
6
|
+
import { useRoute, routeProps } from "../composables/use-route.mjs";
|
7
|
+
import { Badge } from "../badge/index.mjs";
|
8
8
|
const [name, bem] = createNamespace("sidebar-item");
|
9
9
|
const sidebarItemProps = extend({}, routeProps, {
|
10
10
|
dot: Boolean,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _SidebarItem from "./SidebarItem";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _SidebarItem from "./SidebarItem.mjs";
|
3
3
|
const SidebarItem = withInstall(_SidebarItem);
|
4
4
|
var stdin_default = SidebarItem;
|
5
5
|
export {
|
package/es/skeleton/Skeleton.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { addUnit, truthProp, numericProp, getSizeStyle, makeStringProp, makeNumericProp, createNamespace } from "../utils";
|
3
|
+
import { addUnit, truthProp, numericProp, getSizeStyle, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
const [name, bem] = createNamespace("skeleton");
|
5
5
|
const DEFAULT_ROW_WIDTH = "100%";
|
6
6
|
const DEFAULT_LAST_ROW_WIDTH = "60%";
|
package/es/skeleton/index.mjs
CHANGED
package/es/slider/Slider.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, computed, defineComponent } from "vue";
|
3
|
-
import { clamp, addUnit, addNumber, numericProp, getSizeStyle, preventDefault, stopPropagation, createNamespace, makeNumericProp } from "../utils";
|
3
|
+
import { clamp, addUnit, addNumber, numericProp, getSizeStyle, preventDefault, stopPropagation, createNamespace, makeNumericProp } from "../utils/index.mjs";
|
4
4
|
import { useRect, useCustomFieldValue } from "@vant/use";
|
5
|
-
import { useTouch } from "../composables/use-touch";
|
5
|
+
import { useTouch } from "../composables/use-touch.mjs";
|
6
6
|
const [name, bem] = createNamespace("slider");
|
7
7
|
const sliderProps = {
|
8
8
|
min: makeNumericProp(0),
|
package/es/slider/index.mjs
CHANGED
package/es/step/Step.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { computed, defineComponent } from "vue";
|
3
|
-
import { BORDER, createNamespace } from "../utils";
|
4
|
-
import { STEPS_KEY } from "../steps/Steps";
|
3
|
+
import { BORDER, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { STEPS_KEY } from "../steps/Steps.mjs";
|
5
5
|
import { useParent } from "@vant/use";
|
6
|
-
import { Icon } from "../icon";
|
6
|
+
import { Icon } from "../icon/index.mjs";
|
7
7
|
const [name, bem] = createNamespace("step");
|
8
8
|
var stdin_default = defineComponent({
|
9
9
|
name,
|
package/es/step/index.mjs
CHANGED
package/es/stepper/Stepper.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { withDirectives as _withDirectives, createVNode as _createVNode, mergeProps as _mergeProps, vShow as _vShow } from "vue";
|
2
2
|
import { ref, watch, computed, nextTick, defineComponent } from "vue";
|
3
|
-
import { isDef, addUnit, addNumber, truthProp, resetScroll, numericProp, formatNumber, getSizeStyle, preventDefault, createNamespace, callInterceptor, makeNumericProp, HAPTICS_FEEDBACK } from "../utils";
|
3
|
+
import { isDef, addUnit, addNumber, truthProp, resetScroll, numericProp, formatNumber, getSizeStyle, preventDefault, createNamespace, callInterceptor, makeNumericProp, HAPTICS_FEEDBACK } from "../utils/index.mjs";
|
4
4
|
import { useCustomFieldValue } from "@vant/use";
|
5
5
|
const [name, bem] = createNamespace("stepper");
|
6
6
|
const LONG_PRESS_INTERVAL = 200;
|
package/es/stepper/index.mjs
CHANGED
package/es/steps/Steps.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { makeStringProp, makeNumericProp, createNamespace } from "../utils";
|
3
|
+
import { makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
import { useChildren } from "@vant/use";
|
5
5
|
const [name, bem] = createNamespace("steps");
|
6
6
|
const stepsProps = {
|
package/es/steps/index.mjs
CHANGED
package/es/sticky/Sticky.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, computed, reactive, defineComponent } from "vue";
|
3
|
-
import { extend, isHidden, unitToPx, numericProp, getScrollTop, getZIndexStyle, makeStringProp, makeNumericProp, createNamespace } from "../utils";
|
3
|
+
import { extend, isHidden, unitToPx, numericProp, getScrollTop, getZIndexStyle, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
import { useRect, useEventListener, useScrollParent } from "@vant/use";
|
5
|
-
import { useVisibilityChange } from "../composables/use-visibility-change";
|
5
|
+
import { useVisibilityChange } from "../composables/use-visibility-change.mjs";
|
6
6
|
const [name, bem] = createNamespace("sticky");
|
7
7
|
const stickyProps = {
|
8
8
|
zIndex: numericProp,
|
package/es/sticky/index.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils";
|
4
|
-
import { Icon } from "../icon";
|
5
|
-
import { Button } from "../button";
|
3
|
+
import { truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { Icon } from "../icon/index.mjs";
|
5
|
+
import { Button } from "../button/index.mjs";
|
6
6
|
const [name, bem, t] = createNamespace("submit-bar");
|
7
7
|
const submitBarProps = {
|
8
8
|
tip: String,
|
package/es/submit-bar/index.mjs
CHANGED
package/es/swipe/Swipe.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, reactive, computed, onMounted, onActivated, onDeactivated, onBeforeUnmount, defineComponent, nextTick } from "vue";
|
3
|
-
import { clamp, isHidden, truthProp, numericProp, windowWidth, windowHeight, preventDefault, createNamespace, makeNumericProp } from "../utils";
|
3
|
+
import { clamp, isHidden, truthProp, numericProp, windowWidth, windowHeight, preventDefault, createNamespace, makeNumericProp } from "../utils/index.mjs";
|
4
4
|
import { doubleRaf, useChildren, usePageVisibility } from "@vant/use";
|
5
|
-
import { useTouch } from "../composables/use-touch";
|
6
|
-
import { useExpose } from "../composables/use-expose";
|
7
|
-
import { onPopupReopen } from "../composables/on-popup-reopen";
|
5
|
+
import { useTouch } from "../composables/use-touch.mjs";
|
6
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
7
|
+
import { onPopupReopen } from "../composables/on-popup-reopen.mjs";
|
8
8
|
const [name, bem] = createNamespace("swipe");
|
9
9
|
const swipeProps = {
|
10
10
|
loop: truthProp,
|
package/es/swipe/index.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, reactive, computed, defineComponent } from "vue";
|
3
|
-
import { clamp, isDef, numericProp, preventDefault, callInterceptor, createNamespace, makeNumericProp } from "../utils";
|
3
|
+
import { clamp, isDef, numericProp, preventDefault, callInterceptor, createNamespace, makeNumericProp } from "../utils/index.mjs";
|
4
4
|
import { useRect, useClickAway } from "@vant/use";
|
5
|
-
import { useTouch } from "../composables/use-touch";
|
6
|
-
import { useExpose } from "../composables/use-expose";
|
5
|
+
import { useTouch } from "../composables/use-touch.mjs";
|
6
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
7
7
|
const [name, bem] = createNamespace("swipe-cell");
|
8
8
|
const swipeCellProps = {
|
9
9
|
name: makeNumericProp(""),
|
package/es/swipe-cell/index.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { computed, nextTick, reactive, onMounted, defineComponent } from "vue";
|
3
|
-
import { createNamespace } from "../utils";
|
4
|
-
import { SWIPE_KEY } from "../swipe/Swipe";
|
3
|
+
import { createNamespace } from "../utils/index.mjs";
|
4
|
+
import { SWIPE_KEY } from "../swipe/Swipe.mjs";
|
5
5
|
import { useParent } from "@vant/use";
|
6
|
-
import { useExpose } from "../composables/use-expose";
|
6
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
7
7
|
const [name, bem] = createNamespace("swipe-item");
|
8
8
|
var stdin_default = defineComponent({
|
9
9
|
name,
|
package/es/swipe-item/index.mjs
CHANGED
package/es/switch/Switch.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { addUnit, numericProp, unknownProp, createNamespace } from "../utils";
|
3
|
+
import { addUnit, numericProp, unknownProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
import { useCustomFieldValue } from "@vant/use";
|
5
|
-
import { Loading } from "../loading";
|
5
|
+
import { Loading } from "../loading/index.mjs";
|
6
6
|
const [name, bem] = createNamespace("switch");
|
7
7
|
const switchProps = {
|
8
8
|
size: numericProp,
|
@@ -50,6 +50,7 @@ var stdin_default = defineComponent({
|
|
50
50
|
};
|
51
51
|
useCustomFieldValue(() => props.modelValue);
|
52
52
|
return () => {
|
53
|
+
var _a;
|
53
54
|
const {
|
54
55
|
size,
|
55
56
|
loading,
|
@@ -75,7 +76,7 @@ var stdin_default = defineComponent({
|
|
75
76
|
"onClick": onClick
|
76
77
|
}, [_createVNode("div", {
|
77
78
|
"class": bem("node")
|
78
|
-
}, [renderLoading()])]);
|
79
|
+
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
79
80
|
};
|
80
81
|
}
|
81
82
|
});
|
package/es/switch/index.mjs
CHANGED
package/es/tab/Tab.mjs
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, provide, computed, nextTick, defineComponent } from "vue";
|
3
|
-
import { extend, truthProp, unknownProp, numericProp, createNamespace } from "../utils";
|
4
|
-
import { TABS_KEY } from "../tabs/Tabs";
|
3
|
+
import { extend, truthProp, unknownProp, numericProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { TABS_KEY } from "../tabs/Tabs.mjs";
|
5
5
|
import { useParent } from "@vant/use";
|
6
|
-
import { useId } from "../composables/use-id";
|
7
|
-
import { useExpose } from "../composables/use-expose";
|
8
|
-
import { routeProps } from "../composables/use-route";
|
9
|
-
import { TAB_STATUS_KEY } from "../composables/use-tab-status";
|
10
|
-
import { SwipeItem } from "../swipe-item";
|
6
|
+
import { useId } from "../composables/use-id.mjs";
|
7
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
8
|
+
import { routeProps } from "../composables/use-route.mjs";
|
9
|
+
import { TAB_STATUS_KEY } from "../composables/use-tab-status.mjs";
|
10
|
+
import { SwipeItem } from "../swipe-item/index.mjs";
|
11
11
|
const [name, bem] = createNamespace("tab");
|
12
12
|
const tabProps = extend({}, routeProps, {
|
13
13
|
dot: Boolean,
|
package/es/tab/index.mjs
CHANGED
package/es/tabbar/Tabbar.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, defineComponent } from "vue";
|
3
|
-
import { truthProp, numericProp, getZIndexStyle, createNamespace, callInterceptor, makeNumericProp, BORDER_TOP_BOTTOM } from "../utils";
|
3
|
+
import { truthProp, numericProp, getZIndexStyle, createNamespace, callInterceptor, makeNumericProp, BORDER_TOP_BOTTOM } from "../utils/index.mjs";
|
4
4
|
import { useChildren } from "@vant/use";
|
5
|
-
import { usePlaceholder } from "../composables/use-placeholder";
|
5
|
+
import { usePlaceholder } from "../composables/use-placeholder.mjs";
|
6
6
|
const [name, bem] = createNamespace("tabbar");
|
7
7
|
const tabbarProps = {
|
8
8
|
route: Boolean,
|
package/es/tabbar/index.mjs
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
import { computed, defineComponent, getCurrentInstance } from "vue";
|
3
|
-
import { createNamespace, extend, isObject, numericProp } from "../utils";
|
4
|
-
import { TABBAR_KEY } from "../tabbar/Tabbar";
|
3
|
+
import { createNamespace, extend, isObject, numericProp } from "../utils/index.mjs";
|
4
|
+
import { TABBAR_KEY } from "../tabbar/Tabbar.mjs";
|
5
5
|
import { useParent } from "@vant/use";
|
6
|
-
import { routeProps, useRoute } from "../composables/use-route";
|
7
|
-
import { Icon } from "../icon";
|
8
|
-
import { Badge } from "../badge";
|
6
|
+
import { routeProps, useRoute } 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("tabbar-item");
|
10
10
|
const tabbarItemProps = extend({}, routeProps, {
|
11
11
|
dot: Boolean,
|
package/es/tabbar-item/index.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _TabbarItem from "./TabbarItem";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _TabbarItem from "./TabbarItem.mjs";
|
3
3
|
const TabbarItem = withInstall(_TabbarItem);
|
4
4
|
var stdin_default = TabbarItem;
|
5
5
|
export {
|
package/es/tabs/Tabs.mjs
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { ref, watch, computed, reactive, nextTick, onActivated, defineComponent, getCurrentInstance } from "vue";
|
3
|
-
import { pick, isDef, addUnit, isHidden, unitToPx, truthProp, numericProp, windowWidth, getElementTop, makeStringProp, callInterceptor, createNamespace, makeNumericProp, setRootScrollTop, BORDER_TOP_BOTTOM } from "../utils";
|
4
|
-
import { scrollLeftTo, scrollTopTo } from "./utils";
|
3
|
+
import { pick, isDef, addUnit, isHidden, unitToPx, truthProp, numericProp, windowWidth, getElementTop, makeStringProp, callInterceptor, createNamespace, makeNumericProp, setRootScrollTop, BORDER_TOP_BOTTOM } from "../utils/index.mjs";
|
4
|
+
import { scrollLeftTo, scrollTopTo } from "./utils.mjs";
|
5
5
|
import { useRect, useChildren, useScrollParent, useEventListener, onMountedOrActivated } from "@vant/use";
|
6
|
-
import { useId } from "../composables/use-id";
|
7
|
-
import { route } from "../composables/use-route";
|
8
|
-
import { useRefs } from "../composables/use-refs";
|
9
|
-
import { useExpose } from "../composables/use-expose";
|
10
|
-
import { onPopupReopen } from "../composables/on-popup-reopen";
|
11
|
-
import { Sticky } from "../sticky";
|
12
|
-
import TabsTitle from "./TabsTitle";
|
13
|
-
import TabsContent from "./TabsContent";
|
6
|
+
import { useId } from "../composables/use-id.mjs";
|
7
|
+
import { route } from "../composables/use-route.mjs";
|
8
|
+
import { useRefs } from "../composables/use-refs.mjs";
|
9
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
10
|
+
import { onPopupReopen } from "../composables/on-popup-reopen.mjs";
|
11
|
+
import { Sticky } from "../sticky/index.mjs";
|
12
|
+
import TabsTitle from "./TabsTitle.mjs";
|
13
|
+
import TabsContent from "./TabsContent.mjs";
|
14
14
|
const [name, bem] = createNamespace("tabs");
|
15
15
|
const tabsProps = {
|
16
16
|
type: makeStringProp("line"),
|
package/es/tabs/TabsContent.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, onMounted, defineComponent } from "vue";
|
3
|
-
import { numericProp, makeRequiredProp, createNamespace } from "../utils";
|
4
|
-
import { Swipe } from "../swipe";
|
3
|
+
import { numericProp, makeRequiredProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { Swipe } from "../swipe/index.mjs";
|
5
5
|
const [name, bem] = createNamespace("tabs");
|
6
6
|
var stdin_default = defineComponent({
|
7
7
|
name,
|
package/es/tabs/TabsTitle.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { computed, defineComponent } from "vue";
|
3
|
-
import { isDef, truthProp, numericProp, createNamespace } from "../utils";
|
4
|
-
import { Badge } from "../badge";
|
3
|
+
import { isDef, truthProp, numericProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { Badge } from "../badge/index.mjs";
|
5
5
|
const [name, bem] = createNamespace("tab");
|
6
6
|
var stdin_default = defineComponent({
|
7
7
|
name,
|
package/es/tabs/index.mjs
CHANGED
package/es/tabs/utils.mjs
CHANGED
package/es/tag/Tag.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { Transition, defineComponent } from "vue";
|
3
|
-
import { truthProp, makeStringProp, createNamespace, HAPTICS_FEEDBACK } from "../utils";
|
4
|
-
import { Icon } from "../icon";
|
3
|
+
import { truthProp, makeStringProp, createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
|
4
|
+
import { Icon } from "../icon/index.mjs";
|
5
5
|
const [name, bem] = createNamespace("tag");
|
6
6
|
const tagProps = {
|
7
7
|
size: String,
|
package/es/tag/index.mjs
CHANGED
package/es/toast/Toast.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
import { watch, onMounted, onUnmounted, defineComponent } from "vue";
|
3
|
-
import { pick, isDef, unknownProp, numericProp, makeStringProp, makeNumberProp, createNamespace } from "../utils";
|
4
|
-
import { lockClick } from "./lock-click";
|
5
|
-
import { Icon } from "../icon";
|
6
|
-
import { Popup } from "../popup";
|
7
|
-
import { Loading } from "../loading";
|
3
|
+
import { pick, isDef, unknownProp, numericProp, makeStringProp, makeNumberProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { lockClick } from "./lock-click.mjs";
|
5
|
+
import { Icon } from "../icon/index.mjs";
|
6
|
+
import { Popup } from "../popup/index.mjs";
|
7
|
+
import { Loading } from "../loading/index.mjs";
|
8
8
|
const [name, bem] = createNamespace("toast");
|
9
9
|
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
10
10
|
const toastProps = {
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import { type App } from 'vue';
|
2
|
-
import {
|
3
|
-
|
4
|
-
declare function Toast(options?: string | ToastOptions): ComponentInstance;
|
2
|
+
import type { ToastType, ToastOptions, ToastWrapperInstance } from './types';
|
3
|
+
declare function Toast(options?: string | ToastOptions): ToastWrapperInstance;
|
5
4
|
declare namespace Toast {
|
6
|
-
var loading: (options: string | ToastOptions) =>
|
7
|
-
var success: (options: string | ToastOptions) =>
|
8
|
-
var fail: (options: string | ToastOptions) =>
|
5
|
+
var loading: (options: string | ToastOptions) => ToastWrapperInstance;
|
6
|
+
var success: (options: string | ToastOptions) => ToastWrapperInstance;
|
7
|
+
var fail: (options: string | ToastOptions) => ToastWrapperInstance;
|
9
8
|
var clear: (all?: boolean | undefined) => void;
|
10
9
|
var setDefaultOptions: {
|
11
10
|
(options: ToastOptions): void;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { ref, watch, getCurrentInstance } from "vue";
|
3
|
-
import { extend, isObject, inBrowser, withInstall } from "../utils";
|
4
|
-
import { mountComponent, usePopupState } from "../utils/mount-component";
|
5
|
-
import VanToast from "./Toast";
|
3
|
+
import { extend, isObject, inBrowser, withInstall } from "../utils/index.mjs";
|
4
|
+
import { mountComponent, usePopupState } from "../utils/mount-component.mjs";
|
5
|
+
import VanToast from "./Toast.mjs";
|
6
6
|
const defaultOptions = {
|
7
7
|
icon: "",
|
8
8
|
type: "text",
|
package/es/toast/index.mjs
CHANGED
package/es/toast/types.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Toast } from './function-call';
|
2
|
-
import type { TeleportProps } from 'vue';
|
2
|
+
import type { ComponentPublicInstance, TeleportProps } from 'vue';
|
3
3
|
import type { LoadingType } from '../loading';
|
4
4
|
import type { Numeric } from '../utils';
|
5
5
|
export declare type ToastType = 'text' | 'loading' | 'success' | 'fail' | 'html';
|
@@ -31,3 +31,12 @@ declare module '@vue/runtime-core' {
|
|
31
31
|
$toast: typeof Toast;
|
32
32
|
}
|
33
33
|
}
|
34
|
+
export declare type ToastWrapperInstance = ComponentPublicInstance<{
|
35
|
+
message: Numeric;
|
36
|
+
}, {
|
37
|
+
clear: () => void;
|
38
|
+
/**
|
39
|
+
* @private
|
40
|
+
*/
|
41
|
+
open: (props: Record<string, any>) => void;
|
42
|
+
}>;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { addUnit, makeArrayProp, makeStringProp, makeNumericProp, createNamespace } from "../utils";
|
4
|
-
import { Icon } from "../icon";
|
5
|
-
import { Sidebar } from "../sidebar";
|
6
|
-
import { SidebarItem } from "../sidebar-item";
|
3
|
+
import { addUnit, makeArrayProp, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { Icon } from "../icon/index.mjs";
|
5
|
+
import { Sidebar } from "../sidebar/index.mjs";
|
6
|
+
import { SidebarItem } from "../sidebar-item/index.mjs";
|
7
7
|
const [name, bem] = createNamespace("tree-select");
|
8
8
|
const treeSelectProps = {
|
9
9
|
max: makeNumericProp(Infinity),
|
package/es/tree-select/index.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _TreeSelect from "./TreeSelect";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _TreeSelect from "./TreeSelect.mjs";
|
3
3
|
const TreeSelect = withInstall(_TreeSelect);
|
4
4
|
var stdin_default = TreeSelect;
|
5
5
|
export {
|
@@ -54,7 +54,7 @@ declare const uploaderProps: {
|
|
54
54
|
type: BooleanConstructor;
|
55
55
|
default: true;
|
56
56
|
};
|
57
|
-
previewOptions: PropType<ImagePreviewOptions
|
57
|
+
previewOptions: PropType<Partial<ImagePreviewOptions>>;
|
58
58
|
previewFullImage: {
|
59
59
|
type: BooleanConstructor;
|
60
60
|
default: true;
|
@@ -116,7 +116,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
116
116
|
type: BooleanConstructor;
|
117
117
|
default: true;
|
118
118
|
};
|
119
|
-
previewOptions: PropType<ImagePreviewOptions
|
119
|
+
previewOptions: PropType<Partial<ImagePreviewOptions>>;
|
120
120
|
previewFullImage: {
|
121
121
|
type: BooleanConstructor;
|
122
122
|
default: true;
|
@@ -176,7 +176,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
176
176
|
type: BooleanConstructor;
|
177
177
|
default: true;
|
178
178
|
};
|
179
|
-
previewOptions: PropType<ImagePreviewOptions
|
179
|
+
previewOptions: PropType<Partial<ImagePreviewOptions>>;
|
180
180
|
previewFullImage: {
|
181
181
|
type: BooleanConstructor;
|
182
182
|
default: true;
|