pxd 0.0.39 → 0.0.41
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/README.md +9 -3
- package/dist/components/active-graph/index.vue +10 -5
- package/dist/components/backtop/index.vue +75 -0
- package/dist/components/badge/index.vue +9 -7
- package/dist/components/book/index.vue +3 -3
- package/dist/components/browser/index.vue +2 -2
- package/dist/components/checkbox/index.vue +4 -3
- package/dist/components/checkbox-group/index.vue +1 -1
- package/dist/components/choicebox-group/index.vue +1 -1
- package/dist/components/command-menu/index.vue +124 -0
- package/dist/components/command-menu-group/index.vue +18 -0
- package/dist/components/command-menu-item/index.vue +13 -0
- package/dist/components/countdown/index.vue +2 -1
- package/dist/components/drawer/index.vue +26 -26
- package/dist/components/error/index.vue +2 -2
- package/dist/components/fader/index.vue +31 -17
- package/dist/components/grid/index.vue +2 -2
- package/dist/components/grid-item/index.vue +2 -2
- package/dist/components/hold-button/index.vue +1 -1
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.js +7 -0
- package/dist/components/input/index.vue +18 -10
- package/dist/components/intersection-observer/index.vue +5 -5
- package/dist/components/kbd/index.vue +21 -8
- package/dist/components/{intersection-observer/content.vue → keep-alive-container/index.vue} +3 -1
- package/dist/components/list/index.vue +100 -92
- package/dist/components/list-item/index.vue +35 -33
- package/dist/components/loading-bar/index.vue +149 -0
- package/dist/components/material/index.vue +8 -8
- package/dist/components/menu/index.vue +26 -16
- package/dist/components/message/index.vue +28 -18
- package/dist/components/modal/index.vue +32 -36
- package/dist/components/note/index.vue +1 -1
- package/dist/components/overlay/index.vue +77 -24
- package/dist/components/pagination/index.vue +2 -2
- package/dist/components/placeholder/index.vue +13 -6
- package/dist/components/popover/index.vue +97 -87
- package/dist/components/progress/index.vue +1 -1
- package/dist/components/radio/index.vue +4 -3
- package/dist/components/radio-group/index.vue +1 -1
- package/dist/components/scrollable/index.vue +161 -94
- package/dist/components/slider/index.vue +7 -7
- package/dist/components/stack/index.vue +4 -4
- package/dist/components/switch/index.vue +1 -1
- package/dist/components/text/index.vue +1 -1
- package/dist/components/theme-switcher/index.vue +6 -2
- package/dist/components/time-picker/index.vue +281 -0
- package/dist/components/tooltip/index.vue +7 -7
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/index.js +1 -0
- package/dist/composables/use-browser-observer.d.ts +5 -5
- package/dist/composables/use-color-scheme.d.ts +5 -1
- package/dist/composables/use-color-scheme.js +20 -1
- package/dist/composables/use-config-provider-context.d.ts +1 -1
- package/dist/composables/use-countdown.d.ts +6 -0
- package/dist/composables/use-countdown.js +21 -7
- package/dist/composables/use-delay-destroy.d.ts +4 -4
- package/dist/composables/use-delay-destroy.js +15 -11
- package/dist/composables/use-focus-trap.d.ts +2 -2
- package/dist/composables/use-focus-trap.js +6 -6
- package/dist/composables/use-loading-bar.d.ts +25 -0
- package/dist/composables/use-loading-bar.js +27 -0
- package/dist/composables/use-media-query.js +1 -1
- package/dist/composables/use-message.d.ts +4 -1
- package/dist/composables/use-message.js +18 -0
- package/dist/composables/use-pointer-gesture.d.ts +2 -2
- package/dist/composables/use-pointer-gesture.js +3 -3
- package/dist/composables/use-repeat-action.d.ts +2 -2
- package/dist/composables/use-repeat-action.js +5 -5
- package/dist/composables/use-virtual-list.d.ts +1 -1
- package/dist/contexts/avatar.d.ts +1 -1
- package/dist/contexts/carousel.d.ts +1 -1
- package/dist/contexts/checkbox.d.ts +1 -1
- package/dist/contexts/choicebox.d.ts +2 -2
- package/dist/contexts/collapse.d.ts +1 -1
- package/dist/contexts/list.d.ts +5 -6
- package/dist/contexts/list.js +3 -3
- package/dist/contexts/radio.d.ts +1 -1
- package/dist/contexts/resizable.d.ts +1 -1
- package/dist/contexts/switch.d.ts +2 -2
- package/dist/{components/carousel → dist/components/keep-alive-container}/index.vue.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/en-us.d.ts +15 -7
- package/dist/locales/en-us.js +17 -9
- package/dist/locales/zh-cn.d.ts +15 -7
- package/dist/locales/zh-cn.js +17 -9
- package/dist/{components → src/components}/active-graph/index.vue.d.ts +7 -5
- package/dist/{components → src/components}/avatar-group/index.vue.d.ts +1 -1
- package/dist/src/components/backtop/index.vue.d.ts +20 -0
- package/dist/{components → src/components}/badge/index.vue.d.ts +2 -1
- package/dist/{components → src/components}/book/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/browser/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/button/index.vue.d.ts +1 -1
- package/dist/{components/intersection-observer/content.vue.d.ts → src/components/carousel/index.vue.d.ts} +1 -1
- package/dist/{components → src/components}/carousel-group/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/chip/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/choicebox/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/choicebox-group/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/collapse/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/collapse-group/index.vue.d.ts +1 -1
- package/dist/src/components/command-menu/index.vue.d.ts +39 -0
- package/dist/src/components/command-menu-group/index.vue.d.ts +16 -0
- package/dist/src/components/command-menu-item/index.vue.d.ts +12 -0
- package/dist/{components → src/components}/config-provider/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/description/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/drawer/index.vue.d.ts +19 -14
- package/dist/{components → src/components}/empty-state/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/error/index.vue.d.ts +1 -1
- package/dist/src/components/fader/index.vue.d.ts +11 -0
- package/dist/{components → src/components}/gauge/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/grid/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/grid-item/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/hold-button/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/input/index.vue.d.ts +9 -4
- package/dist/{components → src/components}/intersection-observer/index.vue.d.ts +3 -3
- package/dist/{components → src/components}/kbd/index.vue.d.ts +8 -5
- package/dist/src/components/keep-alive-container/index.vue.d.ts +12 -0
- package/dist/{components → src/components}/link-button/index.vue.d.ts +1 -1
- package/dist/src/components/list/index.vue.d.ts +40 -0
- package/dist/{components → src/components}/list-item/index.vue.d.ts +4 -4
- package/dist/src/components/loading-bar/index.vue.d.ts +14 -0
- package/dist/{components → src/components}/loading-dots/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/material/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/menu/index.vue.d.ts +11 -7
- package/dist/{components → src/components}/message/index.vue.d.ts +13 -13
- package/dist/{components → src/components}/modal/index.vue.d.ts +19 -14
- package/dist/{components → src/components}/more-button/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/note/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/number-input/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/overlay/index.vue.d.ts +3 -4
- package/dist/{components → src/components}/pagination/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/pin-input/index.vue.d.ts +1 -1
- package/dist/src/components/placeholder/index.vue.d.ts +9 -0
- package/dist/{components → src/components}/popover/index.vue.d.ts +10 -8
- package/dist/{components → src/components}/progress/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/radio/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/radio-group/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/resizable/index.vue.d.ts +1 -1
- package/dist/src/components/resizable-handle/index.vue.d.ts +2 -0
- package/dist/{components → src/components}/resizable-panel/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/skeleton/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/slider/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/snippet/index.vue.d.ts +1 -1
- package/dist/src/components/spinner/index.vue.d.ts +2 -0
- package/dist/{components → src/components}/stack/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/status-dot/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/switch/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/switch-group/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/teleport/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/text/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/textarea/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/theme-switcher/index.vue.d.ts +1 -1
- package/dist/src/components/time-picker/index.vue.d.ts +25 -0
- package/dist/{components → src/components}/toggle/index.vue.d.ts +1 -1
- package/dist/{components → src/components}/tooltip/index.vue.d.ts +3 -5
- package/dist/{components → src/components}/virtual-list/index.vue.d.ts +1 -1
- package/dist/src/composables/use-browser-observer.d.ts +12 -0
- package/dist/src/composables/use-color-scheme.d.ts +11 -0
- package/dist/src/composables/use-config-provider-context.d.ts +7 -0
- package/dist/src/composables/use-copy-click.d.ts +4 -0
- package/dist/src/composables/use-countdown.d.ts +60 -0
- package/dist/src/composables/use-delay-change.d.ts +7 -0
- package/dist/src/composables/use-delay-destroy.d.ts +13 -0
- package/dist/src/composables/use-focus-trap.d.ts +4 -0
- package/dist/src/composables/use-loading-bar.d.ts +25 -0
- package/dist/src/composables/use-media-query.d.ts +15 -0
- package/dist/src/composables/use-message.d.ts +33 -0
- package/dist/src/composables/use-model-value.d.ts +11 -0
- package/dist/src/composables/use-pointer-gesture.d.ts +180 -0
- package/dist/src/composables/use-repeat-action.d.ts +16 -0
- package/dist/src/composables/use-unique-id-context.d.ts +2 -0
- package/dist/src/composables/use-virtual-list.d.ts +16 -0
- package/dist/src/contexts/avatar.d.ts +2 -0
- package/dist/src/contexts/carousel.d.ts +13 -0
- package/dist/src/contexts/checkbox.d.ts +2 -0
- package/dist/src/contexts/choicebox.d.ts +4 -0
- package/dist/src/contexts/collapse.d.ts +8 -0
- package/dist/src/contexts/list.d.ts +8 -0
- package/dist/src/contexts/radio.d.ts +2 -0
- package/dist/src/contexts/resizable.d.ts +35 -0
- package/dist/src/contexts/switch.d.ts +4 -0
- package/dist/src/locales/en-us.d.ts +42 -0
- package/dist/src/plugins/dayjs-millisecond-token.d.ts +3 -0
- package/dist/src/types/components/time-picker.d.ts +4 -0
- package/dist/src/utils/context.d.ts +17 -0
- package/dist/src/utils/date.d.ts +26 -0
- package/dist/src/utils/debounce/index.d.ts +73 -0
- package/dist/src/utils/debounce.d.ts +1 -0
- package/dist/src/utils/dom.d.ts +40 -0
- package/dist/{utils/events.d.ts → src/utils/event.d.ts} +1 -0
- package/dist/src/utils/format.d.ts +25 -0
- package/dist/src/utils/get.d.ts +11 -0
- package/dist/src/utils/is.d.ts +4 -0
- package/dist/src/utils/ref.d.ts +5 -0
- package/dist/src/utils/regexp.d.ts +8 -0
- package/dist/src/utils/responsive.d.ts +3 -0
- package/dist/src/utils/throttle/index.d.ts +53 -0
- package/dist/src/utils/throttle.d.ts +1 -0
- package/dist/src/utils/uid.d.ts +1 -0
- package/dist/styles/styles.css +2 -2
- package/dist/styles/tw.css +18 -1
- package/dist/types/components/list.d.ts +4 -3
- package/dist/types/components/time-picker.d.ts +4 -0
- package/dist/types/components/time-picker.js +0 -0
- package/dist/types/shared/utils.d.ts +5 -2
- package/dist/utils/date.d.ts +3 -3
- package/dist/utils/debounce/compat.d.ts +143 -0
- package/dist/utils/debounce/compat.js +47 -0
- package/dist/utils/debounce/index.d.ts +73 -0
- package/dist/utils/debounce/index.js +60 -0
- package/dist/utils/debounce.d.ts +1 -73
- package/dist/utils/debounce.js +1 -60
- package/dist/utils/event.d.ts +9 -0
- package/dist/utils/{events.js → event.js} +3 -0
- package/dist/utils/format.d.ts +4 -1
- package/dist/utils/format.js +6 -0
- package/dist/utils/ref.d.ts +2 -5
- package/dist/utils/regexp.d.ts +4 -0
- package/dist/utils/regexp.js +4 -0
- package/dist/utils/responsive.d.ts +2 -1
- package/dist/utils/responsive.js +4 -1
- package/dist/utils/throttle/compat.d.ts +79 -0
- package/dist/utils/throttle/compat.js +9 -0
- package/dist/utils/throttle/index.d.ts +53 -0
- package/dist/utils/throttle/index.js +34 -0
- package/dist/utils/throttle.d.ts +1 -53
- package/dist/utils/throttle.js +1 -34
- package/dist/utils/uid.js +1 -1
- package/package.json +11 -11
- package/volar.d.ts +7 -0
- package/dist/components/fader/index.vue.d.ts +0 -11
- package/dist/components/list/index.vue.d.ts +0 -29
- package/dist/components/placeholder/index.vue.d.ts +0 -8
- package/dist/components/resizable-handle/index.vue.d.ts +0 -2
- package/dist/components/spinner/index.vue.d.ts +0 -2
- /package/dist/{components → src/components}/avatar/index.vue.d.ts +0 -0
- /package/dist/{components → src/components}/checkbox/index.vue.d.ts +0 -0
- /package/dist/{components → src/components}/checkbox-group/index.vue.d.ts +0 -0
- /package/dist/{components → src/components}/countdown/index.vue.d.ts +0 -0
|
@@ -78,7 +78,7 @@ type __VLS_Slots = {} & {
|
|
|
78
78
|
} & {
|
|
79
79
|
action?: (props: typeof __VLS_10) => any;
|
|
80
80
|
};
|
|
81
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
81
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
82
82
|
variant: keyof typeof VARIANTS;
|
|
83
83
|
label: boolean | string;
|
|
84
84
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -14,7 +14,7 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
} & {
|
|
15
15
|
suffix?: (props: typeof __VLS_18) => any;
|
|
16
16
|
};
|
|
17
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
17
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
18
|
"update:modelValue": (args_0: number) => any;
|
|
19
19
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
20
20
|
"onUpdate:modelValue"?: (args_0: number) => any;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import type { ComponentClass } from '../../types/shared';
|
|
2
1
|
interface Props {
|
|
3
2
|
blur?: boolean;
|
|
4
3
|
zIndex?: number;
|
|
5
4
|
modelValue?: boolean;
|
|
6
5
|
appendToBody?: boolean;
|
|
7
|
-
overlayClass?: ComponentClass;
|
|
8
6
|
closeOnPressEscape?: boolean;
|
|
9
7
|
closeOnClickOverlay?: boolean;
|
|
8
|
+
shownElement?: string | HTMLElement;
|
|
10
9
|
}
|
|
11
10
|
declare var __VLS_11: {};
|
|
12
11
|
type __VLS_Slots = {} & {
|
|
13
12
|
default?: (props: typeof __VLS_11) => any;
|
|
14
13
|
};
|
|
15
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
14
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
15
|
click: (args_0: MouseEvent) => any;
|
|
17
16
|
"update:modelValue": (args_0: boolean) => any;
|
|
18
17
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
@@ -20,8 +19,8 @@ declare const __VLS_component: import("vue").DefineComponent<Props, void, {}, {}
|
|
|
20
19
|
"onUpdate:modelValue"?: (args_0: boolean) => any;
|
|
21
20
|
}>, {
|
|
22
21
|
modelValue: boolean;
|
|
23
|
-
closeOnPressEscape: boolean;
|
|
24
22
|
appendToBody: boolean;
|
|
23
|
+
closeOnPressEscape: boolean;
|
|
25
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
26
25
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
27
26
|
export default _default;
|
|
@@ -10,7 +10,7 @@ declare var __VLS_11: {};
|
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
11
|
default?: (props: typeof __VLS_11) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
13
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
14
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
15
15
|
export default _default;
|
|
16
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -17,7 +17,7 @@ declare var __VLS_1: {};
|
|
|
17
17
|
type __VLS_Slots = {} & {
|
|
18
18
|
label?: (props: typeof __VLS_1) => any;
|
|
19
19
|
};
|
|
20
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
20
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
21
|
"update:modelValue": (args_0: string) => any;
|
|
22
22
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
23
23
|
"onUpdate:modelValue"?: (args_0: string) => any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
color?: string;
|
|
3
|
+
width?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
border?: boolean;
|
|
6
|
+
invert?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -4,7 +4,6 @@ import type { ComponentClass, ComponentPosition } from '../../types/shared';
|
|
|
4
4
|
interface Props {
|
|
5
5
|
zIndex?: number;
|
|
6
6
|
offset?: number;
|
|
7
|
-
content?: string;
|
|
8
7
|
visible?: boolean;
|
|
9
8
|
trigger?: PopoverTrigger | PopoverTrigger[];
|
|
10
9
|
disabled?: boolean;
|
|
@@ -19,12 +18,11 @@ interface Props {
|
|
|
19
18
|
autoPosition?: boolean;
|
|
20
19
|
scrollHidden?: boolean;
|
|
21
20
|
triggerClass?: ComponentClass;
|
|
22
|
-
|
|
21
|
+
wrapperClass?: ComponentClass;
|
|
22
|
+
contentClass?: ComponentClass;
|
|
23
23
|
triggerStyle?: CSSProperties | string;
|
|
24
|
-
|
|
24
|
+
contentStyle?: CSSProperties | string;
|
|
25
25
|
transitionName?: string;
|
|
26
|
-
showTransition?: boolean;
|
|
27
|
-
hideTransition?: boolean;
|
|
28
26
|
/** 最小可见比例(0~1), 仅当前可见区域比例小于该阈值时才会触发滚动过程中的自适应翻转 */
|
|
29
27
|
minVisibleRatio?: number;
|
|
30
28
|
closeOnPressEscape?: boolean;
|
|
@@ -32,6 +30,8 @@ interface Props {
|
|
|
32
30
|
autoPositionThreshold?: number;
|
|
33
31
|
/** 滚动隐藏的阈值, 当滚动距离超过该值时, 自动隐藏弹窗, 单位: px */
|
|
34
32
|
scrollHiddenThreshold?: number;
|
|
33
|
+
disabledShowTransition?: boolean;
|
|
34
|
+
disabledHideTransition?: boolean;
|
|
35
35
|
}
|
|
36
36
|
declare function handlePopoverShow(immediate?: boolean): Promise<void>;
|
|
37
37
|
declare function handlePopoverHide(immediate?: boolean): Promise<void>;
|
|
@@ -47,11 +47,15 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
47
47
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
48
|
hide: () => any;
|
|
49
49
|
show: () => any;
|
|
50
|
+
"visible-change": (args_0: boolean) => any;
|
|
51
|
+
"outside-click": (args_0: MouseEvent) => any;
|
|
50
52
|
"trigger-click": (args_0: PointerEvent) => any;
|
|
51
53
|
"trigger-keydown": (args_0: KeyboardEvent) => any;
|
|
52
54
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
53
55
|
onHide?: () => any;
|
|
54
56
|
onShow?: () => any;
|
|
57
|
+
"onVisible-change"?: (args_0: boolean) => any;
|
|
58
|
+
"onOutside-click"?: (args_0: MouseEvent) => any;
|
|
55
59
|
"onTrigger-click"?: (args_0: PointerEvent) => any;
|
|
56
60
|
"onTrigger-keydown"?: (args_0: KeyboardEvent) => any;
|
|
57
61
|
}>, {
|
|
@@ -59,6 +63,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
59
63
|
maxWidth: number;
|
|
60
64
|
position: ComponentPosition;
|
|
61
65
|
zIndex: number;
|
|
66
|
+
closeOnPressEscape: boolean;
|
|
62
67
|
trigger: PopoverTrigger | PopoverTrigger[];
|
|
63
68
|
showDelay: number;
|
|
64
69
|
hideDelay: number;
|
|
@@ -67,10 +72,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
67
72
|
destroyDelay: number;
|
|
68
73
|
autoPosition: boolean;
|
|
69
74
|
scrollHidden: boolean;
|
|
70
|
-
showTransition: boolean;
|
|
71
|
-
hideTransition: boolean;
|
|
72
75
|
minVisibleRatio: number;
|
|
73
|
-
closeOnPressEscape: boolean;
|
|
74
76
|
autoPositionThreshold: number;
|
|
75
77
|
scrollHiddenThreshold: number;
|
|
76
78
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -12,7 +12,7 @@ declare var __VLS_1: {};
|
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
13
13
|
default?: (props: typeof __VLS_1) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
15
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
16
|
"update:modelValue": (args_0: number) => any;
|
|
17
17
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
18
18
|
"onUpdate:modelValue"?: (args_0: number) => any;
|
|
@@ -3,7 +3,7 @@ declare var __VLS_1: {};
|
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
};
|
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<RadioProps,
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<RadioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
"update:modelValue": (args_0: NonNullable<import("../../types/shared").ComponentValue>) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<RadioProps> & Readonly<{
|
|
9
9
|
"onUpdate:modelValue"?: (args_0: NonNullable<import("../../types/shared").ComponentValue>) => any;
|
|
@@ -3,7 +3,7 @@ declare var __VLS_6: {};
|
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<RadioGroupProps,
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<RadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
change: (args_0: NonNullable<import("../../types/shared").ComponentValue>) => any;
|
|
8
8
|
"update:modelValue": (args_0: NonNullable<import("../../types/shared").ComponentValue>) => any;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<RadioGroupProps> & Readonly<{
|
|
@@ -6,7 +6,7 @@ declare var __VLS_1: {};
|
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
10
|
direction: ComponentDirection;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
12
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -6,7 +6,7 @@ declare var __VLS_1: {};
|
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
10
|
size: number | null;
|
|
11
11
|
minSize: number;
|
|
12
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -10,7 +10,7 @@ declare var __VLS_1: {};
|
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
11
|
default?: (props: typeof __VLS_1) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
13
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
14
|
height: string | number;
|
|
15
15
|
loading: boolean;
|
|
16
16
|
shape: "default" | "squared" | "rounded";
|
|
@@ -9,7 +9,7 @@ interface Props {
|
|
|
9
9
|
variant?: ComponentVariant | 'secondary';
|
|
10
10
|
modelValue?: number | [number, number] | null;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
12
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
13
|
"update:modelValue": (args_0: NonNullable<number | [number, number]>) => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
15
15
|
"onUpdate:modelValue"?: (args_0: NonNullable<number | [number, number]>) => any;
|
|
@@ -6,7 +6,7 @@ interface Props {
|
|
|
6
6
|
prompt?: boolean | string;
|
|
7
7
|
variant?: ComponentVariantWithDefault;
|
|
8
8
|
}
|
|
9
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
9
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
10
|
copy: (args_0: string) => any;
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
12
12
|
onCopy?: (args_0: string) => any;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -13,7 +13,7 @@ declare var __VLS_7: {};
|
|
|
13
13
|
type __VLS_Slots = {} & {
|
|
14
14
|
default?: (props: typeof __VLS_7) => any;
|
|
15
15
|
};
|
|
16
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
17
17
|
scale: number;
|
|
18
18
|
wrap: boolean;
|
|
19
19
|
justify: Align;
|
|
@@ -2,7 +2,7 @@ interface Props {
|
|
|
2
2
|
label?: boolean | string;
|
|
3
3
|
state?: 'QUEUED' | 'BUILDING' | 'READY' | 'ERROR' | 'CANCELED';
|
|
4
4
|
}
|
|
5
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
5
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
6
6
|
state: "QUEUED" | "BUILDING" | "READY" | "ERROR" | "CANCELED";
|
|
7
7
|
label: boolean | string;
|
|
8
8
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -9,7 +9,7 @@ declare var __VLS_1: {};
|
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
default?: (props: typeof __VLS_1) => any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
14
14
|
export default _default;
|
|
15
15
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -3,7 +3,7 @@ declare var __VLS_1: {};
|
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
};
|
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<SwitchGroupProps,
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<SwitchGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
"update:modelValue": (args_0: NonNullable<string | number>) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<SwitchGroupProps> & Readonly<{
|
|
9
9
|
"onUpdate:modelValue"?: (args_0: NonNullable<string | number>) => any;
|
|
@@ -8,7 +8,7 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
} & {
|
|
9
9
|
default?: (props: typeof __VLS_8) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
12
12
|
to: string | HTMLElement;
|
|
13
13
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
14
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -11,7 +11,7 @@ declare var __VLS_7: {};
|
|
|
11
11
|
type __VLS_Slots = {} & {
|
|
12
12
|
default?: (props: typeof __VLS_7) => any;
|
|
13
13
|
};
|
|
14
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
14
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
15
15
|
truncate: boolean | number | string;
|
|
16
16
|
as: ComponentAs;
|
|
17
17
|
align: "left" | "center" | "right";
|
|
@@ -16,7 +16,7 @@ declare var __VLS_1: {};
|
|
|
16
16
|
type __VLS_Slots = {} & {
|
|
17
17
|
label?: (props: typeof __VLS_1) => any;
|
|
18
18
|
};
|
|
19
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
20
|
change: (args_0: Event) => any;
|
|
21
21
|
blur: (args_0: FocusEvent) => any;
|
|
22
22
|
focus: (args_0: FocusEvent) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ColorScheme } from '../../composables/use-color-scheme';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{},
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
3
|
toggle: (args_0: ColorScheme) => any;
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
5
5
|
onToggle?: (args_0: ColorScheme) => any;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { DateTimePreset } from '../../types/components/time-picker';
|
|
2
|
+
interface Props {
|
|
3
|
+
allowClear?: boolean;
|
|
4
|
+
presets?: DateTimePreset[];
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
modelValue?: Date | string | number;
|
|
7
|
+
prefixIcon?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
closeOnPressEscape?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
change: (args_0: boolean) => any;
|
|
13
|
+
select: (args_0: MouseEvent) => any;
|
|
14
|
+
"update:modelValue": (args_0: string) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
16
|
+
onChange?: (args_0: boolean) => any;
|
|
17
|
+
onSelect?: (args_0: MouseEvent) => any;
|
|
18
|
+
"onUpdate:modelValue"?: (args_0: string) => any;
|
|
19
|
+
}>, {
|
|
20
|
+
modelValue: Date | string | number;
|
|
21
|
+
closeOnPressEscape: boolean;
|
|
22
|
+
presets: DateTimePreset[];
|
|
23
|
+
prefixIcon: boolean;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
export default _default;
|
|
@@ -22,7 +22,7 @@ type __VLS_Slots = {} & {
|
|
|
22
22
|
} & {
|
|
23
23
|
unchecked?: (props: typeof __VLS_15) => any;
|
|
24
24
|
};
|
|
25
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
25
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
26
|
change: (args_0: NonNullable<ValueType>) => any;
|
|
27
27
|
"update:modelValue": (args_0: NonNullable<ValueType>) => any;
|
|
28
28
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
@@ -9,9 +9,9 @@ interface Props {
|
|
|
9
9
|
showArrow?: boolean;
|
|
10
10
|
desktopOnly?: boolean;
|
|
11
11
|
triggerClass?: ComponentClass;
|
|
12
|
-
|
|
12
|
+
contentClass?: ComponentClass;
|
|
13
13
|
triggerStyle?: CSSProperties | string;
|
|
14
|
-
|
|
14
|
+
contentStyle?: CSSProperties | string;
|
|
15
15
|
}
|
|
16
16
|
declare var __VLS_6: {}, __VLS_9: {};
|
|
17
17
|
type __VLS_Slots = {} & {
|
|
@@ -19,12 +19,10 @@ type __VLS_Slots = {} & {
|
|
|
19
19
|
} & {
|
|
20
20
|
content?: (props: typeof __VLS_9) => any;
|
|
21
21
|
};
|
|
22
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
22
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
23
23
|
variant: ComponentVariant;
|
|
24
24
|
position: ComponentPosition;
|
|
25
25
|
showArrow: boolean;
|
|
26
|
-
popoverClass: ComponentClass;
|
|
27
|
-
popoverStyle: CSSProperties | string;
|
|
28
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
27
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
30
28
|
export default _default;
|
|
@@ -9,7 +9,7 @@ declare var __VLS_1: {
|
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
default?: (props: typeof __VLS_1) => any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
13
13
|
dataKey: string;
|
|
14
14
|
listData: any[];
|
|
15
15
|
itemSize: number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import type { Nullable } from '../types/shared/utils';
|
|
3
|
+
export declare const useIntersectionObserver: (target: TargetRef, callback: IntersectionObserverCallback, options?: MaybeRefOrGetter<IntersectionObserverInit>) => ObserverReturnType<IntersectionObserver>;
|
|
4
|
+
export declare const useMutationObserver: (target: TargetRef, callback: MutationCallback, options?: MaybeRefOrGetter<MutationObserverInit>) => ObserverReturnType<MutationObserver>;
|
|
5
|
+
export declare const useResizeObserver: (target: TargetRef, callback: ResizeObserverCallback, options?: MaybeRefOrGetter<ResizeObserverOptions>) => ObserverReturnType<ResizeObserver>;
|
|
6
|
+
type Observers = IntersectionObserver | ResizeObserver | MutationObserver;
|
|
7
|
+
type TargetRef = MaybeRefOrGetter<Nullable<HTMLElement>> | MaybeRefOrGetter<Nullable<HTMLElement>>[];
|
|
8
|
+
interface ObserverReturnType<T extends Observers> {
|
|
9
|
+
observer: T | undefined;
|
|
10
|
+
stop: () => void;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type ColorScheme = 'light' | 'dark';
|
|
2
|
+
export type ColorPreference = ColorScheme | 'auto';
|
|
3
|
+
interface Options {
|
|
4
|
+
syncStatus?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function useColorScheme(options?: Options): {
|
|
7
|
+
isDark: import("vue").ComputedRef<boolean>;
|
|
8
|
+
colorScheme: import("vue").ShallowRef<ColorPreference, ColorPreference>;
|
|
9
|
+
toggleDarkMode: () => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentSize } from '../types/shared';
|
|
2
|
+
export declare const injectionKey = "ConfigProvider";
|
|
3
|
+
export interface ConfigProviderProps {
|
|
4
|
+
size?: ComponentSize;
|
|
5
|
+
locale?: Record<string, any>;
|
|
6
|
+
}
|
|
7
|
+
export declare const provideConfigProvider: (contextValue: Required<ConfigProviderProps>) => Required<ConfigProviderProps>, useConfigProvider: ((fallback?: Required<ConfigProviderProps>) => Required<ConfigProviderProps>) & ((fallback: null) => Required<ConfigProviderProps>);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { EmitFn } from 'vue';
|
|
2
|
+
export interface Options {
|
|
3
|
+
/**
|
|
4
|
+
* 是否启用正计时
|
|
5
|
+
* Whether to enable count up mode.
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
invert?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 是否激活
|
|
11
|
+
* Whether the countdown is active.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
active?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 开始时间于
|
|
17
|
+
* The start time of the countdown.
|
|
18
|
+
*/
|
|
19
|
+
startAt?: number;
|
|
20
|
+
/**
|
|
21
|
+
* 结束时间
|
|
22
|
+
* The end time of the countdown.
|
|
23
|
+
*/
|
|
24
|
+
endTime?: number;
|
|
25
|
+
/**
|
|
26
|
+
* 是否自动重置
|
|
27
|
+
* Whether to automatically reset.
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
autoReset?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* 倒计时时间
|
|
33
|
+
* The duration of the countdown.
|
|
34
|
+
* @default 0
|
|
35
|
+
*/
|
|
36
|
+
durations?: number;
|
|
37
|
+
/**
|
|
38
|
+
* 精度
|
|
39
|
+
* The precision of the countdown.
|
|
40
|
+
* @default 0
|
|
41
|
+
*/
|
|
42
|
+
precision?: number;
|
|
43
|
+
/**
|
|
44
|
+
* 是否使用毫秒
|
|
45
|
+
* Whether the time stamp is in milliseconds.
|
|
46
|
+
* @default true
|
|
47
|
+
*/
|
|
48
|
+
millisecond?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* 是否启用人性化时间显示(向上取整到秒)
|
|
51
|
+
* Whether to enable human-friendly time display (ceil to seconds).
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
intuitive?: boolean;
|
|
55
|
+
}
|
|
56
|
+
export declare function useCountdown<T extends Record<string, any>>(props: Options, emits: EmitFn<T>): {
|
|
57
|
+
stop: () => void;
|
|
58
|
+
reset: () => void;
|
|
59
|
+
timestamp: import("vue").ShallowRef<number, number>;
|
|
60
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
interface UseDelayChangeReturnType<T> {
|
|
3
|
+
value: Ref<T>;
|
|
4
|
+
setValue: (value: T, immediate?: boolean) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function useDelayChange<T>(defaultValue: T, delayMs?: number): UseDelayChangeReturnType<T>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
interface Options {
|
|
3
|
+
default?: boolean;
|
|
4
|
+
delay?: number;
|
|
5
|
+
}
|
|
6
|
+
interface UseDelayDestroyReturnType {
|
|
7
|
+
render: Ref<boolean>;
|
|
8
|
+
visible: Ref<boolean>;
|
|
9
|
+
open: () => Promise<boolean>;
|
|
10
|
+
close: () => Promise<boolean>;
|
|
11
|
+
}
|
|
12
|
+
export declare function useDelayDestroy(valueOrOptions?: boolean | Options): UseDelayDestroyReturnType;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const START_LOADING_BAR_EVENT_NAME = "#start-loading-bar";
|
|
2
|
+
export declare const ERROR_LOADING_BAR_EVENT_NAME = "#error-loading-bar";
|
|
3
|
+
export declare const FINISH_LOADING_BAR_EVENT_NAME = "#finish-loading-bar";
|
|
4
|
+
export declare const INCREASE_LOADING_BAR_EVENT_NAME = "#increase-loading-bar";
|
|
5
|
+
declare const LOADING_BAR_EVENTS: {
|
|
6
|
+
readonly start: "#start-loading-bar";
|
|
7
|
+
readonly error: "#error-loading-bar";
|
|
8
|
+
readonly finish: "#finish-loading-bar";
|
|
9
|
+
readonly increase: "#increase-loading-bar";
|
|
10
|
+
};
|
|
11
|
+
interface Options extends Record<string, any> {
|
|
12
|
+
type?: keyof typeof LOADING_BAR_EVENTS;
|
|
13
|
+
}
|
|
14
|
+
export interface LoadingBarEventParams {
|
|
15
|
+
group: string;
|
|
16
|
+
value?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare function useLoadingBar(options?: Options): void;
|
|
19
|
+
export declare namespace useLoadingBar {
|
|
20
|
+
var start: (group?: string) => void;
|
|
21
|
+
var error: (group?: string) => void;
|
|
22
|
+
var finish: (group?: string) => void;
|
|
23
|
+
var increase: (group?: string, value?: number) => void;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
export declare const PRESET_MEDIA_QUERIES: {
|
|
3
|
+
MOTION_NO_PREFERENCE: string;
|
|
4
|
+
MOTION_NO_REDUCE: string;
|
|
5
|
+
MOTION_REDUCE: string;
|
|
6
|
+
COLOR_SCHEME_DARK: string;
|
|
7
|
+
COLOR_SCHEME_LIGHT: string;
|
|
8
|
+
COLOR_SCHEME_NO_PREFERENCE: string;
|
|
9
|
+
SM_UP: string;
|
|
10
|
+
MD_UP: string;
|
|
11
|
+
LG_UP: string;
|
|
12
|
+
XL_UP: string;
|
|
13
|
+
XXL_UP: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function useMediaQuery(condition: string, callback?: (e: MediaQueryList) => void): Ref<boolean>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
import type { ComponentClass } from '../types/shared/props';
|
|
3
|
+
interface Options {
|
|
4
|
+
key?: string | number;
|
|
5
|
+
type?: 'info' | 'success' | 'warning' | 'error' | 'loading' | '' | false | undefined;
|
|
6
|
+
class?: ComponentClass;
|
|
7
|
+
group?: string;
|
|
8
|
+
durations?: number;
|
|
9
|
+
closeable?: boolean;
|
|
10
|
+
}
|
|
11
|
+
type RequireAllExcept<T, K extends keyof T> = Required<Omit<T, K>> & Pick<T, K>;
|
|
12
|
+
type RequiredOptionsExceptType = RequireAllExcept<Options, 'type'>;
|
|
13
|
+
export interface MessageItem extends RequiredOptionsExceptType {
|
|
14
|
+
message: string | VNode;
|
|
15
|
+
_timerId?: ReturnType<typeof setTimeout>;
|
|
16
|
+
_remainingMs?: number;
|
|
17
|
+
_startedAtMs?: number;
|
|
18
|
+
}
|
|
19
|
+
interface UseMessage {
|
|
20
|
+
(msg: string | VNode, options?: Options): void;
|
|
21
|
+
info: (msg: string | VNode, options?: Options) => void;
|
|
22
|
+
success: (msg: string | VNode, options?: Options) => void;
|
|
23
|
+
warning: (msg: string | VNode, options?: Options) => void;
|
|
24
|
+
error: (msg: string | VNode, options?: Options) => void;
|
|
25
|
+
loading: (msg: string | VNode, options?: Options) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const CLEAR_MESSAGES_EVENT_NAME = "#clear-messages";
|
|
28
|
+
export declare const CREATE_MESSAGE_EVENT_NAME = "#create-message";
|
|
29
|
+
export declare const REMOVE_MESSAGE_EVENT_NAME = "#remove-message";
|
|
30
|
+
export declare const useMessage: UseMessage;
|
|
31
|
+
export declare function closeMessage(group: Options['group'], key: Options['key']): void;
|
|
32
|
+
export declare function clearMessage(group: Options['group']): void;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WritableComputedRef } from 'vue';
|
|
2
|
+
interface Options {
|
|
3
|
+
get?: (value: any) => any;
|
|
4
|
+
set?: (value: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function useModelValue<P extends {
|
|
7
|
+
modelValue: any;
|
|
8
|
+
}, E extends {
|
|
9
|
+
(event: 'update:modelValue', ...args: any[]): void;
|
|
10
|
+
}>(props: P, emits: E, options?: Options): WritableComputedRef<NonNullable<P['modelValue']>>;
|
|
11
|
+
export {};
|