vft 0.0.388 → 0.0.390
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/components/alert/alert.vue.d.ts +11 -1
- package/es/components/alert/alert.vue2.js +65 -13
- package/es/components/alert/index.d.ts +76 -28
- package/es/components/autocomplete/autocomplete.vue.d.ts +5 -5
- package/es/components/autocomplete/index.d.ts +13 -13
- package/es/components/button/button.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +12 -12
- package/es/components/button/use-button.d.ts +1 -1
- package/es/components/carousel/index.d.ts +3 -3
- package/es/components/carousel/types.d.ts +1 -1
- package/es/components/carousel/use-carousel.d.ts +2 -2
- package/es/components/carousel/use-carousel.js +37 -37
- package/es/components/cascader/cascader.vue.d.ts +2 -2
- package/es/components/checkbox/index.d.ts +27 -27
- package/es/components/color-picker/index.d.ts +6 -6
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +2 -2
- package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +2 -2
- package/es/components/date-picker/date-picker.d.ts +3 -3
- package/es/components/date-picker/index.d.ts +6 -6
- package/es/components/date-picker/panel-utils.d.ts +6 -6
- package/es/components/date-picker/props/date-picker.d.ts +1 -1
- package/es/components/date-picker/props/panel-date-pick.d.ts +1 -1
- package/es/components/date-picker/props/panel-date-range.d.ts +1 -1
- package/es/components/date-picker/props/shared.d.ts +1 -1
- package/es/components/dropdown/index.d.ts +9 -9
- package/es/components/form/index.d.ts +18 -18
- package/es/components/index.js +155 -163
- package/es/components/input/index.d.ts +5 -5
- package/es/components/input/input.vue.d.ts +2 -2
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/input-number/index.d.ts +1 -1
- package/es/components/input-number/input-number.vue.d.ts +1 -1
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/input-tag/input-tag.vue.d.ts +4 -4
- package/es/components/radio/index.d.ts +18 -18
- package/es/components/search/index.d.ts +3 -3
- package/es/components/search/search.vue.d.ts +1 -1
- package/es/components/select/index.d.ts +6 -6
- package/es/components/select/select.vue.d.ts +6 -6
- package/es/components/select/useSelect.d.ts +4 -4
- package/es/components/slider/index.d.ts +1 -1
- package/es/components/slider/slider.vue.d.ts +1 -1
- package/es/components/super-form/component-map.d.ts +1 -42
- package/es/components/super-form/component-map.js +30 -60
- package/es/components/super-form/index.js +12 -20
- package/es/components/super-form/super-form-item.vue2.js +5 -4
- package/es/components/super-form/types.d.ts +2 -2
- package/es/components/super-form/types.js +5 -1
- package/es/components/super-form/use/helper.d.ts +1 -1
- package/es/components/super-form/use/helper.js +37 -32
- package/es/components/super-form/use/use-auto-focus.js +19 -15
- package/es/components/super-form/use/use-form-events.js +70 -67
- package/es/components/switch/index.d.ts +6 -6
- package/es/components/table/index.d.ts +9 -9
- package/es/components/table/table.vue2.js +22 -22
- package/es/components/tabs/index.d.ts +2 -2
- package/es/components/tabs/tabs.vue.d.ts +2 -2
- package/es/components/time-picker/common/picker.vue.d.ts +2 -2
- package/es/components/tree/tree-node.vue.d.ts +18 -18
- package/es/index.js +2 -1
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/form-register.d.ts +42 -0
- package/es/utils/form-register.js +35 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +80 -71
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/alert/alert.vue.d.ts +11 -1
- package/lib/components/alert/alert.vue2.cjs +1 -1
- package/lib/components/alert/index.d.ts +76 -28
- package/lib/components/autocomplete/autocomplete.vue.d.ts +5 -5
- package/lib/components/autocomplete/index.d.ts +13 -13
- package/lib/components/button/button.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +12 -12
- package/lib/components/button/use-button.d.ts +1 -1
- package/lib/components/carousel/index.d.ts +3 -3
- package/lib/components/carousel/types.d.ts +1 -1
- package/lib/components/carousel/use-carousel.cjs +1 -1
- package/lib/components/carousel/use-carousel.d.ts +2 -2
- package/lib/components/cascader/cascader.vue.d.ts +2 -2
- package/lib/components/checkbox/index.d.ts +27 -27
- package/lib/components/color-picker/index.d.ts +6 -6
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +2 -2
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +2 -2
- package/lib/components/date-picker/date-picker.d.ts +3 -3
- package/lib/components/date-picker/index.d.ts +6 -6
- package/lib/components/date-picker/panel-utils.d.ts +6 -6
- package/lib/components/date-picker/props/date-picker.d.ts +1 -1
- package/lib/components/date-picker/props/panel-date-pick.d.ts +1 -1
- package/lib/components/date-picker/props/panel-date-range.d.ts +1 -1
- package/lib/components/date-picker/props/shared.d.ts +1 -1
- package/lib/components/dropdown/index.d.ts +9 -9
- package/lib/components/form/index.d.ts +18 -18
- package/lib/components/index.cjs +1 -1
- package/lib/components/input/index.d.ts +5 -5
- package/lib/components/input/input.vue.d.ts +2 -2
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/input-number/index.d.ts +1 -1
- package/lib/components/input-number/input-number.vue.d.ts +1 -1
- package/lib/components/input-tag/input-tag.vue.d.ts +4 -4
- package/lib/components/radio/index.d.ts +18 -18
- package/lib/components/search/index.d.ts +3 -3
- package/lib/components/search/search.vue.d.ts +1 -1
- package/lib/components/select/index.d.ts +6 -6
- package/lib/components/select/select.vue.d.ts +6 -6
- package/lib/components/select/useSelect.d.ts +4 -4
- package/lib/components/slider/index.d.ts +1 -1
- package/lib/components/slider/slider.vue.d.ts +1 -1
- package/lib/components/super-form/component-map.cjs +1 -1
- package/lib/components/super-form/component-map.d.ts +1 -42
- package/lib/components/super-form/index.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/types.cjs +1 -1
- package/lib/components/super-form/types.d.ts +2 -2
- package/lib/components/super-form/use/helper.cjs +1 -1
- package/lib/components/super-form/use/helper.d.ts +1 -1
- package/lib/components/super-form/use/use-auto-focus.cjs +1 -1
- package/lib/components/super-form/use/use-form-events.cjs +1 -1
- package/lib/components/switch/index.d.ts +6 -6
- package/lib/components/table/index.d.ts +9 -9
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/tabs/index.d.ts +2 -2
- package/lib/components/tabs/tabs.vue.d.ts +2 -2
- package/lib/components/time-picker/common/picker.vue.d.ts +2 -2
- package/lib/components/tree/tree-node.vue.d.ts +18 -18
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/lib/utils/form-register.cjs +1 -0
- package/lib/utils/form-register.d.ts +42 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/package.json +4 -4
- package/web-types.json +1 -1
|
@@ -27,11 +27,16 @@ export interface AlertProps {
|
|
|
27
27
|
center?: boolean;
|
|
28
28
|
effect?: alertEffects;
|
|
29
29
|
}
|
|
30
|
-
declare
|
|
30
|
+
declare function __VLS_template(): {
|
|
31
|
+
title?(_: {}): any;
|
|
32
|
+
default?(_: {}): any;
|
|
33
|
+
};
|
|
34
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AlertProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
35
|
close: (evt: MouseEvent) => void;
|
|
32
36
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AlertProps>>> & Readonly<{
|
|
33
37
|
onClose?: ((evt: MouseEvent) => any) | undefined;
|
|
34
38
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
39
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
35
40
|
export default _default;
|
|
36
41
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
42
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -42,3 +47,8 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
42
47
|
required: true;
|
|
43
48
|
};
|
|
44
49
|
};
|
|
50
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { VftIcon as
|
|
1
|
+
import { defineComponent as C, useSlots as g, ref as N, computed as c, createBlock as r, openBlock as s, Transition as S, unref as o, withCtx as V, withDirectives as $, createElementVNode as v, normalizeClass as l, createCommentVNode as i, createElementBlock as a, renderSlot as y, createTextVNode as k, toDisplayString as u, Fragment as E, vShow as I } from "vue";
|
|
2
|
+
import { VftIcon as b } from "../icon/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "@vft/utils";
|
|
5
5
|
import "../config-provider/hooks/use-global-config.js";
|
|
6
6
|
import "lodash-es";
|
|
7
|
-
import { useNamespace as
|
|
7
|
+
import { useNamespace as D } from "../../hooks/use-namespace/index.js";
|
|
8
8
|
import "../../hooks/use-model-toggle/index.js";
|
|
9
9
|
import "@popperjs/core";
|
|
10
10
|
import "../../hooks/use-z-index/index.js";
|
|
11
|
-
const
|
|
11
|
+
const z = C({
|
|
12
12
|
name: "vft-alert"
|
|
13
|
-
}),
|
|
14
|
-
...
|
|
13
|
+
}), P = /* @__PURE__ */ C({
|
|
14
|
+
...z,
|
|
15
15
|
props: {
|
|
16
16
|
title: { default: "" },
|
|
17
17
|
description: { default: "" },
|
|
@@ -23,16 +23,68 @@ const m = i({
|
|
|
23
23
|
effect: { default: "light" }
|
|
24
24
|
},
|
|
25
25
|
emits: {
|
|
26
|
-
close: (
|
|
26
|
+
close: (n) => n instanceof MouseEvent
|
|
27
27
|
},
|
|
28
|
-
setup(
|
|
29
|
-
const t =
|
|
30
|
-
return l(!0), o(() => e.type), o(() => [
|
|
28
|
+
setup(n, { emit: h }) {
|
|
29
|
+
const t = D("alert"), B = h, d = g(), m = N(!0), f = c(() => n.type), T = c(() => [
|
|
31
30
|
t.e("icon"),
|
|
32
|
-
{ [t.is("big")]: !!
|
|
33
|
-
]),
|
|
31
|
+
{ [t.is("big")]: !!n.description || !!d.default }
|
|
32
|
+
]), w = c(() => ({ [t.is("bold")]: n.description || d.default })), p = (e) => {
|
|
33
|
+
m.value = !1, B("close", e);
|
|
34
|
+
};
|
|
35
|
+
return (e, F) => (s(), r(S, {
|
|
36
|
+
name: o(t).b("fade")
|
|
37
|
+
}, {
|
|
38
|
+
default: V(() => [
|
|
39
|
+
$(v("div", {
|
|
40
|
+
class: l([o(t).b(), o(t).m(e.type), o(t).is("center", e.center), o(t).is(e.effect)]),
|
|
41
|
+
role: "alert"
|
|
42
|
+
}, [
|
|
43
|
+
e.showIcon && f.value ? (s(), r(o(b), {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: l(T.value),
|
|
46
|
+
icon: f.value
|
|
47
|
+
}, null, 8, ["class", "icon"])) : i("", !0),
|
|
48
|
+
v("div", {
|
|
49
|
+
class: l(o(t).e("content"))
|
|
50
|
+
}, [
|
|
51
|
+
e.title || e.$slots.title ? (s(), a("span", {
|
|
52
|
+
key: 0,
|
|
53
|
+
class: l([o(t).e("title"), w.value])
|
|
54
|
+
}, [
|
|
55
|
+
y(e.$slots, "title", {}, () => [
|
|
56
|
+
k(u(e.title), 1)
|
|
57
|
+
])
|
|
58
|
+
], 2)) : i("", !0),
|
|
59
|
+
e.$slots.default || e.description ? (s(), a("p", {
|
|
60
|
+
key: 1,
|
|
61
|
+
class: l(o(t).e("description"))
|
|
62
|
+
}, [
|
|
63
|
+
y(e.$slots, "default", {}, () => [
|
|
64
|
+
k(u(e.description), 1)
|
|
65
|
+
])
|
|
66
|
+
], 2)) : i("", !0),
|
|
67
|
+
e.closable ? (s(), a(E, { key: 2 }, [
|
|
68
|
+
e.closeText ? (s(), a("div", {
|
|
69
|
+
key: 0,
|
|
70
|
+
class: l([o(t).e("close-btn"), o(t).is("customed")]),
|
|
71
|
+
onClick: p
|
|
72
|
+
}, u(e.closeText), 3)) : (s(), r(o(b), {
|
|
73
|
+
key: 1,
|
|
74
|
+
class: l(o(t).e("close-btn")),
|
|
75
|
+
onClick: p,
|
|
76
|
+
icon: "icon-close"
|
|
77
|
+
}, null, 8, ["class"]))
|
|
78
|
+
], 64)) : i("", !0)
|
|
79
|
+
], 2)
|
|
80
|
+
], 2), [
|
|
81
|
+
[I, m.value]
|
|
82
|
+
])
|
|
83
|
+
]),
|
|
84
|
+
_: 3
|
|
85
|
+
}, 8, ["name"]));
|
|
34
86
|
}
|
|
35
87
|
});
|
|
36
88
|
export {
|
|
37
|
-
|
|
89
|
+
P as default
|
|
38
90
|
};
|
|
@@ -1,5 +1,73 @@
|
|
|
1
1
|
export * from './types';
|
|
2
|
-
export declare const VftAlert: import("vft/es/utils").SFCWithInstall<
|
|
2
|
+
export declare const VftAlert: import("vft/es/utils").SFCWithInstall<{
|
|
3
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
+
title: {
|
|
5
|
+
type: import("vue").PropType<string>;
|
|
6
|
+
};
|
|
7
|
+
description: {
|
|
8
|
+
type: import("vue").PropType<string>;
|
|
9
|
+
};
|
|
10
|
+
type: {
|
|
11
|
+
type: import("vue").PropType<import("./types").TypeComponents>;
|
|
12
|
+
};
|
|
13
|
+
closable: {
|
|
14
|
+
type: import("vue").PropType<boolean>;
|
|
15
|
+
};
|
|
16
|
+
closeText: {
|
|
17
|
+
type: import("vue").PropType<string>;
|
|
18
|
+
};
|
|
19
|
+
showIcon: {
|
|
20
|
+
type: import("vue").PropType<boolean>;
|
|
21
|
+
};
|
|
22
|
+
center: {
|
|
23
|
+
type: import("vue").PropType<boolean>;
|
|
24
|
+
};
|
|
25
|
+
effect: {
|
|
26
|
+
type: import("vue").PropType<import("./types").alertEffects>;
|
|
27
|
+
};
|
|
28
|
+
}>> & Readonly<{
|
|
29
|
+
onClose?: ((evt: MouseEvent) => any) | undefined;
|
|
30
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
+
close: (evt: MouseEvent) => void;
|
|
32
|
+
}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
33
|
+
P: {};
|
|
34
|
+
B: {};
|
|
35
|
+
D: {};
|
|
36
|
+
C: {};
|
|
37
|
+
M: {};
|
|
38
|
+
Defaults: {};
|
|
39
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
title: {
|
|
41
|
+
type: import("vue").PropType<string>;
|
|
42
|
+
};
|
|
43
|
+
description: {
|
|
44
|
+
type: import("vue").PropType<string>;
|
|
45
|
+
};
|
|
46
|
+
type: {
|
|
47
|
+
type: import("vue").PropType<import("./types").TypeComponents>;
|
|
48
|
+
};
|
|
49
|
+
closable: {
|
|
50
|
+
type: import("vue").PropType<boolean>;
|
|
51
|
+
};
|
|
52
|
+
closeText: {
|
|
53
|
+
type: import("vue").PropType<string>;
|
|
54
|
+
};
|
|
55
|
+
showIcon: {
|
|
56
|
+
type: import("vue").PropType<boolean>;
|
|
57
|
+
};
|
|
58
|
+
center: {
|
|
59
|
+
type: import("vue").PropType<boolean>;
|
|
60
|
+
};
|
|
61
|
+
effect: {
|
|
62
|
+
type: import("vue").PropType<import("./types").alertEffects>;
|
|
63
|
+
};
|
|
64
|
+
}>> & Readonly<{
|
|
65
|
+
onClose?: ((evt: MouseEvent) => any) | undefined;
|
|
66
|
+
}>, {}, {}, {}, {}, {}>;
|
|
67
|
+
__isFragment?: never;
|
|
68
|
+
__isTeleport?: never;
|
|
69
|
+
__isSuspense?: never;
|
|
70
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
3
71
|
title: {
|
|
4
72
|
type: import("vue").PropType<string>;
|
|
5
73
|
};
|
|
@@ -24,34 +92,14 @@ export declare const VftAlert: import("vft/es/utils").SFCWithInstall<import("vue
|
|
|
24
92
|
effect: {
|
|
25
93
|
type: import("vue").PropType<import("./types").alertEffects>;
|
|
26
94
|
};
|
|
95
|
+
}>> & Readonly<{
|
|
96
|
+
onClose?: ((evt: MouseEvent) => any) | undefined;
|
|
27
97
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
98
|
close: (evt: MouseEvent) => void;
|
|
29
|
-
}, string, import("vue").
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
description: {
|
|
34
|
-
type: import("vue").PropType<string>;
|
|
99
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
100
|
+
$slots: {
|
|
101
|
+
title?(_: {}): any;
|
|
102
|
+
default?(_: {}): any;
|
|
35
103
|
};
|
|
36
|
-
|
|
37
|
-
type: import("vue").PropType<import("./types").TypeComponents>;
|
|
38
|
-
};
|
|
39
|
-
closable: {
|
|
40
|
-
type: import("vue").PropType<boolean>;
|
|
41
|
-
};
|
|
42
|
-
closeText: {
|
|
43
|
-
type: import("vue").PropType<string>;
|
|
44
|
-
};
|
|
45
|
-
showIcon: {
|
|
46
|
-
type: import("vue").PropType<boolean>;
|
|
47
|
-
};
|
|
48
|
-
center: {
|
|
49
|
-
type: import("vue").PropType<boolean>;
|
|
50
|
-
};
|
|
51
|
-
effect: {
|
|
52
|
-
type: import("vue").PropType<import("./types").alertEffects>;
|
|
53
|
-
};
|
|
54
|
-
}>> & Readonly<{
|
|
55
|
-
onClose?: ((evt: MouseEvent) => any) | undefined;
|
|
56
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
|
|
104
|
+
})> & Record<string, any>;
|
|
57
105
|
export default VftAlert;
|
|
@@ -62,9 +62,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
62
62
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
63
63
|
readonly effect?: "light" | "dark" | undefined;
|
|
64
64
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
65
|
+
readonly visible?: boolean | undefined;
|
|
65
66
|
readonly teleported?: boolean | undefined;
|
|
66
67
|
readonly open?: boolean | undefined;
|
|
67
|
-
readonly visible?: boolean | undefined;
|
|
68
68
|
readonly arrowOffset?: number | undefined;
|
|
69
69
|
readonly gpuAcceleration?: boolean | undefined;
|
|
70
70
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -480,9 +480,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
480
480
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
481
481
|
readonly effect?: "light" | "dark" | undefined;
|
|
482
482
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
483
|
+
readonly visible?: boolean | undefined;
|
|
483
484
|
readonly teleported?: boolean | undefined;
|
|
484
485
|
readonly open?: boolean | undefined;
|
|
485
|
-
readonly visible?: boolean | undefined;
|
|
486
486
|
readonly arrowOffset?: number | undefined;
|
|
487
487
|
readonly gpuAcceleration?: boolean | undefined;
|
|
488
488
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -889,19 +889,19 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
889
889
|
/** @description highlight an item in a suggestion */
|
|
890
890
|
highlight: (index: number) => void;
|
|
891
891
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
892
|
+
input: (value: string) => void;
|
|
892
893
|
select: (item: Record<string, any>) => void;
|
|
894
|
+
clear: () => void;
|
|
893
895
|
"update:modelValue": (value: string) => void;
|
|
894
896
|
change: (value: string) => void;
|
|
895
|
-
input: (value: string) => void;
|
|
896
|
-
clear: () => void;
|
|
897
897
|
blur: (evt: FocusEvent) => void;
|
|
898
898
|
focus: (evt: FocusEvent) => void;
|
|
899
899
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AutocompleteProps>>> & Readonly<{
|
|
900
900
|
onInput?: ((value: string) => any) | undefined;
|
|
901
901
|
onSelect?: ((item: Record<string, any>) => any) | undefined;
|
|
902
|
+
onClear?: (() => any) | undefined;
|
|
902
903
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
903
904
|
onChange?: ((value: string) => any) | undefined;
|
|
904
|
-
onClear?: (() => any) | undefined;
|
|
905
905
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
906
906
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
907
907
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -51,9 +51,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
51
51
|
}>> & Readonly<{
|
|
52
52
|
onInput?: ((value: string) => any) | undefined;
|
|
53
53
|
onSelect?: ((item: Record<string, any>) => any) | undefined;
|
|
54
|
+
onClear?: (() => any) | undefined;
|
|
54
55
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
55
56
|
onChange?: ((value: string) => any) | undefined;
|
|
56
|
-
onClear?: (() => any) | undefined;
|
|
57
57
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
58
58
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
59
59
|
}>, {
|
|
@@ -86,9 +86,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
86
86
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
87
87
|
readonly effect?: "light" | "dark" | undefined;
|
|
88
88
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
89
|
+
readonly visible?: boolean | undefined;
|
|
89
90
|
readonly teleported?: boolean | undefined;
|
|
90
91
|
readonly open?: boolean | undefined;
|
|
91
|
-
readonly visible?: boolean | undefined;
|
|
92
92
|
readonly arrowOffset?: number | undefined;
|
|
93
93
|
readonly gpuAcceleration?: boolean | undefined;
|
|
94
94
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -504,9 +504,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
504
504
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
505
505
|
readonly effect?: "light" | "dark" | undefined;
|
|
506
506
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
507
|
+
readonly visible?: boolean | undefined;
|
|
507
508
|
readonly teleported?: boolean | undefined;
|
|
508
509
|
readonly open?: boolean | undefined;
|
|
509
|
-
readonly visible?: boolean | undefined;
|
|
510
510
|
readonly arrowOffset?: number | undefined;
|
|
511
511
|
readonly gpuAcceleration?: boolean | undefined;
|
|
512
512
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -906,11 +906,11 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
906
906
|
close: () => void;
|
|
907
907
|
highlight: (index: number) => void;
|
|
908
908
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
909
|
+
input: (value: string) => void;
|
|
909
910
|
select: (item: Record<string, any>) => void;
|
|
911
|
+
clear: () => void;
|
|
910
912
|
"update:modelValue": (value: string) => void;
|
|
911
913
|
change: (value: string) => void;
|
|
912
|
-
input: (value: string) => void;
|
|
913
|
-
clear: () => void;
|
|
914
914
|
blur: (evt: FocusEvent) => void;
|
|
915
915
|
focus: (evt: FocusEvent) => void;
|
|
916
916
|
}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -972,9 +972,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
972
972
|
}>> & Readonly<{
|
|
973
973
|
onInput?: ((value: string) => any) | undefined;
|
|
974
974
|
onSelect?: ((item: Record<string, any>) => any) | undefined;
|
|
975
|
+
onClear?: (() => any) | undefined;
|
|
975
976
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
976
977
|
onChange?: ((value: string) => any) | undefined;
|
|
977
|
-
onClear?: (() => any) | undefined;
|
|
978
978
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
979
979
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
980
980
|
}>, {
|
|
@@ -1007,9 +1007,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1007
1007
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1008
1008
|
readonly effect?: "light" | "dark" | undefined;
|
|
1009
1009
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1010
|
+
readonly visible?: boolean | undefined;
|
|
1010
1011
|
readonly teleported?: boolean | undefined;
|
|
1011
1012
|
readonly open?: boolean | undefined;
|
|
1012
|
-
readonly visible?: boolean | undefined;
|
|
1013
1013
|
readonly arrowOffset?: number | undefined;
|
|
1014
1014
|
readonly gpuAcceleration?: boolean | undefined;
|
|
1015
1015
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -1425,9 +1425,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1425
1425
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1426
1426
|
readonly effect?: "light" | "dark" | undefined;
|
|
1427
1427
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1428
|
+
readonly visible?: boolean | undefined;
|
|
1428
1429
|
readonly teleported?: boolean | undefined;
|
|
1429
1430
|
readonly open?: boolean | undefined;
|
|
1430
|
-
readonly visible?: boolean | undefined;
|
|
1431
1431
|
readonly arrowOffset?: number | undefined;
|
|
1432
1432
|
readonly gpuAcceleration?: boolean | undefined;
|
|
1433
1433
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -1882,9 +1882,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1882
1882
|
}>> & Readonly<{
|
|
1883
1883
|
onInput?: ((value: string) => any) | undefined;
|
|
1884
1884
|
onSelect?: ((item: Record<string, any>) => any) | undefined;
|
|
1885
|
+
onClear?: (() => any) | undefined;
|
|
1885
1886
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1886
1887
|
onChange?: ((value: string) => any) | undefined;
|
|
1887
|
-
onClear?: (() => any) | undefined;
|
|
1888
1888
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
1889
1889
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
1890
1890
|
}>, {
|
|
@@ -1917,9 +1917,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1917
1917
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1918
1918
|
readonly effect?: "light" | "dark" | undefined;
|
|
1919
1919
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1920
|
+
readonly visible?: boolean | undefined;
|
|
1920
1921
|
readonly teleported?: boolean | undefined;
|
|
1921
1922
|
readonly open?: boolean | undefined;
|
|
1922
|
-
readonly visible?: boolean | undefined;
|
|
1923
1923
|
readonly arrowOffset?: number | undefined;
|
|
1924
1924
|
readonly gpuAcceleration?: boolean | undefined;
|
|
1925
1925
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -2335,9 +2335,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
2335
2335
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
2336
2336
|
readonly effect?: "light" | "dark" | undefined;
|
|
2337
2337
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
2338
|
+
readonly visible?: boolean | undefined;
|
|
2338
2339
|
readonly teleported?: boolean | undefined;
|
|
2339
2340
|
readonly open?: boolean | undefined;
|
|
2340
|
-
readonly visible?: boolean | undefined;
|
|
2341
2341
|
readonly arrowOffset?: number | undefined;
|
|
2342
2342
|
readonly gpuAcceleration?: boolean | undefined;
|
|
2343
2343
|
readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
|
|
@@ -2737,11 +2737,11 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
2737
2737
|
close: () => void;
|
|
2738
2738
|
highlight: (index: number) => void;
|
|
2739
2739
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2740
|
+
input: (value: string) => void;
|
|
2740
2741
|
select: (item: Record<string, any>) => void;
|
|
2742
|
+
clear: () => void;
|
|
2741
2743
|
"update:modelValue": (value: string) => void;
|
|
2742
2744
|
change: (value: string) => void;
|
|
2743
|
-
input: (value: string) => void;
|
|
2744
|
-
clear: () => void;
|
|
2745
2745
|
blur: (evt: FocusEvent) => void;
|
|
2746
2746
|
focus: (evt: FocusEvent) => void;
|
|
2747
2747
|
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -11,7 +11,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
11
11
|
}>>, {
|
|
12
12
|
ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
13
13
|
size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
|
|
14
|
-
type: import("vue").ComputedRef<"
|
|
14
|
+
type: import("vue").ComputedRef<"" | "text" | "default" | "success" | "warning" | "info" | "danger" | "primary">;
|
|
15
15
|
disabled: import("vue").ComputedRef<boolean>;
|
|
16
16
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
17
17
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
3
|
+
size: {
|
|
4
|
+
type: import("vue").PropType<import("../types").ComponentSize>;
|
|
5
|
+
};
|
|
3
6
|
link: {
|
|
4
7
|
type: import("vue").PropType<boolean>;
|
|
5
8
|
};
|
|
@@ -21,9 +24,6 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
21
24
|
autofocus: {
|
|
22
25
|
type: import("vue").PropType<boolean>;
|
|
23
26
|
};
|
|
24
|
-
size: {
|
|
25
|
-
type: import("vue").PropType<import("../types").ComponentSize>;
|
|
26
|
-
};
|
|
27
27
|
icon: {
|
|
28
28
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
29
29
|
};
|
|
@@ -72,7 +72,7 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
72
72
|
}>, {
|
|
73
73
|
ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
74
74
|
size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
|
|
75
|
-
type: import("vue").ComputedRef<"
|
|
75
|
+
type: import("vue").ComputedRef<"" | "text" | "default" | "success" | "warning" | "info" | "danger" | "primary">;
|
|
76
76
|
disabled: import("vue").ComputedRef<boolean>;
|
|
77
77
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
78
78
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -90,6 +90,9 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
90
90
|
M: {};
|
|
91
91
|
Defaults: {};
|
|
92
92
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
93
|
+
size: {
|
|
94
|
+
type: import("vue").PropType<import("../types").ComponentSize>;
|
|
95
|
+
};
|
|
93
96
|
link: {
|
|
94
97
|
type: import("vue").PropType<boolean>;
|
|
95
98
|
};
|
|
@@ -111,9 +114,6 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
111
114
|
autofocus: {
|
|
112
115
|
type: import("vue").PropType<boolean>;
|
|
113
116
|
};
|
|
114
|
-
size: {
|
|
115
|
-
type: import("vue").PropType<import("../types").ComponentSize>;
|
|
116
|
-
};
|
|
117
117
|
icon: {
|
|
118
118
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
119
119
|
};
|
|
@@ -162,7 +162,7 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
162
162
|
}>, {
|
|
163
163
|
ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
164
164
|
size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
|
|
165
|
-
type: import("vue").ComputedRef<"
|
|
165
|
+
type: import("vue").ComputedRef<"" | "text" | "default" | "success" | "warning" | "info" | "danger" | "primary">;
|
|
166
166
|
disabled: import("vue").ComputedRef<boolean>;
|
|
167
167
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
168
168
|
}, {}, {}, {}, {
|
|
@@ -175,6 +175,9 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
175
175
|
__isTeleport?: never;
|
|
176
176
|
__isSuspense?: never;
|
|
177
177
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
178
|
+
size: {
|
|
179
|
+
type: import("vue").PropType<import("../types").ComponentSize>;
|
|
180
|
+
};
|
|
178
181
|
link: {
|
|
179
182
|
type: import("vue").PropType<boolean>;
|
|
180
183
|
};
|
|
@@ -196,9 +199,6 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
196
199
|
autofocus: {
|
|
197
200
|
type: import("vue").PropType<boolean>;
|
|
198
201
|
};
|
|
199
|
-
size: {
|
|
200
|
-
type: import("vue").PropType<import("../types").ComponentSize>;
|
|
201
|
-
};
|
|
202
202
|
icon: {
|
|
203
203
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
204
204
|
};
|
|
@@ -247,7 +247,7 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
247
247
|
}>, {
|
|
248
248
|
ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
249
249
|
size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
|
|
250
|
-
type: import("vue").ComputedRef<"
|
|
250
|
+
type: import("vue").ComputedRef<"" | "text" | "default" | "success" | "warning" | "info" | "danger" | "primary">;
|
|
251
251
|
disabled: import("vue").ComputedRef<boolean>;
|
|
252
252
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
253
253
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -13,7 +13,7 @@ export declare const useButton: (props: ButtonProps, emit: any) => {
|
|
|
13
13
|
}>;
|
|
14
14
|
_disabled: import("vue").ComputedRef<boolean>;
|
|
15
15
|
_size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
|
|
16
|
-
_type: import("vue").ComputedRef<"
|
|
16
|
+
_type: import("vue").ComputedRef<"" | "text" | "default" | "success" | "warning" | "info" | "danger" | "primary">;
|
|
17
17
|
_ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
18
18
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
19
19
|
handleClick: (evt: MouseEvent) => void;
|
|
@@ -4,7 +4,7 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
|
|
|
4
4
|
type: import("vue").PropType<string | number>;
|
|
5
5
|
};
|
|
6
6
|
height: {
|
|
7
|
-
type: import("vue").PropType<string>;
|
|
7
|
+
type: import("vue").PropType<string | number>;
|
|
8
8
|
};
|
|
9
9
|
trigger: {
|
|
10
10
|
type: import("vue").PropType<"click" | "hover">;
|
|
@@ -60,7 +60,7 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
|
|
|
60
60
|
type: import("vue").PropType<string | number>;
|
|
61
61
|
};
|
|
62
62
|
height: {
|
|
63
|
-
type: import("vue").PropType<string>;
|
|
63
|
+
type: import("vue").PropType<string | number>;
|
|
64
64
|
};
|
|
65
65
|
trigger: {
|
|
66
66
|
type: import("vue").PropType<"click" | "hover">;
|
|
@@ -111,7 +111,7 @@ export declare const VftCarousel: import("vft/es/utils").SFCWithInstall<{
|
|
|
111
111
|
type: import("vue").PropType<string | number>;
|
|
112
112
|
};
|
|
113
113
|
height: {
|
|
114
|
-
type: import("vue").PropType<string>;
|
|
114
|
+
type: import("vue").PropType<string | number>;
|
|
115
115
|
};
|
|
116
116
|
trigger: {
|
|
117
117
|
type: import("vue").PropType<"click" | "hover">;
|
|
@@ -10,10 +10,10 @@ export declare const useCarousel: (props: CarouselProps, emit: any, componentNam
|
|
|
10
10
|
items: import("vue").ShallowRef<CarouselItemContext[], CarouselItemContext[]>;
|
|
11
11
|
isVertical: import("vue").ComputedRef<boolean>;
|
|
12
12
|
containerStyle: import("vue").ComputedRef<{
|
|
13
|
-
height: string | undefined;
|
|
13
|
+
height: string | number | undefined;
|
|
14
14
|
overflow?: undefined;
|
|
15
15
|
} | {
|
|
16
|
-
height: string;
|
|
16
|
+
height: string | undefined;
|
|
17
17
|
overflow: string;
|
|
18
18
|
}>;
|
|
19
19
|
isItemsTwoLength: import("vue").Ref<boolean, boolean>;
|