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
@@ -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", {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { provide, computed, defineComponent } from "vue";
|
3
|
-
import { kebabCase, makeStringProp, createNamespace } from "../utils";
|
3
|
+
import { kebabCase, makeStringProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
const [name, bem] = createNamespace("config-provider");
|
5
5
|
const CONFIG_PROVIDER_KEY = Symbol(name);
|
6
6
|
const configProviderProps = {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _ConfigProvider from "./ConfigProvider";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _ConfigProvider from "./ConfigProvider.mjs";
|
3
3
|
const ConfigProvider = withInstall(_ConfigProvider);
|
4
4
|
var stdin_default = ConfigProvider;
|
5
5
|
export {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { truthProp, makeStringProp, createNamespace } from "../utils";
|
4
|
-
import { Cell } from "../cell";
|
3
|
+
import { truthProp, makeStringProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { Cell } from "../cell/index.mjs";
|
5
5
|
const [name, bem, t] = createNamespace("contact-card");
|
6
6
|
const contactCardProps = {
|
7
7
|
tel: String,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _ContactCard from "./ContactCard";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _ContactCard from "./ContactCard.mjs";
|
3
3
|
const ContactCard = withInstall(_ContactCard);
|
4
4
|
var stdin_default = ContactCard;
|
5
5
|
export {
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { watch, reactive, defineComponent } from "vue";
|
3
|
-
import { isMobile, createNamespace, extend } from "../utils";
|
4
|
-
import { Cell } from "../cell";
|
5
|
-
import { Form } from "../form";
|
6
|
-
import { Field } from "../field";
|
7
|
-
import { Button } from "../button";
|
8
|
-
import { Switch } from "../switch";
|
3
|
+
import { isMobile, createNamespace, extend } from "../utils/index.mjs";
|
4
|
+
import { Cell } from "../cell/index.mjs";
|
5
|
+
import { Form } from "../form/index.mjs";
|
6
|
+
import { Field } from "../field/index.mjs";
|
7
|
+
import { Button } from "../button/index.mjs";
|
8
|
+
import { Switch } from "../switch/index.mjs";
|
9
9
|
const [name, bem, t] = createNamespace("contact-edit");
|
10
10
|
const DEFAULT_CONTACT = {
|
11
11
|
tel: "",
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _ContactEdit from "./ContactEdit";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _ContactEdit from "./ContactEdit.mjs";
|
3
3
|
const ContactEdit = withInstall(_ContactEdit);
|
4
4
|
var stdin_default = ContactEdit;
|
5
5
|
export {
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { createNamespace, unknownProp } from "../utils";
|
4
|
-
import { Tag } from "../tag";
|
5
|
-
import { Icon } from "../icon";
|
6
|
-
import { Cell } from "../cell";
|
7
|
-
import { Radio } from "../radio";
|
8
|
-
import { Button } from "../button";
|
9
|
-
import { RadioGroup } from "../radio-group";
|
3
|
+
import { createNamespace, unknownProp } from "../utils/index.mjs";
|
4
|
+
import { Tag } from "../tag/index.mjs";
|
5
|
+
import { Icon } from "../icon/index.mjs";
|
6
|
+
import { Cell } from "../cell/index.mjs";
|
7
|
+
import { Radio } from "../radio/index.mjs";
|
8
|
+
import { Button } from "../button/index.mjs";
|
9
|
+
import { RadioGroup } from "../radio-group/index.mjs";
|
10
10
|
const [name, bem, t] = createNamespace("contact-list");
|
11
11
|
const contactListProps = {
|
12
12
|
list: Array,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _ContactList from "./ContactList";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _ContactList from "./ContactList.mjs";
|
3
3
|
const ContactList = withInstall(_ContactList);
|
4
4
|
var stdin_default = ContactList;
|
5
5
|
export {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { watch, computed, defineComponent } from "vue";
|
3
|
-
import { truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils";
|
4
|
-
import { parseFormat } from "./utils";
|
3
|
+
import { truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { parseFormat } from "./utils.mjs";
|
5
5
|
import { useCountDown } from "@vant/use";
|
6
|
-
import { useExpose } from "../composables/use-expose";
|
6
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
7
7
|
const [name, bem] = createNamespace("count-down");
|
8
8
|
const countDownProps = {
|
9
9
|
time: makeNumericProp(0),
|
package/es/count-down/index.mjs
CHANGED
package/es/count-down/utils.mjs
CHANGED
package/es/coupon/Coupon.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { computed, defineComponent } from "vue";
|
3
|
-
import { makeStringProp, createNamespace, makeRequiredProp } from "../utils";
|
4
|
-
import { getDate, formatAmount, formatDiscount } from "./utils";
|
5
|
-
import { Checkbox } from "../checkbox";
|
3
|
+
import { makeStringProp, createNamespace, makeRequiredProp } from "../utils/index.mjs";
|
4
|
+
import { getDate, formatAmount, formatDiscount } from "./utils.mjs";
|
5
|
+
import { Checkbox } from "../checkbox/index.mjs";
|
6
6
|
const [name, bem, t] = createNamespace("coupon");
|
7
7
|
var stdin_default = defineComponent({
|
8
8
|
name,
|
package/es/coupon/index.mjs
CHANGED
package/es/coupon/utils.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { isDef, truthProp, makeArrayProp, makeStringProp, makeNumericProp, createNamespace } from "../utils";
|
4
|
-
import { Cell } from "../cell";
|
3
|
+
import { isDef, truthProp, makeArrayProp, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { Cell } from "../cell/index.mjs";
|
5
5
|
const [name, bem, t] = createNamespace("coupon-cell");
|
6
6
|
const couponCellProps = {
|
7
7
|
title: String,
|
package/es/coupon-cell/index.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _CouponCell from "./CouponCell";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _CouponCell from "./CouponCell.mjs";
|
3
3
|
const CouponCell = withInstall(_CouponCell);
|
4
4
|
var stdin_default = CouponCell;
|
5
5
|
export {
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, computed, nextTick, onMounted, defineComponent } from "vue";
|
3
|
-
import { truthProp, windowHeight, makeArrayProp, makeStringProp, makeNumberProp, createNamespace } from "../utils";
|
4
|
-
import { useRefs } from "../composables/use-refs";
|
5
|
-
import { Tab } from "../tab";
|
6
|
-
import { Tabs } from "../tabs";
|
7
|
-
import { Empty } from "../empty";
|
8
|
-
import { Field } from "../field";
|
9
|
-
import { Button } from "../button";
|
10
|
-
import { Coupon } from "../coupon";
|
3
|
+
import { truthProp, windowHeight, makeArrayProp, makeStringProp, makeNumberProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { useRefs } from "../composables/use-refs.mjs";
|
5
|
+
import { Tab } from "../tab/index.mjs";
|
6
|
+
import { Tabs } from "../tabs/index.mjs";
|
7
|
+
import { Empty } from "../empty/index.mjs";
|
8
|
+
import { Field } from "../field/index.mjs";
|
9
|
+
import { Button } from "../button/index.mjs";
|
10
|
+
import { Coupon } from "../coupon/index.mjs";
|
11
11
|
import { useRect } from "@vant/use";
|
12
12
|
const [name, bem, t] = createNamespace("coupon-list");
|
13
13
|
const couponListProps = {
|
package/es/coupon-list/index.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _CouponList from "./CouponList";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _CouponList from "./CouponList.mjs";
|
3
3
|
const CouponList = withInstall(_CouponList);
|
4
4
|
var stdin_default = CouponList;
|
5
5
|
export {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { ref, watch, computed, nextTick, onMounted, defineComponent } from "vue";
|
3
|
-
import { pick, clamp, extend, isDate, padZero, makeStringProp, createNamespace } from "../utils";
|
4
|
-
import { times, sharedProps, getTrueValue, getMonthEndDay, pickerInheritKeys, proxyPickerMethods } from "./utils";
|
5
|
-
import { useExpose } from "../composables/use-expose";
|
6
|
-
import { Picker } from "../picker";
|
3
|
+
import { pick, clamp, extend, isDate, padZero, makeStringProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { times, sharedProps, getTrueValue, getMonthEndDay, pickerInheritKeys, proxyPickerMethods } from "./utils.mjs";
|
5
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
6
|
+
import { Picker } from "../picker/index.mjs";
|
7
7
|
const currentYear = new Date().getFullYear();
|
8
8
|
const [name] = createNamespace("date-picker");
|
9
9
|
var stdin_default = defineComponent({
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { ref, defineComponent } from "vue";
|
3
|
-
import { pick, extend, createNamespace } from "../utils";
|
4
|
-
import { useExpose } from "../composables/use-expose";
|
5
|
-
import TimePicker from "./TimePicker";
|
6
|
-
import DatePicker from "./DatePicker";
|
3
|
+
import { pick, extend, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
5
|
+
import TimePicker from "./TimePicker.mjs";
|
6
|
+
import DatePicker from "./DatePicker.mjs";
|
7
7
|
const [name, bem] = createNamespace("datetime-picker");
|
8
8
|
const timePickerPropKeys = Object.keys(TimePicker.props);
|
9
9
|
const datePickerPropKeys = Object.keys(DatePicker.props);
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { ref, watch, computed, nextTick, onMounted, defineComponent } from "vue";
|
3
|
-
import { pick, clamp, extend, padZero, createNamespace, makeNumericProp } from "../utils";
|
4
|
-
import { times, sharedProps, pickerInheritKeys, proxyPickerMethods } from "./utils";
|
5
|
-
import { useExpose } from "../composables/use-expose";
|
6
|
-
import { Picker } from "../picker";
|
3
|
+
import { pick, clamp, extend, padZero, createNamespace, makeNumericProp } from "../utils/index.mjs";
|
4
|
+
import { times, sharedProps, pickerInheritKeys, proxyPickerMethods } from "./utils.mjs";
|
5
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
6
|
+
import { Picker } from "../picker/index.mjs";
|
7
7
|
const [name] = createNamespace("time-picker");
|
8
8
|
var stdin_default = defineComponent({
|
9
9
|
name,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _DatetimePicker from "./DatetimePicker";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _DatetimePicker from "./DatetimePicker.mjs";
|
3
3
|
const DatetimePicker = withInstall(_DatetimePicker);
|
4
4
|
var stdin_default = DatetimePicker;
|
5
5
|
export {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { extend } from "../utils";
|
2
|
-
import { pickerSharedProps } from "../picker/Picker";
|
1
|
+
import { extend } from "../utils/index.mjs";
|
2
|
+
import { pickerSharedProps } from "../picker/Picker.mjs";
|
3
3
|
const sharedProps = extend({}, pickerSharedProps, {
|
4
4
|
filter: Function,
|
5
5
|
columnsOrder: Array,
|
package/es/dialog/Dialog.d.ts
CHANGED
@@ -45,8 +45,10 @@ declare const dialogProps: {
|
|
45
45
|
showCancelButton: BooleanConstructor;
|
46
46
|
cancelButtonText: StringConstructor;
|
47
47
|
cancelButtonColor: StringConstructor;
|
48
|
+
cancelButtonDisabled: BooleanConstructor;
|
48
49
|
confirmButtonText: StringConstructor;
|
49
50
|
confirmButtonColor: StringConstructor;
|
51
|
+
confirmButtonDisabled: BooleanConstructor;
|
50
52
|
showConfirmButton: {
|
51
53
|
type: BooleanConstructor;
|
52
54
|
default: true;
|
@@ -99,8 +101,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
99
101
|
showCancelButton: BooleanConstructor;
|
100
102
|
cancelButtonText: StringConstructor;
|
101
103
|
cancelButtonColor: StringConstructor;
|
104
|
+
cancelButtonDisabled: BooleanConstructor;
|
102
105
|
confirmButtonText: StringConstructor;
|
103
106
|
confirmButtonColor: StringConstructor;
|
107
|
+
confirmButtonDisabled: BooleanConstructor;
|
104
108
|
showConfirmButton: {
|
105
109
|
type: BooleanConstructor;
|
106
110
|
default: true;
|
@@ -151,8 +155,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
151
155
|
showCancelButton: BooleanConstructor;
|
152
156
|
cancelButtonText: StringConstructor;
|
153
157
|
cancelButtonColor: StringConstructor;
|
158
|
+
cancelButtonDisabled: BooleanConstructor;
|
154
159
|
confirmButtonText: StringConstructor;
|
155
160
|
confirmButtonColor: StringConstructor;
|
161
|
+
confirmButtonDisabled: BooleanConstructor;
|
156
162
|
showConfirmButton: {
|
157
163
|
type: BooleanConstructor;
|
158
164
|
default: true;
|
@@ -174,6 +180,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
174
180
|
closeOnPopstate: boolean;
|
175
181
|
allowHtml: boolean;
|
176
182
|
showCancelButton: boolean;
|
183
|
+
cancelButtonDisabled: boolean;
|
184
|
+
confirmButtonDisabled: boolean;
|
177
185
|
showConfirmButton: boolean;
|
178
186
|
}>;
|
179
187
|
export default _default;
|
package/es/dialog/Dialog.mjs
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, reactive, withKeys, defineComponent } from "vue";
|
3
|
-
import { noop, pick, extend, addUnit, truthProp, isFunction, BORDER_TOP, BORDER_LEFT, unknownProp, numericProp, makeStringProp, callInterceptor, createNamespace } from "../utils";
|
4
|
-
import { popupSharedProps, popupSharedPropKeys } from "../popup/shared";
|
5
|
-
import { Popup } from "../popup";
|
6
|
-
import { Button } from "../button";
|
7
|
-
import { ActionBar } from "../action-bar";
|
8
|
-
import { ActionBarButton } from "../action-bar-button";
|
3
|
+
import { noop, pick, extend, addUnit, truthProp, isFunction, BORDER_TOP, BORDER_LEFT, unknownProp, numericProp, makeStringProp, callInterceptor, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { popupSharedProps, popupSharedPropKeys } from "../popup/shared.mjs";
|
5
|
+
import { Popup } from "../popup/index.mjs";
|
6
|
+
import { Button } from "../button/index.mjs";
|
7
|
+
import { ActionBar } from "../action-bar/index.mjs";
|
8
|
+
import { ActionBarButton } from "../action-bar-button/index.mjs";
|
9
9
|
const [name, bem, t] = createNamespace("dialog");
|
10
10
|
const dialogProps = extend({}, popupSharedProps, {
|
11
11
|
title: String,
|
@@ -21,8 +21,10 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
21
21
|
showCancelButton: Boolean,
|
22
22
|
cancelButtonText: String,
|
23
23
|
cancelButtonColor: String,
|
24
|
+
cancelButtonDisabled: Boolean,
|
24
25
|
confirmButtonText: String,
|
25
26
|
confirmButtonColor: String,
|
27
|
+
confirmButtonDisabled: Boolean,
|
26
28
|
showConfirmButton: truthProp,
|
27
29
|
closeOnClickOverlay: Boolean
|
28
30
|
});
|
@@ -143,6 +145,7 @@ var stdin_default = defineComponent({
|
|
143
145
|
color: props.cancelButtonColor
|
144
146
|
},
|
145
147
|
"loading": loading.cancel,
|
148
|
+
"disabled": props.cancelButtonDisabled,
|
146
149
|
"onClick": onCancel
|
147
150
|
}, null), props.showConfirmButton && _createVNode(Button, {
|
148
151
|
"size": "large",
|
@@ -154,6 +157,7 @@ var stdin_default = defineComponent({
|
|
154
157
|
color: props.confirmButtonColor
|
155
158
|
},
|
156
159
|
"loading": loading.confirm,
|
160
|
+
"disabled": props.confirmButtonDisabled,
|
157
161
|
"onClick": onConfirm
|
158
162
|
}, null)]);
|
159
163
|
const renderRoundButtons = () => _createVNode(ActionBar, {
|
@@ -165,6 +169,7 @@ var stdin_default = defineComponent({
|
|
165
169
|
"class": bem("cancel"),
|
166
170
|
"color": props.cancelButtonColor,
|
167
171
|
"loading": loading.cancel,
|
172
|
+
"disabled": props.cancelButtonDisabled,
|
168
173
|
"onClick": onCancel
|
169
174
|
}, null), props.showConfirmButton && _createVNode(ActionBarButton, {
|
170
175
|
"type": "danger",
|
@@ -172,6 +177,7 @@ var stdin_default = defineComponent({
|
|
172
177
|
"class": bem("confirm"),
|
173
178
|
"color": props.confirmButtonColor,
|
174
179
|
"loading": loading.confirm,
|
180
|
+
"disabled": props.confirmButtonDisabled,
|
175
181
|
"onClick": onConfirm
|
176
182
|
}, null)]
|
177
183
|
});
|
@@ -20,8 +20,10 @@ declare namespace Dialog {
|
|
20
20
|
messageAlign: string;
|
21
21
|
cancelButtonText: string;
|
22
22
|
cancelButtonColor: null;
|
23
|
+
cancelButtonDisabled: boolean;
|
23
24
|
confirmButtonText: string;
|
24
25
|
confirmButtonColor: null;
|
26
|
+
confirmButtonDisabled: boolean;
|
25
27
|
showConfirmButton: boolean;
|
26
28
|
showCancelButton: boolean;
|
27
29
|
closeOnPopstate: boolean;
|
@@ -45,8 +47,10 @@ declare namespace Dialog {
|
|
45
47
|
messageAlign: string;
|
46
48
|
cancelButtonText: string;
|
47
49
|
cancelButtonColor: null;
|
50
|
+
cancelButtonDisabled: boolean;
|
48
51
|
confirmButtonText: string;
|
49
52
|
confirmButtonColor: null;
|
53
|
+
confirmButtonDisabled: boolean;
|
50
54
|
showConfirmButton: boolean;
|
51
55
|
showCancelButton: boolean;
|
52
56
|
closeOnPopstate: boolean;
|
@@ -102,8 +106,10 @@ declare namespace Dialog {
|
|
102
106
|
showCancelButton: BooleanConstructor;
|
103
107
|
cancelButtonText: StringConstructor;
|
104
108
|
cancelButtonColor: StringConstructor;
|
109
|
+
cancelButtonDisabled: BooleanConstructor;
|
105
110
|
confirmButtonText: StringConstructor;
|
106
111
|
confirmButtonColor: StringConstructor;
|
112
|
+
confirmButtonDisabled: BooleanConstructor;
|
107
113
|
showConfirmButton: {
|
108
114
|
type: BooleanConstructor;
|
109
115
|
default: true;
|
@@ -154,8 +160,10 @@ declare namespace Dialog {
|
|
154
160
|
showCancelButton: BooleanConstructor;
|
155
161
|
cancelButtonText: StringConstructor;
|
156
162
|
cancelButtonColor: StringConstructor;
|
163
|
+
cancelButtonDisabled: BooleanConstructor;
|
157
164
|
confirmButtonText: StringConstructor;
|
158
165
|
confirmButtonColor: StringConstructor;
|
166
|
+
confirmButtonDisabled: BooleanConstructor;
|
159
167
|
showConfirmButton: {
|
160
168
|
type: BooleanConstructor;
|
161
169
|
default: true;
|
@@ -177,6 +185,8 @@ declare namespace Dialog {
|
|
177
185
|
closeOnPopstate: boolean;
|
178
186
|
allowHtml: boolean;
|
179
187
|
showCancelButton: boolean;
|
188
|
+
cancelButtonDisabled: boolean;
|
189
|
+
confirmButtonDisabled: boolean;
|
180
190
|
showConfirmButton: boolean;
|
181
191
|
}>>;
|
182
192
|
var install: (app: App<any>) => void;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
|
-
import { extend, inBrowser, withInstall } from "../utils";
|
3
|
-
import { mountComponent, usePopupState } from "../utils/mount-component";
|
4
|
-
import VanDialog from "./Dialog";
|
2
|
+
import { extend, inBrowser, withInstall } from "../utils/index.mjs";
|
3
|
+
import { mountComponent, usePopupState } from "../utils/mount-component.mjs";
|
4
|
+
import VanDialog from "./Dialog.mjs";
|
5
5
|
let instance;
|
6
6
|
function initInstance() {
|
7
7
|
const Wrapper = {
|
@@ -52,8 +52,10 @@ Dialog.defaultOptions = {
|
|
52
52
|
messageAlign: "",
|
53
53
|
cancelButtonText: "",
|
54
54
|
cancelButtonColor: null,
|
55
|
+
cancelButtonDisabled: false,
|
55
56
|
confirmButtonText: "",
|
56
57
|
confirmButtonColor: null,
|
58
|
+
confirmButtonDisabled: false,
|
57
59
|
showConfirmButton: true,
|
58
60
|
showCancelButton: false,
|
59
61
|
closeOnPopstate: true,
|
package/es/dialog/index.mjs
CHANGED
package/es/dialog/types.d.ts
CHANGED
@@ -21,12 +21,14 @@ export declare type DialogOptions = {
|
|
21
21
|
overlayClass?: string;
|
22
22
|
overlayStyle?: CSSProperties;
|
23
23
|
closeOnPopstate?: boolean;
|
24
|
-
cancelButtonText?: string;
|
25
24
|
showCancelButton?: boolean;
|
26
25
|
showConfirmButton?: boolean;
|
26
|
+
cancelButtonText?: string;
|
27
27
|
cancelButtonColor?: string;
|
28
|
+
cancelButtonDisabled?: boolean;
|
28
29
|
confirmButtonText?: string;
|
29
30
|
confirmButtonColor?: string;
|
31
|
+
confirmButtonDisabled?: boolean;
|
30
32
|
closeOnClickOverlay?: boolean;
|
31
33
|
};
|
32
34
|
declare module '@vue/runtime-core' {
|
package/es/divider/Divider.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { truthProp, makeStringProp, createNamespace } from "../utils";
|
3
|
+
import { truthProp, makeStringProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
const [name, bem] = createNamespace("divider");
|
5
5
|
const dividerProps = {
|
6
6
|
dashed: Boolean,
|
package/es/divider/index.mjs
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
|
2
2
|
import { reactive, Teleport, defineComponent } from "vue";
|
3
|
-
import { truthProp, unknownProp, getZIndexStyle, createNamespace, makeArrayProp } from "../utils";
|
4
|
-
import { DROPDOWN_KEY } from "../dropdown-menu/DropdownMenu";
|
3
|
+
import { truthProp, unknownProp, getZIndexStyle, createNamespace, makeArrayProp } from "../utils/index.mjs";
|
4
|
+
import { DROPDOWN_KEY } from "../dropdown-menu/DropdownMenu.mjs";
|
5
5
|
import { useParent } from "@vant/use";
|
6
|
-
import { useExpose } from "../composables/use-expose";
|
7
|
-
import { Cell } from "../cell";
|
8
|
-
import { Icon } from "../icon";
|
9
|
-
import { Popup } from "../popup";
|
6
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
7
|
+
import { Cell } from "../cell/index.mjs";
|
8
|
+
import { Icon } from "../icon/index.mjs";
|
9
|
+
import { Popup } from "../popup/index.mjs";
|
10
10
|
const [name, bem] = createNamespace("dropdown-item");
|
11
11
|
const dropdownItemProps = {
|
12
12
|
title: String,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _DropdownItem from "./DropdownItem";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _DropdownItem from "./DropdownItem.mjs";
|
3
3
|
const DropdownItem = withInstall(_DropdownItem);
|
4
4
|
var stdin_default = DropdownItem;
|
5
5
|
export {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, computed, defineComponent } from "vue";
|
3
|
-
import { isDef, truthProp, numericProp, windowHeight, makeStringProp, makeNumericProp, createNamespace, HAPTICS_FEEDBACK } from "../utils";
|
4
|
-
import { useId } from "../composables/use-id";
|
3
|
+
import { isDef, truthProp, numericProp, windowHeight, makeStringProp, makeNumericProp, createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
|
4
|
+
import { useId } from "../composables/use-id.mjs";
|
5
5
|
import { useRect, useChildren, useClickAway, useScrollParent, useEventListener } from "@vant/use";
|
6
6
|
const [name, bem] = createNamespace("dropdown-menu");
|
7
7
|
const dropdownMenuProps = {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _DropdownMenu from "./DropdownMenu";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _DropdownMenu from "./DropdownMenu.mjs";
|
3
3
|
const DropdownMenu = withInstall(_DropdownMenu);
|
4
4
|
var stdin_default = DropdownMenu;
|
5
5
|
export {
|
package/es/empty/Empty.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { getSizeStyle, makeStringProp, createNamespace } from "../utils";
|
4
|
-
import { renderError, renderSearch, renderNetwork, renderMaterial } from "./Images";
|
3
|
+
import { getSizeStyle, makeStringProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { renderError, renderSearch, renderNetwork, renderMaterial } from "./Images.mjs";
|
5
5
|
const [name, bem] = createNamespace("empty");
|
6
6
|
const PRESET_IMAGES = {
|
7
7
|
error: renderError,
|
package/es/empty/index.mjs
CHANGED
package/es/field/Field.mjs
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import { createTextVNode as _createTextVNode, mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, provide, computed, nextTick, reactive, onMounted, defineComponent } from "vue";
|
3
|
-
import { isDef, extend, addUnit, toArray, FORM_KEY, numericProp, unknownProp, resetScroll, formatNumber, preventDefault, makeStringProp, makeNumericProp, createNamespace } from "../utils";
|
4
|
-
import { cutString, runSyncRule, endComposing, mapInputType, startComposing, getRuleMessage, resizeTextarea, getStringLength, runRuleValidator } from "./utils";
|
5
|
-
import { cellSharedProps } from "../cell/Cell";
|
3
|
+
import { isDef, extend, addUnit, toArray, FORM_KEY, numericProp, unknownProp, resetScroll, formatNumber, preventDefault, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { cutString, runSyncRule, endComposing, mapInputType, startComposing, getRuleMessage, resizeTextarea, getStringLength, runRuleValidator } from "./utils.mjs";
|
5
|
+
import { cellSharedProps } from "../cell/Cell.mjs";
|
6
6
|
import { CUSTOM_FIELD_INJECTION_KEY, useParent } from "@vant/use";
|
7
|
-
import { useId } from "../composables/use-id";
|
8
|
-
import { useExpose } from "../composables/use-expose";
|
9
|
-
import { Icon } from "../icon";
|
10
|
-
import { Cell } from "../cell";
|
7
|
+
import { useId } from "../composables/use-id.mjs";
|
8
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
9
|
+
import { Icon } from "../icon/index.mjs";
|
10
|
+
import { Cell } from "../cell/index.mjs";
|
11
11
|
const [name, bem] = createNamespace("field");
|
12
12
|
const fieldSharedProps = {
|
13
13
|
id: String,
|
package/es/field/index.mjs
CHANGED