vft 0.0.485 → 0.0.493
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/es/components/autocomplete/autocomplete.vue.d.ts +2 -2
- package/es/components/autocomplete/index.d.ts +6 -6
- package/es/components/button/index.d.ts +9 -9
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/config-provider/hooks/use-global-config.js +3 -3
- package/es/components/dialog/use-dialog.js +11 -11
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/message/message.vue2.js +45 -42
- package/es/components/message/types.d.ts +8 -2
- package/es/components/message/types.js +2 -1
- package/es/components/modal/index.d.ts +72 -3
- package/es/components/modal/modal-footer-action.vue.d.ts +1 -1
- package/es/components/modal/modal-footer-action.vue2.js +13 -15
- package/es/components/modal/modal.vue.d.ts +27 -3
- package/es/components/modal/modal.vue2.js +59 -59
- package/es/components/modal/types.d.ts +2 -0
- package/es/components/popconfirm/index.d.ts +15 -15
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/router-view-content/index.d.ts +6 -0
- package/es/components/router-view-content/router-view-content.vue.d.ts +1 -0
- package/es/components/router-view-content/router-view-content.vue2.js +19 -18
- package/es/components/select/index.d.ts +4 -4
- package/es/components/select/select.vue.d.ts +4 -4
- package/es/components/select/useSelect.d.ts +4 -4
- package/es/components/super-form/index.d.ts +30 -24
- package/es/components/super-form/super-form-item.vue2.js +263 -231
- package/es/components/super-form/super-form.vue.d.ts +3 -1
- package/es/components/super-form/super-form.vue2.js +153 -132
- package/es/components/super-form/types.d.ts +4 -2
- package/es/components/super-form/use/helper.d.ts +34 -0
- package/es/components/super-form/use/helper.js +81 -34
- package/es/components/switch/index.d.ts +1 -0
- package/es/components/switch/switch.vue.d.ts +1 -25
- package/es/components/switch/types.d.ts +25 -0
- package/es/components/switch/types.js +1 -0
- package/es/components/table/index.d.ts +6 -0
- package/es/components/table/table.vue.d.ts +4 -0
- package/es/components/table/table.vue2.js +164 -149
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/form-register.d.ts +1 -1
- package/es/utils/form-register.js +1 -1
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
- package/lib/components/autocomplete/index.d.ts +6 -6
- package/lib/components/button/index.d.ts +9 -9
- package/lib/components/dialog/use-dialog.cjs +1 -1
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/message/message.vue2.cjs +1 -1
- package/lib/components/message/types.cjs +1 -1
- package/lib/components/message/types.d.ts +8 -2
- package/lib/components/modal/index.d.ts +72 -3
- package/lib/components/modal/modal-footer-action.vue.d.ts +1 -1
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/modal/modal.vue.d.ts +27 -3
- package/lib/components/modal/modal.vue2.cjs +1 -1
- package/lib/components/modal/types.d.ts +2 -0
- package/lib/components/popconfirm/index.d.ts +15 -15
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/router-view-content/index.d.ts +6 -0
- package/lib/components/router-view-content/router-view-content.vue.d.ts +1 -0
- package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
- package/lib/components/select/index.d.ts +4 -4
- package/lib/components/select/select.vue.d.ts +4 -4
- package/lib/components/select/useSelect.d.ts +4 -4
- package/lib/components/super-form/index.d.ts +30 -24
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/super-form.vue.d.ts +3 -1
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/super-form/types.d.ts +4 -2
- package/lib/components/super-form/use/helper.cjs +1 -1
- package/lib/components/super-form/use/helper.d.ts +34 -0
- package/lib/components/switch/index.d.ts +1 -0
- package/lib/components/switch/switch.vue.d.ts +1 -25
- package/lib/components/switch/types.cjs +1 -0
- package/lib/components/switch/types.d.ts +25 -0
- package/lib/components/table/index.d.ts +6 -0
- package/lib/components/table/table.vue.d.ts +4 -0
- package/lib/components/table/table.vue2.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 -1
- package/lib/utils/form-register.d.ts +1 -1
- package/package.json +5 -5
- package/tags.json +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/dialog.scss +1 -1
- package/theme-style/src/message.scss +8 -4
- package/theme-style/src/super-form.scss +6 -0
- package/theme-style/src/table.scss +25 -6
- package/theme-style/vft-dialog.css +1 -1
- package/theme-style/vft-message.css +1 -1
- package/theme-style/vft-super-form.css +1 -1
- package/theme-style/vft-table.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { defineComponent as O, computed as e, createBlock as n, openBlock as
|
|
1
|
+
import { defineComponent as O, computed as e, createBlock as n, openBlock as s, unref as o, normalizeProps as w, guardReactiveProps as y, withCtx as i, createCommentVNode as c, renderSlot as l, mergeProps as p, createTextVNode as f, toDisplayString as B } from "vue";
|
|
2
2
|
import { VftRow as g } from "../row/index.js";
|
|
3
3
|
import { VftButton as b } from "../button/index.js";
|
|
4
|
-
import "../super-form/index.js";
|
|
5
|
-
import "./index.js";
|
|
6
4
|
import "@vueuse/core";
|
|
7
5
|
import "@vft/utils";
|
|
8
6
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -12,7 +10,7 @@ import { useNamespace as h } from "../../hooks/use-namespace/index.js";
|
|
|
12
10
|
import "../../hooks/use-model-toggle/index.js";
|
|
13
11
|
import "@popperjs/core";
|
|
14
12
|
import "../../hooks/use-z-index/index.js";
|
|
15
|
-
const
|
|
13
|
+
const A = /* @__PURE__ */ O({
|
|
16
14
|
__name: "modal-footer-action",
|
|
17
15
|
props: {
|
|
18
16
|
showSubmitButton: { type: Boolean },
|
|
@@ -27,36 +25,36 @@ const q = /* @__PURE__ */ O({
|
|
|
27
25
|
...t.actionRowOptions
|
|
28
26
|
})), r = e(
|
|
29
27
|
() => Object.assign({ btnText: "确认" }, t.submitButtonOptions)
|
|
30
|
-
),
|
|
28
|
+
), u = e(
|
|
31
29
|
() => Object.assign({ btnText: "取消" }, t.cancelButtonOptions)
|
|
32
30
|
);
|
|
33
|
-
return (
|
|
34
|
-
default:
|
|
35
|
-
t.showCancelButton ? (
|
|
31
|
+
return (m, v) => (s(), n(o(g), w(y(d.value)), {
|
|
32
|
+
default: i(() => [
|
|
33
|
+
t.showCancelButton ? (s(), n(o(b), p({ key: 0 }, u.value, {
|
|
36
34
|
class: o(a).e("cancel")
|
|
37
35
|
}), {
|
|
38
|
-
default:
|
|
39
|
-
f(B(
|
|
36
|
+
default: i(() => [
|
|
37
|
+
f(B(u.value.btnText), 1)
|
|
40
38
|
]),
|
|
41
39
|
_: 1
|
|
42
40
|
}, 16, ["class"])) : c("", !0),
|
|
43
|
-
|
|
44
|
-
t.showSubmitButton ? (
|
|
41
|
+
l(m.$slots, "submitBefore"),
|
|
42
|
+
t.showSubmitButton ? (s(), n(o(b), p({
|
|
45
43
|
key: 1,
|
|
46
44
|
type: "primary",
|
|
47
45
|
class: o(a).e("submit")
|
|
48
46
|
}, r.value), {
|
|
49
|
-
default:
|
|
47
|
+
default: i(() => [
|
|
50
48
|
f(B(r.value.btnText), 1)
|
|
51
49
|
]),
|
|
52
50
|
_: 1
|
|
53
51
|
}, 16, ["class"])) : c("", !0),
|
|
54
|
-
|
|
52
|
+
l(m.$slots, "submitAfter")
|
|
55
53
|
]),
|
|
56
54
|
_: 3
|
|
57
55
|
}, 16));
|
|
58
56
|
}
|
|
59
57
|
});
|
|
60
58
|
export {
|
|
61
|
-
|
|
59
|
+
A as default
|
|
62
60
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ModalActionProps, ModalProps } from './types';
|
|
1
|
+
import type { ModalActionProps, ModalMethods, ModalProps } from './types';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
default?(_: {}): any;
|
|
4
4
|
};
|
|
@@ -23,7 +23,19 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
23
23
|
showActionButtonGroup: boolean;
|
|
24
24
|
showSubmitButton: boolean;
|
|
25
25
|
showCancelButton: boolean;
|
|
26
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
"visible-change": (value: boolean) => void;
|
|
28
|
+
close: (event?: Event | undefined) => void;
|
|
29
|
+
ok: () => void;
|
|
30
|
+
register: (methods: ModalMethods, uid: number) => void;
|
|
31
|
+
"update:modelValue": (value: boolean) => void;
|
|
32
|
+
submit: () => void;
|
|
33
|
+
open: () => void;
|
|
34
|
+
opened: () => void;
|
|
35
|
+
closed: () => void;
|
|
36
|
+
openAutoFocus: () => void;
|
|
37
|
+
closeAutoFocus: () => void;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ModalProps & ModalActionProps>, {
|
|
27
39
|
center: boolean;
|
|
28
40
|
customClass: string;
|
|
29
41
|
draggable: boolean;
|
|
@@ -44,7 +56,19 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
44
56
|
showActionButtonGroup: boolean;
|
|
45
57
|
showSubmitButton: boolean;
|
|
46
58
|
showCancelButton: boolean;
|
|
47
|
-
}>>> & Readonly<{
|
|
59
|
+
}>>> & Readonly<{
|
|
60
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
61
|
+
onClose?: ((event?: Event | undefined) => any) | undefined;
|
|
62
|
+
onSubmit?: (() => any) | undefined;
|
|
63
|
+
onOpen?: (() => any) | undefined;
|
|
64
|
+
onOpened?: (() => any) | undefined;
|
|
65
|
+
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
66
|
+
onClosed?: (() => any) | undefined;
|
|
67
|
+
onOpenAutoFocus?: (() => any) | undefined;
|
|
68
|
+
onCloseAutoFocus?: (() => any) | undefined;
|
|
69
|
+
onRegister?: ((methods: ModalMethods, uid: number) => any) | undefined;
|
|
70
|
+
onOk?: (() => any) | undefined;
|
|
71
|
+
}>, {
|
|
48
72
|
title: string;
|
|
49
73
|
center: boolean;
|
|
50
74
|
fullscreen: boolean;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as k, useAttrs as A, ref as m, getCurrentInstance as $, computed as r, unref as l, watchEffect as M, watch as P, nextTick as B, createBlock as y, openBlock as C, mergeProps as T, createSlots as R, withCtx as g, renderSlot as S, createCommentVNode as x } from "vue";
|
|
2
|
+
import { VftDialog as D } from "../dialog/index.js";
|
|
3
|
+
import { deepMerge as G, isFunction as I } from "@vft/utils";
|
|
4
|
+
import E from "./modal-footer-action.vue2.js";
|
|
5
|
+
const W = /* @__PURE__ */ k({
|
|
6
6
|
__name: "modal",
|
|
7
7
|
props: {
|
|
8
8
|
closeFunc: {},
|
|
9
9
|
showActionButtonGroup: { type: Boolean, default: !1 },
|
|
10
10
|
confirmLoading: { type: Boolean },
|
|
11
11
|
loading: { type: Boolean },
|
|
12
|
+
scrollTop: { type: Boolean },
|
|
12
13
|
appendToBody: { type: Boolean, default: !1 },
|
|
13
14
|
appendTo: {},
|
|
14
15
|
beforeClose: {},
|
|
@@ -45,81 +46,80 @@ const N = /* @__PURE__ */ O({
|
|
|
45
46
|
cancelButtonOptions: {},
|
|
46
47
|
actionRowOptions: {}
|
|
47
48
|
},
|
|
48
|
-
emits:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
register: [],
|
|
53
|
-
"update:modelValue": [],
|
|
54
|
-
submit: []
|
|
55
|
-
},
|
|
56
|
-
setup(n, { emit: h }) {
|
|
57
|
-
const o = n, a = h, C = M(), c = r(null), l = r(!1), s = r(null), f = {
|
|
58
|
-
setModalProps: V,
|
|
49
|
+
emits: ["visible-change", "close", "ok", "register", "update:modelValue", "submit", "open", "opened", "closed", "openAutoFocus", "closeAutoFocus"],
|
|
50
|
+
setup(s, { emit: w }) {
|
|
51
|
+
const n = s, t = w, h = A(), d = m(null), a = m(!1), u = m(null), f = {
|
|
52
|
+
setModalProps: p,
|
|
59
53
|
emitVisible: void 0,
|
|
60
54
|
redoModalHeight: () => {
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
B(() => {
|
|
56
|
+
l(u) && l(u).setModalHeight();
|
|
63
57
|
});
|
|
64
58
|
}
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
const
|
|
68
|
-
...
|
|
69
|
-
...
|
|
70
|
-
})),
|
|
71
|
-
...
|
|
72
|
-
...
|
|
73
|
-
modelValue:
|
|
59
|
+
}, i = $();
|
|
60
|
+
i && t("register", f, i.uid);
|
|
61
|
+
const V = r(() => ({
|
|
62
|
+
...n,
|
|
63
|
+
...l(d)
|
|
64
|
+
})), v = r(() => ({
|
|
65
|
+
...h,
|
|
66
|
+
...l(V),
|
|
67
|
+
modelValue: l(a)
|
|
74
68
|
}));
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}),
|
|
78
|
-
() =>
|
|
69
|
+
M(() => {
|
|
70
|
+
a.value = !!n.modelValue;
|
|
71
|
+
}), P(
|
|
72
|
+
() => l(a),
|
|
79
73
|
(e) => {
|
|
80
|
-
|
|
81
|
-
f.emitVisible(e,
|
|
82
|
-
}),
|
|
83
|
-
|
|
74
|
+
t("visible-change", e), t("update:modelValue", e), i && f.emitVisible && B(() => {
|
|
75
|
+
f.emitVisible(e, i.uid);
|
|
76
|
+
}), B(() => {
|
|
77
|
+
n.scrollTop && e && l(u) && l(u).scrollTop();
|
|
84
78
|
});
|
|
85
79
|
},
|
|
86
80
|
{
|
|
87
81
|
immediate: !1
|
|
88
82
|
}
|
|
89
83
|
);
|
|
90
|
-
async function
|
|
91
|
-
if (e?.stopPropagation(),
|
|
92
|
-
|
|
93
|
-
l.value = !m;
|
|
84
|
+
async function b(e) {
|
|
85
|
+
if (e?.stopPropagation(), n.closeFunc && I(n.closeFunc)) {
|
|
86
|
+
await n.closeFunc() || p({ modelValue: !1 });
|
|
94
87
|
return;
|
|
95
88
|
}
|
|
96
|
-
|
|
89
|
+
p({ modelValue: !1 }), t("close", e);
|
|
97
90
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
91
|
+
function p(e) {
|
|
92
|
+
d.value = G(l(d) || {}, e), Reflect.has(e, "modelValue") && (a.value = !!e.modelValue);
|
|
100
93
|
}
|
|
101
|
-
const
|
|
102
|
-
onClick: (e) =>
|
|
103
|
-
...
|
|
104
|
-
})),
|
|
105
|
-
onClick: () =>
|
|
106
|
-
...
|
|
94
|
+
const O = r(() => ({
|
|
95
|
+
onClick: (e) => b(e),
|
|
96
|
+
...n.cancelButtonOptions
|
|
97
|
+
})), F = r(() => ({
|
|
98
|
+
onClick: () => t("submit"),
|
|
99
|
+
...n.submitButtonOptions
|
|
107
100
|
}));
|
|
108
|
-
return (e,
|
|
109
|
-
|
|
110
|
-
|
|
101
|
+
return (e, o) => (C(), y(l(D), T(v.value, {
|
|
102
|
+
onClose: b,
|
|
103
|
+
onOpen: o[0] || (o[0] = (c) => t("open")),
|
|
104
|
+
onOpened: o[1] || (o[1] = (c) => t("opened")),
|
|
105
|
+
onClosed: o[2] || (o[2] = (c) => t("closed")),
|
|
106
|
+
onOpenAutoFocus: o[3] || (o[3] = (c) => t("openAutoFocus")),
|
|
107
|
+
onCloseAutoFocus: o[4] || (o[4] = (c) => t("closeAutoFocus"))
|
|
108
|
+
}), R({
|
|
109
|
+
default: g(() => [
|
|
110
|
+
S(e.$slots, "default")
|
|
111
111
|
]),
|
|
112
112
|
_: 2
|
|
113
113
|
}, [
|
|
114
|
-
e.$slots.footer ||
|
|
114
|
+
e.$slots.footer || s.showActionButtonGroup ? {
|
|
115
115
|
name: "footer",
|
|
116
|
-
fn:
|
|
117
|
-
|
|
116
|
+
fn: g(() => [
|
|
117
|
+
s.showActionButtonGroup ? (C(), y(E, {
|
|
118
118
|
key: 0,
|
|
119
|
-
"show-cancel-button":
|
|
120
|
-
"show-submit-button":
|
|
121
|
-
"cancel-button-options":
|
|
122
|
-
"submit-button-options":
|
|
119
|
+
"show-cancel-button": s.showCancelButton,
|
|
120
|
+
"show-submit-button": s.showSubmitButton,
|
|
121
|
+
"cancel-button-options": O.value,
|
|
122
|
+
"submit-button-options": F.value
|
|
123
123
|
}, null, 8, ["show-cancel-button", "show-submit-button", "cancel-button-options", "submit-button-options"])) : x("", !0)
|
|
124
124
|
]),
|
|
125
125
|
key: "0"
|
|
@@ -128,5 +128,5 @@ const N = /* @__PURE__ */ O({
|
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
export {
|
|
131
|
-
|
|
131
|
+
W as default
|
|
132
132
|
};
|
|
@@ -7,14 +7,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
7
7
|
type: import("vue").PropType<string | number>;
|
|
8
8
|
default: number;
|
|
9
9
|
};
|
|
10
|
-
icon: {
|
|
11
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
10
|
teleported: {
|
|
15
11
|
type: import("vue").PropType<boolean>;
|
|
16
12
|
default: boolean;
|
|
17
13
|
};
|
|
14
|
+
icon: {
|
|
15
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
18
|
hideAfter: {
|
|
19
19
|
type: import("vue").PropType<number>;
|
|
20
20
|
default: number;
|
|
@@ -52,8 +52,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
52
52
|
cancel: (val: MouseEvent) => void;
|
|
53
53
|
}, import("vue").PublicProps, {
|
|
54
54
|
width: string | number;
|
|
55
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
56
55
|
teleported: boolean;
|
|
56
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
57
57
|
hideAfter: number;
|
|
58
58
|
persistent: boolean;
|
|
59
59
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -74,14 +74,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
74
74
|
type: import("vue").PropType<string | number>;
|
|
75
75
|
default: number;
|
|
76
76
|
};
|
|
77
|
-
icon: {
|
|
78
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
79
|
-
default: string;
|
|
80
|
-
};
|
|
81
77
|
teleported: {
|
|
82
78
|
type: import("vue").PropType<boolean>;
|
|
83
79
|
default: boolean;
|
|
84
80
|
};
|
|
81
|
+
icon: {
|
|
82
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
85
|
hideAfter: {
|
|
86
86
|
type: import("vue").PropType<number>;
|
|
87
87
|
default: number;
|
|
@@ -116,8 +116,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
116
116
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
117
117
|
}>, {}, {}, {}, {}, {
|
|
118
118
|
width: string | number;
|
|
119
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
120
119
|
teleported: boolean;
|
|
120
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
121
121
|
hideAfter: number;
|
|
122
122
|
persistent: boolean;
|
|
123
123
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -135,14 +135,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
135
135
|
type: import("vue").PropType<string | number>;
|
|
136
136
|
default: number;
|
|
137
137
|
};
|
|
138
|
-
icon: {
|
|
139
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
140
|
-
default: string;
|
|
141
|
-
};
|
|
142
138
|
teleported: {
|
|
143
139
|
type: import("vue").PropType<boolean>;
|
|
144
140
|
default: boolean;
|
|
145
141
|
};
|
|
142
|
+
icon: {
|
|
143
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
144
|
+
default: string;
|
|
145
|
+
};
|
|
146
146
|
hideAfter: {
|
|
147
147
|
type: import("vue").PropType<number>;
|
|
148
148
|
default: number;
|
|
@@ -180,8 +180,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
180
180
|
cancel: (val: MouseEvent) => void;
|
|
181
181
|
}, string, {
|
|
182
182
|
width: string | number;
|
|
183
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
184
183
|
teleported: boolean;
|
|
184
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
185
185
|
hideAfter: number;
|
|
186
186
|
persistent: boolean;
|
|
187
187
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -43,8 +43,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
43
43
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
width: string | number;
|
|
46
|
-
icon: string | IconProps;
|
|
47
46
|
teleported: boolean;
|
|
47
|
+
icon: string | IconProps;
|
|
48
48
|
hideAfter: number;
|
|
49
49
|
persistent: boolean;
|
|
50
50
|
confirmButtonType: ButtonType;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export declare const VftRouterViewContent: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
name: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
};
|
|
2
5
|
cacheList: {
|
|
3
6
|
type: import("vue").PropType<string[]>;
|
|
4
7
|
required: true;
|
|
@@ -17,6 +20,9 @@ export declare const VftRouterViewContent: import("vft/es/utils").SFCWithInstall
|
|
|
17
20
|
required: true;
|
|
18
21
|
};
|
|
19
22
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
name: {
|
|
24
|
+
type: import("vue").PropType<string>;
|
|
25
|
+
};
|
|
20
26
|
cacheList: {
|
|
21
27
|
type: import("vue").PropType<string[]>;
|
|
22
28
|
required: true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, computed as
|
|
1
|
+
import { defineComponent as v, computed as d, resolveComponent as A, createBlock as t, openBlock as n, withCtx as m, createVNode as s, unref as o, KeepAlive as k, createCommentVNode as g, resolveDynamicComponent as f, Transition as x, mergeProps as C } from "vue";
|
|
2
2
|
import { getRouterKeyPath as N } from "@vft/router";
|
|
3
3
|
import { createReusableTemplate as R } from "@vueuse/core";
|
|
4
4
|
const K = v({
|
|
@@ -6,6 +6,7 @@ const K = v({
|
|
|
6
6
|
}), T = /* @__PURE__ */ v({
|
|
7
7
|
...K,
|
|
8
8
|
props: {
|
|
9
|
+
name: {},
|
|
9
10
|
cacheList: {},
|
|
10
11
|
transitionName: {},
|
|
11
12
|
transitionAttr: {},
|
|
@@ -13,26 +14,26 @@ const K = v({
|
|
|
13
14
|
isReloadFlag: { type: Boolean }
|
|
14
15
|
},
|
|
15
16
|
setup(e) {
|
|
16
|
-
const
|
|
17
|
-
let
|
|
18
|
-
return a.meta?.currentActivePath && (
|
|
19
|
-
}), [y,
|
|
20
|
-
return (a,
|
|
17
|
+
const h = d(() => e.openKeepAlive ? e.cacheList : []), p = d(() => (a) => {
|
|
18
|
+
let i = a.name;
|
|
19
|
+
return a.meta?.currentActivePath && (i = a.matched?.filter((r) => r.path === a.meta?.currentActivePath)?.[0].name), e.isReloadFlag ? void 0 : i;
|
|
20
|
+
}), [y, c] = R();
|
|
21
|
+
return (a, i) => {
|
|
21
22
|
const r = A("router-view");
|
|
22
|
-
return n(), t(r,
|
|
23
|
-
default:
|
|
24
|
-
|
|
25
|
-
default:
|
|
23
|
+
return n(), t(r, { name: e.name }, {
|
|
24
|
+
default: m(({ Component: u, route: l }) => [
|
|
25
|
+
s(o(y), null, {
|
|
26
|
+
default: m(() => [
|
|
26
27
|
e.openKeepAlive ? (n(), t(k, {
|
|
27
28
|
key: 0,
|
|
28
|
-
include:
|
|
29
|
-
exclude:
|
|
29
|
+
include: h.value,
|
|
30
|
+
exclude: p.value(l)
|
|
30
31
|
}, [
|
|
31
32
|
e.isReloadFlag ? (n(), t(f(u), {
|
|
32
|
-
key: o(N)(
|
|
33
|
+
key: o(N)(l)
|
|
33
34
|
})) : g("", !0)
|
|
34
35
|
], 1032, ["include", "exclude"])) : (n(), t(f(u), {
|
|
35
|
-
key:
|
|
36
|
+
key: l.fullPath
|
|
36
37
|
}))
|
|
37
38
|
]),
|
|
38
39
|
_: 2
|
|
@@ -41,14 +42,14 @@ const K = v({
|
|
|
41
42
|
key: 0,
|
|
42
43
|
name: e.transitionName
|
|
43
44
|
}, e.transitionAttr), {
|
|
44
|
-
default:
|
|
45
|
-
|
|
45
|
+
default: m(() => [
|
|
46
|
+
s(o(c))
|
|
46
47
|
]),
|
|
47
48
|
_: 1
|
|
48
|
-
}, 16, ["name"])) : (n(), t(o(
|
|
49
|
+
}, 16, ["name"])) : (n(), t(o(c), { key: 1 }))
|
|
49
50
|
]),
|
|
50
51
|
_: 1
|
|
51
|
-
});
|
|
52
|
+
}, 8, ["name"]);
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
});
|
|
@@ -259,9 +259,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
259
259
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
260
260
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
261
261
|
readonly effect?: "light" | "dark" | undefined;
|
|
262
|
-
readonly visible?: boolean | null | undefined;
|
|
263
262
|
readonly teleported?: boolean | undefined;
|
|
264
263
|
readonly open?: boolean | undefined;
|
|
264
|
+
readonly visible?: boolean | null | undefined;
|
|
265
265
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
266
266
|
readonly arrowOffset?: number | undefined;
|
|
267
267
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -677,9 +677,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
677
677
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
678
678
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
679
679
|
readonly effect?: "light" | "dark" | undefined;
|
|
680
|
-
readonly visible?: boolean | null | undefined;
|
|
681
680
|
readonly teleported?: boolean | undefined;
|
|
682
681
|
readonly open?: boolean | undefined;
|
|
682
|
+
readonly visible?: boolean | null | undefined;
|
|
683
683
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
684
684
|
readonly arrowOffset?: number | undefined;
|
|
685
685
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1096,9 +1096,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
1096
1096
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1097
1097
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1098
1098
|
readonly effect?: "light" | "dark" | undefined;
|
|
1099
|
-
readonly visible?: boolean | null | undefined;
|
|
1100
1099
|
readonly teleported?: boolean | undefined;
|
|
1101
1100
|
readonly open?: boolean | undefined;
|
|
1101
|
+
readonly visible?: boolean | null | undefined;
|
|
1102
1102
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1103
1103
|
readonly arrowOffset?: number | undefined;
|
|
1104
1104
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1514,9 +1514,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
1514
1514
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1515
1515
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1516
1516
|
readonly effect?: "light" | "dark" | undefined;
|
|
1517
|
-
readonly visible?: boolean | null | undefined;
|
|
1518
1517
|
readonly teleported?: boolean | undefined;
|
|
1519
1518
|
readonly open?: boolean | undefined;
|
|
1519
|
+
readonly visible?: boolean | null | undefined;
|
|
1520
1520
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1521
1521
|
readonly arrowOffset?: number | undefined;
|
|
1522
1522
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -255,9 +255,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
255
255
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
256
256
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
257
257
|
readonly effect?: "light" | "dark" | undefined;
|
|
258
|
-
readonly visible?: boolean | null | undefined;
|
|
259
258
|
readonly teleported?: boolean | undefined;
|
|
260
259
|
readonly open?: boolean | undefined;
|
|
260
|
+
readonly visible?: boolean | null | undefined;
|
|
261
261
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
262
262
|
readonly arrowOffset?: number | undefined;
|
|
263
263
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -673,9 +673,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
673
673
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
674
674
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
675
675
|
readonly effect?: "light" | "dark" | undefined;
|
|
676
|
-
readonly visible?: boolean | null | undefined;
|
|
677
676
|
readonly teleported?: boolean | undefined;
|
|
678
677
|
readonly open?: boolean | undefined;
|
|
678
|
+
readonly visible?: boolean | null | undefined;
|
|
679
679
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
680
680
|
readonly arrowOffset?: number | undefined;
|
|
681
681
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1092,9 +1092,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1092
1092
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1093
1093
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1094
1094
|
readonly effect?: "light" | "dark" | undefined;
|
|
1095
|
-
readonly visible?: boolean | null | undefined;
|
|
1096
1095
|
readonly teleported?: boolean | undefined;
|
|
1097
1096
|
readonly open?: boolean | undefined;
|
|
1097
|
+
readonly visible?: boolean | null | undefined;
|
|
1098
1098
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
1099
1099
|
readonly arrowOffset?: number | undefined;
|
|
1100
1100
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1510,9 +1510,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1510
1510
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1511
1511
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1512
1512
|
readonly effect?: "light" | "dark" | undefined;
|
|
1513
|
-
readonly visible?: boolean | null | undefined;
|
|
1514
1513
|
readonly teleported?: boolean | undefined;
|
|
1515
1514
|
readonly open?: boolean | undefined;
|
|
1515
|
+
readonly visible?: boolean | null | undefined;
|
|
1516
1516
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
1517
1517
|
readonly arrowOffset?: number | undefined;
|
|
1518
1518
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -103,9 +103,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
103
103
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
104
104
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
105
105
|
readonly effect?: "light" | "dark" | undefined;
|
|
106
|
-
readonly visible?: boolean | null | undefined;
|
|
107
106
|
readonly teleported?: boolean | undefined;
|
|
108
107
|
readonly open?: boolean | undefined;
|
|
108
|
+
readonly visible?: boolean | null | undefined;
|
|
109
109
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
110
110
|
readonly arrowOffset?: number | undefined;
|
|
111
111
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -521,9 +521,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
521
521
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
522
522
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
523
523
|
readonly effect?: "light" | "dark" | undefined;
|
|
524
|
-
readonly visible?: boolean | null | undefined;
|
|
525
524
|
readonly teleported?: boolean | undefined;
|
|
526
525
|
readonly open?: boolean | undefined;
|
|
526
|
+
readonly visible?: boolean | null | undefined;
|
|
527
527
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
528
528
|
readonly arrowOffset?: number | undefined;
|
|
529
529
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -940,9 +940,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
940
940
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
941
941
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
942
942
|
readonly effect?: "light" | "dark" | undefined;
|
|
943
|
-
readonly visible?: boolean | null | undefined;
|
|
944
943
|
readonly teleported?: boolean | undefined;
|
|
945
944
|
readonly open?: boolean | undefined;
|
|
945
|
+
readonly visible?: boolean | null | undefined;
|
|
946
946
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
947
947
|
readonly arrowOffset?: number | undefined;
|
|
948
948
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1358,9 +1358,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
1358
1358
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1359
1359
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1360
1360
|
readonly effect?: "light" | "dark" | undefined;
|
|
1361
|
-
readonly visible?: boolean | null | undefined;
|
|
1362
1361
|
readonly teleported?: boolean | undefined;
|
|
1363
1362
|
readonly open?: boolean | undefined;
|
|
1363
|
+
readonly visible?: boolean | null | undefined;
|
|
1364
1364
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
1365
1365
|
readonly arrowOffset?: number | undefined;
|
|
1366
1366
|
readonly gpuAcceleration?: boolean | undefined;
|