base6-ui 1.1.15 → 2.0.0

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.
Files changed (203) hide show
  1. package/dist/components/BaseCascader/cssVar.d.ts +10 -0
  2. package/dist/components/BaseConfigProvider/locale-base.d.ts +2 -2
  3. package/dist/components/BaseConfigProvider/locale-naive.d.ts +3 -3
  4. package/dist/components/BaseConfigProvider/type.d.ts +3 -2
  5. package/dist/components/BaseDataTable/index.vue.d.ts +1 -1
  6. package/dist/components/BaseDialog/index.vue.d.ts +2 -2
  7. package/dist/components/BaseInputNumber/index.vue.d.ts +0 -1
  8. package/dist/components/BaseLayout/Default/index.vue.d.ts +1 -1
  9. package/dist/components/BaseLayout/Default/type.d.ts +1 -1
  10. package/dist/components/BaseLayout/index.vue.d.ts +1 -1
  11. package/dist/components/BaseSelect/index.vue.d.ts +1 -1
  12. package/dist/components/BaseSteps/index.d.ts +1 -0
  13. package/dist/components/BaseSteps/steps.d.ts +25 -0
  14. package/dist/components/BaseTabs/cssVar.d.ts +4 -0
  15. package/dist/components/BaseTabs/index.d.ts +2 -0
  16. package/dist/components/BaseTabs/tabs.d.ts +699 -0
  17. package/dist/components/index.d.ts +2 -0
  18. package/dist/config/themes/common.d.ts +1 -0
  19. package/dist/config/themes/components/baseComponent/dark.d.ts +3 -2
  20. package/dist/config/themes/components/baseComponent/light.d.ts +3 -2
  21. package/dist/config/themes/components/cascader/common.d.ts +2 -2
  22. package/dist/config/themes/components/cascader/dark.d.ts +2 -2
  23. package/dist/config/themes/components/cascader/light.d.ts +2 -2
  24. package/dist/fonts/MiSans-Medium.ttf +0 -0
  25. package/dist/fonts/MiSans-Regular.ttf +0 -0
  26. package/dist/hooks/useAnimationHook.d.ts +1 -1
  27. package/dist/index.css +1 -1
  28. package/dist/index.d.ts +1 -0
  29. package/dist/index.umd.js +1 -1
  30. package/dist/types/themes/components.d.ts +4 -2
  31. package/dist/types/themes/extendThemes.d.ts +10 -0
  32. package/dist/utils/render.d.ts +3 -0
  33. package/es/_virtual/virtual_svg-icons-register.mjs +1 -1
  34. package/es/assets/logo/logo-dark-full.svg.mjs +2 -2
  35. package/es/assets/logo/logo-light-full.svg.mjs +2 -2
  36. package/es/components/BaseButton/index.vue.mjs +14 -14
  37. package/es/components/BaseCascader/cssVar.d.ts +10 -0
  38. package/es/components/BaseCascader/cssVar.mjs +13 -0
  39. package/es/components/BaseCascader/index.vue.mjs +2 -2
  40. package/es/components/BaseCascader/index.vue2.mjs +19 -13
  41. package/es/components/BaseConfigProvider/index.vue.mjs +14 -14
  42. package/es/components/BaseConfigProvider/locale-base.d.ts +2 -2
  43. package/es/components/BaseConfigProvider/locale-naive.d.ts +3 -3
  44. package/es/components/BaseConfigProvider/type.d.ts +3 -2
  45. package/es/components/BaseDataTable/index.vue.d.ts +1 -1
  46. package/es/components/BaseDataTable/index.vue2.mjs +13 -13
  47. package/es/components/BaseDialog/index.vue.d.ts +2 -2
  48. package/es/components/BaseDialog/index.vue.mjs +43 -43
  49. package/es/components/BaseInputNumber/index.vue.d.ts +0 -1
  50. package/es/components/BaseInputNumber/index.vue.mjs +1 -1
  51. package/es/components/BaseInputNumber/index.vue2.mjs +57 -57
  52. package/es/components/BaseLayout/ASide/index.vue.mjs +2 -2
  53. package/es/components/BaseLayout/ASide/index.vue2.mjs +27 -27
  54. package/es/components/BaseLayout/Default/index.vue.d.ts +1 -1
  55. package/es/components/BaseLayout/Default/index.vue2.mjs +56 -56
  56. package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.mjs +30 -30
  57. package/es/components/BaseLayout/Default/type.d.ts +1 -1
  58. package/es/components/BaseLayout/components/WrapFooter.vue.mjs +14 -14
  59. package/es/components/BaseLayout/components/WrapHeader.vue2.mjs +8 -8
  60. package/es/components/BaseLayout/components/WrapTab.vue.mjs +12 -12
  61. package/es/components/BaseLayout/index.vue.d.ts +1 -1
  62. package/es/components/BaseLayout/index.vue2.mjs +36 -36
  63. package/es/components/BaseNavIcon/index.vue2.mjs +14 -14
  64. package/es/components/BaseProductIntroduction/index.vue.mjs +2 -2
  65. package/es/components/BaseProductIntroduction/index.vue2.mjs +71 -71
  66. package/es/components/BaseRadio/index.vue2.mjs +18 -18
  67. package/es/components/BaseSelect/index.vue.d.ts +1 -1
  68. package/es/components/BaseSelect/index.vue.mjs +2 -2
  69. package/es/components/BaseSelect/index.vue2.mjs +32 -30
  70. package/es/components/BaseSlider/index.vue2.mjs +44 -44
  71. package/es/components/BaseSteps/index.d.ts +1 -0
  72. package/es/components/BaseSteps/steps.d.ts +25 -0
  73. package/es/components/BaseSteps/steps.mjs +27 -0
  74. package/es/components/BaseSwitch/index.vue2.mjs +17 -17
  75. package/es/components/BaseSystemActions/index.vue.mjs +2 -2
  76. package/es/components/BaseSystemActions/index.vue2.mjs +20 -20
  77. package/es/components/BaseTabs/cssVar.d.ts +4 -0
  78. package/es/components/BaseTabs/cssVar.mjs +7 -0
  79. package/es/components/BaseTabs/index.d.ts +2 -0
  80. package/es/components/BaseTabs/tabs.d.ts +699 -0
  81. package/es/components/BaseTabs/tabs.mjs +43 -0
  82. package/es/components/index.d.ts +2 -0
  83. package/es/config/themes/common.d.ts +1 -0
  84. package/es/config/themes/common.mjs +2 -1
  85. package/es/config/themes/components/baseComponent/dark.d.ts +3 -2
  86. package/es/config/themes/components/baseComponent/dark.mjs +13 -6
  87. package/es/config/themes/components/baseComponent/light.d.ts +3 -2
  88. package/es/config/themes/components/baseComponent/light.mjs +10 -5
  89. package/es/config/themes/components/button/common.mjs +4 -4
  90. package/es/config/themes/components/cascader/common.d.ts +2 -2
  91. package/es/config/themes/components/cascader/common.mjs +4 -2
  92. package/es/config/themes/components/cascader/dark.d.ts +2 -2
  93. package/es/config/themes/components/cascader/dark.mjs +6 -2
  94. package/es/config/themes/components/cascader/light.d.ts +2 -2
  95. package/es/config/themes/components/cascader/light.mjs +10 -6
  96. package/es/config/themes/components/dataTable/dark.mjs +2 -0
  97. package/es/config/themes/components/dataTable/light.mjs +2 -0
  98. package/es/config/themes/components/input/dark.mjs +1 -1
  99. package/es/config/themes/components/select/dark.mjs +3 -2
  100. package/es/config/themes/components/select/light.mjs +1 -0
  101. package/es/config/themes/components/slider/dark.mjs +2 -1
  102. package/es/config/themes/components/slider/light.mjs +2 -1
  103. package/es/fonts/MiSans-Medium.ttf +0 -0
  104. package/es/fonts/MiSans-Regular.ttf +0 -0
  105. package/es/hooks/useAnimationHook.d.ts +1 -1
  106. package/es/hooks/useAnimationHook.mjs +17 -14
  107. package/es/index.css +1 -1
  108. package/es/index.d.ts +1 -0
  109. package/es/index.mjs +59 -52
  110. package/es/locale/lang/en-us.mjs +2 -2
  111. package/es/locale/lang/zh-cn.mjs +2 -2
  112. 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
  113. package/es/types/themes/components.d.ts +4 -2
  114. package/es/types/themes/extendThemes.d.ts +10 -0
  115. package/es/utils/render.d.ts +3 -0
  116. package/es/utils/render.mjs +9 -0
  117. package/lib/_virtual/virtual_svg-icons-register.js +1 -1
  118. package/lib/assets/logo/logo-dark-full.svg.js +1 -1
  119. package/lib/assets/logo/logo-light-full.svg.js +1 -1
  120. package/lib/components/BaseButton/index.vue.js +1 -1
  121. package/lib/components/BaseCascader/cssVar.d.ts +10 -0
  122. package/lib/components/BaseCascader/cssVar.js +1 -0
  123. package/lib/components/BaseCascader/index.vue.js +1 -1
  124. package/lib/components/BaseCascader/index.vue2.js +1 -1
  125. package/lib/components/BaseConfigProvider/index.vue.js +1 -1
  126. package/lib/components/BaseConfigProvider/locale-base.d.ts +2 -2
  127. package/lib/components/BaseConfigProvider/locale-naive.d.ts +3 -3
  128. package/lib/components/BaseConfigProvider/type.d.ts +3 -2
  129. package/lib/components/BaseDataTable/index.vue.d.ts +1 -1
  130. package/lib/components/BaseDataTable/index.vue2.js +1 -1
  131. package/lib/components/BaseDialog/index.vue.d.ts +2 -2
  132. package/lib/components/BaseDialog/index.vue.js +1 -1
  133. package/lib/components/BaseInputNumber/index.vue.d.ts +0 -1
  134. package/lib/components/BaseInputNumber/index.vue.js +1 -1
  135. package/lib/components/BaseInputNumber/index.vue2.js +1 -1
  136. package/lib/components/BaseLayout/ASide/index.vue.js +1 -1
  137. package/lib/components/BaseLayout/ASide/index.vue2.js +1 -1
  138. package/lib/components/BaseLayout/Default/index.vue.d.ts +1 -1
  139. package/lib/components/BaseLayout/Default/index.vue2.js +1 -1
  140. package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.js +1 -1
  141. package/lib/components/BaseLayout/Default/type.d.ts +1 -1
  142. package/lib/components/BaseLayout/components/WrapFooter.vue.js +1 -1
  143. package/lib/components/BaseLayout/components/WrapHeader.vue2.js +1 -1
  144. package/lib/components/BaseLayout/components/WrapTab.vue.js +1 -1
  145. package/lib/components/BaseLayout/index.vue.d.ts +1 -1
  146. package/lib/components/BaseLayout/index.vue2.js +1 -1
  147. package/lib/components/BaseNavIcon/index.vue2.js +1 -1
  148. package/lib/components/BaseProductIntroduction/index.vue.js +1 -1
  149. package/lib/components/BaseProductIntroduction/index.vue2.js +1 -1
  150. package/lib/components/BaseRadio/index.vue2.js +1 -1
  151. package/lib/components/BaseSelect/index.vue.d.ts +1 -1
  152. package/lib/components/BaseSelect/index.vue.js +1 -1
  153. package/lib/components/BaseSelect/index.vue2.js +1 -1
  154. package/lib/components/BaseSlider/index.vue2.js +1 -1
  155. package/lib/components/BaseSteps/index.d.ts +1 -0
  156. package/lib/components/BaseSteps/steps.d.ts +25 -0
  157. package/lib/components/BaseSteps/steps.js +1 -0
  158. package/lib/components/BaseSwitch/index.vue2.js +1 -1
  159. package/lib/components/BaseSystemActions/index.vue.js +1 -1
  160. package/lib/components/BaseSystemActions/index.vue2.js +1 -1
  161. package/lib/components/BaseTabs/cssVar.d.ts +4 -0
  162. package/lib/components/BaseTabs/cssVar.js +1 -0
  163. package/lib/components/BaseTabs/index.d.ts +2 -0
  164. package/lib/components/BaseTabs/tabs.d.ts +699 -0
  165. package/lib/components/BaseTabs/tabs.js +1 -0
  166. package/lib/components/index.d.ts +2 -0
  167. package/lib/config/themes/common.d.ts +1 -0
  168. package/lib/config/themes/common.js +1 -1
  169. package/lib/config/themes/components/baseComponent/dark.d.ts +3 -2
  170. package/lib/config/themes/components/baseComponent/dark.js +1 -1
  171. package/lib/config/themes/components/baseComponent/light.d.ts +3 -2
  172. package/lib/config/themes/components/baseComponent/light.js +1 -1
  173. package/lib/config/themes/components/button/common.js +1 -1
  174. package/lib/config/themes/components/cascader/common.d.ts +2 -2
  175. package/lib/config/themes/components/cascader/common.js +1 -1
  176. package/lib/config/themes/components/cascader/dark.d.ts +2 -2
  177. package/lib/config/themes/components/cascader/dark.js +1 -1
  178. package/lib/config/themes/components/cascader/light.d.ts +2 -2
  179. package/lib/config/themes/components/cascader/light.js +1 -1
  180. package/lib/config/themes/components/dataTable/dark.js +1 -1
  181. package/lib/config/themes/components/dataTable/light.js +1 -1
  182. package/lib/config/themes/components/input/dark.js +1 -1
  183. package/lib/config/themes/components/select/dark.js +1 -1
  184. package/lib/config/themes/components/select/light.js +1 -1
  185. package/lib/config/themes/components/slider/dark.js +1 -1
  186. package/lib/config/themes/components/slider/light.js +1 -1
  187. package/lib/fonts/MiSans-Medium.ttf +0 -0
  188. package/lib/fonts/MiSans-Regular.ttf +0 -0
  189. package/lib/hooks/useAnimationHook.d.ts +1 -1
  190. package/lib/hooks/useAnimationHook.js +1 -1
  191. package/lib/index.css +1 -1
  192. package/lib/index.d.ts +1 -0
  193. package/lib/index.js +1 -1
  194. package/lib/locale/lang/en-us.js +1 -1
  195. package/lib/locale/lang/zh-cn.js +1 -1
  196. 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
  197. package/lib/types/themes/components.d.ts +4 -2
  198. package/lib/types/themes/extendThemes.d.ts +10 -0
  199. package/lib/utils/render.d.ts +3 -0
  200. package/lib/utils/render.js +1 -0
  201. package/package.json +3 -1
  202. /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
  203. /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 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
