base6-ui 1.1.11 → 1.1.13

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 (183) hide show
  1. package/dist/components/BaseCascader/index.d.ts +1 -0
  2. package/dist/components/BaseCascader/index.vue.d.ts +7 -0
  3. package/dist/components/BaseCascader/type.d.ts +6 -0
  4. package/dist/components/BaseDataTable/index.vue.d.ts +6 -9
  5. package/dist/components/BaseDialog/index.vue.d.ts +1 -0
  6. package/dist/components/BaseDialog/type.d.ts +1 -0
  7. package/dist/components/BaseLayout/Default/index.vue.d.ts +1 -1
  8. package/dist/components/BaseLayout/index.vue.d.ts +1 -1
  9. package/dist/components/BaseNavIcon/index.d.ts +2 -0
  10. package/dist/components/BaseNavIcon/index.vue.d.ts +13 -0
  11. package/dist/components/BaseNavIcon/type.d.ts +3 -0
  12. package/dist/components/BaseProductIntroduction/index.vue.d.ts +26 -1
  13. package/dist/components/index.d.ts +2 -0
  14. package/dist/config/themes/common/dark.d.ts +2 -0
  15. package/dist/config/themes/components/cascader/common.d.ts +2 -0
  16. package/dist/config/themes/components/cascader/dark.d.ts +2 -0
  17. package/dist/config/themes/components/cascader/light.d.ts +2 -0
  18. package/dist/config/themes/components/dialog/common.d.ts +1 -0
  19. package/dist/config/themes/components/dialog/dark.d.ts +1 -0
  20. package/dist/config/themes/components/dialog/light.d.ts +1 -0
  21. package/dist/globalMethods/modules/confirmTip.d.ts +2 -1
  22. package/dist/hooks/index.d.ts +1 -0
  23. package/dist/hooks/useAnimationHook.d.ts +3 -0
  24. package/dist/index.css +1 -1
  25. package/dist/index.d.ts +1 -0
  26. package/dist/index.umd.js +1 -1
  27. package/es/_virtual/virtual_svg-icons-register.mjs +1 -1
  28. package/es/assets/logo/logo-dark-full.svg.mjs +2 -2
  29. package/es/assets/logo/logo-light-full.svg.mjs +2 -2
  30. package/es/components/BaseButton/index.vue.mjs +14 -14
  31. package/es/components/BaseCascader/index.d.ts +1 -0
  32. package/es/components/BaseCascader/index.vue.d.ts +7 -0
  33. package/es/components/BaseCascader/index.vue.mjs +8 -0
  34. package/es/components/BaseCascader/index.vue2.mjs +27 -0
  35. package/es/components/BaseCascader/type.d.ts +6 -0
  36. package/es/components/BaseDataTable/index.vue.d.ts +6 -9
  37. package/es/components/BaseDataTable/index.vue.mjs +2 -2
  38. package/es/components/BaseDataTable/index.vue2.mjs +22 -61
  39. package/es/components/BaseDialog/index.vue.d.ts +1 -0
  40. package/es/components/BaseDialog/index.vue.mjs +45 -42
  41. package/es/components/BaseDialog/options.mjs +1 -0
  42. package/es/components/BaseDialog/type.d.ts +1 -0
  43. package/es/components/BaseInputNumber/index.vue2.mjs +56 -56
  44. package/es/components/BaseLayout/ASide/index.vue2.mjs +27 -27
  45. package/es/components/BaseLayout/Default/index.vue.d.ts +1 -1
  46. package/es/components/BaseLayout/Default/index.vue.mjs +1 -1
  47. package/es/components/BaseLayout/Default/index.vue2.mjs +53 -53
  48. package/es/components/BaseLayout/Default/layoutHeader/action.vue.mjs +2 -2
  49. package/es/components/BaseLayout/Default/layoutHeader/action.vue2.mjs +37 -34
  50. package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.mjs +29 -29
  51. package/es/components/BaseLayout/Default/layoutSlider/index.vue.mjs +12 -12
  52. package/es/components/BaseLayout/components/WrapFooter.vue.mjs +14 -14
  53. package/es/components/BaseLayout/components/WrapHeader.vue2.mjs +8 -8
  54. package/es/components/BaseLayout/components/WrapTab.vue.mjs +12 -12
  55. package/es/components/BaseLayout/index.vue.d.ts +1 -1
  56. package/es/components/BaseLayout/index.vue2.mjs +36 -36
  57. package/es/components/BaseNavIcon/index.d.ts +2 -0
  58. package/es/components/BaseNavIcon/index.vue.d.ts +13 -0
  59. package/es/components/BaseNavIcon/index.vue.mjs +7 -0
  60. package/es/components/BaseNavIcon/index.vue2.mjs +34 -0
  61. package/es/components/BaseNavIcon/type.d.ts +3 -0
  62. package/es/components/BaseProductIntroduction/cssVar.mjs +7 -4
  63. package/es/components/BaseProductIntroduction/index.vue.d.ts +26 -1
  64. package/es/components/BaseProductIntroduction/index.vue.mjs +1 -1
  65. package/es/components/BaseProductIntroduction/index.vue2.mjs +66 -73
  66. package/es/components/BaseRadio/index.vue2.mjs +17 -17
  67. package/es/components/BaseSelect/index.vue2.mjs +24 -24
  68. package/es/components/BaseSlider/index.vue2.mjs +44 -44
  69. package/es/components/BaseSwitch/index.vue2.mjs +18 -18
  70. package/es/components/index.d.ts +2 -0
  71. package/es/config/themes/common/dark.d.ts +2 -0
  72. package/es/config/themes/common/dark.mjs +30 -0
  73. package/es/config/themes/components/baseComponent/dark.mjs +2 -2
  74. package/es/config/themes/components/baseComponent/light.mjs +2 -2
  75. package/es/config/themes/components/button/dark.mjs +1 -0
  76. package/es/config/themes/components/button/light.mjs +1 -0
  77. package/es/config/themes/components/card/dark.mjs +7 -5
  78. package/es/config/themes/components/card/light.mjs +5 -3
  79. package/es/config/themes/components/cascader/common.d.ts +2 -0
  80. package/es/config/themes/components/cascader/common.mjs +8 -0
  81. package/es/config/themes/components/cascader/dark.d.ts +2 -0
  82. package/es/config/themes/components/cascader/dark.mjs +19 -0
  83. package/es/config/themes/components/cascader/light.d.ts +2 -0
  84. package/es/config/themes/components/cascader/light.mjs +17 -0
  85. package/es/config/themes/components/dialog/common.d.ts +1 -0
  86. package/es/config/themes/components/dialog/common.mjs +4 -3
  87. package/es/config/themes/components/dialog/dark.d.ts +1 -0
  88. package/es/config/themes/components/dialog/light.d.ts +1 -0
  89. package/es/config/themes/components/input/dark.mjs +23 -18
  90. package/es/config/themes/components/input/light.mjs +5 -0
  91. package/es/config/themes/dark.mjs +42 -38
  92. package/es/config/themes/index.mjs +9 -6
  93. package/es/config/themes/light.mjs +43 -41
  94. package/es/globalMethods/modules/confirmTip.d.ts +2 -1
  95. package/es/globalMethods/modules/confirmTip.mjs +12 -11
  96. package/es/hooks/index.d.ts +1 -0
  97. package/es/hooks/useAnimationHook.d.ts +3 -0
  98. package/es/hooks/useAnimationHook.mjs +34 -0
  99. package/es/index.css +1 -1
  100. package/es/index.d.ts +1 -0
  101. package/es/index.mjs +60 -54
  102. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs +6 -0
  103. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.mjs +16 -0
  104. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs +9 -0
  105. package/lib/_virtual/virtual_svg-icons-register.js +1 -1
  106. package/lib/assets/logo/logo-dark-full.svg.js +1 -1
  107. package/lib/assets/logo/logo-light-full.svg.js +1 -1
  108. package/lib/components/BaseButton/index.vue.js +1 -1
  109. package/lib/components/BaseCascader/index.d.ts +1 -0
  110. package/lib/components/BaseCascader/index.vue.d.ts +7 -0
  111. package/lib/components/BaseCascader/index.vue.js +1 -0
  112. package/lib/components/BaseCascader/index.vue2.js +1 -0
  113. package/lib/components/BaseCascader/type.d.ts +6 -0
  114. package/lib/components/BaseDataTable/index.vue.d.ts +6 -9
  115. package/lib/components/BaseDataTable/index.vue.js +1 -1
  116. package/lib/components/BaseDataTable/index.vue2.js +1 -1
  117. package/lib/components/BaseDialog/index.vue.d.ts +1 -0
  118. package/lib/components/BaseDialog/index.vue.js +1 -1
  119. package/lib/components/BaseDialog/options.js +1 -1
  120. package/lib/components/BaseDialog/type.d.ts +1 -0
  121. package/lib/components/BaseInputNumber/index.vue2.js +1 -1
  122. package/lib/components/BaseLayout/ASide/index.vue2.js +1 -1
  123. package/lib/components/BaseLayout/Default/index.vue.d.ts +1 -1
  124. package/lib/components/BaseLayout/Default/index.vue.js +1 -1
  125. package/lib/components/BaseLayout/Default/index.vue2.js +1 -1
  126. package/lib/components/BaseLayout/Default/layoutHeader/action.vue.js +1 -1
  127. package/lib/components/BaseLayout/Default/layoutHeader/action.vue2.js +1 -1
  128. package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.js +1 -1
  129. package/lib/components/BaseLayout/Default/layoutSlider/index.vue.js +1 -1
  130. package/lib/components/BaseLayout/components/WrapFooter.vue.js +1 -1
  131. package/lib/components/BaseLayout/components/WrapHeader.vue2.js +1 -1
  132. package/lib/components/BaseLayout/components/WrapTab.vue.js +1 -1
  133. package/lib/components/BaseLayout/index.vue.d.ts +1 -1
  134. package/lib/components/BaseLayout/index.vue2.js +1 -1
  135. package/lib/components/BaseNavIcon/index.d.ts +2 -0
  136. package/lib/components/BaseNavIcon/index.vue.d.ts +13 -0
  137. package/lib/components/BaseNavIcon/index.vue.js +1 -0
  138. package/lib/components/BaseNavIcon/index.vue2.js +1 -0
  139. package/lib/components/BaseNavIcon/type.d.ts +3 -0
  140. package/lib/components/BaseProductIntroduction/cssVar.js +1 -1
  141. package/lib/components/BaseProductIntroduction/index.vue.d.ts +26 -1
  142. package/lib/components/BaseProductIntroduction/index.vue.js +1 -1
  143. package/lib/components/BaseProductIntroduction/index.vue2.js +1 -1
  144. package/lib/components/BaseRadio/index.vue2.js +1 -1
  145. package/lib/components/BaseSelect/index.vue2.js +1 -1
  146. package/lib/components/BaseSlider/index.vue2.js +1 -1
  147. package/lib/components/BaseSwitch/index.vue2.js +1 -1
  148. package/lib/components/index.d.ts +2 -0
  149. package/lib/config/themes/common/dark.d.ts +2 -0
  150. package/lib/config/themes/common/dark.js +1 -0
  151. package/lib/config/themes/components/baseComponent/dark.js +1 -1
  152. package/lib/config/themes/components/baseComponent/light.js +1 -1
  153. package/lib/config/themes/components/button/dark.js +1 -1
  154. package/lib/config/themes/components/button/light.js +1 -1
  155. package/lib/config/themes/components/card/dark.js +1 -1
  156. package/lib/config/themes/components/card/light.js +1 -1
  157. package/lib/config/themes/components/cascader/common.d.ts +2 -0
  158. package/lib/config/themes/components/cascader/common.js +1 -0
  159. package/lib/config/themes/components/cascader/dark.d.ts +2 -0
  160. package/lib/config/themes/components/cascader/dark.js +1 -0
  161. package/lib/config/themes/components/cascader/light.d.ts +2 -0
  162. package/lib/config/themes/components/cascader/light.js +1 -0
  163. package/lib/config/themes/components/dialog/common.d.ts +1 -0
  164. package/lib/config/themes/components/dialog/common.js +1 -1
  165. package/lib/config/themes/components/dialog/dark.d.ts +1 -0
  166. package/lib/config/themes/components/dialog/light.d.ts +1 -0
  167. package/lib/config/themes/components/input/dark.js +1 -1
  168. package/lib/config/themes/components/input/light.js +1 -1
  169. package/lib/config/themes/dark.js +1 -1
  170. package/lib/config/themes/index.js +1 -1
  171. package/lib/config/themes/light.js +1 -1
  172. package/lib/globalMethods/modules/confirmTip.d.ts +2 -1
  173. package/lib/globalMethods/modules/confirmTip.js +1 -1
  174. package/lib/hooks/index.d.ts +1 -0
  175. package/lib/hooks/useAnimationHook.d.ts +3 -0
  176. package/lib/hooks/useAnimationHook.js +1 -0
  177. package/lib/index.css +1 -1
  178. package/lib/index.d.ts +1 -0
  179. package/lib/index.js +1 -1
  180. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +1 -0
  181. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.js +1 -0
  182. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isPlainObject.js +1 -0
  183. package/package.json +2 -1
