base6-ui 1.1.15 → 1.1.16
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/cssVar.d.ts +10 -0
- package/dist/components/BaseConfigProvider/locale-base.d.ts +2 -2
- package/dist/components/BaseConfigProvider/locale-naive.d.ts +3 -3
- package/dist/components/BaseConfigProvider/type.d.ts +2 -1
- package/dist/components/BaseDataTable/index.vue.d.ts +1 -1
- package/dist/components/BaseDialog/index.vue.d.ts +2 -2
- package/dist/components/BaseInputNumber/index.vue.d.ts +0 -1
- package/dist/components/BaseLayout/Default/index.vue.d.ts +1 -1
- package/dist/components/BaseLayout/Default/type.d.ts +1 -1
- package/dist/components/BaseLayout/index.vue.d.ts +1 -1
- package/dist/components/BaseSelect/index.vue.d.ts +1 -1
- package/dist/components/BaseSteps/index.d.ts +1 -0
- package/dist/components/BaseSteps/steps.d.ts +25 -0
- package/dist/components/BaseTabs/cssVar.d.ts +4 -0
- package/dist/components/BaseTabs/index.d.ts +2 -0
- package/dist/components/BaseTabs/tabs.d.ts +699 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/config/themes/common.d.ts +1 -0
- package/dist/config/themes/components/baseComponent/dark.d.ts +3 -2
- package/dist/config/themes/components/baseComponent/light.d.ts +3 -2
- package/dist/config/themes/components/cascader/common.d.ts +2 -2
- package/dist/config/themes/components/cascader/dark.d.ts +2 -2
- package/dist/config/themes/components/cascader/light.d.ts +2 -2
- package/dist/fonts/MiSans-Medium.ttf +0 -0
- package/dist/fonts/MiSans-Regular.ttf +0 -0
- package/dist/hooks/useAnimationHook.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/themes/components.d.ts +4 -2
- package/dist/types/themes/extendThemes.d.ts +10 -0
- package/dist/utils/render.d.ts +3 -0
- 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/cssVar.d.ts +10 -0
- package/es/components/BaseCascader/cssVar.mjs +13 -0
- package/es/components/BaseCascader/index.vue.mjs +2 -2
- package/es/components/BaseCascader/index.vue2.mjs +19 -13
- package/es/components/BaseConfigProvider/index.vue.mjs +14 -14
- package/es/components/BaseConfigProvider/locale-base.d.ts +2 -2
- package/es/components/BaseConfigProvider/locale-naive.d.ts +3 -3
- package/es/components/BaseConfigProvider/type.d.ts +2 -1
- package/es/components/BaseDataTable/index.vue.d.ts +1 -1
- package/es/components/BaseDataTable/index.vue2.mjs +13 -13
- package/es/components/BaseDialog/index.vue.d.ts +2 -2
- package/es/components/BaseDialog/index.vue.mjs +43 -43
- package/es/components/BaseInputNumber/index.vue.d.ts +0 -1
- package/es/components/BaseInputNumber/index.vue.mjs +1 -1
- package/es/components/BaseInputNumber/index.vue2.mjs +57 -57
- package/es/components/BaseLayout/ASide/index.vue.mjs +2 -2
- 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.vue2.mjs +56 -56
- package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.mjs +30 -30
- package/es/components/BaseLayout/Default/type.d.ts +1 -1
- 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.vue2.mjs +14 -14
- package/es/components/BaseProductIntroduction/index.vue.mjs +2 -2
- package/es/components/BaseProductIntroduction/index.vue2.mjs +71 -71
- package/es/components/BaseRadio/index.vue2.mjs +18 -18
- package/es/components/BaseSelect/index.vue.d.ts +1 -1
- package/es/components/BaseSelect/index.vue.mjs +2 -2
- package/es/components/BaseSelect/index.vue2.mjs +32 -30
- package/es/components/BaseSlider/index.vue2.mjs +44 -44
- package/es/components/BaseSteps/index.d.ts +1 -0
- package/es/components/BaseSteps/steps.d.ts +25 -0
- package/es/components/BaseSteps/steps.mjs +27 -0
- package/es/components/BaseSwitch/index.vue2.mjs +17 -17
- package/es/components/BaseSystemActions/index.vue.mjs +2 -2
- package/es/components/BaseSystemActions/index.vue2.mjs +20 -20
- package/es/components/BaseTabs/cssVar.d.ts +4 -0
- package/es/components/BaseTabs/cssVar.mjs +7 -0
- package/es/components/BaseTabs/index.d.ts +2 -0
- package/es/components/BaseTabs/tabs.d.ts +699 -0
- package/es/components/BaseTabs/tabs.mjs +43 -0
- package/es/components/index.d.ts +2 -0
- package/es/config/themes/common.d.ts +1 -0
- package/es/config/themes/common.mjs +2 -1
- package/es/config/themes/components/baseComponent/dark.d.ts +3 -2
- package/es/config/themes/components/baseComponent/dark.mjs +13 -6
- package/es/config/themes/components/baseComponent/light.d.ts +3 -2
- package/es/config/themes/components/baseComponent/light.mjs +10 -5
- package/es/config/themes/components/button/common.mjs +4 -4
- package/es/config/themes/components/cascader/common.d.ts +2 -2
- package/es/config/themes/components/cascader/common.mjs +4 -2
- package/es/config/themes/components/cascader/dark.d.ts +2 -2
- package/es/config/themes/components/cascader/dark.mjs +6 -2
- package/es/config/themes/components/cascader/light.d.ts +2 -2
- package/es/config/themes/components/cascader/light.mjs +10 -6
- package/es/config/themes/components/dataTable/dark.mjs +2 -0
- package/es/config/themes/components/dataTable/light.mjs +2 -0
- package/es/config/themes/components/input/dark.mjs +1 -1
- package/es/config/themes/components/select/dark.mjs +3 -2
- package/es/config/themes/components/select/light.mjs +1 -0
- package/es/config/themes/components/slider/dark.mjs +2 -1
- package/es/config/themes/components/slider/light.mjs +2 -1
- package/es/fonts/MiSans-Medium.ttf +0 -0
- package/es/fonts/MiSans-Regular.ttf +0 -0
- package/es/hooks/useAnimationHook.d.ts +1 -1
- package/es/hooks/useAnimationHook.mjs +17 -14
- package/es/index.css +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +59 -52
- package/es/locale/lang/en-us.mjs +2 -2
- package/es/locale/lang/zh-cn.mjs +2 -2
- package/es/node_modules/.pnpm/{@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_core@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/core/index.mjs +1 -1
- package/es/types/themes/components.d.ts +4 -2
- package/es/types/themes/extendThemes.d.ts +10 -0
- package/es/utils/render.d.ts +3 -0
- package/es/utils/render.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/cssVar.d.ts +10 -0
- package/lib/components/BaseCascader/cssVar.js +1 -0
- package/lib/components/BaseCascader/index.vue.js +1 -1
- package/lib/components/BaseCascader/index.vue2.js +1 -1
- package/lib/components/BaseConfigProvider/index.vue.js +1 -1
- package/lib/components/BaseConfigProvider/locale-base.d.ts +2 -2
- package/lib/components/BaseConfigProvider/locale-naive.d.ts +3 -3
- package/lib/components/BaseConfigProvider/type.d.ts +2 -1
- package/lib/components/BaseDataTable/index.vue.d.ts +1 -1
- package/lib/components/BaseDataTable/index.vue2.js +1 -1
- package/lib/components/BaseDialog/index.vue.d.ts +2 -2
- package/lib/components/BaseDialog/index.vue.js +1 -1
- package/lib/components/BaseInputNumber/index.vue.d.ts +0 -1
- package/lib/components/BaseInputNumber/index.vue.js +1 -1
- package/lib/components/BaseInputNumber/index.vue2.js +1 -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/Default/index.vue.d.ts +1 -1
- package/lib/components/BaseLayout/Default/index.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/type.d.ts +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.vue2.js +1 -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.vue.d.ts +1 -1
- package/lib/components/BaseSelect/index.vue.js +1 -1
- package/lib/components/BaseSelect/index.vue2.js +1 -1
- package/lib/components/BaseSlider/index.vue2.js +1 -1
- package/lib/components/BaseSteps/index.d.ts +1 -0
- package/lib/components/BaseSteps/steps.d.ts +25 -0
- package/lib/components/BaseSteps/steps.js +1 -0
- package/lib/components/BaseSwitch/index.vue2.js +1 -1
- package/lib/components/BaseSystemActions/index.vue.js +1 -1
- package/lib/components/BaseSystemActions/index.vue2.js +1 -1
- package/lib/components/BaseTabs/cssVar.d.ts +4 -0
- package/lib/components/BaseTabs/cssVar.js +1 -0
- package/lib/components/BaseTabs/index.d.ts +2 -0
- package/lib/components/BaseTabs/tabs.d.ts +699 -0
- package/lib/components/BaseTabs/tabs.js +1 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/config/themes/common.d.ts +1 -0
- package/lib/config/themes/common.js +1 -1
- package/lib/config/themes/components/baseComponent/dark.d.ts +3 -2
- package/lib/config/themes/components/baseComponent/dark.js +1 -1
- package/lib/config/themes/components/baseComponent/light.d.ts +3 -2
- package/lib/config/themes/components/baseComponent/light.js +1 -1
- package/lib/config/themes/components/button/common.js +1 -1
- package/lib/config/themes/components/cascader/common.d.ts +2 -2
- package/lib/config/themes/components/cascader/common.js +1 -1
- package/lib/config/themes/components/cascader/dark.d.ts +2 -2
- package/lib/config/themes/components/cascader/dark.js +1 -1
- package/lib/config/themes/components/cascader/light.d.ts +2 -2
- package/lib/config/themes/components/cascader/light.js +1 -1
- package/lib/config/themes/components/dataTable/dark.js +1 -1
- package/lib/config/themes/components/dataTable/light.js +1 -1
- package/lib/config/themes/components/input/dark.js +1 -1
- package/lib/config/themes/components/select/dark.js +1 -1
- package/lib/config/themes/components/select/light.js +1 -1
- package/lib/config/themes/components/slider/dark.js +1 -1
- package/lib/config/themes/components/slider/light.js +1 -1
- package/lib/fonts/MiSans-Medium.ttf +0 -0
- package/lib/fonts/MiSans-Regular.ttf +0 -0
- package/lib/hooks/useAnimationHook.d.ts +1 -1
- package/lib/hooks/useAnimationHook.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/locale/lang/en-us.js +1 -1
- package/lib/locale/lang/zh-cn.js +1 -1
- package/lib/node_modules/.pnpm/{@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_core@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/core/index.js +1 -1
- package/lib/types/themes/components.d.ts +4 -2
- package/lib/types/themes/extendThemes.d.ts +10 -0
- package/lib/utils/render.d.ts +3 -0
- package/lib/utils/render.js +1 -0
- package/package.json +3 -1
- /package/es/node_modules/.pnpm/{@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_shared@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/shared/index.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_shared@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/shared/index.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { createReusableTemplate as E } from "../../../../../node_modules/.pnpm/@vueuse_core@13.0.0_vue@3.5.
|
|
3
|
-
const F = { class: "w-full ellipsis-text text-center text-[12px]" }, K = { class: "h-full flex-col-stretch flex-1-hidden" }, z = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as h, useCssVars as _, computed as g, resolveComponent as B, createElementBlock as n, openBlock as l, Fragment as c, createVNode as p, createElementVNode as r, unref as u, withCtx as d, normalizeClass as S, createBlock as m, resolveDynamicComponent as I, toDisplayString as D, renderSlot as V, renderList as w } from "vue";
|
|
2
|
+
import { createReusableTemplate as E } from "../../../../../node_modules/.pnpm/@vueuse_core@13.0.0_vue@3.5.22_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__ */ h({
|
|
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(o, { emit: x }) {
|
|
16
|
+
_((t) => ({
|
|
17
|
+
v6a6cfcc8: b.value
|
|
18
18
|
}));
|
|
19
|
-
const [
|
|
20
|
-
const { darkMode:
|
|
21
|
-
return
|
|
22
|
-
}),
|
|
23
|
-
y("select",
|
|
19
|
+
const [f, v] = E(), C = o, y = x, b = g(() => {
|
|
20
|
+
const { darkMode: t } = C;
|
|
21
|
+
return t ? "#000" : "#fff";
|
|
22
|
+
}), k = (t) => {
|
|
23
|
+
y("select", t);
|
|
24
24
|
};
|
|
25
|
-
return (
|
|
26
|
-
const
|
|
27
|
-
return l(),
|
|
28
|
-
|
|
29
|
-
default:
|
|
25
|
+
return (t, L) => {
|
|
26
|
+
const M = B("SimpleScrollbar");
|
|
27
|
+
return l(), n(c, null, [
|
|
28
|
+
p(u(f), null, {
|
|
29
|
+
default: d(({ label: e, icon: s, activeIcon: a, active: i }) => [
|
|
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": i
|
|
33
33
|
}])
|
|
34
34
|
}, [
|
|
35
|
-
(l(),
|
|
36
|
-
r("p", F, D(
|
|
35
|
+
(l(), m(I(i && a ? a : s))),
|
|
36
|
+
r("p", F, D(e), 1)
|
|
37
37
|
], 2)
|
|
38
38
|
]),
|
|
39
39
|
_: 1
|
|
40
40
|
}),
|
|
41
41
|
r("div", K, [
|
|
42
|
-
V(
|
|
43
|
-
|
|
44
|
-
default:
|
|
45
|
-
(l(!0),
|
|
46
|
-
(l(),
|
|
47
|
-
key:
|
|
48
|
-
label:
|
|
49
|
-
icon:
|
|
50
|
-
active:
|
|
51
|
-
activeIcon:
|
|
52
|
-
onClick: (
|
|
42
|
+
V(t.$slots, "default", {}, void 0, !0),
|
|
43
|
+
p(M, null, {
|
|
44
|
+
default: d(() => [
|
|
45
|
+
(l(!0), n(c, null, w(o.menus, (e) => (l(), n(c, null, [
|
|
46
|
+
(l(), m(u(v), {
|
|
47
|
+
key: e.key,
|
|
48
|
+
label: e.label,
|
|
49
|
+
icon: e.icon,
|
|
50
|
+
active: e.key === o.activeMenuKey,
|
|
51
|
+
activeIcon: e.activeIcon,
|
|
52
|
+
onClick: (s) => k(e)
|
|
53
53
|
}, null, 8, ["label", "icon", "active", "activeIcon", "onClick"]))
|
|
54
54
|
], 64))), 256))
|
|
55
55
|
]),
|
|
@@ -34,7 +34,7 @@ export type BaseLayoutProviderType = {
|
|
|
34
34
|
toggleLogo: () => void;
|
|
35
35
|
toggleMenuItem: (key: string, item: MenuOption) => void;
|
|
36
36
|
toggleMixMenuItem: (key: string, item: MenuOption) => void;
|
|
37
|
-
toggleSystemTheme: () => void;
|
|
37
|
+
toggleSystemTheme: (e: MouseEvent) => void;
|
|
38
38
|
toggleSystemLang: () => void;
|
|
39
39
|
toggleUserItem: (key: string | number, option: DropdownOption) => void;
|
|
40
40
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as c, computed as u, createElementBlock as i, openBlock as f, Fragment as p, createElementVNode as r, withDirectives as m, normalizeClass as l, renderSlot as d, vShow as h } from "vue";
|
|
2
|
+
import t from "../index.module.css.mjs";
|
|
3
|
+
const y = /* @__PURE__ */ c({
|
|
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(o) {
|
|
11
|
+
const s = o, a = u(() => {
|
|
12
12
|
const e = [];
|
|
13
|
-
return e.push(
|
|
13
|
+
return e.push(t["layout-footer"]), e.push(s.footerClass), s.isFixed && e.push(t["layout-footer-fixed"]), e;
|
|
14
14
|
}), n = [
|
|
15
|
-
|
|
15
|
+
t["layout-footer-placement"]
|
|
16
16
|
];
|
|
17
|
-
return (e, C) => (
|
|
18
|
-
|
|
19
|
-
class:
|
|
17
|
+
return (e, C) => (f(), i(p, null, [
|
|
18
|
+
r("footer", {
|
|
19
|
+
class: l(a.value)
|
|
20
20
|
}, [
|
|
21
21
|
d(e.$slots, "default")
|
|
22
22
|
], 2),
|
|
23
|
-
m(
|
|
24
|
-
class:
|
|
23
|
+
m(r("div", {
|
|
24
|
+
class: l(n)
|
|
25
25
|
}, null, 512), [
|
|
26
|
-
[h,
|
|
26
|
+
[h, o.isFixed]
|
|
27
27
|
])
|
|
28
28
|
], 64));
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
y 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 c, openBlock as i, Fragment as p, createElementVNode as l, 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(s) {
|
|
10
|
+
const t = s, o = u(() => {
|
|
11
11
|
const e = [];
|
|
12
|
-
return e.push(a["layout-header"]),
|
|
12
|
+
return e.push(a["layout-header"]), t.isFixed && e.push(a["layout-header-is-fixed"]), e.push(t.headerClass), e;
|
|
13
13
|
}), n = [a["layout-header-placement"]];
|
|
14
|
-
return (e, y) => (
|
|
15
|
-
|
|
14
|
+
return (e, y) => (i(), c(p, null, [
|
|
15
|
+
l("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(l("div", {
|
|
21
21
|
class: r(n)
|
|
22
22
|
}, null, 512), [
|
|
23
|
-
[f,
|
|
23
|
+
[f, s.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 d, Fragment as p, createElementVNode as l, withDirectives as m, normalizeClass as o, renderSlot as f, vShow as b } from "vue";
|
|
2
2
|
import t from "../index.module.css.mjs";
|
|
3
|
-
const
|
|
3
|
+
const C = /* @__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(a) {
|
|
11
|
+
const s = a, n = c(() => {
|
|
12
12
|
const e = [];
|
|
13
|
-
return e.push(t["layout-tab"]),
|
|
13
|
+
return e.push(t["layout-tab"]), s.isFixed && e.push(t["layout-tab-is-fixed"]), e.push(s.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) => (d(), u(p, null, [
|
|
19
|
+
l("div", {
|
|
20
|
+
class: o(n.value)
|
|
21
21
|
}, [
|
|
22
22
|
f(e.$slots, "default")
|
|
23
23
|
], 2),
|
|
24
|
-
m(
|
|
25
|
-
class:
|
|
24
|
+
m(l("div", {
|
|
25
|
+
class: o(r)
|
|
26
26
|
}, null, 512), [
|
|
27
|
-
[b,
|
|
27
|
+
[b, a.isFixed]
|
|
28
28
|
])
|
|
29
29
|
], 64));
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
C as default
|
|
34
34
|
};
|
|
@@ -16,9 +16,9 @@ declare const __VLS_component: import('vue').DefineComponent<LayoutProps, {}, {}
|
|
|
16
16
|
contentClass: string;
|
|
17
17
|
headerClass: string;
|
|
18
18
|
footerClass: string;
|
|
19
|
+
tabClass: string;
|
|
19
20
|
headerHeight: number;
|
|
20
21
|
mode: import('./type').LayoutMode;
|
|
21
|
-
tabClass: string;
|
|
22
22
|
sliderCollapse: boolean;
|
|
23
23
|
sliderClass: string;
|
|
24
24
|
tabHeight: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as _, mergeDefaults as E, useSlots as T, computed as o, createElementBlock as j, openBlock as u, normalizeStyle as z, createElementVNode as G, normalizeClass as M, unref as B, createBlock as p, createCommentVNode as l, createVNode as P, withCtx as d, renderSlot as c } 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"], te = /* @__PURE__ */ _({
|
|
11
11
|
name: "LayoutMaterial",
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: /* @__PURE__ */ E({
|
|
@@ -38,80 +38,80 @@ const Z = ["id"], ae = /* @__PURE__ */ x({
|
|
|
38
38
|
footerIsFullWidth: { type: Boolean },
|
|
39
39
|
footerHeight: {}
|
|
40
40
|
}, R),
|
|
41
|
-
setup(
|
|
42
|
-
const
|
|
43
|
-
const e =
|
|
44
|
-
return e ||
|
|
41
|
+
setup(i) {
|
|
42
|
+
const n = T(), s = i, F = o(() => Y(s)), C = o(() => !!n.header && s.headerVisible), V = o(() => !!n.tab && s.tabVisible), v = o(() => !!n.slider && s.sliderVisible), h = o(() => !!n.footer && s.footerVisible), m = o(() => s.mode === "vertical"), a = o(() => s.mode === "horizontal"), f = o(() => s.scrollMode === "wrapper"), $ = o(() => s.scrollMode === "content"), y = o(() => s.fixedTop || a.value && f.value), t = o(() => v.value ? s.sliderCollapse ? r["left-gap-collapsed"] : r["left-gap-full"] : ""), k = o(() => m.value ? t.value : ""), L = o(() => {
|
|
43
|
+
const e = m.value, b = a.value && f.value && !s.fixedFooter, I = !!(a.value && !s.footerIsFullWidth);
|
|
44
|
+
return e || b || I ? t.value : "";
|
|
45
45
|
}), S = o(() => {
|
|
46
46
|
let e = "";
|
|
47
|
-
return
|
|
48
|
-
}),
|
|
47
|
+
return C.value && a.value && (e += r["slider-padding-top"]), h.value && !L.value && (e += ` ${r["slider-padding-bottom"]}`), e;
|
|
48
|
+
}), g = o(() => {
|
|
49
49
|
const e = [];
|
|
50
50
|
return e.push(k.value), e.push(s.commonClass), e.push(s.headerClass), e.join(" ");
|
|
51
|
-
}),
|
|
51
|
+
}), x = o(() => {
|
|
52
52
|
const e = [];
|
|
53
|
-
return e.push(
|
|
53
|
+
return e.push(t.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(t.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 m.value && e.push(t.value), a.value && f.value && !s.fixedFooter && e.push(t.value), a.value && !s.footerIsFullWidth && e.push(t.value), e.push(s.commonClass), e.push(s.footerClass), e.join(" ");
|
|
63
63
|
});
|
|
64
|
-
return (e,
|
|
64
|
+
return (e, b) => (u(), 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: i.scrollElId ? i.scrollElId : void 0,
|
|
70
|
+
class: M(["layout-content", f.value ? B(r)["overflow-y-auto"] : ""])
|
|
71
71
|
}, [
|
|
72
|
-
|
|
72
|
+
C.value ? (u(), p(A, {
|
|
73
73
|
key: 0,
|
|
74
|
-
isFixed:
|
|
75
|
-
headerClass:
|
|
74
|
+
isFixed: y.value,
|
|
75
|
+
headerClass: g.value
|
|
76
76
|
}, {
|
|
77
|
-
default:
|
|
78
|
-
e.$slots.header ?
|
|
77
|
+
default: d(() => [
|
|
78
|
+
e.$slots.header ? c(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 ? (u(), p(N, {
|
|
83
83
|
key: 1,
|
|
84
|
-
isFixed:
|
|
85
|
-
tabClass:
|
|
84
|
+
isFixed: y.value,
|
|
85
|
+
tabClass: x.value
|
|
86
86
|
}, {
|
|
87
|
-
default:
|
|
88
|
-
e.$slots.tab ?
|
|
87
|
+
default: d(() => [
|
|
88
|
+
e.$slots.tab ? c(e.$slots, "tab", { key: 0 }, void 0, !0) : l("", !0)
|
|
89
89
|
]),
|
|
90
90
|
_: 3
|
|
91
91
|
}, 8, ["isFixed", "tabClass"])) : l("", !0),
|
|
92
|
-
|
|
92
|
+
v.value ? (u(), p(O, {
|
|
93
93
|
key: 2,
|
|
94
|
-
sliderCollapse:
|
|
94
|
+
sliderCollapse: i.sliderCollapse,
|
|
95
95
|
sliderClass: W.value
|
|
96
96
|
}, {
|
|
97
|
-
default:
|
|
98
|
-
e.$slots.slider ?
|
|
97
|
+
default: d(() => [
|
|
98
|
+
e.$slots.slider ? c(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: d(() => [
|
|
104
|
+
c(e.$slots, "default", {}, void 0, !0)
|
|
105
105
|
]),
|
|
106
106
|
_: 3
|
|
107
107
|
}, 8, ["contentClass"]),
|
|
108
|
-
|
|
108
|
+
h.value ? (u(), p(U, {
|
|
109
109
|
key: 3,
|
|
110
110
|
footerClass: H.value,
|
|
111
|
-
isFixed:
|
|
111
|
+
isFixed: i.fixedFooter
|
|
112
112
|
}, {
|
|
113
|
-
default:
|
|
114
|
-
|
|
113
|
+
default: d(() => [
|
|
114
|
+
B(n).footer ? c(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"], ae = /* @__PURE__ */ x({
|
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
export {
|
|
123
|
-
|
|
123
|
+
te as default
|
|
124
124
|
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as f, ref as m, createElementBlock as e, openBlock as n, normalizeClass as p, Fragment as u, renderList as k } from "vue";
|
|
2
|
+
const x = /* @__PURE__ */ f({
|
|
3
3
|
__name: "index",
|
|
4
4
|
props: {
|
|
5
5
|
active: { type: Boolean, default: !1 }
|
|
6
6
|
},
|
|
7
7
|
emits: ["click"],
|
|
8
|
-
setup(
|
|
9
|
-
const
|
|
10
|
-
|
|
8
|
+
setup(c, { expose: l, emit: a }) {
|
|
9
|
+
const i = a, t = m(null), r = (s) => {
|
|
10
|
+
i("click", s);
|
|
11
11
|
};
|
|
12
12
|
return l({
|
|
13
|
-
instRef:
|
|
14
|
-
}), (
|
|
13
|
+
instRef: t
|
|
14
|
+
}), (s, _) => (n(), e("div", {
|
|
15
15
|
ref_key: "instRef",
|
|
16
|
-
ref:
|
|
17
|
-
class:
|
|
16
|
+
ref: t,
|
|
17
|
+
class: p([
|
|
18
18
|
"base-nav-icon",
|
|
19
19
|
{
|
|
20
|
-
"is-toggle":
|
|
20
|
+
"is-toggle": c.active
|
|
21
21
|
}
|
|
22
22
|
]),
|
|
23
|
-
onClick:
|
|
23
|
+
onClick: r
|
|
24
24
|
}, [
|
|
25
|
-
(
|
|
26
|
-
key:
|
|
25
|
+
(n(!0), e(u, null, k(Array(3), (d, o) => (n(), e("span", {
|
|
26
|
+
key: o,
|
|
27
27
|
class: "line"
|
|
28
28
|
}))), 128))
|
|
29
29
|
], 2));
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
x as default
|
|
34
34
|
};
|
|
@@ -2,7 +2,7 @@ import o from "./index.vue2.mjs";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-91e78c3d"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|