base6-ui 1.1.6 → 1.1.7
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/dist/components/BaseLayout/ASide/index.vue.d.ts +4 -1
- package/dist/components/BaseLayout/ASide/type.d.ts +5 -2
- package/dist/components/BaseLayout/Default/index.vue.d.ts +5 -0
- package/dist/components/BaseLayout/Default/type.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.umd.js +1 -1
- package/es/components/BaseLayout/ASide/index.vue.d.ts +4 -1
- package/es/components/BaseLayout/ASide/index.vue.mjs +3 -3
- package/es/components/BaseLayout/ASide/index.vue2.mjs +30 -24
- package/es/components/BaseLayout/ASide/type.d.ts +5 -2
- package/es/components/BaseLayout/AsideMenu/index.vue.mjs +1 -1
- package/es/components/BaseLayout/Default/index.vue.d.ts +5 -0
- package/es/components/BaseLayout/Default/index.vue.mjs +5 -142
- package/es/components/BaseLayout/Default/index.vue2.mjs +145 -2
- package/es/components/BaseLayout/Default/layoutHeader/title.vue.mjs +2 -2
- package/es/components/BaseLayout/Default/layoutHeader/title.vue2.mjs +18 -17
- package/es/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue.mjs +62 -65
- package/es/components/BaseLayout/Default/layoutSlider/index.vue.mjs +17 -13
- package/es/components/BaseLayout/Default/type.d.ts +1 -0
- package/es/config/themes/components/menu/dark.mjs +7 -3
- package/es/config/themes/components/menu/light.mjs +4 -1
- package/es/index.css +1 -1
- package/lib/components/BaseLayout/ASide/index.vue.d.ts +4 -1
- package/lib/components/BaseLayout/ASide/index.vue.js +1 -1
- package/lib/components/BaseLayout/ASide/index.vue2.js +1 -1
- package/lib/components/BaseLayout/ASide/type.d.ts +5 -2
- package/lib/components/BaseLayout/AsideMenu/index.vue.js +1 -1
- package/lib/components/BaseLayout/Default/index.vue.d.ts +5 -0
- package/lib/components/BaseLayout/Default/index.vue.js +1 -1
- package/lib/components/BaseLayout/Default/index.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/layoutHeader/title.vue.js +1 -1
- package/lib/components/BaseLayout/Default/layoutHeader/title.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue.js +1 -1
- package/lib/components/BaseLayout/Default/layoutSlider/index.vue.js +1 -1
- package/lib/components/BaseLayout/Default/type.d.ts +1 -0
- package/lib/config/themes/components/menu/dark.js +1 -1
- package/lib/config/themes/components/menu/light.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/es/components/BaseLayout/Default/layoutFooter/index.vue.mjs +0 -16
- package/es/components/BaseLayout/Default/layoutTab/index.vue.mjs +0 -16
- package/lib/components/BaseLayout/Default/layoutFooter/index.vue.js +0 -1
- package/lib/components/BaseLayout/Default/layoutTab/index.vue.js +0 -1
|
@@ -4,13 +4,16 @@ declare function __VLS_template(): {
|
|
|
4
4
|
slots: {
|
|
5
5
|
header?(_: {}): any;
|
|
6
6
|
default?(_: {}): any;
|
|
7
|
+
default?(_: {}): any;
|
|
7
8
|
footer?(_: {}): any;
|
|
8
9
|
};
|
|
9
10
|
refs: {};
|
|
10
11
|
rootEl: HTMLElement;
|
|
11
12
|
};
|
|
12
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
-
declare const __VLS_component: import('vue').DefineComponent<BaseLayoutASidePropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BaseLayoutASidePropsType> & Readonly<{}>, {
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<BaseLayoutASidePropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BaseLayoutASidePropsType> & Readonly<{}>, {
|
|
15
|
+
contentScrollable: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
14
17
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
18
|
export default _default;
|
|
16
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-841ccab2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,56 +1,62 @@
|
|
|
1
|
-
import { NScrollbar as
|
|
2
|
-
import { defineComponent as m, shallowRef as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { NScrollbar as y } from "naive-ui";
|
|
2
|
+
import { defineComponent as m, shallowRef as l, watch as v, createElementBlock as S, openBlock as c, mergeProps as C, createElementVNode as s, normalizeStyle as a, normalizeClass as r, renderSlot as t, createBlock as g, withCtx as h } from "vue";
|
|
3
|
+
import b from "../../../hooks/useNaiveConfigProvideContext.mjs";
|
|
4
|
+
const B = /* @__PURE__ */ m({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
logoClass: {},
|
|
8
8
|
logoStyle: {},
|
|
9
|
+
contentClass: {},
|
|
10
|
+
contentStyle: {},
|
|
11
|
+
contentScrollable: { type: Boolean, default: !0 },
|
|
9
12
|
footerClass: {},
|
|
10
13
|
footerStyle: {}
|
|
11
14
|
},
|
|
12
15
|
setup(o) {
|
|
13
|
-
const { mergedThemeOverridesRef: d } =
|
|
16
|
+
const { mergedThemeOverridesRef: d } = b(), n = l({}), i = l({}), u = l({});
|
|
14
17
|
return v(
|
|
15
18
|
() => d?.value?.Layout,
|
|
16
19
|
(e) => {
|
|
17
|
-
e && (
|
|
20
|
+
e && (n.value = {
|
|
18
21
|
"--n-color": e.siderColor || void 0
|
|
19
22
|
});
|
|
20
23
|
},
|
|
21
24
|
{
|
|
22
25
|
immediate: !0
|
|
23
26
|
}
|
|
24
|
-
), (e,
|
|
25
|
-
const
|
|
26
|
-
return
|
|
27
|
+
), (e, k) => {
|
|
28
|
+
const f = y;
|
|
29
|
+
return c(), S("aside", C({
|
|
27
30
|
class: "h-full w-full flex-col-stretch base-layout-aside",
|
|
28
|
-
style:
|
|
31
|
+
style: n.value
|
|
29
32
|
}, e.$attrs), [
|
|
30
|
-
|
|
31
|
-
class:
|
|
33
|
+
s("div", {
|
|
34
|
+
class: r(["base-layout-aside-logo-wrap", o.logoClass]),
|
|
32
35
|
style: a([i.value, o.logoStyle])
|
|
33
36
|
}, [
|
|
34
|
-
|
|
37
|
+
t(e.$slots, "header", {}, void 0, !0)
|
|
35
38
|
], 6),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
s("div", {
|
|
40
|
+
class: r(["h-full flex-1", o.contentClass]),
|
|
41
|
+
style: a(o.contentStyle)
|
|
42
|
+
}, [
|
|
43
|
+
o.contentScrollable ? (c(), g(f, { key: 0 }, {
|
|
44
|
+
default: h(() => [
|
|
45
|
+
t(e.$slots, "default", {}, void 0, !0)
|
|
40
46
|
]),
|
|
41
47
|
_: 3
|
|
42
|
-
})
|
|
43
|
-
]),
|
|
44
|
-
|
|
45
|
-
class:
|
|
46
|
-
style: a([
|
|
48
|
+
})) : t(e.$slots, "default", { key: 1 }, void 0, !0)
|
|
49
|
+
], 6),
|
|
50
|
+
s("div", {
|
|
51
|
+
class: r(["base-layout-aside-footer", o.footerClass]),
|
|
52
|
+
style: a([u.value, o.footerStyle])
|
|
47
53
|
}, [
|
|
48
|
-
|
|
54
|
+
t(e.$slots, "footer", {}, void 0, !0)
|
|
49
55
|
], 6)
|
|
50
56
|
], 16);
|
|
51
57
|
};
|
|
52
58
|
}
|
|
53
59
|
});
|
|
54
60
|
export {
|
|
55
|
-
|
|
61
|
+
B as default
|
|
56
62
|
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
2
|
export type BaseLayoutASidePropsType = {
|
|
3
3
|
logoClass?: string;
|
|
4
|
-
logoStyle?: CSSProperties;
|
|
4
|
+
logoStyle?: CSSProperties | string;
|
|
5
|
+
contentClass?: string;
|
|
6
|
+
contentStyle?: CSSProperties | string;
|
|
7
|
+
contentScrollable?: boolean;
|
|
5
8
|
footerClass?: string;
|
|
6
|
-
footerStyle?: CSSProperties;
|
|
9
|
+
footerStyle?: CSSProperties | string;
|
|
7
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-006b6011"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -3,18 +3,23 @@ import { BaseDefaultLayoutProps, BaseDefaultLayoutMode } from './type';
|
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
attrs: Partial<{}>;
|
|
5
5
|
slots: {
|
|
6
|
+
header?(_: {}): any;
|
|
6
7
|
default?(_: {}): any;
|
|
8
|
+
slider?(_: {}): any;
|
|
9
|
+
footer?(_: {}): any;
|
|
7
10
|
};
|
|
8
11
|
refs: {};
|
|
9
12
|
rootEl: HTMLDivElement;
|
|
10
13
|
};
|
|
11
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
15
|
declare const __VLS_component: import('vue').DefineComponent<BaseDefaultLayoutProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
toggleLogo: (...args: any[]) => void;
|
|
13
17
|
toggleSystemTheme: (...args: any[]) => void;
|
|
14
18
|
toggleUserItem: (...args: any[]) => void;
|
|
15
19
|
toggleMenuItem: (...args: any[]) => void;
|
|
16
20
|
toggleMixMenuItem: (...args: any[]) => void;
|
|
17
21
|
}, string, import('vue').PublicProps, Readonly<BaseDefaultLayoutProps> & Readonly<{
|
|
22
|
+
onToggleLogo?: ((...args: any[]) => any) | undefined;
|
|
18
23
|
onToggleSystemTheme?: ((...args: any[]) => any) | undefined;
|
|
19
24
|
onToggleUserItem?: ((...args: any[]) => any) | undefined;
|
|
20
25
|
onToggleMenuItem?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,144 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import N from "./layoutSlider/index.vue.mjs";
|
|
6
|
-
import U from "./layoutFooter/index.vue.mjs";
|
|
7
|
-
import { defaultLayoutProviderInjectKey as $, DefaultLayoutPropsInDefault as E } from "./options.mjs";
|
|
8
|
-
import R from "../../../hooks/useNaiveConfigProvideContext.mjs";
|
|
9
|
-
import { setupMixMenuContext as j } from "../../../hooks/useMenu.mjs";
|
|
10
|
-
const ee = /* @__PURE__ */ w({
|
|
11
|
-
__name: "index",
|
|
12
|
-
props: /* @__PURE__ */ z({
|
|
13
|
-
scrollMode: {},
|
|
14
|
-
scrollElId: {},
|
|
15
|
-
scrollWrapperClass: {},
|
|
16
|
-
baseClass: {},
|
|
17
|
-
fixedTop: { type: Boolean },
|
|
18
|
-
commonClass: {},
|
|
19
|
-
layoutZIndex: {},
|
|
20
|
-
headerVisible: { type: Boolean },
|
|
21
|
-
headerClass: {},
|
|
22
|
-
headerHeight: {},
|
|
23
|
-
tabVisible: { type: Boolean },
|
|
24
|
-
tabClass: {},
|
|
25
|
-
tabHeight: {},
|
|
26
|
-
sliderVisible: { type: Boolean },
|
|
27
|
-
sliderClass: {},
|
|
28
|
-
sliderCollapse: { type: Boolean },
|
|
29
|
-
sliderWidth: {},
|
|
30
|
-
sliderCollapseWidth: {},
|
|
31
|
-
contentClass: {},
|
|
32
|
-
fullContent: { type: Boolean },
|
|
33
|
-
footerVisible: { type: Boolean },
|
|
34
|
-
footerClass: {},
|
|
35
|
-
fixedFooter: { type: Boolean },
|
|
36
|
-
footerIsFullWidth: { type: Boolean },
|
|
37
|
-
footerHeight: {},
|
|
38
|
-
mode: {},
|
|
39
|
-
curRoute: {},
|
|
40
|
-
sliderMixWidth: {},
|
|
41
|
-
sliderMixCollapseWidth: {},
|
|
42
|
-
sliderMixChildMenuWidth: {},
|
|
43
|
-
mixSliderFixed: { type: Boolean },
|
|
44
|
-
menuList: {},
|
|
45
|
-
reverseHorizontalMix: { type: Boolean },
|
|
46
|
-
userActionOption: {},
|
|
47
|
-
userInfo: {}
|
|
48
|
-
}, {
|
|
49
|
-
...E,
|
|
50
|
-
menuList: () => [],
|
|
51
|
-
userActionOption: () => [],
|
|
52
|
-
userInfo: () => ({ name: "" })
|
|
53
|
-
}),
|
|
54
|
-
emits: [
|
|
55
|
-
"toggleMenuItem",
|
|
56
|
-
"toggleMixMenuItem",
|
|
57
|
-
"toggleSystemTheme",
|
|
58
|
-
"toggleUserItem"
|
|
59
|
-
],
|
|
60
|
-
setup(t, { emit: x }) {
|
|
61
|
-
const v = S(() => import("./layoutMenu/index.vue.mjs")), o = t, a = x, M = R(), { childLevelMenus: c } = j(o), p = l(() => {
|
|
62
|
-
const {
|
|
63
|
-
name: e = "light"
|
|
64
|
-
} = M?.mergedThemeRef.value || {};
|
|
65
|
-
return e !== "light";
|
|
66
|
-
}), C = l(() => {
|
|
67
|
-
const e = "vertical";
|
|
68
|
-
return o.mode.includes(e) ? e : "horizontal";
|
|
69
|
-
}), b = l(() => o.mode !== "horizontal"), n = l(() => o.mode === "horizontal-mix"), u = l(() => o.mode === "vertical-mix"), y = () => {
|
|
70
|
-
const { reverseHorizontalMix: e } = o, { sliderCollapseWidth: i, sliderMixCollapseWidth: h, sliderMixChildMenuWidth: m } = o;
|
|
71
|
-
if (n.value && e)
|
|
72
|
-
return i;
|
|
73
|
-
let s = u.value || n.value ? h : i;
|
|
74
|
-
return u.value && o.mixSliderFixed && c.value.length && (s += m), s;
|
|
75
|
-
}, f = l(() => y());
|
|
76
|
-
function I() {
|
|
77
|
-
const { reverseHorizontalMix: e } = o, { sliderWidth: i, sliderMixChildMenuWidth: h, sliderMixWidth: m } = o;
|
|
78
|
-
if (n.value && e)
|
|
79
|
-
return i;
|
|
80
|
-
let s = u.value || n.value ? m : i;
|
|
81
|
-
return u.value && o.mixSliderFixed && c.value.length && (s += h), s;
|
|
82
|
-
}
|
|
83
|
-
const g = l(() => I()), W = (e, i) => {
|
|
84
|
-
a("toggleMenuItem", e, i);
|
|
85
|
-
}, B = (e, i) => {
|
|
86
|
-
a("toggleMixMenuItem", e, i);
|
|
87
|
-
}, H = () => {
|
|
88
|
-
a("toggleSystemTheme");
|
|
89
|
-
}, V = (e, i) => {
|
|
90
|
-
a("toggleUserItem", e, i);
|
|
91
|
-
};
|
|
92
|
-
return F($, {
|
|
93
|
-
layoutConfig: o,
|
|
94
|
-
isDarkMode: p,
|
|
95
|
-
userActionOption: o.userActionOption,
|
|
96
|
-
userInfo: o.userInfo,
|
|
97
|
-
_sliderCollapseWidth: f,
|
|
98
|
-
_sliderWidth: g,
|
|
99
|
-
toggleMenuItem: W,
|
|
100
|
-
toggleMixMenuItem: B,
|
|
101
|
-
toggleSystemTheme: H,
|
|
102
|
-
toggleUserItem: V
|
|
103
|
-
}), (e, i) => (L(), T(D, {
|
|
104
|
-
mode: C.value,
|
|
105
|
-
"scroll-mode": t.scrollMode,
|
|
106
|
-
"scroll-el-id": t.scrollElId,
|
|
107
|
-
"fixed-top": t.fixedTop,
|
|
108
|
-
"header-visible": t.headerVisible,
|
|
109
|
-
"header-height": t.headerHeight,
|
|
110
|
-
"tab-visible": t.tabVisible,
|
|
111
|
-
"tab-height": t.tabHeight,
|
|
112
|
-
"slider-visible": b.value,
|
|
113
|
-
"slider-class": t.sliderClass,
|
|
114
|
-
"slider-collapse": t.sliderCollapse,
|
|
115
|
-
"slider-width": g.value,
|
|
116
|
-
"slider-collapse-width": f.value,
|
|
117
|
-
"footer-visible": t.footerVisible,
|
|
118
|
-
"fixed-footer": t.fixedFooter,
|
|
119
|
-
"footer-is-full-width": t.footerIsFullWidth,
|
|
120
|
-
"footer-height": t.footerHeight
|
|
121
|
-
}, {
|
|
122
|
-
header: r(() => [
|
|
123
|
-
d(O)
|
|
124
|
-
]),
|
|
125
|
-
tab: r(() => [
|
|
126
|
-
d(k)
|
|
127
|
-
]),
|
|
128
|
-
slider: r(() => [
|
|
129
|
-
d(N)
|
|
130
|
-
]),
|
|
131
|
-
footer: r(() => [
|
|
132
|
-
d(U)
|
|
133
|
-
]),
|
|
134
|
-
default: r(() => [
|
|
135
|
-
P(e.$slots, "default"),
|
|
136
|
-
d(A(v))
|
|
137
|
-
]),
|
|
138
|
-
_: 3
|
|
139
|
-
}, 8, ["mode", "scroll-mode", "scroll-el-id", "fixed-top", "header-visible", "header-height", "tab-visible", "tab-height", "slider-visible", "slider-class", "slider-collapse", "slider-width", "slider-collapse-width", "footer-visible", "fixed-footer", "footer-is-full-width", "footer-height"]));
|
|
140
|
-
}
|
|
141
|
-
});
|
|
1
|
+
import o from "./index.vue2.mjs";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1087183d"]]);
|
|
142
5
|
export {
|
|
143
|
-
|
|
6
|
+
_ as default
|
|
144
7
|
};
|
|
@@ -1,4 +1,147 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as L, mergeDefaults as S, defineAsyncComponent as F, computed as l, provide as T, createBlock as $, openBlock as A, withCtx as a, renderSlot as u, createVNode as m, unref as D } from "vue";
|
|
2
|
+
import O from "../index.vue.mjs";
|
|
3
|
+
import P from "./layoutHeader/index.vue.mjs";
|
|
4
|
+
import k from "./layoutSlider/index.vue.mjs";
|
|
5
|
+
import { defaultLayoutProviderInjectKey as N, DefaultLayoutPropsInDefault as U } from "./options.mjs";
|
|
6
|
+
import E from "../../../hooks/useNaiveConfigProvideContext.mjs";
|
|
7
|
+
import { setupMixMenuContext as R } from "../../../hooks/useMenu.mjs";
|
|
8
|
+
const X = /* @__PURE__ */ L({
|
|
9
|
+
__name: "index",
|
|
10
|
+
props: /* @__PURE__ */ S({
|
|
11
|
+
scrollMode: {},
|
|
12
|
+
scrollElId: {},
|
|
13
|
+
scrollWrapperClass: {},
|
|
14
|
+
baseClass: {},
|
|
15
|
+
fixedTop: { type: Boolean },
|
|
16
|
+
commonClass: {},
|
|
17
|
+
layoutZIndex: {},
|
|
18
|
+
headerVisible: { type: Boolean },
|
|
19
|
+
headerClass: {},
|
|
20
|
+
headerHeight: {},
|
|
21
|
+
tabVisible: { type: Boolean },
|
|
22
|
+
tabClass: {},
|
|
23
|
+
tabHeight: {},
|
|
24
|
+
sliderVisible: { type: Boolean },
|
|
25
|
+
sliderClass: {},
|
|
26
|
+
sliderCollapse: { type: Boolean },
|
|
27
|
+
sliderWidth: {},
|
|
28
|
+
sliderCollapseWidth: {},
|
|
29
|
+
contentClass: {},
|
|
30
|
+
fullContent: { type: Boolean },
|
|
31
|
+
footerVisible: { type: Boolean },
|
|
32
|
+
footerClass: {},
|
|
33
|
+
fixedFooter: { type: Boolean },
|
|
34
|
+
footerIsFullWidth: { type: Boolean },
|
|
35
|
+
footerHeight: {},
|
|
36
|
+
mode: {},
|
|
37
|
+
curRoute: {},
|
|
38
|
+
sliderMixWidth: {},
|
|
39
|
+
sliderMixCollapseWidth: {},
|
|
40
|
+
sliderMixChildMenuWidth: {},
|
|
41
|
+
mixSliderFixed: { type: Boolean },
|
|
42
|
+
menuList: {},
|
|
43
|
+
reverseHorizontalMix: { type: Boolean },
|
|
44
|
+
userActionOption: {},
|
|
45
|
+
userInfo: {}
|
|
46
|
+
}, {
|
|
47
|
+
...U,
|
|
48
|
+
menuList: () => [],
|
|
49
|
+
userActionOption: () => [],
|
|
50
|
+
userInfo: () => ({ name: "" })
|
|
51
|
+
}),
|
|
52
|
+
emits: [
|
|
53
|
+
"toggleLogo",
|
|
54
|
+
"toggleMenuItem",
|
|
55
|
+
"toggleMixMenuItem",
|
|
56
|
+
"toggleSystemTheme",
|
|
57
|
+
"toggleUserItem"
|
|
58
|
+
],
|
|
59
|
+
setup(t, { emit: x }) {
|
|
60
|
+
const M = F(() => import("./layoutMenu/index.vue.mjs")), o = t, s = x, C = E(), { childLevelMenus: f } = R(o), p = l(() => {
|
|
61
|
+
const {
|
|
62
|
+
name: e = "light"
|
|
63
|
+
} = C?.mergedThemeRef.value || {};
|
|
64
|
+
return e !== "light";
|
|
65
|
+
}), b = l(() => {
|
|
66
|
+
const e = "vertical";
|
|
67
|
+
return o.mode.includes(e) ? e : "horizontal";
|
|
68
|
+
}), y = l(() => o.mode !== "horizontal"), d = l(() => o.mode === "horizontal-mix"), n = l(() => o.mode === "vertical-mix"), I = () => {
|
|
69
|
+
const { reverseHorizontalMix: e } = o, { sliderCollapseWidth: i, sliderMixCollapseWidth: h, sliderMixChildMenuWidth: c } = o;
|
|
70
|
+
if (d.value && e)
|
|
71
|
+
return i;
|
|
72
|
+
let r = n.value || d.value ? h : i;
|
|
73
|
+
return n.value && o.mixSliderFixed && f.value.length && (r += c), r;
|
|
74
|
+
}, g = l(() => I());
|
|
75
|
+
function W() {
|
|
76
|
+
const { reverseHorizontalMix: e } = o, { sliderWidth: i, sliderMixChildMenuWidth: h, sliderMixWidth: c } = o;
|
|
77
|
+
if (d.value && e)
|
|
78
|
+
return i;
|
|
79
|
+
let r = n.value || d.value ? c : i;
|
|
80
|
+
return n.value && o.mixSliderFixed && f.value.length && (r += h), r;
|
|
81
|
+
}
|
|
82
|
+
const v = l(() => W()), B = () => {
|
|
83
|
+
s("toggleLogo");
|
|
84
|
+
}, H = (e, i) => {
|
|
85
|
+
s("toggleMenuItem", e, i);
|
|
86
|
+
}, V = (e, i) => {
|
|
87
|
+
s("toggleMixMenuItem", e, i);
|
|
88
|
+
}, w = () => {
|
|
89
|
+
s("toggleSystemTheme");
|
|
90
|
+
}, z = (e, i) => {
|
|
91
|
+
s("toggleUserItem", e, i);
|
|
92
|
+
};
|
|
93
|
+
return T(N, {
|
|
94
|
+
layoutConfig: o,
|
|
95
|
+
isDarkMode: p,
|
|
96
|
+
userActionOption: o.userActionOption,
|
|
97
|
+
userInfo: o.userInfo,
|
|
98
|
+
_sliderCollapseWidth: g,
|
|
99
|
+
_sliderWidth: v,
|
|
100
|
+
toggleLogo: B,
|
|
101
|
+
toggleMenuItem: H,
|
|
102
|
+
toggleMixMenuItem: V,
|
|
103
|
+
toggleSystemTheme: w,
|
|
104
|
+
toggleUserItem: z
|
|
105
|
+
}), (e, i) => (A(), $(O, {
|
|
106
|
+
mode: b.value,
|
|
107
|
+
"scroll-mode": t.scrollMode,
|
|
108
|
+
"scroll-el-id": t.scrollElId,
|
|
109
|
+
"fixed-top": t.fixedTop,
|
|
110
|
+
"header-visible": t.headerVisible,
|
|
111
|
+
"header-height": t.headerHeight,
|
|
112
|
+
"tab-visible": t.tabVisible,
|
|
113
|
+
"tab-height": t.tabHeight,
|
|
114
|
+
"slider-visible": y.value,
|
|
115
|
+
"slider-class": t.sliderClass,
|
|
116
|
+
"slider-collapse": t.sliderCollapse,
|
|
117
|
+
"slider-width": v.value,
|
|
118
|
+
"slider-collapse-width": g.value,
|
|
119
|
+
"footer-visible": t.footerVisible,
|
|
120
|
+
"fixed-footer": t.fixedFooter,
|
|
121
|
+
"footer-is-full-width": t.footerIsFullWidth,
|
|
122
|
+
"footer-height": t.footerHeight
|
|
123
|
+
}, {
|
|
124
|
+
header: a(() => [
|
|
125
|
+
u(e.$slots, "header", {}, () => [
|
|
126
|
+
m(P)
|
|
127
|
+
], !0)
|
|
128
|
+
]),
|
|
129
|
+
slider: a(() => [
|
|
130
|
+
u(e.$slots, "slider", {}, () => [
|
|
131
|
+
m(k)
|
|
132
|
+
], !0)
|
|
133
|
+
]),
|
|
134
|
+
footer: a(() => [
|
|
135
|
+
u(e.$slots, "footer", {}, void 0, !0)
|
|
136
|
+
]),
|
|
137
|
+
default: a(() => [
|
|
138
|
+
u(e.$slots, "default", {}, void 0, !0),
|
|
139
|
+
m(D(M))
|
|
140
|
+
]),
|
|
141
|
+
_: 3
|
|
142
|
+
}, 8, ["mode", "scroll-mode", "scroll-el-id", "fixed-top", "header-visible", "header-height", "tab-visible", "tab-height", "slider-visible", "slider-class", "slider-collapse", "slider-width", "slider-collapse-width", "footer-visible", "fixed-footer", "footer-is-full-width", "footer-height"]));
|
|
143
|
+
}
|
|
144
|
+
});
|
|
2
145
|
export {
|
|
3
|
-
|
|
146
|
+
X as default
|
|
4
147
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./title.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f1ec5dd8"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { NDivider as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useLogoHook as
|
|
6
|
-
const
|
|
1
|
+
import { NDivider as i } from "naive-ui";
|
|
2
|
+
import { defineComponent as l, createElementBlock as m, openBlock as t, createVNode as n, createBlock as s, createCommentVNode as u, unref as o, resolveDynamicComponent as p } from "vue";
|
|
3
|
+
import d from "../../../BaseProductIntroduction/index.vue.mjs";
|
|
4
|
+
import _ from "../hooks/useBaseLayoutContext.mjs";
|
|
5
|
+
import { useLogoHook as f } from "../hooks/useLogo.mjs";
|
|
6
|
+
const g = { class: "base-layout-header-title-container" }, H = /* @__PURE__ */ l({
|
|
7
7
|
name: "GlobalHeaderTitle",
|
|
8
8
|
__name: "title",
|
|
9
|
-
setup(
|
|
10
|
-
const { layoutConfig: r } =
|
|
11
|
-
return (
|
|
12
|
-
const
|
|
13
|
-
return t(), m("div",
|
|
14
|
-
n(
|
|
15
|
-
y:
|
|
9
|
+
setup(C) {
|
|
10
|
+
const { layoutConfig: r, toggleLogo: c } = _(), { currentLogoComponent: e } = f();
|
|
11
|
+
return (k, y) => {
|
|
12
|
+
const a = i;
|
|
13
|
+
return t(), m("div", g, [
|
|
14
|
+
n(d, {
|
|
15
|
+
y: o(r).headerHeight
|
|
16
16
|
}, null, 8, ["y"]),
|
|
17
|
-
n(
|
|
18
|
-
e
|
|
17
|
+
n(a, { vertical: "" }),
|
|
18
|
+
o(e) ? (t(), s(p(o(e)), {
|
|
19
19
|
key: 0,
|
|
20
|
-
class: "component-logo"
|
|
21
|
-
|
|
20
|
+
class: "component-logo",
|
|
21
|
+
onClick: o(c)
|
|
22
|
+
}, null, 8, ["onClick"])) : u("", !0)
|
|
22
23
|
]);
|
|
23
24
|
};
|
|
24
25
|
}
|