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
@@ -11,9 +11,9 @@ import {
|
|
11
11
|
hasIntersectionObserver,
|
12
12
|
modeType,
|
13
13
|
ImageCache
|
14
|
-
} from "./util";
|
15
|
-
import { isObject } from "../../utils";
|
16
|
-
import ReactiveListener from "./listener";
|
14
|
+
} from "./util.mjs";
|
15
|
+
import { isObject } from "../../utils/index.mjs";
|
16
|
+
import ReactiveListener from "./listener.mjs";
|
17
17
|
const DEFAULT_URL = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
|
18
18
|
const DEFAULT_EVENTS = [
|
19
19
|
"scroll",
|
package/es/list/List.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, nextTick, onUpdated, onMounted, defineComponent } from "vue";
|
3
|
-
import { isHidden, truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils";
|
3
|
+
import { isHidden, truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
import { useRect, useScrollParent, useEventListener } from "@vant/use";
|
5
|
-
import { useExpose } from "../composables/use-expose";
|
6
|
-
import { useTabStatus } from "../composables/use-tab-status";
|
7
|
-
import { Loading } from "../loading";
|
5
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
6
|
+
import { useTabStatus } from "../composables/use-tab-status.mjs";
|
7
|
+
import { Loading } from "../loading/index.mjs";
|
8
8
|
const [name, bem, t] = createNamespace("list");
|
9
9
|
const listProps = {
|
10
10
|
error: Boolean,
|
package/es/list/index.mjs
CHANGED
package/es/loading/Loading.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { computed, defineComponent } from "vue";
|
3
|
-
import { extend, addUnit, numericProp, getSizeStyle, makeStringProp, createNamespace } from "../utils";
|
3
|
+
import { extend, addUnit, numericProp, getSizeStyle, makeStringProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
const [name, bem] = createNamespace("loading");
|
5
5
|
const SpinIcon = Array(12).fill(null).map((_, index) => _createVNode("i", {
|
6
6
|
"class": bem("line", String(index + 1))
|
package/es/loading/index.mjs
CHANGED
package/es/locale/index.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref, reactive } from "vue";
|
2
|
-
import { deepAssign } from "../utils/deep-assign";
|
3
|
-
import defaultMessages from "./lang/zh-CN";
|
2
|
+
import { deepAssign } from "../utils/deep-assign.mjs";
|
3
|
+
import defaultMessages from "./lang/zh-CN.mjs";
|
4
4
|
const lang = ref("zh-CN");
|
5
5
|
const messages = reactive({
|
6
6
|
"zh-CN": defaultMessages
|
package/es/nav-bar/NavBar.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, BORDER_BOTTOM, getZIndexStyle, createNamespace, HAPTICS_FEEDBACK } from "../utils";
|
4
|
-
import { usePlaceholder } from "../composables/use-placeholder";
|
5
|
-
import { Icon } from "../icon";
|
3
|
+
import { truthProp, numericProp, BORDER_BOTTOM, getZIndexStyle, createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
|
4
|
+
import { usePlaceholder } from "../composables/use-placeholder.mjs";
|
5
|
+
import { Icon } from "../icon/index.mjs";
|
6
6
|
const [name, bem] = createNamespace("nav-bar");
|
7
7
|
const navBarProps = {
|
8
8
|
title: String,
|
package/es/nav-bar/index.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, reactive, defineComponent } from "vue";
|
3
|
-
import { isDef, createNamespace, makeNumericProp } from "../utils";
|
3
|
+
import { isDef, createNamespace, makeNumericProp } from "../utils/index.mjs";
|
4
4
|
import { raf, useRect, doubleRaf, useEventListener, onMountedOrActivated } from "@vant/use";
|
5
|
-
import { useExpose } from "../composables/use-expose";
|
6
|
-
import { onPopupReopen } from "../composables/on-popup-reopen";
|
7
|
-
import { Icon } from "../icon";
|
5
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
6
|
+
import { onPopupReopen } from "../composables/on-popup-reopen.mjs";
|
7
|
+
import { Icon } from "../icon/index.mjs";
|
8
8
|
const [name, bem] = createNamespace("notice-bar");
|
9
9
|
const noticeBarProps = {
|
10
10
|
text: String,
|
package/es/notice-bar/index.mjs
CHANGED
package/es/notify/Notify.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { extend, numericProp, unknownProp, makeStringProp, createNamespace } from "../utils";
|
4
|
-
import { Popup } from "../popup";
|
5
|
-
import { popupSharedProps } from "../popup/shared";
|
3
|
+
import { extend, numericProp, unknownProp, makeStringProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { Popup } from "../popup/index.mjs";
|
5
|
+
import { popupSharedProps } from "../popup/shared.mjs";
|
6
6
|
const [name, bem] = createNamespace("notify");
|
7
7
|
const notifyProps = extend({}, popupSharedProps, {
|
8
8
|
type: makeStringProp("danger"),
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
|
-
import { extend, isObject, inBrowser, withInstall } from "../utils";
|
3
|
-
import { mountComponent, usePopupState } from "../utils/mount-component";
|
4
|
-
import VanNotify from "./Notify";
|
2
|
+
import { extend, isObject, inBrowser, withInstall } from "../utils/index.mjs";
|
3
|
+
import { mountComponent, usePopupState } from "../utils/mount-component.mjs";
|
4
|
+
import VanNotify from "./Notify.mjs";
|
5
5
|
let timer;
|
6
6
|
let instance;
|
7
7
|
const parseOptions = (message) => isObject(message) ? message : {
|
package/es/notify/index.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, computed, Teleport, Transition, defineComponent } from "vue";
|
3
|
-
import { truthProp, numericProp, getZIndexStyle, makeStringProp, makeNumericProp, stopPropagation, createNamespace, HAPTICS_FEEDBACK } from "../utils";
|
3
|
+
import { truthProp, numericProp, getZIndexStyle, makeStringProp, makeNumericProp, stopPropagation, createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
|
4
4
|
import { useClickAway } from "@vant/use";
|
5
|
-
import NumberKeyboardKey from "./NumberKeyboardKey";
|
5
|
+
import NumberKeyboardKey from "./NumberKeyboardKey.mjs";
|
6
6
|
const [name, bem] = createNamespace("number-keyboard");
|
7
7
|
const numberKeyboardProps = {
|
8
8
|
show: Boolean,
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, defineComponent } from "vue";
|
3
|
-
import { numericProp, createNamespace, preventDefault } from "../utils";
|
4
|
-
import { useTouch } from "../composables/use-touch";
|
5
|
-
import { Loading } from "../loading";
|
3
|
+
import { numericProp, createNamespace, preventDefault } from "../utils/index.mjs";
|
4
|
+
import { useTouch } from "../composables/use-touch.mjs";
|
5
|
+
import { Loading } from "../loading/index.mjs";
|
6
6
|
const [name, bem] = createNamespace("key");
|
7
7
|
const CollapseIcon = _createVNode("svg", {
|
8
8
|
"class": bem("collapse-icon"),
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _NumberKeyboard from "./NumberKeyboard";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _NumberKeyboard from "./NumberKeyboard.mjs";
|
3
3
|
const NumberKeyboard = withInstall(_NumberKeyboard);
|
4
4
|
var stdin_default = NumberKeyboard;
|
5
5
|
export {
|
package/es/overlay/Overlay.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { withDirectives as _withDirectives, createVNode as _createVNode, vShow as _vShow } from "vue";
|
2
2
|
import { Transition, defineComponent } from "vue";
|
3
|
-
import { noop, isDef, extend, truthProp, numericProp, unknownProp, preventDefault, createNamespace, getZIndexStyle } from "../utils";
|
4
|
-
import { useLazyRender } from "../composables/use-lazy-render";
|
3
|
+
import { noop, isDef, extend, truthProp, numericProp, unknownProp, preventDefault, createNamespace, getZIndexStyle } from "../utils/index.mjs";
|
4
|
+
import { useLazyRender } from "../composables/use-lazy-render.mjs";
|
5
5
|
const [name, bem] = createNamespace("overlay");
|
6
6
|
const overlayProps = {
|
7
7
|
show: Boolean,
|
package/es/overlay/index.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { computed, watchEffect, defineComponent } from "vue";
|
3
|
-
import { clamp, makeStringProp, makeNumberProp, makeNumericProp, createNamespace, BORDER_SURROUND } from "../utils";
|
3
|
+
import { clamp, makeStringProp, makeNumberProp, makeNumericProp, createNamespace, BORDER_SURROUND } from "../utils/index.mjs";
|
4
4
|
const [name, bem, t] = createNamespace("pagination");
|
5
5
|
const makePage = (number, text, active) => ({
|
6
6
|
number,
|
package/es/pagination/index.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _Pagination from "./Pagination";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _Pagination from "./Pagination.mjs";
|
3
3
|
const Pagination = withInstall(_Pagination);
|
4
4
|
var stdin_default = Pagination;
|
5
5
|
export {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { addUnit, truthProp, numericProp, BORDER_LEFT, makeStringProp, BORDER_SURROUND, createNamespace, makeNumericProp } from "../utils";
|
3
|
+
import { addUnit, truthProp, numericProp, BORDER_LEFT, makeStringProp, BORDER_SURROUND, createNamespace, makeNumericProp } from "../utils/index.mjs";
|
4
4
|
const [name, bem] = createNamespace("password-input");
|
5
5
|
const passwordInputProps = {
|
6
6
|
info: String,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _PasswordInput from "./PasswordInput";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _PasswordInput from "./PasswordInput.mjs";
|
3
3
|
const PasswordInput = withInstall(_PasswordInput);
|
4
4
|
var stdin_default = PasswordInput;
|
5
5
|
export {
|
package/es/picker/Picker.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, computed, defineComponent } from "vue";
|
3
|
-
import { extend, unitToPx, truthProp, makeArrayProp, preventDefault, makeStringProp, makeNumericProp, createNamespace, HAPTICS_FEEDBACK, BORDER_UNSET_TOP_BOTTOM } from "../utils";
|
3
|
+
import { extend, unitToPx, truthProp, makeArrayProp, preventDefault, makeStringProp, makeNumericProp, createNamespace, HAPTICS_FEEDBACK, BORDER_UNSET_TOP_BOTTOM } from "../utils/index.mjs";
|
4
4
|
import { useChildren } from "@vant/use";
|
5
|
-
import { useExpose } from "../composables/use-expose";
|
6
|
-
import { Loading } from "../loading";
|
7
|
-
import Column, { PICKER_KEY } from "./PickerColumn";
|
5
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
6
|
+
import { Loading } from "../loading/index.mjs";
|
7
|
+
import Column, { PICKER_KEY } from "./PickerColumn.mjs";
|
8
8
|
const [name, bem, t] = createNamespace("picker");
|
9
9
|
const pickerSharedProps = {
|
10
10
|
title: String,
|
@@ -110,7 +110,7 @@ var stdin_default = defineComponent({
|
|
110
110
|
} else {
|
111
111
|
formattedColumns.value = columns;
|
112
112
|
}
|
113
|
-
hasOptions.value = formattedColumns.value.some((item) => item[columnsFieldNames.value.values] && item[columnsFieldNames.value.values].length !== 0);
|
113
|
+
hasOptions.value = formattedColumns.value.some((item) => item[columnsFieldNames.value.values] && item[columnsFieldNames.value.values].length !== 0) || children.some((item) => item.hasOptions);
|
114
114
|
};
|
115
115
|
const getIndexes = () => children.map((child) => child.state.index);
|
116
116
|
const setColumnValues = (index, options) => {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, reactive, defineComponent } from "vue";
|
3
|
-
import { deepClone } from "../utils/deep-clone";
|
4
|
-
import { clamp, isObject, unknownProp, numericProp, makeArrayProp, makeNumberProp, preventDefault, createNamespace, makeRequiredProp } from "../utils";
|
3
|
+
import { deepClone } from "../utils/deep-clone.mjs";
|
4
|
+
import { clamp, isObject, unknownProp, numericProp, makeArrayProp, makeNumberProp, preventDefault, createNamespace, makeRequiredProp } from "../utils/index.mjs";
|
5
5
|
import { useParent } from "@vant/use";
|
6
|
-
import { useTouch } from "../composables/use-touch";
|
7
|
-
import { useExpose } from "../composables/use-expose";
|
6
|
+
import { useTouch } from "../composables/use-touch.mjs";
|
7
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
8
8
|
const DEFAULT_DURATION = 200;
|
9
9
|
const MOMENTUM_LIMIT_TIME = 300;
|
10
10
|
const MOMENTUM_LIMIT_DISTANCE = 15;
|
@@ -202,6 +202,7 @@ var stdin_default = defineComponent({
|
|
202
202
|
}
|
203
203
|
};
|
204
204
|
const getValue = () => state.options[state.index];
|
205
|
+
const hasOptions = () => state.options.length;
|
205
206
|
setIndex(state.index);
|
206
207
|
useParent(PICKER_KEY);
|
207
208
|
useExpose({
|
@@ -210,6 +211,7 @@ var stdin_default = defineComponent({
|
|
210
211
|
getValue,
|
211
212
|
setValue,
|
212
213
|
setOptions,
|
214
|
+
hasOptions,
|
213
215
|
stopMomentum
|
214
216
|
});
|
215
217
|
watch(() => props.initialOptions, setOptions);
|
package/es/picker/index.mjs
CHANGED
package/es/popover/Popover.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { mergeProps as _mergeProps, Fragment as _Fragment, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, nextTick, onMounted, onBeforeUnmount, defineComponent } from "vue";
|
3
3
|
import { createPopper, offsetModifier } from "@vant/popperjs";
|
4
|
-
import { pick, extend, truthProp, numericProp, unknownProp, BORDER_BOTTOM, makeArrayProp, makeStringProp, createNamespace } from "../utils";
|
4
|
+
import { pick, extend, truthProp, numericProp, unknownProp, BORDER_BOTTOM, makeArrayProp, makeStringProp, createNamespace } from "../utils/index.mjs";
|
5
5
|
import { useClickAway } from "@vant/use";
|
6
|
-
import { Icon } from "../icon";
|
7
|
-
import { Popup } from "../popup";
|
6
|
+
import { Icon } from "../icon/index.mjs";
|
7
|
+
import { Popup } from "../popup/index.mjs";
|
8
8
|
const [name, bem] = createNamespace("popover");
|
9
9
|
const popupProps = ["show", "overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
|
10
10
|
const popoverProps = {
|
package/es/popover/index.mjs
CHANGED
package/es/popup/Popup.mjs
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { Fragment as _Fragment, withDirectives as _withDirectives, mergeProps as _mergeProps, vShow as _vShow, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, provide, Teleport, nextTick, computed, onMounted, Transition, onActivated, onDeactivated, defineComponent } from "vue";
|
3
|
-
import { popupSharedProps } from "./shared";
|
4
|
-
import { isDef, extend, makeStringProp, callInterceptor, createNamespace, HAPTICS_FEEDBACK } from "../utils";
|
3
|
+
import { popupSharedProps } from "./shared.mjs";
|
4
|
+
import { isDef, extend, makeStringProp, callInterceptor, createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
|
5
5
|
import { useEventListener } from "@vant/use";
|
6
|
-
import { useExpose } from "../composables/use-expose";
|
7
|
-
import { useLockScroll } from "../composables/use-lock-scroll";
|
8
|
-
import { useLazyRender } from "../composables/use-lazy-render";
|
9
|
-
import { POPUP_TOGGLE_KEY } from "../composables/on-popup-reopen";
|
10
|
-
import { Icon } from "../icon";
|
11
|
-
import { Overlay } from "../overlay";
|
6
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
7
|
+
import { useLockScroll } from "../composables/use-lock-scroll.mjs";
|
8
|
+
import { useLazyRender } from "../composables/use-lazy-render.mjs";
|
9
|
+
import { POPUP_TOGGLE_KEY } from "../composables/on-popup-reopen.mjs";
|
10
|
+
import { Icon } from "../icon/index.mjs";
|
11
|
+
import { Overlay } from "../overlay/index.mjs";
|
12
12
|
const popupProps = extend({}, popupSharedProps, {
|
13
13
|
round: Boolean,
|
14
14
|
position: makeStringProp("center"),
|
@@ -182,7 +182,7 @@ var stdin_default = defineComponent({
|
|
182
182
|
}
|
183
183
|
});
|
184
184
|
onDeactivated(() => {
|
185
|
-
if (props.show) {
|
185
|
+
if (props.show && props.teleport) {
|
186
186
|
close();
|
187
187
|
shouldReopen = true;
|
188
188
|
}
|
package/es/popup/index.mjs
CHANGED
package/es/popup/shared.mjs
CHANGED
package/es/progress/Progress.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { computed, defineComponent } from "vue";
|
3
|
-
import { addUnit, truthProp, numericProp, createNamespace } from "../utils";
|
3
|
+
import { addUnit, truthProp, numericProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
const [name, bem] = createNamespace("progress");
|
5
5
|
const progressProps = {
|
6
6
|
color: String,
|
package/es/progress/index.mjs
CHANGED
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
41
41
|
type: (NumberConstructor | StringConstructor)[];
|
42
42
|
default: number;
|
43
43
|
};
|
44
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "refresh")[], "update:modelValue" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
44
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "refresh")[], "update:modelValue" | "change" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
45
45
|
disabled: BooleanConstructor;
|
46
46
|
modelValue: BooleanConstructor;
|
47
47
|
headHeight: {
|
@@ -62,6 +62,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
62
62
|
default: number;
|
63
63
|
};
|
64
64
|
}>> & {
|
65
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
65
66
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
66
67
|
onRefresh?: ((...args: any[]) => any) | undefined;
|
67
68
|
}, {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, reactive, nextTick, defineComponent } from "vue";
|
3
|
-
import { numericProp, getScrollTop, preventDefault, createNamespace, makeNumericProp } from "../utils";
|
3
|
+
import { numericProp, getScrollTop, preventDefault, createNamespace, makeNumericProp } from "../utils/index.mjs";
|
4
4
|
import { useScrollParent } from "@vant/use";
|
5
|
-
import { useTouch } from "../composables/use-touch";
|
6
|
-
import { Loading } from "../loading";
|
5
|
+
import { useTouch } from "../composables/use-touch.mjs";
|
6
|
+
import { Loading } from "../loading/index.mjs";
|
7
7
|
const [name, bem, t] = createNamespace("pull-refresh");
|
8
8
|
const DEFAULT_HEAD_HEIGHT = 50;
|
9
9
|
const TEXT_STATUS = ["pulling", "loosing", "success"];
|
@@ -22,7 +22,7 @@ const pullRefreshProps = {
|
|
22
22
|
var stdin_default = defineComponent({
|
23
23
|
name,
|
24
24
|
props: pullRefreshProps,
|
25
|
-
emits: ["refresh", "update:modelValue"],
|
25
|
+
emits: ["change", "refresh", "update:modelValue"],
|
26
26
|
setup(props, {
|
27
27
|
emit,
|
28
28
|
slots
|
@@ -67,6 +67,10 @@ var stdin_default = defineComponent({
|
|
67
67
|
} else {
|
68
68
|
state.status = "loosing";
|
69
69
|
}
|
70
|
+
emit("change", {
|
71
|
+
status: state.status,
|
72
|
+
distance
|
73
|
+
});
|
70
74
|
};
|
71
75
|
const getStatusText = () => {
|
72
76
|
const {
|
@@ -18,7 +18,7 @@ export declare const PullRefresh: import("../utils").WithInstall<import("vue").D
|
|
18
18
|
type: (NumberConstructor | StringConstructor)[];
|
19
19
|
default: number;
|
20
20
|
};
|
21
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "refresh")[], "update:modelValue" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
21
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "refresh")[], "update:modelValue" | "change" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
22
22
|
disabled: BooleanConstructor;
|
23
23
|
modelValue: BooleanConstructor;
|
24
24
|
headHeight: {
|
@@ -39,6 +39,7 @@ export declare const PullRefresh: import("../utils").WithInstall<import("vue").D
|
|
39
39
|
default: number;
|
40
40
|
};
|
41
41
|
}>> & {
|
42
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
42
43
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
43
44
|
onRefresh?: ((...args: any[]) => any) | undefined;
|
44
45
|
}, {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _PullRefresh from "./PullRefresh";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _PullRefresh from "./PullRefresh.mjs";
|
3
3
|
const PullRefresh = withInstall(_PullRefresh);
|
4
4
|
var stdin_default = PullRefresh;
|
5
5
|
export {
|
package/es/radio/Radio.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { pick, createNamespace } from "../utils";
|
4
|
-
import { RADIO_KEY } from "../radio-group/RadioGroup";
|
3
|
+
import { pick, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { RADIO_KEY } from "../radio-group/RadioGroup.mjs";
|
5
5
|
import { useParent } from "@vant/use";
|
6
|
-
import Checker, { checkerProps } from "../checkbox/Checker";
|
6
|
+
import Checker, { checkerProps } from "../checkbox/Checker.mjs";
|
7
7
|
const [name, bem] = createNamespace("radio");
|
8
8
|
var stdin_default = defineComponent({
|
9
9
|
name,
|
package/es/radio/index.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { watch, defineComponent } from "vue";
|
3
|
-
import { unknownProp, numericProp, createNamespace } from "../utils";
|
3
|
+
import { unknownProp, numericProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
import { useChildren, useCustomFieldValue } from "@vant/use";
|
5
5
|
const [name, bem] = createNamespace("radio-group");
|
6
6
|
const radioGroupProps = {
|
package/es/radio-group/index.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _RadioGroup from "./RadioGroup";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _RadioGroup from "./RadioGroup.mjs";
|
3
3
|
const RadioGroup = withInstall(_RadioGroup);
|
4
4
|
var stdin_default = RadioGroup;
|
5
5
|
export {
|
package/es/rate/Rate.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { computed, defineComponent, ref } from "vue";
|
3
|
-
import { addUnit, truthProp, numericProp, preventDefault, makeStringProp, makeNumberProp, makeNumericProp, createNamespace } from "../utils";
|
3
|
+
import { addUnit, truthProp, numericProp, preventDefault, makeStringProp, makeNumberProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
import { useRect, useCustomFieldValue } from "@vant/use";
|
5
|
-
import { useRefs } from "../composables/use-refs";
|
6
|
-
import { useTouch } from "../composables/use-touch";
|
7
|
-
import { Icon } from "../icon";
|
5
|
+
import { useRefs } from "../composables/use-refs.mjs";
|
6
|
+
import { useTouch } from "../composables/use-touch.mjs";
|
7
|
+
import { Icon } from "../icon/index.mjs";
|
8
8
|
const [name, bem] = createNamespace("rate");
|
9
9
|
function getRateStatus(value, index, allowHalf, readonly) {
|
10
10
|
if (value >= index) {
|
package/es/rate/index.mjs
CHANGED
package/es/row/Row.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { computed, defineComponent } from "vue";
|
3
|
-
import { truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils";
|
3
|
+
import { truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
import { useChildren } from "@vant/use";
|
5
5
|
const [name, bem] = createNamespace("row");
|
6
6
|
const ROW_KEY = Symbol(name);
|
package/es/row/index.mjs
CHANGED
package/es/search/Search.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, defineComponent } from "vue";
|
3
|
-
import { pick, extend, truthProp, preventDefault, makeStringProp, createNamespace } from "../utils";
|
4
|
-
import { fieldSharedProps } from "../field/Field";
|
5
|
-
import { useId } from "../composables/use-id";
|
6
|
-
import { useExpose } from "../composables/use-expose";
|
7
|
-
import { Field } from "../field";
|
3
|
+
import { pick, extend, truthProp, preventDefault, makeStringProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { fieldSharedProps } from "../field/Field.mjs";
|
5
|
+
import { useId } from "../composables/use-id.mjs";
|
6
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
7
|
+
import { Field } from "../field/index.mjs";
|
8
8
|
const [name, bem, t] = createNamespace("search");
|
9
9
|
const searchProps = extend({}, fieldSharedProps, {
|
10
10
|
label: String,
|
package/es/search/index.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { pick, extend, truthProp, makeArrayProp, createNamespace, HAPTICS_FEEDBACK } from "../utils";
|
4
|
-
import { popupSharedProps, popupSharedPropKeys } from "../popup/shared";
|
5
|
-
import { Icon } from "../icon";
|
6
|
-
import { Popup } from "../popup";
|
3
|
+
import { pick, extend, truthProp, makeArrayProp, createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
|
4
|
+
import { popupSharedProps, popupSharedPropKeys } from "../popup/shared.mjs";
|
5
|
+
import { Icon } from "../icon/index.mjs";
|
6
|
+
import { Popup } from "../popup/index.mjs";
|
7
7
|
const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
8
8
|
const iconMap = {
|
9
9
|
qq: "qq",
|