vft 0.0.83 → 0.0.85
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/component.js +28 -26
- package/es/components/alert/index.js +1 -1
- package/es/components/backtop/backtop.vue.js +4 -0
- package/es/components/{back-top/back-top.vue2.js → backtop/backtop.vue2.js} +5 -4
- package/es/components/{back-top → backtop}/index.js +2 -2
- package/es/components/backtop/style/css.js +2 -0
- package/es/components/backtop/style/index.js +2 -0
- package/es/components/container/footer.vue2.js +15 -21
- package/es/components/container/header.vue2.js +10 -16
- package/es/components/context-menu/context-menu.vue2.js +4 -3
- package/es/components/footer-layout/footer-layout.vue2.js +4 -3
- package/es/components/header-layout/header-layout.vue2.js +4 -3
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +37 -37
- package/es/components/index.js +151 -149
- package/es/components/md-container/md-container.vue2.js +4 -3
- package/es/components/menu/menu-item.vue2.js +4 -3
- package/es/components/menu/sub-menu.vue2.js +4 -3
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +4 -3
- package/es/components/result/result.vue2.js +4 -3
- package/es/components/side-menu/side-menu.vue2.js +4 -3
- package/es/components/table/columns.js +10 -0
- package/es/components/table/table.vue2.js +121 -154
- package/es/components/tabs/tab-nav.vue2.js +4 -3
- package/es/index.js +280 -278
- package/es/package.json.js +1 -1
- package/lib/component.cjs +1 -1
- package/lib/components/alert/index.cjs +1 -1
- package/lib/components/{back-top/back-top.vue.cjs → backtop/backtop.vue.cjs} +1 -1
- package/lib/components/{back-top/back-top.vue2.cjs → backtop/backtop.vue2.cjs} +1 -1
- package/lib/components/{back-top → backtop}/index.cjs +1 -1
- package/lib/components/{back-top → backtop}/style/css.cjs +1 -1
- package/lib/components/{back-top → backtop}/style/index.cjs +1 -1
- package/lib/components/container/footer.vue2.cjs +1 -1
- package/lib/components/container/header.vue2.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/table/columns.cjs +1 -0
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-style/base.css +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/{back-top.scss → backtop.scss} +3 -3
- package/theme-style/src/common/var.scss +6 -6
- package/theme-style/src/index.scss +1 -1
- package/theme-style/src/table.scss +105 -66
- package/theme-style/vft-backtop.css +1 -0
- package/theme-style/vft-menu.css +1 -1
- package/theme-style/vft-table.css +1 -1
- package/theme-style/vft-var.css +1 -1
- package/web-types.json +1 -1
- package/es/components/back-top/back-top.vue.js +0 -4
- package/es/components/back-top/style/css.js +0 -2
- package/es/components/back-top/style/index.js +0 -2
- /package/es/components/{back-top/use-back-top.js → backtop/use-backtop.js} +0 -0
- /package/lib/components/{back-top/use-back-top.cjs → backtop/use-backtop.cjs} +0 -0
package/es/component.js
CHANGED
|
@@ -5,7 +5,7 @@ import { VftAvatar as f } from "./components/avatar/index.js";
|
|
|
5
5
|
import { VftEmpty as m } from "./components/empty/index.js";
|
|
6
6
|
import { VftResult as i } from "./components/result/index.js";
|
|
7
7
|
import { VftTooltip as p } from "./components/tooltip/index.js";
|
|
8
|
-
import {
|
|
8
|
+
import { VftBacktop as V } from "./components/backtop/index.js";
|
|
9
9
|
import { VftPopover as e } from "./components/popover/index.js";
|
|
10
10
|
import { VftPopper as a } from "./components/popper/index.js";
|
|
11
11
|
import { VftLogo as n } from "./components/logo/index.js";
|
|
@@ -14,8 +14,8 @@ import { VftImage as u } from "./components/image/index.js";
|
|
|
14
14
|
import { VftFullScreen as c } from "./components/full-screen/index.js";
|
|
15
15
|
import { VftInput as d } from "./components/input/index.js";
|
|
16
16
|
import { VftLink as C } from "./components/link/index.js";
|
|
17
|
-
import { VftTag as
|
|
18
|
-
import { VftQrcode as
|
|
17
|
+
import { VftTag as s } from "./components/tag/index.js";
|
|
18
|
+
import { VftQrcode as T } from "./components/qrcode/index.js";
|
|
19
19
|
import { VftOverlay as M } from "./components/overlay/index.js";
|
|
20
20
|
import { VftSideMenu as S } from "./components/side-menu/index.js";
|
|
21
21
|
import { VftClamp as g } from "./components/clamp/index.js";
|
|
@@ -31,7 +31,7 @@ import { VftForm as L, VftFormItem as R } from "./components/form/index.js";
|
|
|
31
31
|
import { VftDescriptions as v, VftDescriptionsItem as B } from "./components/descriptions/index.js";
|
|
32
32
|
import { VftMultipleTabs as F } from "./components/multiple-tabs/index.js";
|
|
33
33
|
import { VftCollapseTransition as G } from "./components/collapse-transition/index.js";
|
|
34
|
-
import { VftMenu as
|
|
34
|
+
import { VftMenu as A, VftMenuItem as H, VftMenuItemGroup as O, VftSubMenu as E } from "./components/menu/index.js";
|
|
35
35
|
import { VftException as z } from "./components/exception/index.js";
|
|
36
36
|
import { VftSearch as Q } from "./components/search/index.js";
|
|
37
37
|
import { VftButton as W, VftButtonGroup as j } from "./components/button/index.js";
|
|
@@ -54,44 +54,46 @@ import { VftRow as lo } from "./components/row/index.js";
|
|
|
54
54
|
import { VftTimePicker as uo } from "./components/time-picker/index.js";
|
|
55
55
|
import { VftDatePicker as co } from "./components/date-picker/index.js";
|
|
56
56
|
import { VftCheckTag as Co } from "./components/check-tag/index.js";
|
|
57
|
-
import { VftTree as
|
|
58
|
-
import { VftSpace as
|
|
57
|
+
import { VftTree as so } from "./components/tree/index.js";
|
|
58
|
+
import { VftSpace as To } from "./components/space/index.js";
|
|
59
59
|
import { VftCard as Mo } from "./components/card/index.js";
|
|
60
60
|
import { VftPopconfirm as So } from "./components/popconfirm/index.js";
|
|
61
61
|
import { VftTreeSelect as go } from "./components/tree-select/index.js";
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
62
|
+
import { VftAlert as Io } from "./components/alert/index.js";
|
|
63
|
+
import { VftSkeleton as bo, VftSkeletonItem as ko } from "./components/skeleton/index.js";
|
|
64
|
+
import { VftAside as Po, VftContainer as Do, VftFooter as wo, VftHeader as yo, VftMain as ho } from "./components/container/index.js";
|
|
65
|
+
import { VftOption as xo, VftOptionGroup as Lo, VftSelect as Ro } from "./components/select/index.js";
|
|
66
|
+
import { VftMdComment as vo } from "./components/md-comment/index.js";
|
|
67
|
+
import { VftMdTabs as Bo } from "./components/md-tabs/index.js";
|
|
68
|
+
import { VftMdVuePlayground as Fo } from "./components/md-vue-playground/index.js";
|
|
69
|
+
import { VftMdCodeDemo as Go } from "./components/md-code-demo/index.js";
|
|
70
|
+
import { VftMdCodeTabs as Ao } from "./components/md-code-tabs/index.js";
|
|
70
71
|
import { VftMdContainer as Ho } from "./components/md-container/index.js";
|
|
71
|
-
const
|
|
72
|
+
const tr = [
|
|
73
|
+
Io,
|
|
72
74
|
go,
|
|
73
|
-
ho,
|
|
74
75
|
xo,
|
|
75
76
|
Lo,
|
|
77
|
+
Ro,
|
|
76
78
|
So,
|
|
77
79
|
Mo,
|
|
78
|
-
so,
|
|
79
|
-
Io,
|
|
80
|
-
bo,
|
|
81
80
|
To,
|
|
81
|
+
bo,
|
|
82
|
+
ko,
|
|
83
|
+
so,
|
|
82
84
|
Co,
|
|
83
85
|
Ho,
|
|
86
|
+
Ao,
|
|
84
87
|
Go,
|
|
85
88
|
Fo,
|
|
86
89
|
Bo,
|
|
87
|
-
vo,
|
|
88
90
|
co,
|
|
89
|
-
|
|
90
|
-
ko,
|
|
91
|
+
vo,
|
|
91
92
|
Po,
|
|
92
93
|
Do,
|
|
93
94
|
wo,
|
|
94
95
|
yo,
|
|
96
|
+
ho,
|
|
95
97
|
ao,
|
|
96
98
|
no,
|
|
97
99
|
uo,
|
|
@@ -123,9 +125,9 @@ const $t = [
|
|
|
123
125
|
I,
|
|
124
126
|
g,
|
|
125
127
|
b,
|
|
126
|
-
s,
|
|
127
|
-
M,
|
|
128
128
|
T,
|
|
129
|
+
M,
|
|
130
|
+
s,
|
|
129
131
|
S,
|
|
130
132
|
y,
|
|
131
133
|
C,
|
|
@@ -143,9 +145,9 @@ const $t = [
|
|
|
143
145
|
w,
|
|
144
146
|
n,
|
|
145
147
|
F,
|
|
148
|
+
A,
|
|
146
149
|
H,
|
|
147
150
|
O,
|
|
148
|
-
A,
|
|
149
151
|
E,
|
|
150
152
|
G,
|
|
151
153
|
o,
|
|
@@ -161,5 +163,5 @@ const $t = [
|
|
|
161
163
|
z
|
|
162
164
|
];
|
|
163
165
|
export {
|
|
164
|
-
|
|
166
|
+
tr as default
|
|
165
167
|
};
|
|
@@ -70,6 +70,7 @@ import "../skeleton/index.js";
|
|
|
70
70
|
import "../space/index.js";
|
|
71
71
|
import "../card/index.js";
|
|
72
72
|
import "../popconfirm/index.js";
|
|
73
|
+
import "../alert/index.js";
|
|
73
74
|
import "../md-container/index.js";
|
|
74
75
|
import "../md-comment/index.js";
|
|
75
76
|
import "../md-tabs/index.js";
|
|
@@ -83,13 +84,13 @@ import "lodash";
|
|
|
83
84
|
import "../../hooks/use-z-index/index.js";
|
|
84
85
|
import "@vueuse/core";
|
|
85
86
|
import "../../utils/ns-cover.js";
|
|
86
|
-
import { useBackTop as I } from "./use-
|
|
87
|
+
import { useBackTop as I } from "./use-backtop.js";
|
|
87
88
|
const r = (
|
|
88
89
|
/* hoist-static*/
|
|
89
|
-
_("
|
|
90
|
+
_("backtop")
|
|
90
91
|
), N = c({
|
|
91
92
|
name: r.b()
|
|
92
|
-
}),
|
|
93
|
+
}), co = /* @__PURE__ */ c({
|
|
93
94
|
...N,
|
|
94
95
|
props: {
|
|
95
96
|
visibilityHeight: { default: 200 },
|
|
@@ -132,5 +133,5 @@ const r = (
|
|
|
132
133
|
}
|
|
133
134
|
});
|
|
134
135
|
export {
|
|
135
|
-
|
|
136
|
+
co as default
|
|
136
137
|
};
|
|
@@ -4,9 +4,9 @@ import "@vft/utils";
|
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "@vueuse/core";
|
|
6
6
|
import "../../utils/ns-cover.js";
|
|
7
|
-
import o from "./
|
|
7
|
+
import o from "./backtop.vue2.js";
|
|
8
8
|
const c = t(o);
|
|
9
9
|
export {
|
|
10
|
-
c as
|
|
10
|
+
c as VftBacktop,
|
|
11
11
|
c as default
|
|
12
12
|
};
|
|
@@ -1,39 +1,33 @@
|
|
|
1
|
-
import { defineComponent as r, computed as
|
|
2
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as r, computed as m, openBlock as l, createElementBlock as i, normalizeClass as a, unref as o, normalizeStyle as c, renderSlot as p } from "vue";
|
|
2
|
+
import { useNamespace as f } from "../../hooks/use-namespace/index.js";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "../../hooks/use-z-index/index.js";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import "@vft/utils";
|
|
7
|
+
import { addUnit as u } from "@vft/utils";
|
|
8
8
|
import "../../utils/ns-cover.js";
|
|
9
|
-
const
|
|
9
|
+
const e = (
|
|
10
10
|
/* hoist-static*/
|
|
11
|
-
|
|
11
|
+
f("footer")
|
|
12
12
|
), h = r({
|
|
13
|
-
name:
|
|
14
|
-
}),
|
|
13
|
+
name: e.b()
|
|
14
|
+
}), S = /* @__PURE__ */ r({
|
|
15
15
|
...h,
|
|
16
16
|
props: {
|
|
17
|
-
|
|
18
|
-
* @description height of the footer
|
|
19
|
-
*/
|
|
20
|
-
height: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: null
|
|
23
|
-
}
|
|
17
|
+
height: null
|
|
24
18
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
() =>
|
|
19
|
+
setup(t) {
|
|
20
|
+
const n = m(
|
|
21
|
+
() => t.height ? e.cssVarBlock({ height: u(t.height) }) : {}
|
|
28
22
|
);
|
|
29
|
-
return (
|
|
30
|
-
class: a(o(
|
|
23
|
+
return (s, d) => (l(), i("footer", {
|
|
24
|
+
class: a(o(e).b()),
|
|
31
25
|
style: c(o(n))
|
|
32
26
|
}, [
|
|
33
|
-
|
|
27
|
+
p(s.$slots, "default")
|
|
34
28
|
], 6));
|
|
35
29
|
}
|
|
36
30
|
});
|
|
37
31
|
export {
|
|
38
|
-
|
|
32
|
+
S as default
|
|
39
33
|
};
|
|
@@ -1,39 +1,33 @@
|
|
|
1
|
-
import { defineComponent as r, computed as
|
|
1
|
+
import { defineComponent as r, computed as m, openBlock as a, createElementBlock as l, normalizeClass as i, unref as o, normalizeStyle as c, renderSlot as p } from "vue";
|
|
2
2
|
import { useNamespace as h } from "../../hooks/use-namespace/index.js";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "../../hooks/use-z-index/index.js";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import "@vft/utils";
|
|
7
|
+
import { addUnit as u } from "@vft/utils";
|
|
8
8
|
import "../../utils/ns-cover.js";
|
|
9
9
|
const e = (
|
|
10
10
|
/* hoist-static*/
|
|
11
11
|
h("header")
|
|
12
12
|
), d = r({
|
|
13
13
|
name: e.b()
|
|
14
|
-
}),
|
|
14
|
+
}), S = /* @__PURE__ */ r({
|
|
15
15
|
...d,
|
|
16
16
|
props: {
|
|
17
|
-
|
|
18
|
-
* @description height of the header
|
|
19
|
-
*/
|
|
20
|
-
height: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: null
|
|
23
|
-
}
|
|
17
|
+
height: null
|
|
24
18
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
height: t.height
|
|
19
|
+
setup(t) {
|
|
20
|
+
const n = m(() => t.height ? e.cssVarBlock({
|
|
21
|
+
height: u(t.height)
|
|
28
22
|
}) : {});
|
|
29
|
-
return (
|
|
23
|
+
return (s, f) => (a(), l("header", {
|
|
30
24
|
class: i(o(e).b()),
|
|
31
25
|
style: c(o(n))
|
|
32
26
|
}, [
|
|
33
|
-
|
|
27
|
+
p(s.$slots, "default")
|
|
34
28
|
], 6));
|
|
35
29
|
}
|
|
36
30
|
});
|
|
37
31
|
export {
|
|
38
|
-
|
|
32
|
+
S as default
|
|
39
33
|
};
|
|
@@ -24,7 +24,7 @@ import "../footer-layout/index.js";
|
|
|
24
24
|
import "../iframe-layout/index.js";
|
|
25
25
|
import "../router-view-content/index.js";
|
|
26
26
|
import "../logo/index.js";
|
|
27
|
-
import "../
|
|
27
|
+
import "../backtop/index.js";
|
|
28
28
|
import "../container/index.js";
|
|
29
29
|
import "../config-provider/index.js";
|
|
30
30
|
import "../descriptions/index.js";
|
|
@@ -76,6 +76,7 @@ import "../skeleton/index.js";
|
|
|
76
76
|
import "../space/index.js";
|
|
77
77
|
import "../card/index.js";
|
|
78
78
|
import "../popconfirm/index.js";
|
|
79
|
+
import "../alert/index.js";
|
|
79
80
|
import "../md-container/index.js";
|
|
80
81
|
import "../md-comment/index.js";
|
|
81
82
|
import "../md-tabs/index.js";
|
|
@@ -88,7 +89,7 @@ const N = { class: "vft-sub-menu" }, x = (
|
|
|
88
89
|
F("context-menu")
|
|
89
90
|
), R = f({
|
|
90
91
|
name: x.b()
|
|
91
|
-
}),
|
|
92
|
+
}), vo = /* @__PURE__ */ f({
|
|
92
93
|
...R,
|
|
93
94
|
props: {
|
|
94
95
|
axis: null,
|
|
@@ -162,5 +163,5 @@ const N = { class: "vft-sub-menu" }, x = (
|
|
|
162
163
|
}
|
|
163
164
|
});
|
|
164
165
|
export {
|
|
165
|
-
|
|
166
|
+
vo as default
|
|
166
167
|
};
|
|
@@ -24,7 +24,7 @@ import "./index.js";
|
|
|
24
24
|
import "../iframe-layout/index.js";
|
|
25
25
|
import "../router-view-content/index.js";
|
|
26
26
|
import "../logo/index.js";
|
|
27
|
-
import "../
|
|
27
|
+
import "../backtop/index.js";
|
|
28
28
|
import { VftFooter as C } from "../container/index.js";
|
|
29
29
|
import "../config-provider/index.js";
|
|
30
30
|
import "../descriptions/index.js";
|
|
@@ -76,6 +76,7 @@ import "../skeleton/index.js";
|
|
|
76
76
|
import "../space/index.js";
|
|
77
77
|
import "../card/index.js";
|
|
78
78
|
import "../popconfirm/index.js";
|
|
79
|
+
import "../alert/index.js";
|
|
79
80
|
import "../md-container/index.js";
|
|
80
81
|
import "../md-comment/index.js";
|
|
81
82
|
import "../md-tabs/index.js";
|
|
@@ -88,7 +89,7 @@ const o = (
|
|
|
88
89
|
h("footer-layout")
|
|
89
90
|
), _ = s({
|
|
90
91
|
name: o.b()
|
|
91
|
-
}),
|
|
92
|
+
}), Xt = /* @__PURE__ */ s({
|
|
92
93
|
..._,
|
|
93
94
|
props: {
|
|
94
95
|
leftDistance: null
|
|
@@ -124,5 +125,5 @@ const o = (
|
|
|
124
125
|
}
|
|
125
126
|
});
|
|
126
127
|
export {
|
|
127
|
-
|
|
128
|
+
Xt as default
|
|
128
129
|
};
|
|
@@ -24,7 +24,7 @@ import "./index.js";
|
|
|
24
24
|
import "../footer-layout/index.js";
|
|
25
25
|
import "../iframe-layout/index.js";
|
|
26
26
|
import "../router-view-content/index.js";
|
|
27
|
-
import "../
|
|
27
|
+
import "../backtop/index.js";
|
|
28
28
|
import { VftHeader as V, VftContainer as _, VftMain as k, VftFooter as $ } from "../container/index.js";
|
|
29
29
|
import "../config-provider/index.js";
|
|
30
30
|
import "../descriptions/index.js";
|
|
@@ -76,6 +76,7 @@ import "../skeleton/index.js";
|
|
|
76
76
|
import "../space/index.js";
|
|
77
77
|
import "../card/index.js";
|
|
78
78
|
import "../popconfirm/index.js";
|
|
79
|
+
import "../alert/index.js";
|
|
79
80
|
import "../md-container/index.js";
|
|
80
81
|
import "../md-comment/index.js";
|
|
81
82
|
import "../md-tabs/index.js";
|
|
@@ -94,7 +95,7 @@ const y = { class: "content" }, b = {
|
|
|
94
95
|
h("header-layout")
|
|
95
96
|
), v = c({
|
|
96
97
|
name: p.b()
|
|
97
|
-
}),
|
|
98
|
+
}), po = /* @__PURE__ */ c({
|
|
98
99
|
...v,
|
|
99
100
|
props: {
|
|
100
101
|
logoCfg: null
|
|
@@ -140,5 +141,5 @@ const y = { class: "content" }, b = {
|
|
|
140
141
|
}
|
|
141
142
|
});
|
|
142
143
|
export {
|
|
143
|
-
|
|
144
|
+
po as default
|
|
144
145
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as L, computed as
|
|
1
|
+
import { defineComponent as L, computed as w, getCurrentInstance as Q, useSlots as W, ref as X, createVNode as v, mergeProps as J } from "vue";
|
|
2
2
|
import { VftMenu as Y, VftSubMenu as Z, VftMenuItem as m } from "../menu/index.js";
|
|
3
3
|
import { useNamespace as _ } from "../../hooks/use-namespace/index.js";
|
|
4
4
|
import "@popperjs/core";
|
|
@@ -42,36 +42,36 @@ const y = (
|
|
|
42
42
|
defaultOpeneds: null
|
|
43
43
|
},
|
|
44
44
|
emits: ["open", "close"],
|
|
45
|
-
setup(
|
|
45
|
+
setup(o, {
|
|
46
46
|
expose: z,
|
|
47
|
-
emit:
|
|
47
|
+
emit: k
|
|
48
48
|
}) {
|
|
49
|
-
const D =
|
|
49
|
+
const D = w(() => (e, t) => {
|
|
50
50
|
var a, d, r, n;
|
|
51
51
|
return {
|
|
52
|
-
"grid-template-rows": `repeat(${Math.min(((d = (a = e == null ? void 0 : e[
|
|
52
|
+
"grid-template-rows": `repeat(${Math.min(((d = (a = e == null ? void 0 : e[t]) == null ? void 0 : a[l.value.children]) == null ? void 0 : d.length) || 0, Number(o.maxRowLength ? o.maxRowLength : (n = (r = e == null ? void 0 : e[t]) == null ? void 0 : r[l.value.children]) == null ? void 0 : n.length))}, auto)`
|
|
53
53
|
};
|
|
54
|
-
}), l =
|
|
54
|
+
}), l = w(() => ({
|
|
55
55
|
path: "path",
|
|
56
56
|
children: "children",
|
|
57
57
|
title: "title",
|
|
58
58
|
index: "path",
|
|
59
59
|
icon: "icon",
|
|
60
60
|
disabled: "disabled",
|
|
61
|
-
...
|
|
61
|
+
...o.attrMapping
|
|
62
62
|
})), P = Q(), p = W(), I = X(), x = P.appContext.config.globalProperties.$router, {
|
|
63
63
|
go: E
|
|
64
64
|
} = B(x), $ = (e) => {
|
|
65
|
-
const
|
|
66
|
-
E(e[
|
|
67
|
-
}, T = (e,
|
|
68
|
-
const d = e[l.value.path], r = e[l.value.title], n = e == null ? void 0 : e[l.value.index], b = e == null ? void 0 : e[l.value.icon], f = !!(e != null && e[l.value.disabled]), s =
|
|
69
|
-
return v(m,
|
|
65
|
+
const t = l.value.path;
|
|
66
|
+
E(e[t]);
|
|
67
|
+
}, T = (e, t, a) => {
|
|
68
|
+
const d = e[l.value.path], r = e[l.value.title], n = e == null ? void 0 : e[l.value.index], b = e == null ? void 0 : e[l.value.icon], f = !!(e != null && e[l.value.disabled]), s = o.disabledJudgeTurnOver ? !f : f, i = n || d || t + r;
|
|
69
|
+
return v(m, J(e, {
|
|
70
70
|
key: i,
|
|
71
71
|
index: i,
|
|
72
72
|
icon: b,
|
|
73
73
|
title: r,
|
|
74
|
-
disabled:
|
|
74
|
+
disabled: o.openDisabled && s,
|
|
75
75
|
className: a ? "vft-menu-popup-item" : "vft-menu-no-popup-item",
|
|
76
76
|
onClick: () => $(e)
|
|
77
77
|
}), {
|
|
@@ -88,14 +88,14 @@ const y = (
|
|
|
88
88
|
} : null
|
|
89
89
|
});
|
|
90
90
|
}, j = () => {
|
|
91
|
-
|
|
91
|
+
k("open");
|
|
92
92
|
}, H = () => {
|
|
93
|
-
|
|
94
|
-
}, S = (e,
|
|
93
|
+
k("close");
|
|
94
|
+
}, S = (e, t, a) => {
|
|
95
95
|
var N;
|
|
96
|
-
const d = e[l.value.path], r = e[l.value.title], n = e == null ? void 0 : e[l.value.children], b = e == null ? void 0 : e[l.value.index], f = e == null ? void 0 : e[l.value.icon], s = e == null ? void 0 : e.menuOrder, i = !!(e != null && e[l.value.disabled]), g =
|
|
97
|
-
let
|
|
98
|
-
if (
|
|
96
|
+
const d = e[l.value.path], r = e[l.value.title], n = e == null ? void 0 : e[l.value.children], b = e == null ? void 0 : e[l.value.index], f = e == null ? void 0 : e[l.value.icon], s = e == null ? void 0 : e.menuOrder, i = !!(e != null && e[l.value.disabled]), g = o.disabledJudgeTurnOver ? !i : i, R = b || d || t + r, C = e.type === ne.TILE;
|
|
97
|
+
let O = [];
|
|
98
|
+
if (C)
|
|
99
99
|
if (s) {
|
|
100
100
|
const u = s.flat();
|
|
101
101
|
if ((u == null ? void 0 : u.length) < n.length) {
|
|
@@ -103,35 +103,35 @@ const y = (
|
|
|
103
103
|
for (let c = M + 1; c < n.length; c++)
|
|
104
104
|
s.push([c]);
|
|
105
105
|
}
|
|
106
|
-
|
|
106
|
+
O = s;
|
|
107
107
|
} else
|
|
108
108
|
for (let u = 0; u < n.length; u++)
|
|
109
|
-
|
|
110
|
-
return n != null && n.length || e != null && e.render ? v(Z,
|
|
109
|
+
O.push([u]);
|
|
110
|
+
return n != null && n.length || e != null && e.render ? v(Z, J(o.subMenuCfg, e, {
|
|
111
111
|
index: R,
|
|
112
112
|
key: R,
|
|
113
113
|
icon: f,
|
|
114
|
-
showArrow: e.showArrow ??
|
|
115
|
-
disabled:
|
|
114
|
+
showArrow: e.showArrow ?? o.subMenuCfg.showArrow,
|
|
115
|
+
disabled: o.openDisabled && g,
|
|
116
116
|
toolTipCfg: {
|
|
117
|
-
...
|
|
117
|
+
...o.subMenuCfg.toolTipCfg || {},
|
|
118
118
|
...((N = e.subMenuCfg) == null ? void 0 : N.toolTipCfg) || {}
|
|
119
119
|
},
|
|
120
120
|
teleported: !1,
|
|
121
|
-
"popper-class": [
|
|
121
|
+
"popper-class": [C ? y.e("tile") : "", y.e("normal")]
|
|
122
122
|
}), {
|
|
123
|
-
default: () => [e != null && e.render ? e == null ? void 0 : e.render :
|
|
123
|
+
default: () => [e != null && e.render ? e == null ? void 0 : e.render : C ? O.map((u, M) => v("div", {
|
|
124
124
|
class: "content-main",
|
|
125
125
|
key: M
|
|
126
126
|
}, [u.map((c, F) => {
|
|
127
|
-
var V,
|
|
127
|
+
var V, A;
|
|
128
128
|
const h = (V = n == null ? void 0 : n[c]) == null ? void 0 : V[l.value.children];
|
|
129
129
|
return n != null && n.length ? v("div", {
|
|
130
130
|
class: "content-col",
|
|
131
131
|
key: F
|
|
132
132
|
}, [v("span", {
|
|
133
133
|
class: h != null && h.length ? "title" : ""
|
|
134
|
-
}, [(
|
|
134
|
+
}, [(A = n == null ? void 0 : n[c]) == null ? void 0 : A[l.value.title]]), h != null && h.length ? v("div", {
|
|
135
135
|
class: "content",
|
|
136
136
|
style: D.value(n, c)
|
|
137
137
|
}, [h.map((G, K) => T(G, K, !0))]) : null]) : null;
|
|
@@ -140,17 +140,17 @@ const y = (
|
|
|
140
140
|
return (c = u[l.value.children]) != null && c.length ? S(u, M, !0) : T(u, M, !0);
|
|
141
141
|
})],
|
|
142
142
|
title: () => r
|
|
143
|
-
}) : T(e,
|
|
143
|
+
}) : T(e, t, a);
|
|
144
144
|
};
|
|
145
145
|
async function U(e) {
|
|
146
|
-
var
|
|
147
|
-
if (
|
|
146
|
+
var t, a, d;
|
|
147
|
+
if (o.useRouterJump) {
|
|
148
148
|
const {
|
|
149
149
|
go: r
|
|
150
150
|
} = B(x), n = e.route;
|
|
151
151
|
let b = e.route;
|
|
152
152
|
e.indexPath.some((s) => ee(s)) && (b = e.indexPath.slice(-2).join("/"));
|
|
153
|
-
const f = (d = (a = (
|
|
153
|
+
const f = (d = (a = (t = x.getRoutes().filter((s) => s.path === b)) == null ? void 0 : t[0]) == null ? void 0 : a.meta) == null ? void 0 : d.linkTarget;
|
|
154
154
|
r(f ? {
|
|
155
155
|
url: n,
|
|
156
156
|
winOpenOpt: {
|
|
@@ -159,7 +159,7 @@ const y = (
|
|
|
159
159
|
} : n);
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
const q =
|
|
162
|
+
const q = w(() => {
|
|
163
163
|
var e;
|
|
164
164
|
return (e = I.value) == null ? void 0 : e.inSubMenu;
|
|
165
165
|
});
|
|
@@ -172,12 +172,12 @@ const y = (
|
|
|
172
172
|
onClose: H,
|
|
173
173
|
mode: "horizontal",
|
|
174
174
|
class: y.b(),
|
|
175
|
-
defaultActive:
|
|
176
|
-
defaultOpeneds:
|
|
175
|
+
defaultActive: o.defaultActive,
|
|
176
|
+
defaultOpeneds: o.defaultOpeneds
|
|
177
177
|
}, {
|
|
178
178
|
default: () => {
|
|
179
179
|
var e;
|
|
180
|
-
return [(e =
|
|
180
|
+
return [(e = o.menus) != null && e.length ? o.menus.map((t, a) => S(t, a, !1)) : null];
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
}
|