@@ -1,71 +1,74 @@
1
- import { NButton as f, NDropdown as y } from "naive-ui";
2
- import { defineComponent as F, computed as c, h as i, createElementBlock as k, openBlock as b, createVNode as o, unref as e, withCtx as r, createElementVNode as u, toDisplayString as C } from "vue";
3
- import x from "../hooks/useBaseLayoutContext.mjs";
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 S = { class: "base-layout-header-action-container" }, z = { class: "user-trigger" }, B = { class: "name" }, H = /* @__PURE__ */ F({
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(E) {
9
- const { isDarkMode: t, userActionOption: l, userInfo: m, toggleSystemTheme: d, toggleSystemLang: p, toggleUserItem: _ } = x(), a = c(() => ({
10
- color: t.value ? "#222327" : "#FFF",
11
- colorHover: t.value ? "#222327" : "#FFF",
12
- colorFocus: t.value ? "#222327" : "#FFF",
13
- textColor: t.value ? "rgba(255,255,255,0.7)" : "#56647A",
14
- border: `1px solid ${t.value ? "#2F3A4B " : "#E0E6EF"}`
15
- })), g = c(() => l && l.length ? l : [
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: () => i(n, { icon: "layout-user-center", size: "16" })
20
+ icon: () => u(n, { icon: "layout-user-center", size: "16" })
20
21
  },
21
22
  {
22
23
  label: "退出账号",
23
24
  key: "logout",
24
- icon: () => i(n, { icon: "layout-logout", size: "16" })
25
+ icon: () => u(n, { icon: "layout-logout", size: "16" })
25
26
  }
26
- ]);
27
- return (v, A) => {
28
- const s = f, h = y;
29
- return b(), k("div", S, [
30
- o(s, {
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: e(d)
35
+ onClick: f
33
36
  }, {
34
37
  default: r(() => [
35
- o(e(n), {
38
+ o(t(n), {
36
39
  icon: "layout-theme",
37
40
  size: "16"
38
41
  })
39
42
  ]),
40
43
  _: 1
41
- }, 8, ["theme-overrides", "onClick"]),
42
- o(s, {
44
+ }, 8, ["theme-overrides"]),
45
+ o(i, {
43
46
  "theme-overrides": a.value,
44
- onClick: e(p)
47
+ onClick: t(_)
45
48
  }, {
46
49
  default: r(() => [
47
- o(e(n), {
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(h, {
57
+ o(y, {
55
58
  placement: "bottom",
56
59
  trigger: "click",
57
- options: g.value,
58
- onSelect: e(_)
60
+ options: h.value,
61
+ onSelect: t(g)
59
62
  }, {
60
63
  default: r(() => [
61
- u("div", z, [
62
- o(s, { quaternary: "" }, {
64
+ m("div", E, [
65
+ o(i, { text: "" }, {
63
66
  default: r(() => [
64
- o(e(n), {
65
- icon: `layout-user-${e(t) ? "dark" : "light"}`,
67
+ o(t(n), {
68
+ icon: `layout-user-${t(e) ? "dark" : "light"}`,
66
69
  size: "32"
67
70
  }, null, 8, ["icon"]),
68
- u("span", B, C(e(m)?.name), 1)
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
- H as default
84
+ V as default
82
85
  };
@@ -1,6 +1,6 @@
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";
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__ */ h({
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(o, { emit: x }) {
16
- _((t) => ({
17
- v6a6cfcc8: b.value
15
+ setup(m, { emit: f }) {
16
+ h((e) => ({
17
+ "6a6cfcc8": _.value
18
18
  }));
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);
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 (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 }) => [
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": i
32
+ "text-primary selected-mix-menu": a
33
33
  }])
34
34
  }, [
35
- (l(), m(I(i && a ? a : s))),
36
- r("p", F, D(e), 1)
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(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)
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 c, computed as e, createBlock as l, openBlock as n, withCtx as r, createElementVNode as m, unref as u, createCommentVNode as d } from "vue";
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 f } from "../constants.mjs";
6
- const x = ["id"], H = /* @__PURE__ */ c({
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: o } = h(), t = e(() => o.mode === "vertical-mix"), i = e(() => o.mode === "horizontal-mix"), a = e(() => !t.value && !i.value), s = e(() => ({ height: a.value ? `${o.headerHeight}px` : "" }));
11
- return (g, v) => (n(), l(p, {
12
- "logo-style": s.value,
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": "margin-top: 8px"
14
+ "content-style": `padding-top: 8px; ${a(e).mixSliderFixed ? "" : "overflow: hidden"}`
15
15
  }, {
16
16
  header: r(() => [
17
- a.value ? (n(), l(_, { key: 0 })) : d("", !0)
17
+ l.value ? (n(), i(_, { key: 0 })) : u("", !0)
18
18
  ]),
19
19
  default: r(() => [
20
20
  m("div", {
21
- id: u(f),
21
+ id: a(x),
22
22
  style: { height: "100%" }
23
- }, null, 8, x)
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
- H as default
30
+ w as default
31
31
  };
@@ -1,33 +1,33 @@
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({
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(o) {
11
- const s = o, a = u(() => {
10
+ setup(l) {
11
+ const t = l, a = c(() => {
12
12
  const e = [];
13
- return e.push(t["layout-footer"]), e.push(s.footerClass), s.isFixed && e.push(t["layout-footer-fixed"]), e;
13
+ return e.push(o["layout-footer"]), e.push(t.footerClass), t.isFixed && e.push(o["layout-footer-fixed"]), e;
14
14
  }), n = [
15
- t["layout-footer-placement"]
15
+ o["layout-footer-placement"]
16
16
  ];
17
- return (e, C) => (f(), i(p, null, [
18
- r("footer", {
19
- class: l(a.value)
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(r("div", {
24
- class: l(n)
23
+ m(s("div", {
24
+ class: r(n)
25
25
  }, null, 512), [
26
- [h, o.isFixed]
26
+ [h, e.isFixed]
27
27
  ])
28
28
  ], 64));
29
29
  }
30
30
  });
31
31
  export {
32
- y as default
32
+ v as default
33
33
  };
@@ -1,4 +1,4 @@
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";
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(s) {
10
- const t = s, o = u(() => {
9
+ setup(l) {
10
+ const s = l, o = u(() => {
11
11
  const e = [];
12
- return e.push(a["layout-header"]), t.isFixed && e.push(a["layout-header-is-fixed"]), e.push(t.headerClass), e;
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) => (i(), c(p, null, [
15
- l("header", {
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(l("div", {
20
+ h(t("div", {
21
21
  class: r(n)
22
22
  }, null, 512), [
23
- [f, s.isFixed]
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 d, Fragment as p, createElementVNode as l, withDirectives as m, normalizeClass as o, renderSlot as f, vShow as b } from "vue";
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 C = /* @__PURE__ */ i({
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(a) {
11
- const s = a, n = c(() => {
10
+ setup(o) {
11
+ const a = o, n = c(() => {
12
12
  const e = [];
13
- return e.push(t["layout-tab"]), s.isFixed && e.push(t["layout-tab-is-fixed"]), e.push(s.tabClass), e;
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) => (d(), u(p, null, [
19
- l("div", {
20
- class: o(n.value)
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(l("div", {
25
- class: o(r)
24
+ m(s("div", {
25
+ class: l(r)
26
26
  }, null, 512), [
27
- [b, a.isFixed]
27
+ [b, e.isFixed]
28
28
  ])
29
29
  ], 64));
30
30
  }
31
31
  });
32
32
  export {
33
- C as default
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 _, 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";
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"], te = /* @__PURE__ */ _({
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(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 : "";
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 C.value && a.value && (e += r["slider-padding-top"]), h.value && !L.value && (e += ` ${r["slider-padding-bottom"]}`), e;
48
- }), g = o(() => {
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
- }), x = o(() => {
51
+ }), g = o(() => {
52
52
  const e = [];
53
- return e.push(t.value), e.push(s.commonClass), e.push(s.tabClass), e.join(" ");
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(t.value), e.push(s.commonClass), e.push(s.contentClass), $.value && e.push(r["overflow-y-auto"]), e.join(" ");
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 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(" ");
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, b) => (u(), j("div", {
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: i.scrollElId ? i.scrollElId : void 0,
70
- class: M(["layout-content", f.value ? B(r)["overflow-y-auto"] : ""])
69
+ id: e.scrollElId ? e.scrollElId : void 0,
70
+ class: M(["layout-content", c.value ? b(r)["overflow-y-auto"] : ""])
71
71
  }, [
72
- C.value ? (u(), p(A, {
72
+ m.value ? (n(), p(A, {
73
73
  key: 0,
74
- isFixed: y.value,
75
- headerClass: g.value
74
+ isFixed: h.value,
75
+ headerClass: _.value
76
76
  }, {
77
- default: d(() => [
78
- e.$slots.header ? c(e.$slots, "header", { key: 0 }, void 0, !0) : l("", !0)
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 ? (u(), p(N, {
82
+ V.value ? (n(), p(N, {
83
83
  key: 1,
84
- isFixed: y.value,
85
- tabClass: x.value
84
+ isFixed: h.value,
85
+ tabClass: g.value
86
86
  }, {
87
- default: d(() => [
88
- e.$slots.tab ? c(e.$slots, "tab", { key: 0 }, void 0, !0) : l("", !0)
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
- v.value ? (u(), p(O, {
92
+ C.value ? (n(), p(O, {
93
93
  key: 2,
94
- sliderCollapse: i.sliderCollapse,
94
+ sliderCollapse: e.sliderCollapse,
95
95
  sliderClass: W.value
96
96
  }, {
97
- default: d(() => [
98
- e.$slots.slider ? c(e.$slots, "slider", { key: 0 }, void 0, !0) : l("", !0)
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: d(() => [
104
- c(e.$slots, "default", {}, void 0, !0)
103
+ default: u(() => [
104
+ d(e.$slots, "default", {}, void 0, !0)
105
105
  ]),
106
106
  _: 3
107
107
  }, 8, ["contentClass"]),
108
- h.value ? (u(), p(U, {
108
+ v.value ? (n(), p(U, {
109
109
  key: 3,
110
110
  footerClass: H.value,
111
- isFixed: i.fixedFooter
111
+ isFixed: e.fixedFooter
112
112
  }, {
113
- default: d(() => [
114
- B(n).footer ? c(e.$slots, "footer", { key: 0 }, void 0, !0) : l("", !0)
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
- te as default
123
+ ae as default
124
124
  };
@@ -0,0 +1,2 @@
1
+ export { default as BaseNavIcon } from './index.vue';
2
+ export type { BaseNavIconProps } from './type';
@@ -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,7 @@
1
+ import o from "./index.vue2.mjs";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-81d01e6b"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -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
+ };
@@ -0,0 +1,3 @@
1
+ export type BaseNavIconProps = {
2
+ active?: boolean;
3
+ };