vant 4.0.0-beta.1 → 4.0.0-rc.0
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/changelog.generated.md +46 -42
- package/es/action-bar/ActionBar.d.ts +1 -1
- package/es/action-bar/index.d.ts +1 -1
- package/es/action-bar-button/ActionBarButton.d.ts +1 -1
- package/es/action-bar-button/index.d.ts +1 -1
- package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/es/action-bar-icon/index.d.ts +1 -1
- package/es/address-edit/style/index.mjs +7 -1
- package/es/area/Area.d.ts +6 -3
- package/es/area/index.d.ts +4 -2
- package/es/area/style/index.mjs +7 -0
- package/es/area/utils.mjs +9 -2
- package/es/badge/Badge.d.ts +1 -1
- package/es/badge/index.d.ts +1 -1
- package/es/calendar/Calendar.mjs +4 -3
- package/es/calendar/style/index.mjs +7 -1
- package/es/cell/Cell.d.ts +1 -1
- package/es/cell/index.d.ts +1 -1
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/index.d.ts +1 -1
- package/es/col/Col.d.ts +1 -1
- package/es/col/index.d.ts +1 -1
- package/es/collapse-item/CollapseItem.d.ts +1 -1
- package/es/collapse-item/index.d.ts +1 -1
- package/es/composables/use-lazy-render.mjs +9 -5
- package/es/composables/use-lock-scroll.mjs +4 -1
- package/es/composables/use-visibility-change.mjs +6 -3
- package/es/config-provider/ConfigProvider.d.ts +1 -1
- package/es/config-provider/index.d.ts +1 -1
- package/es/coupon/Coupon.d.ts +1 -1
- package/es/coupon/index.d.ts +1 -1
- package/es/coupon/utils.mjs +3 -1
- package/es/coupon-cell/CouponCell.d.ts +1 -1
- package/es/coupon-cell/index.d.ts +1 -1
- package/es/coupon-list/style/index.mjs +3 -3
- package/es/date-picker/DatePicker.d.ts +6 -3
- package/es/date-picker/DatePicker.mjs +10 -10
- package/es/date-picker/index.d.ts +4 -2
- package/es/date-picker/style/index.mjs +7 -0
- package/es/date-picker/utils.d.ts +2 -1
- package/es/divider/Divider.d.ts +1 -1
- package/es/divider/index.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.d.ts +2 -2
- package/es/dropdown-item/index.d.ts +2 -2
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/empty/Empty.d.ts +1 -1
- package/es/empty/index.d.ts +1 -1
- package/es/field/Field.mjs +10 -3
- package/es/grid/Grid.d.ts +1 -1
- package/es/grid/index.d.ts +1 -1
- package/es/grid-item/GridItem.d.ts +1 -1
- package/es/grid-item/index.d.ts +1 -1
- package/es/icon/Icon.d.ts +1 -1
- package/es/icon/index.d.ts +1 -1
- package/es/image-preview/ImagePreviewItem.mjs +10 -2
- package/es/index-anchor/IndexAnchor.d.ts +1 -1
- package/es/index-anchor/index.d.ts +1 -1
- package/es/index-bar/IndexBar.mjs +7 -3
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/lazyload/vue-lazyload/lazy-component.mjs +4 -1
- package/es/lazyload/vue-lazyload/lazy-container.mjs +11 -7
- package/es/lazyload/vue-lazyload/lazy-image.mjs +24 -14
- package/es/lazyload/vue-lazyload/lazy.mjs +11 -3
- package/es/lazyload/vue-lazyload/listener.mjs +45 -33
- package/es/lazyload/vue-lazyload/util.mjs +4 -1
- package/es/loading/Loading.d.ts +1 -1
- package/es/loading/index.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/es/number-keyboard/index.d.ts +1 -1
- package/es/overlay/Overlay.d.ts +1 -1
- package/es/overlay/Overlay.mjs +13 -6
- package/es/overlay/index.d.ts +1 -1
- package/es/picker/Picker.d.ts +8 -4
- package/es/picker/Picker.mjs +43 -67
- package/es/picker/PickerColumn.mjs +6 -2
- package/es/picker/PickerToolbar.d.ts +21 -0
- package/es/picker/PickerToolbar.mjs +59 -0
- package/es/picker/index.d.ts +4 -2
- package/es/picker/style/index.mjs +7 -0
- package/es/picker/utils.d.ts +2 -0
- package/es/picker/utils.mjs +14 -7
- package/es/picker-group/PickerGroup.d.ts +39 -0
- package/es/picker-group/PickerGroup.mjs +57 -0
- package/es/picker-group/index.css +1 -0
- package/es/picker-group/index.d.ts +32 -0
- package/es/picker-group/index.mjs +8 -0
- package/es/picker-group/style/index.d.ts +1 -0
- package/es/picker-group/style/index.mjs +9 -0
- package/es/popup/Popup.d.ts +2 -2
- package/es/popup/index.d.ts +2 -2
- package/es/popup/shared.mjs +3 -1
- package/es/progress/Progress.d.ts +1 -1
- package/es/progress/index.d.ts +1 -1
- package/es/rate/Rate.mjs +5 -3
- package/es/row/Row.d.ts +1 -1
- package/es/row/index.d.ts +1 -1
- package/es/skeleton/Skeleton.d.ts +1 -1
- package/es/skeleton/index.d.ts +1 -1
- package/es/slider/Slider.mjs +6 -2
- package/es/space/Space.d.ts +1 -1
- package/es/space/index.d.ts +1 -1
- package/es/step/Step.d.ts +1 -1
- package/es/step/index.d.ts +1 -1
- package/es/swipe/Swipe.mjs +13 -6
- package/es/swipe-cell/SwipeCell.d.ts +2 -2
- package/es/swipe-cell/SwipeCell.mjs +4 -2
- package/es/swipe-cell/index.d.ts +2 -2
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/index.d.ts +1 -1
- package/es/tab/Tab.d.ts +1 -1
- package/es/tab/index.d.ts +1 -1
- package/es/tabs/TabsTitle.d.ts +1 -1
- package/es/time-picker/TimePicker.d.ts +6 -3
- package/es/time-picker/index.d.ts +4 -2
- package/es/time-picker/style/index.mjs +7 -0
- package/es/utils/create.mjs +8 -2
- package/es/utils/with-install.d.ts +2 -2
- package/es/utils/with-install.mjs +4 -2
- package/lib/action-bar/ActionBar.d.ts +1 -1
- package/lib/action-bar/index.d.ts +1 -1
- package/lib/action-bar/index.js +4 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
- package/lib/action-bar-button/index.d.ts +1 -1
- package/lib/action-bar-button/index.js +4 -1
- package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/lib/action-bar-icon/index.d.ts +1 -1
- package/lib/action-bar-icon/index.js +4 -1
- package/lib/action-sheet/index.js +4 -1
- package/lib/address-edit/AddressEdit.js +4 -1
- package/lib/address-edit/index.js +4 -1
- package/lib/address-edit/style/index.js +7 -1
- package/lib/address-list/AddressList.js +4 -1
- package/lib/address-list/index.js +4 -1
- package/lib/area/Area.d.ts +6 -3
- package/lib/area/index.d.ts +4 -2
- package/lib/area/index.js +4 -1
- package/lib/area/style/index.js +7 -0
- package/lib/area/utils.js +9 -2
- package/lib/badge/Badge.d.ts +1 -1
- package/lib/badge/index.d.ts +1 -1
- package/lib/badge/index.js +4 -1
- package/lib/button/index.js +4 -1
- package/lib/calendar/Calendar.js +8 -4
- package/lib/calendar/CalendarMonth.js +4 -1
- package/lib/calendar/index.js +4 -1
- package/lib/calendar/style/index.js +7 -1
- package/lib/card/index.js +4 -1
- package/lib/cascader/index.js +4 -1
- package/lib/cell/Cell.d.ts +1 -1
- package/lib/cell/index.d.ts +1 -1
- package/lib/cell/index.js +4 -1
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/index.d.ts +1 -1
- package/lib/cell-group/index.js +4 -1
- package/lib/checkbox/Checkbox.js +4 -1
- package/lib/checkbox/index.js +4 -1
- package/lib/checkbox-group/index.js +4 -1
- package/lib/circle/index.js +4 -1
- package/lib/col/Col.d.ts +1 -1
- package/lib/col/index.d.ts +1 -1
- package/lib/col/index.js +4 -1
- package/lib/collapse/index.js +4 -1
- package/lib/collapse-item/CollapseItem.d.ts +1 -1
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/collapse-item/index.js +4 -1
- package/lib/composables/use-lazy-render.js +9 -5
- package/lib/composables/use-lock-scroll.js +4 -1
- package/lib/composables/use-visibility-change.js +6 -3
- package/lib/config-provider/ConfigProvider.d.ts +1 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/config-provider/index.js +4 -1
- package/lib/contact-card/index.js +4 -1
- package/lib/contact-edit/index.js +4 -1
- package/lib/contact-list/index.js +4 -1
- package/lib/count-down/index.js +4 -1
- package/lib/coupon/Coupon.d.ts +1 -1
- package/lib/coupon/index.d.ts +1 -1
- package/lib/coupon/index.js +4 -1
- package/lib/coupon/utils.js +3 -1
- package/lib/coupon-cell/CouponCell.d.ts +1 -1
- package/lib/coupon-cell/index.d.ts +1 -1
- package/lib/coupon-cell/index.js +4 -1
- package/lib/coupon-list/index.js +4 -1
- package/lib/coupon-list/style/index.js +3 -3
- package/lib/date-picker/DatePicker.d.ts +6 -3
- package/lib/date-picker/DatePicker.js +10 -10
- package/lib/date-picker/index.d.ts +4 -2
- package/lib/date-picker/index.js +4 -1
- package/lib/date-picker/style/index.js +7 -0
- package/lib/date-picker/utils.d.ts +2 -1
- package/lib/dialog/function-call.js +4 -1
- package/lib/dialog/index.js +4 -1
- package/lib/divider/Divider.d.ts +1 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/divider/index.js +4 -1
- package/lib/dropdown-item/DropdownItem.d.ts +2 -2
- package/lib/dropdown-item/index.d.ts +2 -2
- package/lib/dropdown-item/index.js +4 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/dropdown-menu/index.js +4 -1
- package/lib/empty/Empty.d.ts +1 -1
- package/lib/empty/index.d.ts +1 -1
- package/lib/empty/index.js +4 -1
- package/lib/field/Field.js +9 -2
- package/lib/field/index.js +4 -1
- package/lib/form/index.js +4 -1
- package/lib/grid/Grid.d.ts +1 -1
- package/lib/grid/index.d.ts +1 -1
- package/lib/grid/index.js +4 -1
- package/lib/grid-item/GridItem.d.ts +1 -1
- package/lib/grid-item/index.d.ts +1 -1
- package/lib/grid-item/index.js +4 -1
- package/lib/icon/Icon.d.ts +1 -1
- package/lib/icon/index.d.ts +1 -1
- package/lib/icon/index.js +4 -1
- package/lib/image/index.js +4 -1
- package/lib/image-preview/ImagePreview.js +4 -1
- package/lib/image-preview/ImagePreviewItem.js +9 -1
- package/lib/image-preview/function-call.js +4 -1
- package/lib/image-preview/index.js +4 -1
- package/lib/index-anchor/IndexAnchor.d.ts +1 -1
- package/lib/index-anchor/index.d.ts +1 -1
- package/lib/index-anchor/index.js +4 -1
- package/lib/index-bar/IndexBar.js +7 -3
- package/lib/index-bar/index.js +4 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/lazyload/vue-lazyload/index.js +4 -1
- package/lib/lazyload/vue-lazyload/lazy-component.js +4 -1
- package/lib/lazyload/vue-lazyload/lazy-container.js +11 -7
- package/lib/lazyload/vue-lazyload/lazy-image.js +24 -14
- package/lib/lazyload/vue-lazyload/lazy.js +15 -4
- package/lib/lazyload/vue-lazyload/listener.js +45 -33
- package/lib/lazyload/vue-lazyload/util.js +4 -1
- package/lib/list/index.js +4 -1
- package/lib/loading/Loading.d.ts +1 -1
- package/lib/loading/index.d.ts +1 -1
- package/lib/loading/index.js +4 -1
- package/lib/locale/index.js +4 -1
- package/lib/nav-bar/index.js +4 -1
- package/lib/notice-bar/index.js +4 -1
- package/lib/notify/function-call.js +4 -1
- package/lib/notify/index.js +4 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboard.js +4 -1
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/number-keyboard/index.js +4 -1
- package/lib/overlay/Overlay.d.ts +1 -1
- package/lib/overlay/Overlay.js +11 -4
- package/lib/overlay/index.d.ts +1 -1
- package/lib/overlay/index.js +4 -1
- package/lib/pagination/index.js +4 -1
- package/lib/password-input/index.js +4 -1
- package/lib/picker/Picker.d.ts +8 -4
- package/lib/picker/Picker.js +49 -70
- package/lib/picker/PickerColumn.js +5 -1
- package/lib/picker/PickerToolbar.d.ts +21 -0
- package/lib/picker/PickerToolbar.js +78 -0
- package/lib/picker/index.d.ts +4 -2
- package/lib/picker/index.js +4 -1
- package/lib/picker/style/index.js +7 -0
- package/lib/picker/utils.d.ts +2 -0
- package/lib/picker/utils.js +15 -8
- package/lib/picker-group/PickerGroup.d.ts +39 -0
- package/lib/picker-group/PickerGroup.js +82 -0
- package/lib/picker-group/index.css +1 -0
- package/lib/picker-group/index.d.ts +32 -0
- package/lib/picker-group/index.js +33 -0
- package/lib/picker-group/style/index.d.ts +1 -0
- package/lib/picker-group/style/index.js +9 -0
- package/lib/popover/index.js +4 -1
- package/lib/popup/Popup.d.ts +2 -2
- package/lib/popup/index.d.ts +2 -2
- package/lib/popup/index.js +4 -1
- package/lib/popup/shared.js +3 -1
- package/lib/progress/Progress.d.ts +1 -1
- package/lib/progress/index.d.ts +1 -1
- package/lib/progress/index.js +4 -1
- package/lib/pull-refresh/index.js +4 -1
- package/lib/radio/Radio.js +4 -1
- package/lib/radio/index.js +4 -1
- package/lib/radio-group/index.js +4 -1
- package/lib/rate/Rate.js +4 -2
- package/lib/rate/index.js +4 -1
- package/lib/row/Row.d.ts +1 -1
- package/lib/row/index.d.ts +1 -1
- package/lib/row/index.js +4 -1
- package/lib/search/index.js +4 -1
- package/lib/share-sheet/index.js +4 -1
- package/lib/sidebar/index.js +4 -1
- package/lib/sidebar-item/index.js +4 -1
- package/lib/skeleton/Skeleton.d.ts +1 -1
- package/lib/skeleton/index.d.ts +1 -1
- package/lib/skeleton/index.js +4 -1
- package/lib/slider/Slider.js +5 -1
- package/lib/slider/index.js +4 -1
- package/lib/space/Space.d.ts +1 -1
- package/lib/space/index.d.ts +1 -1
- package/lib/space/index.js +4 -1
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/index.d.ts +1 -1
- package/lib/step/index.js +4 -1
- package/lib/stepper/index.js +4 -1
- package/lib/steps/index.js +4 -1
- package/lib/sticky/index.js +4 -1
- package/lib/submit-bar/index.js +4 -1
- package/lib/swipe/Swipe.js +12 -5
- package/lib/swipe/index.js +4 -1
- package/lib/swipe-cell/SwipeCell.d.ts +2 -2
- package/lib/swipe-cell/SwipeCell.js +3 -1
- package/lib/swipe-cell/index.d.ts +2 -2
- package/lib/swipe-cell/index.js +4 -1
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/swipe-item/index.js +4 -1
- package/lib/switch/index.js +4 -1
- package/lib/tab/Tab.d.ts +1 -1
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/index.js +4 -1
- package/lib/tabbar/index.js +4 -1
- package/lib/tabbar-item/index.js +4 -1
- package/lib/tabs/Tabs.js +4 -1
- package/lib/tabs/TabsTitle.d.ts +1 -1
- package/lib/tabs/index.js +4 -1
- package/lib/tag/index.js +4 -1
- package/lib/time-picker/TimePicker.d.ts +6 -3
- package/lib/time-picker/index.d.ts +4 -2
- package/lib/time-picker/index.js +4 -1
- package/lib/time-picker/style/index.js +7 -0
- package/lib/toast/function-call.js +4 -1
- package/lib/toast/index.js +4 -1
- package/lib/tree-select/index.js +4 -1
- package/lib/uploader/Uploader.js +4 -1
- package/lib/uploader/index.js +4 -1
- package/lib/utils/create.js +12 -3
- package/lib/utils/with-install.d.ts +2 -2
- package/lib/utils/with-install.js +4 -2
- package/lib/vant.cjs.js +4345 -4157
- package/lib/vant.es.js +4347 -4159
- package/lib/vant.js +4402 -4197
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +2088 -2034
- package/package.json +7 -7
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, reactive, computed, defineComponent } from "vue";
|
3
3
|
import { clamp, isDef, numericProp, preventDefault, callInterceptor, createNamespace, makeNumericProp } from "../utils/index.mjs";
|
4
|
-
import { useRect, useClickAway } from "@vant/use";
|
4
|
+
import { useRect, useClickAway, useEventListener } from "@vant/use";
|
5
5
|
import { useTouch } from "../composables/use-touch.mjs";
|
6
6
|
import { useExpose } from "../composables/use-expose.mjs";
|
7
7
|
const [name, bem] = createNamespace("swipe-cell");
|
@@ -134,6 +134,9 @@ var stdin_default = defineComponent({
|
|
134
134
|
useClickAway(root, () => onClick("outside"), {
|
135
135
|
eventName: "touchstart"
|
136
136
|
});
|
137
|
+
useEventListener("touchmove", onTouchMove, {
|
138
|
+
target: root
|
139
|
+
});
|
137
140
|
return () => {
|
138
141
|
var _a;
|
139
142
|
const wrapperStyle = {
|
@@ -145,7 +148,6 @@ var stdin_default = defineComponent({
|
|
145
148
|
"class": bem(),
|
146
149
|
"onClick": getClickHandler("cell", lockClick),
|
147
150
|
"onTouchstartPassive": onTouchStart,
|
148
|
-
"onTouchmove": onTouchMove,
|
149
151
|
"onTouchend": onTouchEnd,
|
150
152
|
"onTouchcancel": onTouchEnd
|
151
153
|
}, [_createVNode("div", {
|
package/es/swipe-cell/index.d.ts
CHANGED
@@ -9,7 +9,7 @@ export declare const SwipeCell: import("../utils").WithInstall<import("vue").Def
|
|
9
9
|
rightWidth: (NumberConstructor | StringConstructor)[];
|
10
10
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
11
11
|
stopPropagation: BooleanConstructor;
|
12
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
12
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "close" | "open")[], "open" | "click" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
13
13
|
name: {
|
14
14
|
type: (NumberConstructor | StringConstructor)[];
|
15
15
|
default: string;
|
@@ -21,8 +21,8 @@ export declare const SwipeCell: import("../utils").WithInstall<import("vue").Def
|
|
21
21
|
stopPropagation: BooleanConstructor;
|
22
22
|
}>> & {
|
23
23
|
onClick?: ((...args: any[]) => any) | undefined;
|
24
|
-
onOpen?: ((...args: any[]) => any) | undefined;
|
25
24
|
onClose?: ((...args: any[]) => any) | undefined;
|
25
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
26
26
|
}, {
|
27
27
|
name: string | number;
|
28
28
|
disabled: boolean;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, (() => JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, (() => JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
2
2
|
export default _default;
|
package/es/swipe-item/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const SwipeItem: import("../utils").WithInstall<import("vue").DefineComponent<{}, (() => JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
1
|
+
export declare const SwipeItem: import("../utils").WithInstall<import("vue").DefineComponent<{}, (() => JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
2
2
|
export default SwipeItem;
|
3
3
|
declare module 'vue' {
|
4
4
|
interface GlobalComponents {
|
package/es/tab/Tab.d.ts
CHANGED
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
33
33
|
type: BooleanConstructor;
|
34
34
|
default: true;
|
35
35
|
};
|
36
|
-
}, (() => JSX.Element | undefined) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
36
|
+
}, (() => JSX.Element | undefined) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
37
37
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
38
38
|
url: StringConstructor;
|
39
39
|
replace: BooleanConstructor;
|
package/es/tab/index.d.ts
CHANGED
@@ -14,7 +14,7 @@ export declare const Tab: import("../utils").WithInstall<import("vue").DefineCom
|
|
14
14
|
type: BooleanConstructor;
|
15
15
|
default: true;
|
16
16
|
};
|
17
|
-
}, (() => JSX.Element | undefined) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
17
|
+
}, (() => JSX.Element | undefined) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
18
18
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
19
19
|
url: StringConstructor;
|
20
20
|
replace: BooleanConstructor;
|
package/es/tabs/TabsTitle.d.ts
CHANGED
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
16
16
|
type: BooleanConstructor;
|
17
17
|
default: true;
|
18
18
|
};
|
19
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
19
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
20
20
|
id: StringConstructor;
|
21
21
|
dot: BooleanConstructor;
|
22
22
|
type: StringConstructor;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type TimePickerColumnType = 'hour' | 'minute' | 'second';
|
3
3
|
declare const timePickerProps: {
|
4
|
-
title: StringConstructor;
|
5
4
|
loading: BooleanConstructor;
|
6
5
|
readonly: BooleanConstructor;
|
7
6
|
allowHtml: BooleanConstructor;
|
@@ -21,6 +20,8 @@ declare const timePickerProps: {
|
|
21
20
|
type: (NumberConstructor | StringConstructor)[];
|
22
21
|
default: number;
|
23
22
|
};
|
23
|
+
} & {
|
24
|
+
title: StringConstructor;
|
24
25
|
cancelButtonText: StringConstructor;
|
25
26
|
confirmButtonText: StringConstructor;
|
26
27
|
} & {
|
@@ -65,7 +66,6 @@ declare const timePickerProps: {
|
|
65
66
|
};
|
66
67
|
export declare type TimePickerProps = ExtractPropTypes<typeof timePickerProps>;
|
67
68
|
declare const _default: import("vue").DefineComponent<{
|
68
|
-
title: StringConstructor;
|
69
69
|
loading: BooleanConstructor;
|
70
70
|
readonly: BooleanConstructor;
|
71
71
|
allowHtml: BooleanConstructor;
|
@@ -85,6 +85,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
85
85
|
type: (NumberConstructor | StringConstructor)[];
|
86
86
|
default: number;
|
87
87
|
};
|
88
|
+
} & {
|
89
|
+
title: StringConstructor;
|
88
90
|
cancelButtonText: StringConstructor;
|
89
91
|
confirmButtonText: StringConstructor;
|
90
92
|
} & {
|
@@ -127,7 +129,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
127
129
|
default: () => string[];
|
128
130
|
};
|
129
131
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "cancel" | "confirm")[], "update:modelValue" | "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
130
|
-
title: StringConstructor;
|
131
132
|
loading: BooleanConstructor;
|
132
133
|
readonly: BooleanConstructor;
|
133
134
|
allowHtml: BooleanConstructor;
|
@@ -147,6 +148,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
147
148
|
type: (NumberConstructor | StringConstructor)[];
|
148
149
|
default: number;
|
149
150
|
};
|
151
|
+
} & {
|
152
|
+
title: StringConstructor;
|
150
153
|
cancelButtonText: StringConstructor;
|
151
154
|
confirmButtonText: StringConstructor;
|
152
155
|
} & {
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { TimePickerProps } from './TimePicker';
|
2
2
|
export declare const TimePicker: import("../utils").WithInstall<import("vue").DefineComponent<{
|
3
|
-
title: StringConstructor;
|
4
3
|
loading: BooleanConstructor;
|
5
4
|
readonly: BooleanConstructor;
|
6
5
|
allowHtml: BooleanConstructor;
|
@@ -20,6 +19,8 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
|
|
20
19
|
type: (NumberConstructor | StringConstructor)[];
|
21
20
|
default: number;
|
22
21
|
};
|
22
|
+
} & {
|
23
|
+
title: StringConstructor;
|
23
24
|
cancelButtonText: StringConstructor;
|
24
25
|
confirmButtonText: StringConstructor;
|
25
26
|
} & {
|
@@ -62,7 +63,6 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
|
|
62
63
|
default: () => string[];
|
63
64
|
};
|
64
65
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "cancel" | "confirm")[], "update:modelValue" | "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
65
|
-
title: StringConstructor;
|
66
66
|
loading: BooleanConstructor;
|
67
67
|
readonly: BooleanConstructor;
|
68
68
|
allowHtml: BooleanConstructor;
|
@@ -82,6 +82,8 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
|
|
82
82
|
type: (NumberConstructor | StringConstructor)[];
|
83
83
|
default: number;
|
84
84
|
};
|
85
|
+
} & {
|
86
|
+
title: StringConstructor;
|
85
87
|
cancelButtonText: StringConstructor;
|
86
88
|
confirmButtonText: StringConstructor;
|
87
89
|
} & {
|
@@ -1,3 +1,10 @@
|
|
1
1
|
import "../../style/base.css";
|
2
|
+
import "../../badge/index.css";
|
2
3
|
import "../../loading/index.css";
|
4
|
+
import "../../sticky/index.css";
|
5
|
+
import "../../swipe/index.css";
|
6
|
+
import "../../swipe-item/index.css";
|
7
|
+
import "../../tabs/index.css";
|
8
|
+
import "../../tab/index.css";
|
3
9
|
import "../../picker/index.css";
|
10
|
+
import "../../picker-group/index.css";
|
package/es/utils/create.mjs
CHANGED
@@ -18,9 +18,15 @@ function genBem(name, mods) {
|
|
18
18
|
return ` ${name}--${mods}`;
|
19
19
|
}
|
20
20
|
if (Array.isArray(mods)) {
|
21
|
-
return mods.reduce(
|
21
|
+
return mods.reduce(
|
22
|
+
(ret, item) => ret + genBem(name, item),
|
23
|
+
""
|
24
|
+
);
|
22
25
|
}
|
23
|
-
return Object.keys(mods).reduce(
|
26
|
+
return Object.keys(mods).reduce(
|
27
|
+
(ret, key) => ret + (mods[key] ? genBem(name, key) : ""),
|
28
|
+
""
|
29
|
+
);
|
24
30
|
}
|
25
31
|
function createBEM(name) {
|
26
32
|
return (el, mods) => {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { App } from 'vue';
|
1
|
+
import type { App, Component } from 'vue';
|
2
2
|
declare type EventShim = {
|
3
3
|
new (...args: any[]): {
|
4
4
|
$props: {
|
@@ -9,5 +9,5 @@ declare type EventShim = {
|
|
9
9
|
export declare type WithInstall<T> = T & {
|
10
10
|
install(app: App): void;
|
11
11
|
} & EventShim;
|
12
|
-
export declare function withInstall<T>(options: T): WithInstall<T>;
|
12
|
+
export declare function withInstall<T extends Component>(options: T): WithInstall<T>;
|
13
13
|
export {};
|
@@ -2,8 +2,10 @@ import { camelize } from "./format.mjs";
|
|
2
2
|
function withInstall(options) {
|
3
3
|
options.install = (app) => {
|
4
4
|
const { name } = options;
|
5
|
-
|
6
|
-
|
5
|
+
if (name) {
|
6
|
+
app.component(name, options);
|
7
|
+
app.component(camelize(`-${name}`), options);
|
8
|
+
}
|
7
9
|
};
|
8
10
|
return options;
|
9
11
|
}
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
14
14
|
type: BooleanConstructor;
|
15
15
|
default: true;
|
16
16
|
};
|
17
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
17
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
18
18
|
placeholder: BooleanConstructor;
|
19
19
|
safeAreaInsetBottom: {
|
20
20
|
type: BooleanConstructor;
|
@@ -4,7 +4,7 @@ export declare const ActionBar: import("../utils").WithInstall<import("vue").Def
|
|
4
4
|
type: BooleanConstructor;
|
5
5
|
default: true;
|
6
6
|
};
|
7
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
7
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
8
8
|
placeholder: BooleanConstructor;
|
9
9
|
safeAreaInsetBottom: {
|
10
10
|
type: BooleanConstructor;
|
package/lib/action-bar/index.js
CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
24
24
|
color: StringConstructor;
|
25
25
|
loading: BooleanConstructor;
|
26
26
|
disabled: BooleanConstructor;
|
27
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
27
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
28
28
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
29
29
|
url: StringConstructor;
|
30
30
|
replace: BooleanConstructor;
|
@@ -9,7 +9,7 @@ export declare const ActionBarButton: import("../utils").WithInstall<import("vue
|
|
9
9
|
color: StringConstructor;
|
10
10
|
loading: BooleanConstructor;
|
11
11
|
disabled: BooleanConstructor;
|
12
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
12
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
13
13
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
14
14
|
url: StringConstructor;
|
15
15
|
replace: BooleanConstructor;
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
28
28
|
iconClass: PropType<unknown>;
|
29
29
|
badgeProps: PropType<Partial<BadgeProps>>;
|
30
30
|
iconPrefix: StringConstructor;
|
31
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
31
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
32
32
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
33
33
|
url: StringConstructor;
|
34
34
|
replace: BooleanConstructor;
|
@@ -11,7 +11,7 @@ export declare const ActionBarIcon: import("../utils").WithInstall<import("vue")
|
|
11
11
|
iconClass: import("vue").PropType<unknown>;
|
12
12
|
badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
|
13
13
|
iconPrefix: StringConstructor;
|
14
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
14
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
15
15
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
16
16
|
url: StringConstructor;
|
17
17
|
replace: BooleanConstructor;
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -5,9 +5,15 @@ require("../../cell/index.css");
|
|
5
5
|
require("../../field/index.css");
|
6
6
|
require("../../loading/index.css");
|
7
7
|
require("../../switch/index.css");
|
8
|
-
require("../../picker/index.css");
|
9
8
|
require("../../button/index.css");
|
10
9
|
require("../../overlay/index.css");
|
11
10
|
require("../../popup/index.css");
|
12
11
|
require("../../toast/index.css");
|
12
|
+
require("../../sticky/index.css");
|
13
|
+
require("../../swipe/index.css");
|
14
|
+
require("../../swipe-item/index.css");
|
15
|
+
require("../../tabs/index.css");
|
16
|
+
require("../../tab/index.css");
|
17
|
+
require("../../picker/index.css");
|
18
|
+
require("../../picker-group/index.css");
|
13
19
|
require("../index.css");
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
package/lib/area/Area.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import type { AreaList } from './types';
|
3
3
|
declare const areaProps: {
|
4
|
-
title: StringConstructor;
|
5
4
|
loading: BooleanConstructor;
|
6
5
|
readonly: BooleanConstructor;
|
7
6
|
allowHtml: BooleanConstructor;
|
@@ -21,6 +20,8 @@ declare const areaProps: {
|
|
21
20
|
type: (NumberConstructor | StringConstructor)[];
|
22
21
|
default: number;
|
23
22
|
};
|
23
|
+
} & {
|
24
|
+
title: StringConstructor;
|
24
25
|
cancelButtonText: StringConstructor;
|
25
26
|
confirmButtonText: StringConstructor;
|
26
27
|
} & {
|
@@ -40,7 +41,6 @@ declare const areaProps: {
|
|
40
41
|
};
|
41
42
|
export declare type AreaProps = ExtractPropTypes<typeof areaProps>;
|
42
43
|
declare const _default: import("vue").DefineComponent<{
|
43
|
-
title: StringConstructor;
|
44
44
|
loading: BooleanConstructor;
|
45
45
|
readonly: BooleanConstructor;
|
46
46
|
allowHtml: BooleanConstructor;
|
@@ -60,6 +60,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
60
60
|
type: (NumberConstructor | StringConstructor)[];
|
61
61
|
default: number;
|
62
62
|
};
|
63
|
+
} & {
|
64
|
+
title: StringConstructor;
|
63
65
|
cancelButtonText: StringConstructor;
|
64
66
|
confirmButtonText: StringConstructor;
|
65
67
|
} & {
|
@@ -77,7 +79,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
77
79
|
default: () => {};
|
78
80
|
};
|
79
81
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "cancel" | "confirm")[], "update:modelValue" | "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
80
|
-
title: StringConstructor;
|
81
82
|
loading: BooleanConstructor;
|
82
83
|
readonly: BooleanConstructor;
|
83
84
|
allowHtml: BooleanConstructor;
|
@@ -97,6 +98,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
97
98
|
type: (NumberConstructor | StringConstructor)[];
|
98
99
|
default: number;
|
99
100
|
};
|
101
|
+
} & {
|
102
|
+
title: StringConstructor;
|
100
103
|
cancelButtonText: StringConstructor;
|
101
104
|
confirmButtonText: StringConstructor;
|
102
105
|
} & {
|
package/lib/area/index.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
export declare const Area: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
-
title: StringConstructor;
|
3
2
|
loading: BooleanConstructor;
|
4
3
|
readonly: BooleanConstructor;
|
5
4
|
allowHtml: BooleanConstructor;
|
@@ -19,6 +18,8 @@ export declare const Area: import("../utils").WithInstall<import("vue").DefineCo
|
|
19
18
|
type: (NumberConstructor | StringConstructor)[];
|
20
19
|
default: number;
|
21
20
|
};
|
21
|
+
} & {
|
22
|
+
title: StringConstructor;
|
22
23
|
cancelButtonText: StringConstructor;
|
23
24
|
confirmButtonText: StringConstructor;
|
24
25
|
} & {
|
@@ -36,7 +37,6 @@ export declare const Area: import("../utils").WithInstall<import("vue").DefineCo
|
|
36
37
|
default: () => {};
|
37
38
|
};
|
38
39
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "cancel" | "confirm")[], "update:modelValue" | "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
39
|
-
title: StringConstructor;
|
40
40
|
loading: BooleanConstructor;
|
41
41
|
readonly: BooleanConstructor;
|
42
42
|
allowHtml: BooleanConstructor;
|
@@ -56,6 +56,8 @@ export declare const Area: import("../utils").WithInstall<import("vue").DefineCo
|
|
56
56
|
type: (NumberConstructor | StringConstructor)[];
|
57
57
|
default: number;
|
58
58
|
};
|
59
|
+
} & {
|
60
|
+
title: StringConstructor;
|
59
61
|
cancelButtonText: StringConstructor;
|
60
62
|
confirmButtonText: StringConstructor;
|
61
63
|
} & {
|
package/lib/area/index.js
CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
package/lib/area/style/index.js
CHANGED
@@ -1,3 +1,10 @@
|
|
1
1
|
require("../../style/base.css");
|
2
|
+
require("../../badge/index.css");
|
2
3
|
require("../../loading/index.css");
|
4
|
+
require("../../sticky/index.css");
|
5
|
+
require("../../swipe/index.css");
|
6
|
+
require("../../swipe-item/index.css");
|
7
|
+
require("../../tabs/index.css");
|
8
|
+
require("../../tab/index.css");
|
3
9
|
require("../../picker/index.css");
|
10
|
+
require("../../picker-group/index.css");
|
package/lib/area/utils.js
CHANGED
@@ -62,13 +62,20 @@ function formatDataForCascade({
|
|
62
62
|
const getProvinceChildren = () => {
|
63
63
|
if (showCity) {
|
64
64
|
return placeholder.length ? [
|
65
|
-
makeOption(
|
65
|
+
makeOption(
|
66
|
+
placeholder[0],
|
67
|
+
AREA_EMPTY_CODE,
|
68
|
+
showCounty ? [] : void 0
|
69
|
+
)
|
66
70
|
] : [];
|
67
71
|
}
|
68
72
|
};
|
69
73
|
const provinceMap = /* @__PURE__ */ new Map();
|
70
74
|
Object.keys(province).forEach((code) => {
|
71
|
-
provinceMap.set(
|
75
|
+
provinceMap.set(
|
76
|
+
code.slice(0, 2),
|
77
|
+
makeOption(province[code], code, getProvinceChildren())
|
78
|
+
);
|
72
79
|
});
|
73
80
|
const cityMap = /* @__PURE__ */ new Map();
|
74
81
|
if (showCity) {
|
package/lib/badge/Badge.d.ts
CHANGED
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
39
39
|
type: PropType<BadgePosition>;
|
40
40
|
default: BadgePosition;
|
41
41
|
};
|
42
|
-
}, () => JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
42
|
+
}, () => JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
43
43
|
dot: BooleanConstructor;
|
44
44
|
max: (NumberConstructor | StringConstructor)[];
|
45
45
|
tag: {
|
package/lib/badge/index.d.ts
CHANGED
@@ -16,7 +16,7 @@ export declare const Badge: import("../utils").WithInstall<import("vue").DefineC
|
|
16
16
|
type: import("vue").PropType<import("./Badge").BadgePosition>;
|
17
17
|
default: import("./Badge").BadgePosition;
|
18
18
|
};
|
19
|
-
}, () => JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
19
|
+
}, () => JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
20
20
|
dot: BooleanConstructor;
|
21
21
|
max: (NumberConstructor | StringConstructor)[];
|
22
22
|
tag: {
|
package/lib/badge/index.js
CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
package/lib/button/index.js
CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|