vft 0.0.153 → 0.0.154
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/app-components/button/button-custom.d.ts +1 -1
- package/es/app-components/form/hooks/use-form-common-props.d.ts +4 -5
- package/es/app-components/hooks/use-id.d.ts +1 -2
- package/es/components/affix/affix.d.ts +2 -2
- package/es/components/affix/affix.vue.d.ts +1 -1
- package/es/components/affix/index.d.ts +3 -3
- package/es/components/autocomplete/autocomplete.vue.d.ts +17 -17
- package/es/components/autocomplete/index.d.ts +51 -51
- package/es/components/button/button-custom.d.ts +1 -1
- package/es/components/button/button.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +3 -3
- package/es/components/button/use-button.d.ts +3 -3
- package/es/components/carousel/carousel.vue.d.ts +1 -1
- package/es/components/carousel/index.d.ts +19 -19
- package/es/components/carousel/use-carousel.d.ts +2 -2
- package/es/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +48 -48
- package/es/components/config-provider/hooks/use-global-config.d.ts +2 -3
- package/es/components/date-picker/composables/use-range-picker.d.ts +1 -1
- package/es/components/date-picker/date-picker.d.ts +19 -3
- package/es/components/date-picker/index.d.ts +38 -6
- package/es/components/date-picker/props/date-picker.d.ts +9 -1
- package/es/components/date-picker/props/shared.d.ts +1 -1
- package/es/components/date-picker/utils.d.ts +1 -1
- package/es/components/dialog/dialog.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +6 -6
- package/es/components/drawer/drawer.vue.d.ts +2 -2
- package/es/components/drawer/index.d.ts +6 -6
- package/es/components/dropdown/dropdown.vue.d.ts +2 -2
- package/es/components/dropdown/index.d.ts +30 -30
- package/es/components/form/hooks/use-form-common-props.d.ts +4 -6
- package/es/components/icon/icon.vue2.js +20 -21
- package/es/components/loading/index.d.ts +9 -17
- package/es/components/loading/loading.d.ts +9 -17
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +97 -67
- package/es/components/popover/index.d.ts +8 -8
- package/es/components/popper/composables/use-content-dom.d.ts +1 -3
- package/es/components/popper/composables/use-content.d.ts +6 -70
- package/es/components/popper/index.d.ts +3 -3
- package/es/components/popper/popper.vue.d.ts +1 -2
- package/es/components/popper/utils.d.ts +2 -45
- package/es/components/radio/index.d.ts +24 -24
- package/es/components/radio/use-radio.d.ts +1 -1
- package/es/components/select/defaults.d.ts +3 -4
- package/es/components/select/index.d.ts +58 -58
- package/es/components/select/select.vue.d.ts +29 -29
- package/es/components/select/useSelect.d.ts +18 -18
- package/es/components/side-menu/index.d.ts +4 -8
- package/es/components/side-menu/side-menu.vue.d.ts +2 -2
- package/es/components/side-menu/side-menu.vue2.js +44 -44
- package/es/components/slider/composables/use-slide.d.ts +6 -6
- package/es/components/slider/index.d.ts +2 -2
- package/es/components/slider/slider.d.ts +3 -3
- package/es/components/space/index.d.ts +2 -5
- package/es/components/space/space.d.ts +2 -5
- package/es/components/super-form/index.d.ts +3 -3
- package/es/components/super-form/super-form.vue.d.ts +1 -1
- package/es/components/table/index.d.ts +24 -24
- package/es/components/table/use/use-columns.d.ts +3 -801
- package/es/components/tabs/tabs.vue2.js +4 -4
- package/es/components/time-picker/common/picker.vue.d.ts +20 -5
- package/es/components/time-picker/common/props.d.ts +9 -2
- package/es/components/time-picker/composables/use-time-picker.d.ts +2 -2
- package/es/components/time-picker/index.d.ts +38 -6
- package/es/components/time-picker/time-picker.d.ts +19 -3
- package/es/components/time-picker/utils.d.ts +1 -1
- package/es/components/time-select/time-select.vue.d.ts +1 -1
- package/es/components/tooltip/index.d.ts +16 -16
- package/es/components/tooltip/utils.d.ts +1 -1
- package/es/components/upload/use-handlers.d.ts +1 -21
- package/es/components/virtual-list/hooks/use-cache.d.ts +1 -1
- package/es/hooks/use-id/index.d.ts +1 -2
- package/es/hooks/use-model-toggle/index.d.ts +2 -2
- package/es/hooks/use-popper/index.d.ts +7 -70
- package/es/hooks/use-same-target/index.d.ts +3 -3
- package/es/hooks/use-z-index/index.d.ts +1 -1
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/app-components/button/button-custom.d.ts +1 -1
- package/lib/app-components/form/hooks/use-form-common-props.d.ts +4 -5
- package/lib/app-components/hooks/use-id.d.ts +1 -2
- package/lib/components/affix/affix.d.ts +2 -2
- package/lib/components/affix/affix.vue.d.ts +1 -1
- package/lib/components/affix/index.d.ts +3 -3
- package/lib/components/autocomplete/autocomplete.vue.d.ts +17 -17
- package/lib/components/autocomplete/index.d.ts +51 -51
- package/lib/components/button/button-custom.d.ts +1 -1
- package/lib/components/button/button.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +3 -3
- package/lib/components/button/use-button.d.ts +3 -3
- package/lib/components/carousel/carousel.vue.d.ts +1 -1
- package/lib/components/carousel/index.d.ts +19 -19
- package/lib/components/carousel/use-carousel.d.ts +2 -2
- package/lib/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +48 -48
- package/lib/components/config-provider/hooks/use-global-config.d.ts +2 -3
- package/lib/components/date-picker/composables/use-range-picker.d.ts +1 -1
- package/lib/components/date-picker/date-picker.d.ts +19 -3
- package/lib/components/date-picker/index.d.ts +38 -6
- package/lib/components/date-picker/props/date-picker.d.ts +9 -1
- package/lib/components/date-picker/props/shared.d.ts +1 -1
- package/lib/components/date-picker/utils.d.ts +1 -1
- package/lib/components/dialog/dialog.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +6 -6
- package/lib/components/drawer/drawer.vue.d.ts +2 -2
- package/lib/components/drawer/index.d.ts +6 -6
- package/lib/components/dropdown/dropdown.vue.d.ts +2 -2
- package/lib/components/dropdown/index.d.ts +30 -30
- package/lib/components/form/hooks/use-form-common-props.d.ts +4 -6
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/loading/index.d.ts +9 -17
- package/lib/components/loading/loading.d.ts +9 -17
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/popover/index.d.ts +8 -8
- package/lib/components/popper/composables/use-content-dom.d.ts +1 -3
- package/lib/components/popper/composables/use-content.d.ts +6 -70
- package/lib/components/popper/index.d.ts +3 -3
- package/lib/components/popper/popper.vue.d.ts +1 -2
- package/lib/components/popper/utils.d.ts +2 -45
- package/lib/components/radio/index.d.ts +24 -24
- package/lib/components/radio/use-radio.d.ts +1 -1
- package/lib/components/select/defaults.d.ts +3 -4
- package/lib/components/select/index.d.ts +58 -58
- package/lib/components/select/select.vue.d.ts +29 -29
- package/lib/components/select/useSelect.d.ts +18 -18
- package/lib/components/side-menu/index.d.ts +4 -8
- package/lib/components/side-menu/side-menu.vue.d.ts +2 -2
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/slider/composables/use-slide.d.ts +6 -6
- package/lib/components/slider/index.d.ts +2 -2
- package/lib/components/slider/slider.d.ts +3 -3
- package/lib/components/space/index.d.ts +2 -5
- package/lib/components/space/space.d.ts +2 -5
- package/lib/components/super-form/index.d.ts +3 -3
- package/lib/components/super-form/super-form.vue.d.ts +1 -1
- package/lib/components/table/index.d.ts +24 -24
- package/lib/components/table/use/use-columns.d.ts +3 -801
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue.d.ts +20 -5
- package/lib/components/time-picker/common/props.d.ts +9 -2
- package/lib/components/time-picker/composables/use-time-picker.d.ts +2 -2
- package/lib/components/time-picker/index.d.ts +38 -6
- package/lib/components/time-picker/time-picker.d.ts +19 -3
- package/lib/components/time-picker/utils.d.ts +1 -1
- package/lib/components/time-select/time-select.vue.d.ts +1 -1
- package/lib/components/tooltip/index.d.ts +16 -16
- package/lib/components/tooltip/utils.d.ts +1 -1
- package/lib/components/upload/use-handlers.d.ts +1 -21
- package/lib/components/virtual-list/hooks/use-cache.d.ts +1 -1
- package/lib/hooks/use-id/index.d.ts +1 -2
- package/lib/hooks/use-model-toggle/index.d.ts +2 -2
- package/lib/hooks/use-popper/index.d.ts +7 -70
- package/lib/hooks/use-same-target/index.d.ts +3 -3
- package/lib/hooks/use-z-index/index.d.ts +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +5 -5
- package/web-types.json +1 -1
- package/es/components/super-form/types.d.ts +0 -176
- package/lib/components/super-form/types.d.ts +0 -176
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, getCurrentInstance as h, useSlots as S, ref as
|
|
1
|
+
import { defineComponent as I, getCurrentInstance as h, useSlots as S, ref as v, watch as g, nextTick as M, computed as c, createVNode as s, provide as W } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import { isUndefined as x } from "@vft/utils";
|
|
4
4
|
import "../../utils/ns-cover.js";
|
|
@@ -56,7 +56,7 @@ const d = (
|
|
|
56
56
|
expose: w,
|
|
57
57
|
emit: T
|
|
58
58
|
}) {
|
|
59
|
-
const a = T, R = h(), n = S(), f =
|
|
59
|
+
const a = T, R = h(), n = S(), f = v(), r = v(t.modelValue ?? "0"), u = async (e, o = !1) => {
|
|
60
60
|
var i, l, C;
|
|
61
61
|
if (!(r.value === e || x(e)))
|
|
62
62
|
try {
|
|
@@ -68,7 +68,7 @@ const d = (
|
|
|
68
68
|
}, L = (e, o) => {
|
|
69
69
|
e.props.disabled || x(e.props.name) || (o.stopPropagation(), a("edit", e.props.name, "remove"), a("tabRemove", e.props.name));
|
|
70
70
|
};
|
|
71
|
-
|
|
71
|
+
g(() => t.modelValue, (e) => u(e)), g(r, async () => {
|
|
72
72
|
var e;
|
|
73
73
|
await M(), (e = f.value) == null || e.scrollToActiveTab();
|
|
74
74
|
});
|
|
@@ -115,7 +115,7 @@ const d = (
|
|
|
115
115
|
return s("div", {
|
|
116
116
|
class: [d.e("header"), d.is(t.tabPosition)]
|
|
117
117
|
}, [s($, {
|
|
118
|
-
ref: f,
|
|
118
|
+
ref: f.value,
|
|
119
119
|
panes: P.value,
|
|
120
120
|
stretch: t.stretch,
|
|
121
121
|
showBar: t.showBar,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Options } from '@popperjs/core';
|
|
2
1
|
import type { Dayjs } from 'dayjs';
|
|
3
2
|
import type { DateModelType, DayOrDays, PickerOptions, SingleOrRange } from './props';
|
|
4
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
@@ -62,7 +61,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
62
61
|
readonly readonly: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
63
62
|
readonly disabled: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
64
63
|
readonly placeholder: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
65
|
-
readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
64
|
+
readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => any) | (() => Options) | {
|
|
65
|
+
(): Options;
|
|
66
|
+
new (): any;
|
|
67
|
+
readonly prototype: any;
|
|
68
|
+
} | ((new (...args: any[]) => any) | (() => Options) | {
|
|
69
|
+
(): Options;
|
|
70
|
+
new (): any;
|
|
71
|
+
readonly prototype: any;
|
|
72
|
+
})[], unknown, unknown, () => {}, boolean>;
|
|
66
73
|
readonly modelValue: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType) | ((new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
67
74
|
readonly rangeSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
68
75
|
readonly startPlaceholder: StringConstructor;
|
|
@@ -175,7 +182,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
175
182
|
readonly readonly: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
176
183
|
readonly disabled: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
177
184
|
readonly placeholder: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
178
|
-
readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
185
|
+
readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => any) | (() => Options) | {
|
|
186
|
+
(): Options;
|
|
187
|
+
new (): any;
|
|
188
|
+
readonly prototype: any;
|
|
189
|
+
} | ((new (...args: any[]) => any) | (() => Options) | {
|
|
190
|
+
(): Options;
|
|
191
|
+
new (): any;
|
|
192
|
+
readonly prototype: any;
|
|
193
|
+
})[], unknown, unknown, () => {}, boolean>;
|
|
179
194
|
readonly modelValue: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType) | ((new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
180
195
|
readonly rangeSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
181
196
|
readonly startPlaceholder: StringConstructor;
|
|
@@ -215,7 +230,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
215
230
|
readonly clearIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component) | ((new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component))[], unknown, unknown>;
|
|
216
231
|
readonly tabindex: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
|
217
232
|
readonly validateEvent: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
218
|
-
readonly popperOptions:
|
|
233
|
+
readonly popperOptions: any;
|
|
219
234
|
readonly popperClass: string;
|
|
220
235
|
readonly editable: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
221
236
|
readonly rangeSeparator: string;
|
|
@@ -234,7 +249,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
234
249
|
type: string;
|
|
235
250
|
defaultValue: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown> | undefined;
|
|
236
251
|
pick: (date?: any, visible?: boolean) => void;
|
|
237
|
-
"select-range": (start: number, end: number, pos?: "
|
|
252
|
+
"select-range": (start: number, end: number, pos?: "max" | "min" | undefined) => void;
|
|
238
253
|
"set-picker-option": <T extends keyof PickerOptions>(e: [T, PickerOptions[T]]) => void;
|
|
239
254
|
"calendar-change": (e: [Date, false | Date]) => void;
|
|
240
255
|
"panel-change": (value: [Dayjs, Dayjs], mode: "year" | "month", view: unknown) => void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Options } from '@popperjs/core';
|
|
2
1
|
import type { Dayjs } from 'dayjs';
|
|
3
2
|
import type { Component, ExtractPropTypes } from 'vue';
|
|
4
3
|
export type SingleOrRange<T> = T | [T, T];
|
|
@@ -71,7 +70,15 @@ export declare const timePickerDefaultProps: {
|
|
|
71
70
|
readonly readonly: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
72
71
|
readonly disabled: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
73
72
|
readonly placeholder: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
74
|
-
readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
73
|
+
readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => any) | (() => Options) | {
|
|
74
|
+
(): Options;
|
|
75
|
+
new (): any;
|
|
76
|
+
readonly prototype: any;
|
|
77
|
+
} | ((new (...args: any[]) => any) | (() => Options) | {
|
|
78
|
+
(): Options;
|
|
79
|
+
new (): any;
|
|
80
|
+
readonly prototype: any;
|
|
81
|
+
})[], unknown, unknown, () => {}, boolean>;
|
|
75
82
|
readonly modelValue: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => ModelValueType) | ((new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => ModelValueType))[], unknown, unknown, "", boolean>;
|
|
76
83
|
readonly rangeSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
77
84
|
readonly startPlaceholder: StringConstructor;
|
|
@@ -56,7 +56,7 @@ export declare const useOldValue: (props: {
|
|
|
56
56
|
startOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
|
57
57
|
endOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
|
58
58
|
format: (template?: string | undefined) => string;
|
|
59
|
-
diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "s" | "ms" | "y" | "D" | "M" | "year" | "month" | "date" | "dates" | "week" | "h" | "
|
|
59
|
+
diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "s" | "ms" | "y" | "D" | "M" | "year" | "month" | "date" | "dates" | "week" | "h" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "milliseconds" | "days" | "months" | "years" | "d" | "m" | "weeks" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number;
|
|
60
60
|
valueOf: () => number;
|
|
61
61
|
unix: () => number;
|
|
62
62
|
daysInMonth: () => number;
|
|
@@ -126,7 +126,7 @@ export declare const useOldValue: (props: {
|
|
|
126
126
|
startOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
|
127
127
|
endOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
|
128
128
|
format: (template?: string | undefined) => string;
|
|
129
|
-
diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "s" | "ms" | "y" | "D" | "M" | "year" | "month" | "date" | "dates" | "week" | "h" | "
|
|
129
|
+
diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "s" | "ms" | "y" | "D" | "M" | "year" | "month" | "date" | "dates" | "week" | "h" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "milliseconds" | "days" | "months" | "years" | "d" | "m" | "weeks" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number;
|
|
130
130
|
valueOf: () => number;
|
|
131
131
|
unix: () => number;
|
|
132
132
|
daysInMonth: () => number;
|
|
@@ -68,7 +68,15 @@ declare const _TimePicker: import("vue").DefineComponent<{
|
|
|
68
68
|
readonly: import("../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
69
69
|
disabled: import("../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
70
70
|
placeholder: import("../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
71
|
-
popperOptions: import("../../utils").EpPropFinalized<(new (...args: any[]) =>
|
|
71
|
+
popperOptions: import("../../utils").EpPropFinalized<(new (...args: any[]) => any) | (() => Options) | {
|
|
72
|
+
(): Options;
|
|
73
|
+
new (): any;
|
|
74
|
+
readonly prototype: any;
|
|
75
|
+
} | ((new (...args: any[]) => any) | (() => Options) | {
|
|
76
|
+
(): Options;
|
|
77
|
+
new (): any;
|
|
78
|
+
readonly prototype: any;
|
|
79
|
+
})[], unknown, unknown, () => {}, boolean>;
|
|
72
80
|
modelValue: import("../../utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType) | ((new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
73
81
|
rangeSeparator: import("../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
74
82
|
startPlaceholder: StringConstructor;
|
|
@@ -150,7 +158,15 @@ declare const _TimePicker: import("vue").DefineComponent<{
|
|
|
150
158
|
readonly: import("../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
151
159
|
disabled: import("../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
152
160
|
placeholder: import("../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
153
|
-
popperOptions: import("../../utils").EpPropFinalized<(new (...args: any[]) =>
|
|
161
|
+
popperOptions: import("../../utils").EpPropFinalized<(new (...args: any[]) => any) | (() => Options) | {
|
|
162
|
+
(): Options;
|
|
163
|
+
new (): any;
|
|
164
|
+
readonly prototype: any;
|
|
165
|
+
} | ((new (...args: any[]) => any) | (() => Options) | {
|
|
166
|
+
(): Options;
|
|
167
|
+
new (): any;
|
|
168
|
+
readonly prototype: any;
|
|
169
|
+
})[], unknown, unknown, () => {}, boolean>;
|
|
154
170
|
modelValue: import("../../utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType) | ((new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
155
171
|
rangeSeparator: import("../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
156
172
|
startPlaceholder: StringConstructor;
|
|
@@ -182,7 +198,7 @@ declare const _TimePicker: import("vue").DefineComponent<{
|
|
|
182
198
|
clearIcon: import("../../utils").EpPropMergeType<(new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component) | ((new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component))[], unknown, unknown>;
|
|
183
199
|
tabindex: import("../../utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
|
184
200
|
validateEvent: import("../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
185
|
-
popperOptions:
|
|
201
|
+
popperOptions: any;
|
|
186
202
|
popperClass: string;
|
|
187
203
|
editable: import("../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
188
204
|
rangeSeparator: string;
|
|
@@ -258,7 +274,15 @@ export declare const VftTimePicker: import("vue").DefineComponent<{
|
|
|
258
274
|
readonly: import("../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
259
275
|
disabled: import("../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
260
276
|
placeholder: import("../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
261
|
-
popperOptions: import("../../utils").EpPropFinalized<(new (...args: any[]) =>
|
|
277
|
+
popperOptions: import("../../utils").EpPropFinalized<(new (...args: any[]) => any) | (() => Options) | {
|
|
278
|
+
(): Options;
|
|
279
|
+
new (): any;
|
|
280
|
+
readonly prototype: any;
|
|
281
|
+
} | ((new (...args: any[]) => any) | (() => Options) | {
|
|
282
|
+
(): Options;
|
|
283
|
+
new (): any;
|
|
284
|
+
readonly prototype: any;
|
|
285
|
+
})[], unknown, unknown, () => {}, boolean>;
|
|
262
286
|
modelValue: import("../../utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType) | ((new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
263
287
|
rangeSeparator: import("../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
264
288
|
startPlaceholder: StringConstructor;
|
|
@@ -340,7 +364,15 @@ export declare const VftTimePicker: import("vue").DefineComponent<{
|
|
|
340
364
|
readonly: import("../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
341
365
|
disabled: import("../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
342
366
|
placeholder: import("../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
343
|
-
popperOptions: import("../../utils").EpPropFinalized<(new (...args: any[]) =>
|
|
367
|
+
popperOptions: import("../../utils").EpPropFinalized<(new (...args: any[]) => any) | (() => Options) | {
|
|
368
|
+
(): Options;
|
|
369
|
+
new (): any;
|
|
370
|
+
readonly prototype: any;
|
|
371
|
+
} | ((new (...args: any[]) => any) | (() => Options) | {
|
|
372
|
+
(): Options;
|
|
373
|
+
new (): any;
|
|
374
|
+
readonly prototype: any;
|
|
375
|
+
})[], unknown, unknown, () => {}, boolean>;
|
|
344
376
|
modelValue: import("../../utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType) | ((new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
345
377
|
rangeSeparator: import("../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
346
378
|
startPlaceholder: StringConstructor;
|
|
@@ -372,7 +404,7 @@ export declare const VftTimePicker: import("vue").DefineComponent<{
|
|
|
372
404
|
clearIcon: import("../../utils").EpPropMergeType<(new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component) | ((new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component))[], unknown, unknown>;
|
|
373
405
|
tabindex: import("../../utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
|
374
406
|
validateEvent: import("../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
375
|
-
popperOptions:
|
|
407
|
+
popperOptions: any;
|
|
376
408
|
popperClass: string;
|
|
377
409
|
editable: import("../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
378
410
|
rangeSeparator: string;
|
|
@@ -66,7 +66,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
66
|
readonly: import("../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
67
67
|
disabled: import("../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
68
68
|
placeholder: import("../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
69
|
-
popperOptions: import("../../utils").EpPropFinalized<(new (...args: any[]) =>
|
|
69
|
+
popperOptions: import("../../utils").EpPropFinalized<(new (...args: any[]) => any) | (() => Options) | {
|
|
70
|
+
(): Options;
|
|
71
|
+
new (): any;
|
|
72
|
+
readonly prototype: any;
|
|
73
|
+
} | ((new (...args: any[]) => any) | (() => Options) | {
|
|
74
|
+
(): Options;
|
|
75
|
+
new (): any;
|
|
76
|
+
readonly prototype: any;
|
|
77
|
+
})[], unknown, unknown, () => {}, boolean>;
|
|
70
78
|
modelValue: import("../../utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType) | ((new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
71
79
|
rangeSeparator: import("../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
72
80
|
startPlaceholder: StringConstructor;
|
|
@@ -151,7 +159,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
151
159
|
readonly: import("../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
152
160
|
disabled: import("../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
153
161
|
placeholder: import("../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
154
|
-
popperOptions: import("../../utils").EpPropFinalized<(new (...args: any[]) =>
|
|
162
|
+
popperOptions: import("../../utils").EpPropFinalized<(new (...args: any[]) => any) | (() => Options) | {
|
|
163
|
+
(): Options;
|
|
164
|
+
new (): any;
|
|
165
|
+
readonly prototype: any;
|
|
166
|
+
} | ((new (...args: any[]) => any) | (() => Options) | {
|
|
167
|
+
(): Options;
|
|
168
|
+
new (): any;
|
|
169
|
+
readonly prototype: any;
|
|
170
|
+
})[], unknown, unknown, () => {}, boolean>;
|
|
155
171
|
modelValue: import("../../utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType) | ((new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
156
172
|
rangeSeparator: import("../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
157
173
|
startPlaceholder: StringConstructor;
|
|
@@ -183,7 +199,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
183
199
|
clearIcon: import("../../utils").EpPropMergeType<(new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component) | ((new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component))[], unknown, unknown>;
|
|
184
200
|
tabindex: import("../../utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
|
185
201
|
validateEvent: import("../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
186
|
-
popperOptions:
|
|
202
|
+
popperOptions: any;
|
|
187
203
|
popperClass: string;
|
|
188
204
|
editable: import("../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
189
205
|
rangeSeparator: string;
|
|
@@ -5,7 +5,7 @@ export declare const rangeArr: (n: number) => number[];
|
|
|
5
5
|
export declare const extractDateFormat: (format: string) => string;
|
|
6
6
|
export declare const extractTimeFormat: (format: string) => string;
|
|
7
7
|
export declare const dateEquals: (a: Date | unknown, b: Date | unknown) => boolean;
|
|
8
|
-
export declare const valueEquals: (a: Array<Date> | unknown, b: Array<Date> | unknown) =>
|
|
8
|
+
export declare const valueEquals: (a: Array<Date> | unknown, b: Array<Date> | unknown) => any;
|
|
9
9
|
export declare const parseDate: (date: string | number | Date, format: string | undefined, lang: string) => Dayjs | undefined;
|
|
10
10
|
export declare const formatter: (date: string | number | Date | Dayjs, format: string | undefined, lang: string) => string | number | Date | Dayjs;
|
|
11
11
|
export declare const makeList: (total: number, method?: () => number[]) => boolean[];
|
|
@@ -78,8 +78,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
78
78
|
}, {
|
|
79
79
|
readonly start: string;
|
|
80
80
|
readonly end: string;
|
|
81
|
-
readonly effect: string;
|
|
82
81
|
readonly disabled: boolean;
|
|
82
|
+
readonly effect: string;
|
|
83
83
|
readonly clearable: import("../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
84
84
|
readonly format: string;
|
|
85
85
|
readonly editable: import("../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -47,7 +47,7 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<{
|
|
|
47
47
|
type: globalThis.PropType<number>;
|
|
48
48
|
};
|
|
49
49
|
fallbackPlacements: {
|
|
50
|
-
type: globalThis.PropType<
|
|
50
|
+
type: globalThis.PropType<Placement[]>;
|
|
51
51
|
};
|
|
52
52
|
gpuAcceleration: {
|
|
53
53
|
type: globalThis.PropType<boolean>;
|
|
@@ -56,13 +56,13 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<{
|
|
|
56
56
|
type: globalThis.PropType<number>;
|
|
57
57
|
};
|
|
58
58
|
placement: {
|
|
59
|
-
type: globalThis.PropType<
|
|
59
|
+
type: globalThis.PropType<any>;
|
|
60
60
|
};
|
|
61
61
|
popperOptions: {
|
|
62
|
-
type: globalThis.PropType<
|
|
62
|
+
type: globalThis.PropType<any>;
|
|
63
63
|
};
|
|
64
64
|
strategy: {
|
|
65
|
-
type: globalThis.PropType<"
|
|
65
|
+
type: globalThis.PropType<"absolute" | "fixed">;
|
|
66
66
|
};
|
|
67
67
|
style: {
|
|
68
68
|
type: globalThis.PropType<string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null>;
|
|
@@ -211,7 +211,7 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<{
|
|
|
211
211
|
type: globalThis.PropType<number>;
|
|
212
212
|
};
|
|
213
213
|
fallbackPlacements: {
|
|
214
|
-
type: globalThis.PropType<
|
|
214
|
+
type: globalThis.PropType<Placement[]>;
|
|
215
215
|
};
|
|
216
216
|
gpuAcceleration: {
|
|
217
217
|
type: globalThis.PropType<boolean>;
|
|
@@ -220,13 +220,13 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<{
|
|
|
220
220
|
type: globalThis.PropType<number>;
|
|
221
221
|
};
|
|
222
222
|
placement: {
|
|
223
|
-
type: globalThis.PropType<
|
|
223
|
+
type: globalThis.PropType<any>;
|
|
224
224
|
};
|
|
225
225
|
popperOptions: {
|
|
226
|
-
type: globalThis.PropType<
|
|
226
|
+
type: globalThis.PropType<any>;
|
|
227
227
|
};
|
|
228
228
|
strategy: {
|
|
229
|
-
type: globalThis.PropType<"
|
|
229
|
+
type: globalThis.PropType<"absolute" | "fixed">;
|
|
230
230
|
};
|
|
231
231
|
style: {
|
|
232
232
|
type: globalThis.PropType<string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null>;
|
|
@@ -367,7 +367,7 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<{
|
|
|
367
367
|
type: globalThis.PropType<number>;
|
|
368
368
|
};
|
|
369
369
|
fallbackPlacements: {
|
|
370
|
-
type: globalThis.PropType<
|
|
370
|
+
type: globalThis.PropType<Placement[]>;
|
|
371
371
|
};
|
|
372
372
|
gpuAcceleration: {
|
|
373
373
|
type: globalThis.PropType<boolean>;
|
|
@@ -376,13 +376,13 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<{
|
|
|
376
376
|
type: globalThis.PropType<number>;
|
|
377
377
|
};
|
|
378
378
|
placement: {
|
|
379
|
-
type: globalThis.PropType<
|
|
379
|
+
type: globalThis.PropType<any>;
|
|
380
380
|
};
|
|
381
381
|
popperOptions: {
|
|
382
|
-
type: globalThis.PropType<
|
|
382
|
+
type: globalThis.PropType<any>;
|
|
383
383
|
};
|
|
384
384
|
strategy: {
|
|
385
|
-
type: globalThis.PropType<"
|
|
385
|
+
type: globalThis.PropType<"absolute" | "fixed">;
|
|
386
386
|
};
|
|
387
387
|
style: {
|
|
388
388
|
type: globalThis.PropType<string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null>;
|
|
@@ -528,7 +528,7 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<{
|
|
|
528
528
|
type: globalThis.PropType<number>;
|
|
529
529
|
};
|
|
530
530
|
fallbackPlacements: {
|
|
531
|
-
type: globalThis.PropType<
|
|
531
|
+
type: globalThis.PropType<Placement[]>;
|
|
532
532
|
};
|
|
533
533
|
gpuAcceleration: {
|
|
534
534
|
type: globalThis.PropType<boolean>;
|
|
@@ -537,13 +537,13 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<{
|
|
|
537
537
|
type: globalThis.PropType<number>;
|
|
538
538
|
};
|
|
539
539
|
placement: {
|
|
540
|
-
type: globalThis.PropType<
|
|
540
|
+
type: globalThis.PropType<any>;
|
|
541
541
|
};
|
|
542
542
|
popperOptions: {
|
|
543
|
-
type: globalThis.PropType<
|
|
543
|
+
type: globalThis.PropType<any>;
|
|
544
544
|
};
|
|
545
545
|
strategy: {
|
|
546
|
-
type: globalThis.PropType<"
|
|
546
|
+
type: globalThis.PropType<"absolute" | "fixed">;
|
|
547
547
|
};
|
|
548
548
|
style: {
|
|
549
549
|
type: globalThis.PropType<string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null>;
|
|
@@ -7,5 +7,5 @@ export declare const useTooltipModelToggle: ({ indicator, toggleReason, shouldHi
|
|
|
7
7
|
hide: (event?: Event | undefined) => void;
|
|
8
8
|
show: (event?: Event | undefined) => void;
|
|
9
9
|
toggle: () => void;
|
|
10
|
-
hasUpdateHandler: globalThis.ComputedRef<
|
|
10
|
+
hasUpdateHandler: globalThis.ComputedRef<any>;
|
|
11
11
|
};
|
|
@@ -2,27 +2,7 @@ import type { ShallowRef } from 'vue';
|
|
|
2
2
|
import type { UploadContentInstance, UploadFile, UploadProps, UploadRawFile, UploadStatus } from './types';
|
|
3
3
|
export declare const useHandlers: (props: UploadProps, uploadRef: ShallowRef<UploadContentInstance | undefined>) => {
|
|
4
4
|
/** @description two-way binding ref from props `fileList` */
|
|
5
|
-
uploadFiles:
|
|
6
|
-
name: string;
|
|
7
|
-
percentage?: number | undefined;
|
|
8
|
-
status: UploadStatus;
|
|
9
|
-
size?: number | undefined;
|
|
10
|
-
response?: unknown;
|
|
11
|
-
uid: number;
|
|
12
|
-
url?: string | undefined;
|
|
13
|
-
raw?: {
|
|
14
|
-
uid: number;
|
|
15
|
-
readonly lastModified: number;
|
|
16
|
-
readonly name: string;
|
|
17
|
-
readonly webkitRelativePath: string;
|
|
18
|
-
readonly size: number;
|
|
19
|
-
readonly type: string;
|
|
20
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
21
|
-
slice: (start?: number | undefined, end?: number | undefined, contentType?: string | undefined) => Blob;
|
|
22
|
-
stream: () => ReadableStream<Uint8Array>;
|
|
23
|
-
text: () => Promise<string>;
|
|
24
|
-
} | undefined;
|
|
25
|
-
}[]>;
|
|
5
|
+
uploadFiles: any;
|
|
26
6
|
abort: (file: UploadFile) => void;
|
|
27
7
|
clearFiles: (states?: UploadStatus[]) => void;
|
|
28
8
|
handleError: (err: import("./ajax").UploadAjaxError, rawFile: UploadRawFile) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useCache: () => globalThis.ComputedRef<
|
|
1
|
+
export declare const useCache: () => globalThis.ComputedRef<any>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { MaybeRef } from '@vueuse/core';
|
|
2
1
|
import type { InjectionKey, Ref } from 'vue';
|
|
3
2
|
export type ElIdInjectionContext = {
|
|
4
3
|
prefix: number;
|
|
@@ -6,4 +5,4 @@ export type ElIdInjectionContext = {
|
|
|
6
5
|
};
|
|
7
6
|
export declare const ID_INJECTION_KEY: InjectionKey<ElIdInjectionContext>;
|
|
8
7
|
export declare const useIdInjection: () => ElIdInjectionContext;
|
|
9
|
-
export declare const useId: (deterministicId?:
|
|
8
|
+
export declare const useId: (deterministicId?: any) => Ref<string>;
|
|
@@ -4,7 +4,7 @@ export declare const createModelToggleComposable: <T extends string>(name: T) =>
|
|
|
4
4
|
hide: (event?: Event) => void;
|
|
5
5
|
show: (event?: Event) => void;
|
|
6
6
|
toggle: () => void;
|
|
7
|
-
hasUpdateHandler: globalThis.ComputedRef<
|
|
7
|
+
hasUpdateHandler: globalThis.ComputedRef<any>;
|
|
8
8
|
};
|
|
9
9
|
useModelToggleEmits: `update:${T}`[];
|
|
10
10
|
};
|
|
@@ -12,7 +12,7 @@ declare const useModelToggle: ({ indicator, toggleReason, shouldHideWhenRouteCha
|
|
|
12
12
|
hide: (event?: Event) => void;
|
|
13
13
|
show: (event?: Event) => void;
|
|
14
14
|
toggle: () => void;
|
|
15
|
-
hasUpdateHandler: globalThis.ComputedRef<
|
|
15
|
+
hasUpdateHandler: globalThis.ComputedRef<any>;
|
|
16
16
|
}, useModelToggleEmits: "update:modelValue"[];
|
|
17
17
|
export { useModelToggle, useModelToggleEmits };
|
|
18
18
|
export type ModelToggleParams = {
|
|
@@ -1,78 +1,15 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Options, VirtualElement } from '@popperjs/core';
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
3
|
type ElementType = HTMLElement | undefined;
|
|
4
4
|
type ReferenceElement = ElementType | VirtualElement;
|
|
5
5
|
export type PartialOptions = Partial<Options>;
|
|
6
6
|
export declare const usePopper: (referenceElementRef: Ref<ReferenceElement>, popperElementRef: Ref<ElementType>, opts?: Ref<PartialOptions> | PartialOptions) => {
|
|
7
|
-
state: globalThis.ComputedRef<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
options?: import("@popperjs/core").OptionsGeneric<any> | undefined;
|
|
14
|
-
placement?: import("@popperjs/core").Placement | undefined;
|
|
15
|
-
strategy?: import("@popperjs/core").PositioningStrategy | undefined;
|
|
16
|
-
orderedModifiers?: Modifier<any, any>[] | undefined;
|
|
17
|
-
rects?: import("@popperjs/core").StateRects | undefined;
|
|
18
|
-
scrollParents?: {
|
|
19
|
-
reference: (Element | import("@popperjs/core").Window | import("@popperjs/core").VisualViewport)[];
|
|
20
|
-
popper: (Element | import("@popperjs/core").Window | import("@popperjs/core").VisualViewport)[];
|
|
21
|
-
} | undefined;
|
|
22
|
-
styles?: {
|
|
23
|
-
[key: string]: Partial<CSSStyleDeclaration>;
|
|
24
|
-
} | undefined;
|
|
25
|
-
attributes?: {
|
|
26
|
-
[key: string]: {
|
|
27
|
-
[key: string]: string | boolean;
|
|
28
|
-
};
|
|
29
|
-
} | undefined;
|
|
30
|
-
modifiersData?: {
|
|
31
|
-
[key: string]: any;
|
|
32
|
-
arrow?: {
|
|
33
|
-
x?: number | undefined;
|
|
34
|
-
y?: number | undefined;
|
|
35
|
-
centerOffset: number;
|
|
36
|
-
} | undefined;
|
|
37
|
-
hide?: {
|
|
38
|
-
isReferenceHidden: boolean;
|
|
39
|
-
hasPopperEscaped: boolean;
|
|
40
|
-
referenceClippingOffsets: import("@popperjs/core").SideObject;
|
|
41
|
-
popperEscapeOffsets: import("@popperjs/core").SideObject;
|
|
42
|
-
} | undefined;
|
|
43
|
-
offset?: {
|
|
44
|
-
auto?: import("@popperjs/core").Offsets | undefined;
|
|
45
|
-
left?: import("@popperjs/core").Offsets | undefined;
|
|
46
|
-
right?: import("@popperjs/core").Offsets | undefined;
|
|
47
|
-
bottom?: import("@popperjs/core").Offsets | undefined;
|
|
48
|
-
top?: import("@popperjs/core").Offsets | undefined;
|
|
49
|
-
"auto-start"?: import("@popperjs/core").Offsets | undefined;
|
|
50
|
-
"auto-end"?: import("@popperjs/core").Offsets | undefined;
|
|
51
|
-
"top-start"?: import("@popperjs/core").Offsets | undefined;
|
|
52
|
-
"top-end"?: import("@popperjs/core").Offsets | undefined;
|
|
53
|
-
"bottom-start"?: import("@popperjs/core").Offsets | undefined;
|
|
54
|
-
"bottom-end"?: import("@popperjs/core").Offsets | undefined;
|
|
55
|
-
"right-start"?: import("@popperjs/core").Offsets | undefined;
|
|
56
|
-
"right-end"?: import("@popperjs/core").Offsets | undefined;
|
|
57
|
-
"left-start"?: import("@popperjs/core").Offsets | undefined;
|
|
58
|
-
"left-end"?: import("@popperjs/core").Offsets | undefined;
|
|
59
|
-
} | undefined;
|
|
60
|
-
preventOverflow?: import("@popperjs/core").Offsets | undefined;
|
|
61
|
-
popperOffsets?: import("@popperjs/core").Offsets | undefined;
|
|
62
|
-
} | undefined;
|
|
63
|
-
reset?: boolean | undefined;
|
|
64
|
-
}>;
|
|
65
|
-
styles: globalThis.ComputedRef<{
|
|
66
|
-
[key: string]: Partial<CSSStyleDeclaration>;
|
|
67
|
-
}>;
|
|
68
|
-
attributes: globalThis.ComputedRef<{
|
|
69
|
-
[key: string]: {
|
|
70
|
-
[key: string]: string | boolean;
|
|
71
|
-
};
|
|
72
|
-
}>;
|
|
73
|
-
update: () => Promise<Partial<State>> | undefined;
|
|
74
|
-
forceUpdate: () => void | undefined;
|
|
75
|
-
instanceRef: globalThis.ComputedRef<Instance | undefined>;
|
|
7
|
+
state: globalThis.ComputedRef<any>;
|
|
8
|
+
styles: globalThis.ComputedRef<any>;
|
|
9
|
+
attributes: globalThis.ComputedRef<any>;
|
|
10
|
+
update: () => any;
|
|
11
|
+
forceUpdate: () => any;
|
|
12
|
+
instanceRef: globalThis.ComputedRef<any>;
|
|
76
13
|
};
|
|
77
14
|
export type UsePopperReturn = ReturnType<typeof usePopper>;
|
|
78
15
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const useSameTarget: (handleClick?: ((e: MouseEvent) => void) | undefined) => {
|
|
2
|
-
onClick:
|
|
3
|
-
onMousedown:
|
|
4
|
-
onMouseup:
|
|
2
|
+
onClick: any;
|
|
3
|
+
onMousedown: any;
|
|
4
|
+
onMouseup: any;
|
|
5
5
|
};
|
|
@@ -2,7 +2,7 @@ import type { InjectionKey, Ref } from 'vue';
|
|
|
2
2
|
export declare const defaultInitialZIndex = 2000;
|
|
3
3
|
export declare const zIndexContextKey: InjectionKey<Ref<number | undefined>>;
|
|
4
4
|
export declare const useZIndex: (zIndexOverrides?: Ref<number>) => {
|
|
5
|
-
initialZIndex: globalThis.ComputedRef<number>;
|
|
5
|
+
initialZIndex: globalThis.ComputedRef<number | undefined>;
|
|
6
6
|
currentZIndex: globalThis.ComputedRef<number>;
|
|
7
7
|
nextZIndex: () => number;
|
|
8
8
|
};
|
package/es/package.json.d.ts
CHANGED
package/es/package.json.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TinyColor } from '@ctrl/tinycolor';
|
|
2
2
|
import type { ButtonProps } from './button.vue';
|
|
3
3
|
/** 生成暗色 */
|
|
4
|
-
export declare function darken(color: TinyColor, amount?: number):
|
|
4
|
+
export declare function darken(color: TinyColor, amount?: number): any;
|
|
5
5
|
export declare function useButtonCustomStyle(props: ButtonProps): globalThis.ComputedRef<Record<string, string>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ComponentSize } from '../types';
|
|
2
|
-
import type { MaybeRef } from '@vueuse/core';
|
|
3
2
|
import { type ComputedRef } from 'vue';
|
|
4
|
-
export declare const useFormSize: (fallback?:
|
|
5
|
-
export declare const useFormDisabled: (fallback?:
|
|
6
|
-
export declare const useSize: (fallback?:
|
|
7
|
-
export declare const useDisabled: (fallback?:
|
|
3
|
+
export declare const useFormSize: (fallback?: any, ignore?: Partial<Record<'prop' | 'form' | 'formItem' | 'global', boolean>>) => ComputedRef<ComponentSize>;
|
|
4
|
+
export declare const useFormDisabled: (fallback?: any) => ComputedRef<boolean>;
|
|
5
|
+
export declare const useSize: (fallback?: any, ignore?: Partial<Record<'prop' | 'form' | 'formItem' | 'global', boolean>>) => ComputedRef<ComponentSize>;
|
|
6
|
+
export declare const useDisabled: (fallback?: any) => ComputedRef<boolean>;
|