- 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__ */ M({
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(m, { emit: f }) {
16
- h((e) => ({
17
- "6a6cfcc8": _.value
15
+ setup(o, { emit: x }) {
16
+ _((t) => ({
17
+ v6a6cfcc8: b.value
18
18
  }));
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);
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 (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 }) => [
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": a
32
+ "text-primary selected-mix-menu": i
33
33
  }])
34
34
  }, [
35
- (l(), d(I(a && s ? s : c))),
36
- r("p", F, D(t), 1)
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(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)
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 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({
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(l) {
11
- const t = l, a = c(() => {
10
+ setup(o) {
11
+ const s = o, a = u(() => {
12
12
  const e = [];
13
- return e.push(o["layout-footer"]), e.push(t.footerClass), t.isFixed && e.push(o["layout-footer-fixed"]), e;
13
+ return e.push(t["layout-footer"]), e.push(s.footerClass), s.isFixed && e.push(t["layout-footer-fixed"]), e;
14
14
  }), n = [
15
- o["layout-footer-placement"]
15
+ t["layout-footer-placement"]
16
16
  ];
17
- return (e, C) => (p(), i(f, null, [
18
- s("footer", {
19
- class: r(a.value)
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(s("div", {
24
- class: r(n)
23
+ m(r("div", {
24
+ class: l(n)
25
25
  }, null, 512), [
26
- [h, e.isFixed]
26
+ [h, o.isFixed]
27
27
  ])
28
28
  ], 64));
29
29
  }
30
30
  });
31
31
  export {
32
- v as default
32
+ y as default
33
33
  };
@@ -1,4 +1,4 @@
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";
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(l) {
10
- const s = l, o = u(() => {
9
+ setup(s) {
10
+ const t = s, o = u(() => {
11
11
  const e = [];
12
- return e.push(a["layout-header"]), s.isFixed && e.push(a["layout-header-is-fixed"]), e.push(s.headerClass), e;
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) => (c(), i(p, null, [
15
- t("header", {
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(t("div", {
20
+ h(l("div", {
21
21
  class: r(n)
22
22
  }, null, 512), [
23
- [f, e.isFixed]
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 p, Fragment as d, createElementVNode as s, withDirectives as m, normalizeClass as l, renderSlot as f, vShow as b } from "vue";
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 x = /* @__PURE__ */ i({
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(o) {
11
- const a = o, n = c(() => {
10
+ setup(a) {
11
+ const s = a, n = c(() => {
12
12
  const e = [];
13
- return e.push(t["layout-tab"]), a.isFixed && e.push(t["layout-tab-is-fixed"]), e.push(a.tabClass), e;
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) => (p(), u(d, null, [
19
- s("div", {
20
- class: l(n.value)
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(s("div", {
25
- class: l(r)
24
+ m(l("div", {
25
+ class: o(r)
26
26
  }, null, 512), [
27
- [b, e.isFixed]
27
+ [b, a.isFixed]
28
28
  ])
29
29
  ], 64));
30
30
  }
31
31
  });
32
32
  export {
33
- x as default
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 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";
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"], ae = /* @__PURE__ */ x({
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(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 : "";
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 m.value && t.value && (e += r["slider-padding-top"]), v.value && !L.value && (e += ` ${r["slider-padding-bottom"]}`), e;
48
- }), _ = o(() => {
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
- }), g = o(() => {
51
+ }), x = o(() => {
52
52
  const e = [];
53
- return e.push(a.value), e.push(s.commonClass), e.push(s.tabClass), e.join(" ");
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(a.value), e.push(s.commonClass), e.push(s.contentClass), $.value && e.push(r["overflow-y-auto"]), e.join(" ");
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 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(" ");
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, y) => (n(), j("div", {
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: e.scrollElId ? e.scrollElId : void 0,
70
- class: M(["layout-content", c.value ? b(r)["overflow-y-auto"] : ""])
69
+ id: i.scrollElId ? i.scrollElId : void 0,
70
+ class: M(["layout-content", f.value ? B(r)["overflow-y-auto"] : ""])
71
71
  }, [
72
- m.value ? (n(), p(A, {
72
+ C.value ? (u(), p(A, {
73
73
  key: 0,
74
- isFixed: h.value,
75
- headerClass: _.value
74
+ isFixed: y.value,
75
+ headerClass: g.value
76
76
  }, {
77
- default: u(() => [
78
- e.$slots.header ? d(e.$slots, "header", { key: 0 }, void 0, !0) : l("", !0)
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 ? (n(), p(N, {
82
+ V.value ? (u(), p(N, {
83
83
  key: 1,
84
- isFixed: h.value,
85
- tabClass: g.value
84
+ isFixed: y.value,
85
+ tabClass: x.value
86
86
  }, {
87
- default: u(() => [
88
- e.$slots.tab ? d(e.$slots, "tab", { key: 0 }, void 0, !0) : l("", !0)
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
- C.value ? (n(), p(O, {
92
+ v.value ? (u(), p(O, {
93
93
  key: 2,
94
- sliderCollapse: e.sliderCollapse,
94
+ sliderCollapse: i.sliderCollapse,
95
95
  sliderClass: W.value
96
96
  }, {
97
- default: u(() => [
98
- e.$slots.slider ? d(e.$slots, "slider", { key: 0 }, void 0, !0) : l("", !0)
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: u(() => [
104
- d(e.$slots, "default", {}, void 0, !0)
103
+ default: d(() => [
104
+ c(e.$slots, "default", {}, void 0, !0)
105
105
  ]),
106
106
  _: 3
107
107
  }, 8, ["contentClass"]),
108
- v.value ? (n(), p(U, {
108
+ h.value ? (u(), p(U, {
109
109
  key: 3,
110
110
  footerClass: H.value,
111
- isFixed: e.fixedFooter
111
+ isFixed: i.fixedFooter
112
112
  }, {
113
- default: u(() => [
114
- b(i).footer ? d(e.$slots, "footer", { key: 0 }, void 0, !0) : l("", !0)
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
- ae as default
123
+ te as default
124
124
  };
@@ -1,34 +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({
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(_, { expose: l, emit: r }) {
9
- const a = r, s = p(null), c = (e) => {
10
- a("click", e);
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: s
14
- }), (e, k) => (t(), n("div", {
13
+ instRef: t
14
+ }), (s, _) => (n(), e("div", {
15
15
  ref_key: "instRef",
16
- ref: s,
17
- class: f([
16
+ ref: t,
17
+ class: p([
18
18
  "base-nav-icon",
19
19
  {
20
- "is-toggle": e.active
20
+ "is-toggle": c.active
21
21
  }
22
22
  ]),
23
- onClick: c
23
+ onClick: r
24
24
  }, [
25
- (t(!0), n(m, null, u(Array(3), (d, i) => (t(), n("span", {
26
- key: i,
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
- y as default
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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9f76a352"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-91e78c3d"]]);
6
6
  export {
7
- c as default
7
+ a as default
8
8
  };