base6-ui 1.1.12 → 1.1.14
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/BaseCascader/index.d.ts +1 -0
- package/dist/components/BaseCascader/index.vue.d.ts +7 -0
- package/dist/components/BaseCascader/type.d.ts +6 -0
- package/dist/components/BaseDataTable/index.vue.d.ts +6 -9
- package/dist/components/BaseDialog/index.vue.d.ts +1 -0
- package/dist/components/BaseDialog/type.d.ts +1 -0
- package/dist/components/BaseLayout/Default/index.vue.d.ts +1 -1
- package/dist/components/BaseLayout/index.vue.d.ts +1 -1
- package/dist/components/BaseNavIcon/index.d.ts +2 -0
- package/dist/components/BaseNavIcon/index.vue.d.ts +13 -0
- package/dist/components/BaseNavIcon/type.d.ts +3 -0
- package/dist/components/BaseProductIntroduction/index.vue.d.ts +26 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/config/themes/common/dark.d.ts +2 -0
- package/dist/config/themes/components/cascader/common.d.ts +2 -0
- package/dist/config/themes/components/cascader/dark.d.ts +2 -0
- package/dist/config/themes/components/cascader/light.d.ts +2 -0
- package/dist/config/themes/components/dialog/common.d.ts +1 -0
- package/dist/config/themes/components/dialog/dark.d.ts +1 -0
- package/dist/config/themes/components/dialog/light.d.ts +1 -0
- package/dist/globalMethods/modules/confirmTip.d.ts +2 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useAnimationHook.d.ts +3 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.umd.js +1 -1
- package/es/_virtual/virtual_svg-icons-register.mjs +1 -1
- package/es/assets/logo/logo-dark-full.svg.mjs +2 -2
- package/es/assets/logo/logo-light-full.svg.mjs +2 -2
- package/es/components/BaseButton/index.vue.mjs +14 -14
- package/es/components/BaseCascader/index.d.ts +1 -0
- package/es/components/BaseCascader/index.vue.d.ts +7 -0
- package/es/components/BaseCascader/index.vue.mjs +8 -0
- package/es/components/BaseCascader/index.vue2.mjs +27 -0
- package/es/components/BaseCascader/type.d.ts +6 -0
- package/es/components/BaseDataTable/index.vue.d.ts +6 -9
- package/es/components/BaseDataTable/index.vue.mjs +1 -1
- package/es/components/BaseDataTable/index.vue2.mjs +22 -61
- package/es/components/BaseDialog/index.vue.d.ts +1 -0
- package/es/components/BaseDialog/index.vue.mjs +45 -42
- package/es/components/BaseDialog/options.mjs +1 -0
- package/es/components/BaseDialog/type.d.ts +1 -0
- package/es/components/BaseInputNumber/index.vue2.mjs +56 -56
- package/es/components/BaseLayout/ASide/index.vue2.mjs +27 -27
- package/es/components/BaseLayout/Default/index.vue.d.ts +1 -1
- package/es/components/BaseLayout/Default/index.vue.mjs +1 -1
- package/es/components/BaseLayout/Default/index.vue2.mjs +53 -53
- package/es/components/BaseLayout/Default/layoutHeader/action.vue.mjs +2 -2
- package/es/components/BaseLayout/Default/layoutHeader/action.vue2.mjs +37 -34
- package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.mjs +29 -29
- package/es/components/BaseLayout/Default/layoutSlider/index.vue.mjs +12 -12
- package/es/components/BaseLayout/components/WrapFooter.vue.mjs +14 -14
- package/es/components/BaseLayout/components/WrapHeader.vue2.mjs +8 -8
- package/es/components/BaseLayout/components/WrapTab.vue.mjs +12 -12
- package/es/components/BaseLayout/index.vue.d.ts +1 -1
- package/es/components/BaseLayout/index.vue2.mjs +36 -36
- package/es/components/BaseNavIcon/index.d.ts +2 -0
- package/es/components/BaseNavIcon/index.vue.d.ts +13 -0
- package/es/components/BaseNavIcon/index.vue.mjs +7 -0
- package/es/components/BaseNavIcon/index.vue2.mjs +34 -0
- package/es/components/BaseNavIcon/type.d.ts +3 -0
- package/es/components/BaseProductIntroduction/cssVar.mjs +7 -4
- package/es/components/BaseProductIntroduction/index.vue.d.ts +26 -1
- package/es/components/BaseProductIntroduction/index.vue.mjs +1 -1
- package/es/components/BaseProductIntroduction/index.vue2.mjs +66 -73
- package/es/components/BaseRadio/index.vue2.mjs +17 -17
- package/es/components/BaseSelect/index.vue2.mjs +24 -24
- package/es/components/BaseSlider/index.vue2.mjs +44 -44
- package/es/components/BaseSwitch/index.vue2.mjs +18 -18
- package/es/components/index.d.ts +2 -0
- package/es/config/themes/common/dark.d.ts +2 -0
- package/es/config/themes/common/dark.mjs +30 -0
- package/es/config/themes/components/baseComponent/dark.mjs +2 -2
- package/es/config/themes/components/baseComponent/light.mjs +2 -2
- package/es/config/themes/components/button/dark.mjs +1 -0
- package/es/config/themes/components/button/light.mjs +1 -0
- package/es/config/themes/components/card/dark.mjs +7 -5
- package/es/config/themes/components/card/light.mjs +5 -3
- package/es/config/themes/components/cascader/common.d.ts +2 -0
- package/es/config/themes/components/cascader/common.mjs +8 -0
- package/es/config/themes/components/cascader/dark.d.ts +2 -0
- package/es/config/themes/components/cascader/dark.mjs +19 -0
- package/es/config/themes/components/cascader/light.d.ts +2 -0
- package/es/config/themes/components/cascader/light.mjs +17 -0
- package/es/config/themes/components/dialog/common.d.ts +1 -0
- package/es/config/themes/components/dialog/common.mjs +4 -3
- package/es/config/themes/components/dialog/dark.d.ts +1 -0
- package/es/config/themes/components/dialog/light.d.ts +1 -0
- package/es/config/themes/components/input/dark.mjs +23 -18
- package/es/config/themes/components/input/light.mjs +5 -0
- package/es/config/themes/dark.mjs +42 -38
- package/es/config/themes/index.mjs +9 -6
- package/es/config/themes/light.mjs +43 -41
- package/es/globalMethods/modules/confirmTip.d.ts +2 -1
- package/es/globalMethods/modules/confirmTip.mjs +12 -11
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/useAnimationHook.d.ts +3 -0
- package/es/hooks/useAnimationHook.mjs +34 -0
- package/es/index.css +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +60 -54
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs +6 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.mjs +16 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs +9 -0
- package/lib/_virtual/virtual_svg-icons-register.js +1 -1
- package/lib/assets/logo/logo-dark-full.svg.js +1 -1
- package/lib/assets/logo/logo-light-full.svg.js +1 -1
- package/lib/components/BaseButton/index.vue.js +1 -1
- package/lib/components/BaseCascader/index.d.ts +1 -0
- package/lib/components/BaseCascader/index.vue.d.ts +7 -0
- package/lib/components/BaseCascader/index.vue.js +1 -0
- package/lib/components/BaseCascader/index.vue2.js +1 -0
- package/lib/components/BaseCascader/type.d.ts +6 -0
- package/lib/components/BaseDataTable/index.vue.d.ts +6 -9
- package/lib/components/BaseDataTable/index.vue.js +1 -1
- package/lib/components/BaseDataTable/index.vue2.js +1 -1
- package/lib/components/BaseDialog/index.vue.d.ts +1 -0
- package/lib/components/BaseDialog/index.vue.js +1 -1
- package/lib/components/BaseDialog/options.js +1 -1
- package/lib/components/BaseDialog/type.d.ts +1 -0
- package/lib/components/BaseInputNumber/index.vue2.js +1 -1
- package/lib/components/BaseLayout/ASide/index.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/index.vue.d.ts +1 -1
- 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/action.vue.js +1 -1
- package/lib/components/BaseLayout/Default/layoutHeader/action.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/layoutSlider/index.vue.js +1 -1
- package/lib/components/BaseLayout/components/WrapFooter.vue.js +1 -1
- package/lib/components/BaseLayout/components/WrapHeader.vue2.js +1 -1
- package/lib/components/BaseLayout/components/WrapTab.vue.js +1 -1
- package/lib/components/BaseLayout/index.vue.d.ts +1 -1
- package/lib/components/BaseLayout/index.vue2.js +1 -1
- package/lib/components/BaseNavIcon/index.d.ts +2 -0
- package/lib/components/BaseNavIcon/index.vue.d.ts +13 -0
- package/lib/components/BaseNavIcon/index.vue.js +1 -0
- package/lib/components/BaseNavIcon/index.vue2.js +1 -0
- package/lib/components/BaseNavIcon/type.d.ts +3 -0
- package/lib/components/BaseProductIntroduction/cssVar.js +1 -1
- package/lib/components/BaseProductIntroduction/index.vue.d.ts +26 -1
- package/lib/components/BaseProductIntroduction/index.vue.js +1 -1
- package/lib/components/BaseProductIntroduction/index.vue2.js +1 -1
- package/lib/components/BaseRadio/index.vue2.js +1 -1
- package/lib/components/BaseSelect/index.vue2.js +1 -1
- package/lib/components/BaseSlider/index.vue2.js +1 -1
- package/lib/components/BaseSwitch/index.vue2.js +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/config/themes/common/dark.d.ts +2 -0
- package/lib/config/themes/common/dark.js +1 -0
- package/lib/config/themes/components/baseComponent/dark.js +1 -1
- package/lib/config/themes/components/baseComponent/light.js +1 -1
- package/lib/config/themes/components/button/dark.js +1 -1
- package/lib/config/themes/components/button/light.js +1 -1
- package/lib/config/themes/components/card/dark.js +1 -1
- package/lib/config/themes/components/card/light.js +1 -1
- package/lib/config/themes/components/cascader/common.d.ts +2 -0
- package/lib/config/themes/components/cascader/common.js +1 -0
- package/lib/config/themes/components/cascader/dark.d.ts +2 -0
- package/lib/config/themes/components/cascader/dark.js +1 -0
- package/lib/config/themes/components/cascader/light.d.ts +2 -0
- package/lib/config/themes/components/cascader/light.js +1 -0
- package/lib/config/themes/components/dialog/common.d.ts +1 -0
- package/lib/config/themes/components/dialog/common.js +1 -1
- package/lib/config/themes/components/dialog/dark.d.ts +1 -0
- package/lib/config/themes/components/dialog/light.d.ts +1 -0
- package/lib/config/themes/components/input/dark.js +1 -1
- package/lib/config/themes/components/input/light.js +1 -1
- package/lib/config/themes/dark.js +1 -1
- package/lib/config/themes/index.js +1 -1
- package/lib/config/themes/light.js +1 -1
- package/lib/globalMethods/modules/confirmTip.d.ts +2 -1
- package/lib/globalMethods/modules/confirmTip.js +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useAnimationHook.d.ts +3 -0
- package/lib/hooks/useAnimationHook.js +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isPlainObject.js +1 -0
- package/package.json +2 -1
|
@@ -1,71 +1,74 @@
|
|
|
1
|
-
import { NButton as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
1
|
+
import { NButton as F, NDropdown as k } from "naive-ui";
|
|
2
|
+
import { defineComponent as b, computed as c, h as u, createElementBlock as C, openBlock as x, createVNode as o, withCtx as r, unref as t, createElementVNode as m, toDisplayString as S } from "vue";
|
|
3
|
+
import { useAnimationHook as A } from "../../../../hooks/useAnimationHook.mjs";
|
|
4
|
+
import B from "../hooks/useBaseLayoutContext.mjs";
|
|
4
5
|
import { SvgIcon as n } from "../../../../node_modules/.pnpm/lib-materials@0.0.8_typescript@5.7.2/node_modules/lib-materials/dist/lib-materials.mjs";
|
|
5
|
-
const
|
|
6
|
+
const z = { class: "base-layout-header-action-container" }, E = { class: "user-trigger" }, N = { class: "name" }, V = /* @__PURE__ */ b({
|
|
6
7
|
name: "GlobalHeaderAction",
|
|
7
8
|
__name: "action",
|
|
8
|
-
setup(
|
|
9
|
-
const { isDarkMode:
|
|
10
|
-
color:
|
|
11
|
-
colorHover:
|
|
12
|
-
colorFocus:
|
|
13
|
-
textColor:
|
|
14
|
-
border: `1px solid ${
|
|
15
|
-
})),
|
|
9
|
+
setup(T) {
|
|
10
|
+
const { isDarkMode: e, userActionOption: l, userInfo: d, toggleSystemTheme: p, toggleSystemLang: _, toggleUserItem: g } = B(), { toggleAnimationByClipCircle: v } = A(), a = c(() => ({
|
|
11
|
+
color: e.value ? "#222327" : "#FFF",
|
|
12
|
+
colorHover: e.value ? "#222327" : "#FFF",
|
|
13
|
+
colorFocus: e.value ? "#222327" : "#FFF",
|
|
14
|
+
textColor: e.value ? "rgba(255,255,255,0.7)" : "#56647A",
|
|
15
|
+
border: `1px solid ${e.value ? "#2F3A4B " : "#E0E6EF"}`
|
|
16
|
+
})), h = c(() => l && l.length ? l : [
|
|
16
17
|
{
|
|
17
18
|
label: "用户中心",
|
|
18
19
|
key: "user-center",
|
|
19
|
-
icon: () =>
|
|
20
|
+
icon: () => u(n, { icon: "layout-user-center", size: "16" })
|
|
20
21
|
},
|
|
21
22
|
{
|
|
22
23
|
label: "退出账号",
|
|
23
24
|
key: "logout",
|
|
24
|
-
icon: () =>
|
|
25
|
+
icon: () => u(n, { icon: "layout-logout", size: "16" })
|
|
25
26
|
}
|
|
26
|
-
])
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
]), f = (s) => {
|
|
28
|
+
v(s, e.value, p);
|
|
29
|
+
};
|
|
30
|
+
return (s, w) => {
|
|
31
|
+
const i = F, y = k;
|
|
32
|
+
return x(), C("div", z, [
|
|
33
|
+
o(i, {
|
|
31
34
|
"theme-overrides": a.value,
|
|
32
|
-
onClick:
|
|
35
|
+
onClick: f
|
|
33
36
|
}, {
|
|
34
37
|
default: r(() => [
|
|
35
|
-
o(
|
|
38
|
+
o(t(n), {
|
|
36
39
|
icon: "layout-theme",
|
|
37
40
|
size: "16"
|
|
38
41
|
})
|
|
39
42
|
]),
|
|
40
43
|
_: 1
|
|
41
|
-
}, 8, ["theme-overrides"
|
|
42
|
-
o(
|
|
44
|
+
}, 8, ["theme-overrides"]),
|
|
45
|
+
o(i, {
|
|
43
46
|
"theme-overrides": a.value,
|
|
44
|
-
onClick:
|
|
47
|
+
onClick: t(_)
|
|
45
48
|
}, {
|
|
46
49
|
default: r(() => [
|
|
47
|
-
o(
|
|
50
|
+
o(t(n), {
|
|
48
51
|
icon: "layout-lang",
|
|
49
52
|
size: "16"
|
|
50
53
|
})
|
|
51
54
|
]),
|
|
52
55
|
_: 1
|
|
53
56
|
}, 8, ["theme-overrides", "onClick"]),
|
|
54
|
-
o(
|
|
57
|
+
o(y, {
|
|
55
58
|
placement: "bottom",
|
|
56
59
|
trigger: "click",
|
|
57
|
-
options:
|
|
58
|
-
onSelect:
|
|
60
|
+
options: h.value,
|
|
61
|
+
onSelect: t(g)
|
|
59
62
|
}, {
|
|
60
63
|
default: r(() => [
|
|
61
|
-
|
|
62
|
-
o(
|
|
64
|
+
m("div", E, [
|
|
65
|
+
o(i, { text: "" }, {
|
|
63
66
|
default: r(() => [
|
|
64
|
-
o(
|
|
65
|
-
icon: `layout-user-${e
|
|
67
|
+
o(t(n), {
|
|
68
|
+
icon: `layout-user-${t(e) ? "dark" : "light"}`,
|
|
66
69
|
size: "32"
|
|
67
70
|
}, null, 8, ["icon"]),
|
|
68
|
-
|
|
71
|
+
m("span", N, S(t(d)?.name), 1)
|
|
69
72
|
]),
|
|
70
73
|
_: 1
|
|
71
74
|
})
|
|
@@ -78,5 +81,5 @@ const S = { class: "base-layout-header-action-container" }, z = { class: "user-t
|
|
|
78
81
|
}
|
|
79
82
|
});
|
|
80
83
|
export {
|
|
81
|
-
|
|
84
|
+
V as default
|
|
82
85
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as M, useCssVars as h, computed as g, resolveComponent as B, createElementBlock as o, openBlock as l, Fragment as n, createVNode as i, createElementVNode as r, unref as p, withCtx as u, normalizeClass as S, createBlock as d, resolveDynamicComponent as I, toDisplayString as D, renderSlot as V, renderList as w } from "vue";
|
|
2
2
|
import { createReusableTemplate as E } from "../../../../../node_modules/.pnpm/@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_/node_modules/@vueuse/core/index.mjs";
|
|
3
|
-
const F = { class: "w-full ellipsis-text text-center text-[12px]" }, K = { class: "h-full flex-col-stretch flex-1-hidden" }, z = /* @__PURE__ */
|
|
3
|
+
const F = { class: "w-full ellipsis-text text-center text-[12px]" }, K = { class: "h-full flex-col-stretch flex-1-hidden" }, z = /* @__PURE__ */ M({
|
|
4
4
|
name: "FirstLevelMenu",
|
|
5
5
|
__name: "first-level-menu",
|
|
6
6
|
props: {
|
|
@@ -12,44 +12,44 @@ const F = { class: "w-full ellipsis-text text-center text-[12px]" }, K = { class
|
|
|
12
12
|
themeColor: {}
|
|
13
13
|
},
|
|
14
14
|
emits: ["select", "toggleSliderCollapse"],
|
|
15
|
-
setup(
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
setup(m, { emit: f }) {
|
|
16
|
+
h((e) => ({
|
|
17
|
+
"6a6cfcc8": _.value
|
|
18
18
|
}));
|
|
19
|
-
const [
|
|
20
|
-
const { darkMode:
|
|
21
|
-
return
|
|
22
|
-
}),
|
|
23
|
-
y("select",
|
|
19
|
+
const [x, v] = E(), C = m, y = f, _ = g(() => {
|
|
20
|
+
const { darkMode: e } = C;
|
|
21
|
+
return e ? "#000" : "#fff";
|
|
22
|
+
}), b = (e) => {
|
|
23
|
+
y("select", e);
|
|
24
24
|
};
|
|
25
|
-
return (
|
|
26
|
-
const
|
|
27
|
-
return l(), n
|
|
28
|
-
p(
|
|
29
|
-
default:
|
|
25
|
+
return (e, L) => {
|
|
26
|
+
const k = B("SimpleScrollbar");
|
|
27
|
+
return l(), o(n, null, [
|
|
28
|
+
i(p(x), null, {
|
|
29
|
+
default: u(({ label: t, icon: c, activeIcon: s, active: a }) => [
|
|
30
30
|
r("div", {
|
|
31
31
|
class: S(["mx-[4px] mb-[6px] flex-col-bc cursor-pointer rounded-[8px] bg-transparent px-[4px] py-[8px] hover:bg-[rgba(0,0,0,0.08)]", {
|
|
32
|
-
"text-primary selected-mix-menu":
|
|
32
|
+
"text-primary selected-mix-menu": a
|
|
33
33
|
}])
|
|
34
34
|
}, [
|
|
35
|
-
(l(),
|
|
36
|
-
r("p", F, D(
|
|
35
|
+
(l(), d(I(a && s ? s : c))),
|
|
36
|
+
r("p", F, D(t), 1)
|
|
37
37
|
], 2)
|
|
38
38
|
]),
|
|
39
39
|
_: 1
|
|
40
40
|
}),
|
|
41
41
|
r("div", K, [
|
|
42
|
-
V(
|
|
43
|
-
|
|
44
|
-
default:
|
|
45
|
-
(l(!0), n
|
|
46
|
-
(l(),
|
|
47
|
-
key:
|
|
48
|
-
label:
|
|
49
|
-
icon:
|
|
50
|
-
active:
|
|
51
|
-
activeIcon:
|
|
52
|
-
onClick: (
|
|
42
|
+
V(e.$slots, "default", {}, void 0, !0),
|
|
43
|
+
i(k, null, {
|
|
44
|
+
default: u(() => [
|
|
45
|
+
(l(!0), o(n, null, w(e.menus, (t) => (l(), o(n, null, [
|
|
46
|
+
(l(), d(p(v), {
|
|
47
|
+
key: t.key,
|
|
48
|
+
label: t.label,
|
|
49
|
+
icon: t.icon,
|
|
50
|
+
active: t.key === e.activeMenuKey,
|
|
51
|
+
activeIcon: t.activeIcon,
|
|
52
|
+
onClick: (c) => b(t)
|
|
53
53
|
}, null, 8, ["label", "icon", "active", "activeIcon", "onClick"]))
|
|
54
54
|
], 64))), 256))
|
|
55
55
|
]),
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as d, computed as o, createBlock as i, openBlock as n, unref as a, withCtx as r, createElementVNode as m, createCommentVNode as u } from "vue";
|
|
2
2
|
import p from "../../ASide/index.vue.mjs";
|
|
3
3
|
import _ from "../layoutHeader/title.vue.mjs";
|
|
4
4
|
import h from "../hooks/useBaseLayoutContext.mjs";
|
|
5
|
-
import { LAYOUT_SLIDER_MENU_ID as
|
|
6
|
-
const
|
|
5
|
+
import { LAYOUT_SLIDER_MENU_ID as x } from "../constants.mjs";
|
|
6
|
+
const f = ["id"], w = /* @__PURE__ */ d({
|
|
7
7
|
name: "LayoutSlider",
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(y) {
|
|
10
|
-
const { layoutConfig:
|
|
11
|
-
return (g, v) => (n(),
|
|
12
|
-
"logo-style":
|
|
10
|
+
const { layoutConfig: e } = h(), t = o(() => e.mode === "vertical-mix"), s = o(() => e.mode === "horizontal-mix"), l = o(() => !t.value && !s.value), c = o(() => ({ height: l.value ? `${e.headerHeight}px` : "" }));
|
|
11
|
+
return (g, v) => (n(), i(p, {
|
|
12
|
+
"logo-style": c.value,
|
|
13
13
|
"content-scrollable": !t.value,
|
|
14
|
-
"content-style":
|
|
14
|
+
"content-style": `padding-top: 8px; ${a(e).mixSliderFixed ? "" : "overflow: hidden"}`
|
|
15
15
|
}, {
|
|
16
16
|
header: r(() => [
|
|
17
|
-
|
|
17
|
+
l.value ? (n(), i(_, { key: 0 })) : u("", !0)
|
|
18
18
|
]),
|
|
19
19
|
default: r(() => [
|
|
20
20
|
m("div", {
|
|
21
|
-
id:
|
|
21
|
+
id: a(x),
|
|
22
22
|
style: { height: "100%" }
|
|
23
|
-
}, null, 8,
|
|
23
|
+
}, null, 8, f)
|
|
24
24
|
]),
|
|
25
25
|
_: 1
|
|
26
|
-
}, 8, ["logo-style", "content-scrollable"]));
|
|
26
|
+
}, 8, ["logo-style", "content-scrollable", "content-style"]));
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
w as default
|
|
31
31
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as u, computed as c, createElementBlock as i, openBlock as p, Fragment as f, createElementVNode as s, withDirectives as m, normalizeClass as r, renderSlot as d, vShow as h } from "vue";
|
|
2
|
+
import o from "../index.module.css.mjs";
|
|
3
|
+
const v = /* @__PURE__ */ u({
|
|
4
4
|
name: "FooterWrap",
|
|
5
5
|
__name: "WrapFooter",
|
|
6
6
|
props: {
|
|
7
7
|
footerClass: { default: "" },
|
|
8
8
|
isFixed: { type: Boolean, default: !0 }
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
10
|
+
setup(l) {
|
|
11
|
+
const t = l, a = c(() => {
|
|
12
12
|
const e = [];
|
|
13
|
-
return e.push(
|
|
13
|
+
return e.push(o["layout-footer"]), e.push(t.footerClass), t.isFixed && e.push(o["layout-footer-fixed"]), e;
|
|
14
14
|
}), n = [
|
|
15
|
-
|
|
15
|
+
o["layout-footer-placement"]
|
|
16
16
|
];
|
|
17
|
-
return (e, C) => (
|
|
18
|
-
|
|
19
|
-
class:
|
|
17
|
+
return (e, C) => (p(), i(f, null, [
|
|
18
|
+
s("footer", {
|
|
19
|
+
class: r(a.value)
|
|
20
20
|
}, [
|
|
21
21
|
d(e.$slots, "default")
|
|
22
22
|
], 2),
|
|
23
|
-
m(
|
|
24
|
-
class:
|
|
23
|
+
m(s("div", {
|
|
24
|
+
class: r(n)
|
|
25
25
|
}, null, 512), [
|
|
26
|
-
[h,
|
|
26
|
+
[h, e.isFixed]
|
|
27
27
|
])
|
|
28
28
|
], 64));
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
v as default
|
|
33
33
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, computed as u, createElementBlock as
|
|
1
|
+
import { defineComponent as d, computed as u, createElementBlock as i, openBlock as c, Fragment as p, createElementVNode as t, withDirectives as h, normalizeClass as r, renderSlot as m, vShow as f } from "vue";
|
|
2
2
|
import a from "../index.module.css.mjs";
|
|
3
3
|
const x = /* @__PURE__ */ d({
|
|
4
4
|
__name: "WrapHeader",
|
|
@@ -6,21 +6,21 @@ const x = /* @__PURE__ */ d({
|
|
|
6
6
|
isFixed: { type: Boolean, default: !1 },
|
|
7
7
|
headerClass: { default: "" }
|
|
8
8
|
},
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
9
|
+
setup(l) {
|
|
10
|
+
const s = l, o = u(() => {
|
|
11
11
|
const e = [];
|
|
12
|
-
return e.push(a["layout-header"]),
|
|
12
|
+
return e.push(a["layout-header"]), s.isFixed && e.push(a["layout-header-is-fixed"]), e.push(s.headerClass), e;
|
|
13
13
|
}), n = [a["layout-header-placement"]];
|
|
14
|
-
return (e, y) => (
|
|
15
|
-
|
|
14
|
+
return (e, y) => (c(), i(p, null, [
|
|
15
|
+
t("header", {
|
|
16
16
|
class: r(["layout-header", o.value])
|
|
17
17
|
}, [
|
|
18
18
|
m(e.$slots, "default", {}, void 0, !0)
|
|
19
19
|
], 2),
|
|
20
|
-
h(
|
|
20
|
+
h(t("div", {
|
|
21
21
|
class: r(n)
|
|
22
22
|
}, null, 512), [
|
|
23
|
-
[f,
|
|
23
|
+
[f, e.isFixed]
|
|
24
24
|
])
|
|
25
25
|
], 64));
|
|
26
26
|
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineComponent as i, computed as c, createElementBlock as u, openBlock as
|
|
1
|
+
import { defineComponent as i, computed as c, createElementBlock as u, openBlock as p, Fragment as d, createElementVNode as s, withDirectives as m, normalizeClass as l, renderSlot as f, vShow as b } from "vue";
|
|
2
2
|
import t from "../index.module.css.mjs";
|
|
3
|
-
const
|
|
3
|
+
const x = /* @__PURE__ */ i({
|
|
4
4
|
name: "TabWrap",
|
|
5
5
|
__name: "WrapTab",
|
|
6
6
|
props: {
|
|
7
7
|
isFixed: { type: Boolean, default: !1 },
|
|
8
8
|
tabClass: { default: "" }
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
10
|
+
setup(o) {
|
|
11
|
+
const a = o, n = c(() => {
|
|
12
12
|
const e = [];
|
|
13
|
-
return e.push(t["layout-tab"]),
|
|
13
|
+
return e.push(t["layout-tab"]), a.isFixed && e.push(t["layout-tab-is-fixed"]), e.push(a.tabClass), e;
|
|
14
14
|
}), r = [
|
|
15
15
|
t["layout-tab-placement"],
|
|
16
16
|
"flex-shrink-0 overflow-hidden"
|
|
17
17
|
];
|
|
18
|
-
return (e, h) => (
|
|
19
|
-
|
|
20
|
-
class:
|
|
18
|
+
return (e, h) => (p(), u(d, null, [
|
|
19
|
+
s("div", {
|
|
20
|
+
class: l(n.value)
|
|
21
21
|
}, [
|
|
22
22
|
f(e.$slots, "default")
|
|
23
23
|
], 2),
|
|
24
|
-
m(
|
|
25
|
-
class:
|
|
24
|
+
m(s("div", {
|
|
25
|
+
class: l(r)
|
|
26
26
|
}, null, 512), [
|
|
27
|
-
[b,
|
|
27
|
+
[b, e.isFixed]
|
|
28
28
|
])
|
|
29
29
|
], 64));
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
x as default
|
|
34
34
|
};
|
|
@@ -13,10 +13,10 @@ declare function __VLS_template(): {
|
|
|
13
13
|
};
|
|
14
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
15
|
declare const __VLS_component: import('vue').DefineComponent<LayoutProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LayoutProps> & Readonly<{}>, {
|
|
16
|
-
headerHeight: number;
|
|
17
16
|
contentClass: string;
|
|
18
17
|
headerClass: string;
|
|
19
18
|
footerClass: string;
|
|
19
|
+
headerHeight: number;
|
|
20
20
|
mode: import('./type').LayoutMode;
|
|
21
21
|
tabClass: string;
|
|
22
22
|
sliderCollapse: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as x, mergeDefaults as E, useSlots as T, computed as o, createElementBlock as j, openBlock as n, normalizeStyle as z, createElementVNode as G, normalizeClass as M, unref as b, createBlock as p, createCommentVNode as l, createVNode as P, withCtx as u, renderSlot as d } from "vue";
|
|
2
2
|
import A from "./components/WrapHeader.vue.mjs";
|
|
3
3
|
import N from "./components/WrapTab.vue.mjs";
|
|
4
4
|
import D from "./components/WrapContent.vue.mjs";
|
|
@@ -7,7 +7,7 @@ import U from "./components/WrapFooter.vue.mjs";
|
|
|
7
7
|
import { DEFAULT_LAYOUT_PROPS as R } from "./options.mjs";
|
|
8
8
|
import { getCssVarsByLayoutProps as Y } from "./layoutCssVar.mjs";
|
|
9
9
|
import r from "./index.module.css.mjs";
|
|
10
|
-
const Z = ["id"],
|
|
10
|
+
const Z = ["id"], ae = /* @__PURE__ */ x({
|
|
11
11
|
name: "LayoutMaterial",
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: /* @__PURE__ */ E({
|
|
@@ -38,80 +38,80 @@ const Z = ["id"], te = /* @__PURE__ */ _({
|
|
|
38
38
|
footerIsFullWidth: { type: Boolean },
|
|
39
39
|
footerHeight: {}
|
|
40
40
|
}, R),
|
|
41
|
-
setup(
|
|
42
|
-
const
|
|
43
|
-
const e =
|
|
44
|
-
return e ||
|
|
41
|
+
setup(B) {
|
|
42
|
+
const i = T(), s = B, F = o(() => Y(s)), m = o(() => !!i.header && s.headerVisible), V = o(() => !!i.tab && s.tabVisible), C = o(() => !!i.slider && s.sliderVisible), v = o(() => !!i.footer && s.footerVisible), f = o(() => s.mode === "vertical"), t = o(() => s.mode === "horizontal"), c = o(() => s.scrollMode === "wrapper"), $ = o(() => s.scrollMode === "content"), h = o(() => s.fixedTop || t.value && c.value), a = o(() => C.value ? s.sliderCollapse ? r["left-gap-collapsed"] : r["left-gap-full"] : ""), k = o(() => f.value ? a.value : ""), L = o(() => {
|
|
43
|
+
const e = f.value, y = t.value && c.value && !s.fixedFooter, I = !!(t.value && !s.footerIsFullWidth);
|
|
44
|
+
return e || y || I ? a.value : "";
|
|
45
45
|
}), S = o(() => {
|
|
46
46
|
let e = "";
|
|
47
|
-
return
|
|
48
|
-
}),
|
|
47
|
+
return m.value && t.value && (e += r["slider-padding-top"]), v.value && !L.value && (e += ` ${r["slider-padding-bottom"]}`), e;
|
|
48
|
+
}), _ = o(() => {
|
|
49
49
|
const e = [];
|
|
50
50
|
return e.push(k.value), e.push(s.commonClass), e.push(s.headerClass), e.join(" ");
|
|
51
|
-
}),
|
|
51
|
+
}), g = o(() => {
|
|
52
52
|
const e = [];
|
|
53
|
-
return e.push(
|
|
53
|
+
return e.push(a.value), e.push(s.commonClass), e.push(s.tabClass), e.join(" ");
|
|
54
54
|
}), w = o(() => {
|
|
55
55
|
const e = [];
|
|
56
|
-
return e.push(
|
|
56
|
+
return e.push(a.value), e.push(s.commonClass), e.push(s.contentClass), $.value && e.push(r["overflow-y-auto"]), e.join(" ");
|
|
57
57
|
}), W = o(() => {
|
|
58
58
|
const e = [];
|
|
59
59
|
return e.push(s.commonClass), e.push(s.sliderClass), e.push(S.value), e.join(" ");
|
|
60
60
|
}), H = o(() => {
|
|
61
61
|
const e = [];
|
|
62
|
-
return
|
|
62
|
+
return f.value && e.push(a.value), t.value && c.value && !s.fixedFooter && e.push(a.value), t.value && !s.footerIsFullWidth && e.push(a.value), e.push(s.commonClass), e.push(s.footerClass), e.join(" ");
|
|
63
63
|
});
|
|
64
|
-
return (e,
|
|
64
|
+
return (e, y) => (n(), j("div", {
|
|
65
65
|
class: "layout-material",
|
|
66
66
|
style: z(F.value)
|
|
67
67
|
}, [
|
|
68
68
|
G("div", {
|
|
69
|
-
id:
|
|
70
|
-
class: M(["layout-content",
|
|
69
|
+
id: e.scrollElId ? e.scrollElId : void 0,
|
|
70
|
+
class: M(["layout-content", c.value ? b(r)["overflow-y-auto"] : ""])
|
|
71
71
|
}, [
|
|
72
|
-
|
|
72
|
+
m.value ? (n(), p(A, {
|
|
73
73
|
key: 0,
|
|
74
|
-
isFixed:
|
|
75
|
-
headerClass:
|
|
74
|
+
isFixed: h.value,
|
|
75
|
+
headerClass: _.value
|
|
76
76
|
}, {
|
|
77
|
-
default:
|
|
78
|
-
e.$slots.header ?
|
|
77
|
+
default: u(() => [
|
|
78
|
+
e.$slots.header ? d(e.$slots, "header", { key: 0 }, void 0, !0) : l("", !0)
|
|
79
79
|
]),
|
|
80
80
|
_: 3
|
|
81
81
|
}, 8, ["isFixed", "headerClass"])) : l("", !0),
|
|
82
|
-
V.value ? (
|
|
82
|
+
V.value ? (n(), p(N, {
|
|
83
83
|
key: 1,
|
|
84
|
-
isFixed:
|
|
85
|
-
tabClass:
|
|
84
|
+
isFixed: h.value,
|
|
85
|
+
tabClass: g.value
|
|
86
86
|
}, {
|
|
87
|
-
default:
|
|
88
|
-
e.$slots.tab ?
|
|
87
|
+
default: u(() => [
|
|
88
|
+
e.$slots.tab ? d(e.$slots, "tab", { key: 0 }, void 0, !0) : l("", !0)
|
|
89
89
|
]),
|
|
90
90
|
_: 3
|
|
91
91
|
}, 8, ["isFixed", "tabClass"])) : l("", !0),
|
|
92
|
-
|
|
92
|
+
C.value ? (n(), p(O, {
|
|
93
93
|
key: 2,
|
|
94
|
-
sliderCollapse:
|
|
94
|
+
sliderCollapse: e.sliderCollapse,
|
|
95
95
|
sliderClass: W.value
|
|
96
96
|
}, {
|
|
97
|
-
default:
|
|
98
|
-
e.$slots.slider ?
|
|
97
|
+
default: u(() => [
|
|
98
|
+
e.$slots.slider ? d(e.$slots, "slider", { key: 0 }, void 0, !0) : l("", !0)
|
|
99
99
|
]),
|
|
100
100
|
_: 3
|
|
101
101
|
}, 8, ["sliderCollapse", "sliderClass"])) : l("", !0),
|
|
102
102
|
P(D, { contentClass: w.value }, {
|
|
103
|
-
default:
|
|
104
|
-
|
|
103
|
+
default: u(() => [
|
|
104
|
+
d(e.$slots, "default", {}, void 0, !0)
|
|
105
105
|
]),
|
|
106
106
|
_: 3
|
|
107
107
|
}, 8, ["contentClass"]),
|
|
108
|
-
|
|
108
|
+
v.value ? (n(), p(U, {
|
|
109
109
|
key: 3,
|
|
110
110
|
footerClass: H.value,
|
|
111
|
-
isFixed:
|
|
111
|
+
isFixed: e.fixedFooter
|
|
112
112
|
}, {
|
|
113
|
-
default:
|
|
114
|
-
|
|
113
|
+
default: u(() => [
|
|
114
|
+
b(i).footer ? d(e.$slots, "footer", { key: 0 }, void 0, !0) : l("", !0)
|
|
115
115
|
]),
|
|
116
116
|
_: 3
|
|
117
117
|
}, 8, ["footerClass", "isFixed"])) : l("", !0)
|
|
@@ -120,5 +120,5 @@ const Z = ["id"], te = /* @__PURE__ */ _({
|
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
export {
|
|
123
|
-
|
|
123
|
+
ae as default
|
|
124
124
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseNavIconProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<BaseNavIconProps, {
|
|
3
|
+
instRef: import('vue').Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
4
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
click: (...args: any[]) => void;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<BaseNavIconProps> & Readonly<{
|
|
7
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
active: boolean;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
11
|
+
instRef: HTMLDivElement;
|
|
12
|
+
}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as o, ref as p, createElementBlock as n, openBlock as t, normalizeClass as f, Fragment as m, renderList as u } from "vue";
|
|
2
|
+
const y = /* @__PURE__ */ o({
|
|
3
|
+
__name: "index",
|
|
4
|
+
props: {
|
|
5
|
+
active: { type: Boolean, default: !1 }
|
|
6
|
+
},
|
|
7
|
+
emits: ["click"],
|
|
8
|
+
setup(_, { expose: l, emit: r }) {
|
|
9
|
+
const a = r, s = p(null), c = (e) => {
|
|
10
|
+
a("click", e);
|
|
11
|
+
};
|
|
12
|
+
return l({
|
|
13
|
+
instRef: s
|
|
14
|
+
}), (e, k) => (t(), n("div", {
|
|
15
|
+
ref_key: "instRef",
|
|
16
|
+
ref: s,
|
|
17
|
+
class: f([
|
|
18
|
+
"base-nav-icon",
|
|
19
|
+
{
|
|
20
|
+
"is-toggle": e.active
|
|
21
|
+
}
|
|
22
|
+
]),
|
|
23
|
+
onClick: c
|
|
24
|
+
}, [
|
|
25
|
+
(t(!0), n(m, null, u(Array(3), (d, i) => (t(), n("span", {
|
|
26
|
+
key: i,
|
|
27
|
+
class: "line"
|
|
28
|
+
}))), 128))
|
|
29
|
+
], 2));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
y as default
|
|
34
|
+
};
|