savor-ui 0.18.0 → 0.19.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
 
4
4
 
5
+ # [0.19.0](https://gitee.com/mach552/savor-ui/compare/v0.18.0...v0.19.0) (2026-08-09)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **menu:** 修复弹层菜单无样式变量的问题 ([96a315a](https://gitee.com/mach552/savor-ui/commits/96a315a59f06ab072835b14e6addb35ad60dcd1b))
11
+
12
+
13
+ ### Features
14
+
15
+ * **card:** 新增边框属性 ([7842ba8](https://gitee.com/mach552/savor-ui/commits/7842ba8774566893065f4ae9f3adac02a38cc506))
16
+ * **card:** 新增标题文本属性 ([fa5c634](https://gitee.com/mach552/savor-ui/commits/fa5c6342a7ae74c7801d061c545a381441e22136))
17
+
5
18
  # [0.18.0](https://gitee.com/mach552/savor-ui/compare/v0.17.0...v0.18.0) (2026-08-08)
6
19
 
7
20
 
@@ -15,6 +15,7 @@ import "./src/auto-complete/index.mjs";
15
15
  import "./src/avatar/index.mjs";
16
16
  import "./src/badge/index.mjs";
17
17
  import "./src/button/index.mjs";
18
+ import "./src/text/index.mjs";
18
19
  import "./src/card/index.mjs";
19
20
  import "./src/carousel/index.mjs";
20
21
  import "./src/empty/index.mjs";
@@ -78,7 +79,6 @@ import "./src/table/types.mjs";
78
79
  import "./src/table/index.mjs";
79
80
  import "./src/tabs/types.mjs";
80
81
  import "./src/tabs/index.mjs";
81
- import "./src/text/index.mjs";
82
82
  import "./src/textarea/index.mjs";
83
83
  import "./src/timeline/types.mjs";
84
84
  import "./src/timeline/index.mjs";
@@ -1,9 +1,9 @@
1
1
  import { useNamespace as e } from "../../../hooks/src/use-namespace.mjs";
2
2
  import "../../../hooks/index.mjs";
3
- import t from "../text/text.vue.mjs";
4
- import { child as n, createComponent as r, createIf as i, createSlot as a, defineVaporComponent as o, renderEffect as s, setClass as c, setInsertionState as l, setStyle as u, setText as d, template as f, toDisplayString as p, unref as m } from "vue";
3
+ import { SText as t } from "../text/index.mjs";
4
+ import { child as n, createComponent as r, createIf as i, createSlot as a, defineVaporComponent as o, renderEffect as s, setClass as c, setInsertionState as l, setStyle as u, template as d, unref as f } from "vue";
5
5
  //#region ../components/src/card/card.vue?vue&type=script&setup=true&vapor=true&lang.ts
6
- var h = f("<div>"), g = f(" "), _ = f("<div><div></div>"), v = f("<div><div>", 1), y = /*@__PURE__*/ o({
6
+ var p = d("<div>"), m = d("<div><div></div>"), h = d("<div><div>", 1), g = /*@__PURE__*/ o({
7
7
  name: "SCard",
8
8
  __name: "card",
9
9
  props: {
@@ -11,41 +11,48 @@ var h = f("<div>"), g = f(" "), _ = f("<div><div></div>"), v = f("<div><div>", 1
11
11
  subtitle: {},
12
12
  bar: { type: Boolean },
13
13
  shadow: { default: "never" },
14
- bodyStyle: {}
14
+ bordered: { type: Boolean },
15
+ bodyStyle: {},
16
+ titleProps: {}
15
17
  },
16
- setup(o, { slots: f }) {
17
- let y = e("card"), b = v(), x = n(b, 1);
18
+ setup(o, { slots: d }) {
19
+ let g = e("card"), _ = h(), v = n(_, 1);
18
20
  return s(() => {
19
- let e = m(y);
20
- c(b, [e.b(), e.m(o.shadow)]);
21
- }), l(b, 0, 0), i(() => f.image, () => {
22
- let e = h();
23
- return s(() => c(e, [m(y).e("image")])), l(e, null, 0), a("image"), e;
21
+ let e = f(g);
22
+ c(_, [
23
+ e.b(),
24
+ e.m(o.shadow),
25
+ { [e.m("bordered")]: o.bordered }
26
+ ]);
27
+ }), l(_, 0, 0), i(() => d.image, () => {
28
+ let e = p();
29
+ return s(() => c(e, [f(g).e("image")])), l(e, null, 0), a("image"), e;
24
30
  }), s(() => {
25
- c(x, [m(y).e("body")]), u(x, o.bodyStyle);
26
- }), l(x, null, 0), i(() => f.title || o.title || f.expand, () => {
27
- let e = _(), u = n(e);
31
+ c(v, [f(g).e("body")]), u(v, o.bodyStyle);
32
+ }), l(v, null, 0), i(() => d.title || o.title || d.expand, () => {
33
+ let e = m(), u = n(e);
28
34
  return s(() => {
29
- let t = m(y);
35
+ let t = f(g);
30
36
  c(e, [t.e("header")]), c(u, [t.e("title")]);
31
- }), l(u, null, 0), a("title", null, () => r(t, { bar: () => o.bar }, () => {
32
- let e = g();
33
- return s(() => d(e, p(o.title))), e;
34
- })), l(e, null, 1), i(() => f.expand, () => {
35
- let e = h();
36
- return s(() => c(e, [m(y).e("expand")])), l(e, null, 0), a("expand"), e;
37
+ }), l(u, null, 0), a("title", null, () => r(f(t), { $: [() => ({
38
+ bar: o.bar,
39
+ label: o.title,
40
+ ...o.titleProps
41
+ })] })), l(e, null, 1), i(() => d.expand, () => {
42
+ let e = p();
43
+ return s(() => c(e, [f(g).e("expand")])), l(e, null, 0), a("expand"), e;
37
44
  }), e;
38
- }), l(x, null, 1), i(() => f.subtitle, () => {
39
- let e = h();
40
- return s(() => c(e, [m(y).e("subtitle")])), l(e, null, 0), a("subtitle"), e;
41
- }), l(x, null, 2), i(() => f.default, () => {
42
- let e = h();
43
- return s(() => c(e, [m(y).e("content")])), l(e, null, 0), a(), e;
44
- }), l(x, null, 3), i(() => f.footer, () => {
45
- let e = h();
46
- return s(() => c(e, [m(y).e("footer")])), l(e, null, 0), a("footer"), e;
47
- }), b;
45
+ }), l(v, null, 1), i(() => d.subtitle, () => {
46
+ let e = p();
47
+ return s(() => c(e, [f(g).e("subtitle")])), l(e, null, 0), a("subtitle"), e;
48
+ }), l(v, null, 2), i(() => d.default, () => {
49
+ let e = p();
50
+ return s(() => c(e, [f(g).e("content")])), l(e, null, 0), a(), e;
51
+ }), l(v, null, 3), i(() => d.footer, () => {
52
+ let e = p();
53
+ return s(() => c(e, [f(g).e("footer")])), l(e, null, 0), a("footer"), e;
54
+ }), _;
48
55
  }
49
56
  });
50
57
  //#endregion
51
- export { y as default };
58
+ export { g as default };
@@ -1,5 +1,6 @@
1
1
  import { CardSlots } from './types';
2
2
  import { PublicProps, VNode, Plugin } from 'vue';
3
+ import { TextProps } from '../text';
3
4
  export declare const SCard: ((__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
4
5
  attrs: any;
5
6
  slots: CardSlots;
@@ -10,7 +11,9 @@ export declare const SCard: ((__VLS_props: NonNullable<Awaited<typeof __VLS_setu
10
11
  subtitle?: string | undefined;
11
12
  bar?: boolean | undefined;
12
13
  shadow?: "always" | "hover" | "never" | undefined;
14
+ bordered?: boolean | undefined;
13
15
  bodyStyle?: Record<string, string> | undefined;
16
+ titleProps?: TextProps | undefined;
14
17
  } & (typeof globalThis extends {
15
18
  __VLS_PROPS_FALLBACK: infer P;
16
19
  } ? P : {});
@@ -1,3 +1,4 @@
1
+ import { TextProps } from '../text';
1
2
  export interface CardProps {
2
3
  /** 卡片标题 */
3
4
  title?: string;
@@ -7,8 +8,12 @@ export interface CardProps {
7
8
  bar?: boolean;
8
9
  /** 卡片阴影 */
9
10
  shadow?: "always" | "hover" | "never";
11
+ /** 卡片边框 */
12
+ bordered?: boolean;
10
13
  /** 卡片内容区域样式 */
11
14
  bodyStyle?: Record<string, string>;
15
+ /** 卡片标题属性 */
16
+ titleProps?: TextProps;
12
17
  }
13
18
  export interface CardSlots {
14
19
  /** 自定义卡片内容 */
@@ -18,7 +18,7 @@ var D = /*@__PURE__*/ u({
18
18
  items: { default: () => [] },
19
19
  autoplay: { type: Boolean },
20
20
  speed: { default: 2e3 },
21
- card: { type: Boolean },
21
+ solid: { type: Boolean },
22
22
  showArrow: { type: Boolean },
23
23
  indicator: {
24
24
  type: Boolean,
@@ -34,13 +34,13 @@ var D = /*@__PURE__*/ u({
34
34
  let d = u, f = t("carousel"), b = C("listRef"), D = S(u, "modelValue"), O = (e) => {
35
35
  b.value && (b.value.style.transform = `translateX(-${e * 100}%)`, b.value.style.transition = "transform 0.3s"), D.value = e;
36
36
  }, k = () => {
37
- if (d.card) D.value--, D.value < 0 && (D.value = 0), console.log(D.value), N();
37
+ if (d.solid) D.value--, D.value < 0 && (D.value = 0), console.log(D.value), N();
38
38
  else {
39
39
  if (!b.value) return;
40
40
  D.value === 0 ? (b.value.style.transition = "none", b.value.style.transform = `translateX(-${d.items.length * 100}%)`, b.value.offsetHeight, O(d.items.length - 1)) : O(D.value - 1);
41
41
  }
42
42
  }, A = () => {
43
- if (d.card) D.value++, D.value > d.items.length - 1 && (D.value = d.items.length - 1), console.log(D.value), N();
43
+ if (d.solid) D.value++, D.value > d.items.length - 1 && (D.value = d.items.length - 1), console.log(D.value), N();
44
44
  else {
45
45
  if (!b.value) return;
46
46
  D.value === d.items.length - 1 ? (b.value.style.transition = "none", b.value.style.transform = "translateX(100%)", b.value.offsetHeight, O(0)) : O(D.value + 1);
@@ -62,14 +62,14 @@ var D = /*@__PURE__*/ u({
62
62
  n.style.zIndex = String(l);
63
63
  }
64
64
  }, P = (e) => {
65
- d.card ? (D.value = e, N()) : O(e);
65
+ d.solid ? (D.value = e, N()) : O(e);
66
66
  }, F = null, I = () => {
67
67
  d.autoplay && (F = setInterval(() => {
68
68
  A();
69
69
  }, d.speed));
70
70
  };
71
71
  p(() => {
72
- d.card ? N() : j(), I();
72
+ d.solid ? N() : j(), I();
73
73
  }), m(() => {
74
74
  clearInterval(F);
75
75
  });
@@ -77,7 +77,7 @@ var D = /*@__PURE__*/ u({
77
77
  return h(() => {
78
78
  let t = x(f), n = u.indicatorPosition;
79
79
  g(R, [t.b(), { [t.m("indicator-position-" + n)]: n === "outside" }]), y(R, { height: x(e)(u.height) }), g(z, [t.e("wrapper")]);
80
- }), _(z, null, 0), s(() => u.card, () => {
80
+ }), _(z, null, 0), s(() => u.solid, () => {
81
81
  let e = T();
82
82
  return h(() => g(e, [x(f).e("list-3d")])), _(e, null, 0), o(() => u.items, (e, t) => {
83
83
  let n = w(), r = i(n);
@@ -10,7 +10,7 @@ export declare const SCarousel: ((__VLS_props: NonNullable<Awaited<typeof __VLS_
10
10
  items: string[];
11
11
  autoplay?: boolean | undefined;
12
12
  speed?: number | undefined;
13
- card?: boolean | undefined;
13
+ solid?: boolean | undefined;
14
14
  showArrow?: boolean | undefined;
15
15
  indicator?: boolean | undefined;
16
16
  indicatorPosition?: "top" | "bottom" | "left" | "right" | "outside" | undefined;
@@ -13,8 +13,8 @@ export interface CarouselProps {
13
13
  * @default 3000
14
14
  */
15
15
  speed?: number;
16
- /** 是否显示为卡片样式 */
17
- card?: boolean;
16
+ /** 是否显示为3D样式 */
17
+ solid?: boolean;
18
18
  /** 是否显示切换箭头 */
19
19
  showArrow?: boolean;
20
20
  /** 是否显示指示器 */
@@ -18,7 +18,7 @@ var S = _("<div>"), C = _("<div>", 1), w = /*@__PURE__*/ c({
18
18
  selectedKey: {},
19
19
  accordion: { type: Boolean },
20
20
  scrollbarProps: {},
21
- bgColor: { default: "transparent" },
21
+ bgColor: { default: "var(--s-color-bg-1)" },
22
22
  textColor: { default: "var(--s-color-text-1)" },
23
23
  activeTextColor: { default: "var(--s-color-primary-6)" },
24
24
  activeBgColor: { default: "var(--s-color-primary-1)" },
@@ -36,45 +36,48 @@ var S = _("<div>"), C = _("<div>", 1), w = /*@__PURE__*/ c({
36
36
  "--s-menu-text-color": _.textColor,
37
37
  "--s-menu-active-text-color": _.activeTextColor,
38
38
  "--s-menu-active-bg-color": _.activeBgColor,
39
- "--s-menu-hover-bg-color": _.hoverBgColor,
39
+ "--s-menu-hover-bg-color": _.hoverBgColor
40
+ })), D = a(() => ({
41
+ ...E.value,
40
42
  width: _.collapsed ? e(_.collapsedWidth) : e(_.width)
41
- })), D = b(c, "activeKey"), O = b(c, "openKeys"), k = (e, t) => {
42
- D.value = e, w("itemClick", e, t);
43
- }, A = (e) => {
43
+ })), O = b(c, "activeKey"), k = b(c, "openKeys"), A = (e, t) => {
44
+ O.value = e, w("itemClick", e, t);
45
+ }, j = (e) => {
44
46
  if (_.accordion) {
45
- O.value = [e];
47
+ k.value = [e];
46
48
  return;
47
49
  }
48
- O.value = [...O.value, e];
49
- }, j = (e) => {
50
- O.value = O.value.toSpliced(O.value.indexOf(e), 1);
51
- }, { collapsed: M, collapsedWidth: N } = v(_), P = d(!1), F = d(void 0), I = (e) => {
52
- F.value = e;
53
- }, L = x("menuRef");
54
- n(L, (e) => {
55
- e[0].contentRect.width === N.value ? P.value = !0 : P.value = !1;
50
+ k.value = [...k.value, e];
51
+ }, M = (e) => {
52
+ k.value = k.value.toSpliced(k.value.indexOf(e), 1);
53
+ }, { collapsed: N, collapsedWidth: P } = v(_), F = d(!1), I = d(void 0), L = (e) => {
54
+ I.value = e;
55
+ }, R = x("menuRef");
56
+ n(R, (e) => {
57
+ e[0].contentRect.width === P.value ? F.value = !0 : F.value = !1;
56
58
  }), u(i, {
57
- collapsed: M,
58
- collapsedWidth: N,
59
- activeKey: D,
60
- itemClick: k,
61
- openKeys: O,
62
- setOpenKey: A,
63
- removeOpenKey: j,
64
- isCollapsed: P,
65
- activePopoverKey: F,
66
- setActivePopoverKey: I
59
+ collapsed: N,
60
+ collapsedWidth: P,
61
+ activeKey: O,
62
+ itemClick: A,
63
+ openKeys: k,
64
+ setOpenKey: j,
65
+ removeOpenKey: M,
66
+ isCollapsed: F,
67
+ activePopoverKey: I,
68
+ setActivePopoverKey: L,
69
+ menuColorStyle: E
67
70
  });
68
- let R = C();
71
+ let z = C();
69
72
  return f(() => {
70
- p(R, [y(T).b()]), g(R, E.value);
71
- }), m(R, null, 0), o(y(r), { $: [() => ({
73
+ p(z, [y(T).b()]), g(z, D.value);
74
+ }), m(z, null, 0), o(y(r), { $: [() => ({
72
75
  padding: "4px",
73
76
  ...c.scrollbarProps
74
77
  })] }, () => {
75
78
  let e = S();
76
79
  return f(() => p(e, [y(T).e("content")])), m(e, null, 0), s(), e;
77
- }), h(R, L, null, "menuRef"), R;
80
+ }), h(z, R, null, "menuRef"), z;
78
81
  }
79
82
  });
80
83
  //#endregion
@@ -6,12 +6,12 @@ import r from "../../../icons/src/up.vue.mjs";
6
6
  import "../../../icons/index.mjs";
7
7
  import { SPopover as i } from "../popover/index.mjs";
8
8
  import { STransition as ee } from "../transition/index.mjs";
9
- import { menuContextKey as a, menuLevelContextKey as o, subMenuContextKey as s } from "./types.mjs";
10
- import { child as c, computed as l, createComponent as u, createIf as d, createInvoker as f, createSlot as p, createTemplateRefSetter as te, defineVaporComponent as m, delegateEvents as h, inject as g, next as _, on as v, onMounted as y, provide as b, ref as x, renderEffect as S, setClass as C, setInsertionState as w, setText as T, template as E, toDisplayString as D, unref as O, useTemplateRef as k, watch as A } from "vue";
9
+ import { menuContextKey as te, menuLevelContextKey as a, subMenuContextKey as o } from "./types.mjs";
10
+ import { child as s, computed as c, createComponent as l, createIf as u, createInvoker as d, createSlot as f, createTemplateRefSetter as ne, defineVaporComponent as p, delegateEvents as m, inject as h, next as g, on as _, onMounted as re, provide as v, ref as y, renderEffect as b, setClass as x, setInsertionState as S, setStyle as ie, setText as C, template as w, toDisplayString as T, unref as E, useTemplateRef as D, watch as O } from "vue";
11
11
  //#region ../components/src/menu/sub-menu.vue?vue&type=script&setup=true&vapor=true&lang.ts
12
- var j = E("<div><div></div>"), M = E("<div>"), N = E(" "), ne = E("<div><div></div><div></div>"), re = E("<div><div></div><div>"), ie = E("<div><div>"), ae = E("<div>", 1);
13
- h("click", "mouseover");
14
- var P = /*@__PURE__*/ m({
12
+ var ae = w("<div><div></div>"), k = w("<div>"), A = w(" "), j = w("<div><div></div><div></div>"), M = w("<div><div></div><div>"), N = w("<div><div>"), P = w("<div>", 1);
13
+ m("click", "mouseover");
14
+ var F = /*@__PURE__*/ p({
15
15
  name: "SSubMenu",
16
16
  __name: "sub-menu",
17
17
  props: {
@@ -20,114 +20,116 @@ var P = /*@__PURE__*/ m({
20
20
  disabled: { type: Boolean },
21
21
  ignoreLevel: { type: Boolean }
22
22
  },
23
- setup(m, { slots: h }) {
24
- let E = m, P = e("menu"), F = k("subMenuRef"), I = g(a, void 0), L = g(s, void 0), R = g(o, void 0), z = l(() => E.ignoreLevel ? 1 : R ? R.level.value + 1 : 1), B = x(!1), V = x(/* @__PURE__ */ new Set()), oe = () => {
25
- I?.collapsed.value || (B.value = !B.value, B.value ? I?.setOpenKey(E.name) : I?.removeOpenKey(E.name));
26
- }, H = l(() => {
27
- let e = I?.activeKey.value;
28
- return e != null && V.value.has(e);
29
- }), U = k("popoverRef"), W = (e) => {
30
- e ? U.value?.show() : (U.value?.hide(), L?.notifyChildPopoverClose(E.name));
31
- }, G = () => {
32
- W(!1);
33
- }, K = null, q = x(!1), J = x(void 0), Y = () => {
34
- K &&= (clearTimeout(K), null);
23
+ setup(p, { slots: m }) {
24
+ let w = p, F = e("menu"), I = D("subMenuRef"), L = h(te, void 0), R = h(o, void 0), z = h(a, void 0), B = c(() => w.ignoreLevel ? 1 : z ? z.level.value + 1 : 1), V = y(!1), H = y(/* @__PURE__ */ new Set()), oe = () => {
25
+ L?.collapsed.value || (V.value = !V.value, V.value ? L?.setOpenKey(w.name) : L?.removeOpenKey(w.name));
26
+ }, U = c(() => {
27
+ let e = L?.activeKey.value;
28
+ return e != null && H.value.has(e);
29
+ }), W = D("popoverRef"), G = (e) => {
30
+ e ? W.value?.show() : (W.value?.hide(), R?.notifyChildPopoverClose(w.name));
31
+ }, K = () => {
32
+ G(!1);
33
+ }, q = null, J = y(!1), Y = y(void 0), X = () => {
34
+ q &&= (clearTimeout(q), null);
35
35
  }, se = () => {
36
- Y(), K = setTimeout(() => {
37
- W(!1), K = null;
36
+ X(), q = setTimeout(() => {
37
+ G(!1), q = null;
38
38
  }, 150);
39
- }, X = () => {
40
- J.value === void 0 && (q.value || se());
39
+ }, Z = () => {
40
+ Y.value === void 0 && (J.value || se());
41
41
  }, ce = () => {
42
- Y(), L?.cancelParentClose();
42
+ X(), R?.cancelParentClose();
43
43
  }, le = (e) => {
44
- J.value === e && (J.value = void 0, X());
44
+ Y.value === e && (Y.value = void 0, Z());
45
45
  }, ue = () => {
46
- I?.isCollapsed.value && (q.value = !0, Y(), W(!0), L ? (L.setActiveChildPopoverKey(E.name), L.cancelParentClose()) : I?.setActivePopoverKey(E.name));
46
+ L?.isCollapsed.value && (J.value = !0, X(), G(!0), R ? (R.setActiveChildPopoverKey(w.name), R.cancelParentClose()) : L?.setActivePopoverKey(w.name));
47
47
  }, de = () => {
48
- I?.isCollapsed.value && (q.value = !1, X());
49
- }, Z = () => {
50
- q.value = !0, Y(), L?.cancelParentClose();
48
+ L?.isCollapsed.value && (J.value = !1, Z());
51
49
  }, fe = () => {
52
- q.value = !1, X();
50
+ J.value = !0, X(), R?.cancelParentClose();
51
+ }, pe = () => {
52
+ J.value = !1, Z();
53
53
  };
54
- A(H, (e) => {
55
- e && !B.value && (B.value = !0, I?.setOpenKey(E.name));
56
- }), A(l(() => L ? L.activeChildPopoverKey.value : I?.activePopoverKey.value), (e) => {
57
- I?.isCollapsed.value && e !== void 0 && e !== E.name && W(!1);
58
- }), A(() => I?.openKeys.value || [], (e) => {
59
- e && e.length > 0 && (B.value = e.includes(E.name));
60
- }, { immediate: !0 }), y(() => {
61
- F.value?.style.setProperty("--s-menu-level", `${z.value}`), L?.registerDescendant(E.name);
62
- }), b(o, { level: z }), b(s, {
54
+ O(U, (e) => {
55
+ e && !V.value && (V.value = !0, L?.setOpenKey(w.name));
56
+ }), O(c(() => R ? R.activeChildPopoverKey.value : L?.activePopoverKey.value), (e) => {
57
+ L?.isCollapsed.value && e !== void 0 && e !== w.name && G(!1);
58
+ }), O(() => L?.openKeys.value || [], (e) => {
59
+ e && e.length > 0 && (V.value = e.includes(w.name));
60
+ }, { immediate: !0 }), re(() => {
61
+ I.value?.style.setProperty("--s-menu-level", `${B.value}`), R?.registerDescendant(w.name);
62
+ }), v(a, { level: B }), v(o, {
63
63
  registerDescendant: (e) => {
64
- V.value.add(e), L?.registerDescendant(e);
64
+ H.value.add(e), R?.registerDescendant(e);
65
65
  },
66
- outsideClick: G,
67
- activeChildPopoverKey: J,
66
+ outsideClick: K,
67
+ activeChildPopoverKey: Y,
68
68
  setActiveChildPopoverKey: (e) => {
69
- J.value = e;
69
+ Y.value = e;
70
70
  },
71
71
  notifyChildPopoverClose: le,
72
72
  cancelParentClose: ce
73
73
  });
74
- let Q = te(), $ = ae();
75
- return S(() => {
76
- let e = O(P);
77
- C($, [
74
+ let Q = ne(), $ = P();
75
+ return b(() => {
76
+ let e = E(F);
77
+ x($, [
78
78
  e.e("sub-menu"),
79
- e.is("disabled", m.disabled),
80
- e.is("collapse", O(I)?.isCollapsed.value)
79
+ e.is("disabled", p.disabled),
80
+ e.is("collapse", E(L)?.isCollapsed.value)
81
81
  ]);
82
- }), w($, null, 0), d(() => O(I)?.isCollapsed.value, () => {
83
- let e = u(O(i), {
82
+ }), S($, null, 0), u(() => E(L)?.isCollapsed.value, () => {
83
+ let e = l(E(i), {
84
84
  manual: "",
85
85
  placement: "right-start",
86
86
  offset: [0, 8],
87
- onClickOutside: () => G
87
+ onClickOutside: () => K
88
88
  }, {
89
89
  content: () => {
90
- let e = M();
91
- return S(() => C(e, [O(P).e("pop-content")])), w(e, null, 0), p(), v(e, "mouseenter", Z), v(e, "mouseleave", fe), e;
90
+ let e = k();
91
+ return b(() => {
92
+ x(e, [E(F).e("pop-content")]), ie(e, E(L)?.menuColorStyle.value);
93
+ }), S(e, null, 0), f(), _(e, "mouseenter", fe), _(e, "mouseleave", pe), e;
92
94
  },
93
- default: () => d(() => z.value === 1, () => {
94
- let e = j(), t = c(e);
95
- return S(() => {
96
- let n = O(P);
97
- C(e, [n.e("sub-title"), n.is("active", H.value)]), C(t, [n.e("sub-icon")]);
98
- }), w(t, null, 0), p("icon"), e;
95
+ default: () => u(() => B.value === 1, () => {
96
+ let e = ae(), t = s(e);
97
+ return b(() => {
98
+ let n = E(F);
99
+ x(e, [n.e("sub-title"), n.is("active", U.value)]), x(t, [n.e("sub-icon")]);
100
+ }), S(t, null, 0), f("icon"), e;
99
101
  }, () => {
100
- let e = ne(), t = c(e, 1), r = _(t, 2);
101
- return S(() => {
102
- let t = O(P);
103
- C(e, [t.e("sub-title"), t.is("active", H.value)]);
104
- }), w(e, 0, 0), d(() => h.icon, () => {
105
- let e = M();
106
- return S(() => C(e, [O(P).e("sub-icon")])), w(e, null, 0), p("icon"), e;
107
- }), S(() => C(t, [O(P).e("sub-label")])), w(t, null, 0), p("title", null, () => {
108
- let e = N();
109
- return S(() => T(e, D(m.title))), e;
110
- }), S(() => C(r, [O(P).e("sub-arrow")])), w(r, null, 0), u(O(n)), e;
102
+ let e = j(), t = s(e, 1), r = g(t, 2);
103
+ return b(() => {
104
+ let t = E(F);
105
+ x(e, [t.e("sub-title"), t.is("active", U.value)]);
106
+ }), S(e, 0, 0), u(() => m.icon, () => {
107
+ let e = k();
108
+ return b(() => x(e, [E(F).e("sub-icon")])), S(e, null, 0), f("icon"), e;
109
+ }), b(() => x(t, [E(F).e("sub-label")])), S(t, null, 0), f("title", null, () => {
110
+ let e = A();
111
+ return b(() => C(e, T(p.title))), e;
112
+ }), b(() => x(r, [E(F).e("sub-arrow")])), S(r, null, 0), l(E(n)), e;
111
113
  }, 389)
112
114
  });
113
- return Q(e, U, null, "popoverRef"), e;
115
+ return Q(e, W, null, "popoverRef"), e;
114
116
  }, () => {
115
- let e = re(), n = c(e, 1), i = _(n, 2);
116
- return S(() => {
117
- let t = O(P);
118
- C(e, [t.e("sub-title"), t.is("active", H.value)]);
119
- }), w(e, 0, 0), d(() => h.icon, () => {
120
- let e = M();
121
- return S(() => C(e, [O(P).e("sub-icon")])), w(e, null, 0), p("icon"), e;
122
- }), S(() => C(n, [O(P).e("sub-label")])), w(n, null, 0), p("title", null, () => {
123
- let e = N();
124
- return S(() => T(e, D(m.title))), e;
125
- }), S(() => C(i, [O(P).e("sub-arrow")])), w(i, null, 0), d(() => B.value, () => u(O(r)), () => u(O(t)), 1285), e.$evtclick = f(oe), [e, u(O(ee), { type: "height" }, () => d(() => B.value, () => {
126
- let e = ie(), t = c(e);
127
- return S(() => C(t, [O(P).e("sub-content")])), w(t, null, 0), p(), e;
117
+ let e = M(), n = s(e, 1), i = g(n, 2);
118
+ return b(() => {
119
+ let t = E(F);
120
+ x(e, [t.e("sub-title"), t.is("active", U.value)]);
121
+ }), S(e, 0, 0), u(() => m.icon, () => {
122
+ let e = k();
123
+ return b(() => x(e, [E(F).e("sub-icon")])), S(e, null, 0), f("icon"), e;
124
+ }), b(() => x(n, [E(F).e("sub-label")])), S(n, null, 0), f("title", null, () => {
125
+ let e = A();
126
+ return b(() => C(e, T(p.title))), e;
127
+ }), b(() => x(i, [E(F).e("sub-arrow")])), S(i, null, 0), u(() => V.value, () => l(E(r)), () => l(E(t)), 1285), e.$evtclick = d(oe), [e, l(E(ee), { type: "height" }, () => u(() => V.value, () => {
128
+ let e = N(), t = s(e);
129
+ return b(() => x(t, [E(F).e("sub-content")])), S(t, null, 0), f(), e;
128
130
  }, null, 129))];
129
- }, 777), $.$evtmouseover = f(ue), v($, "mouseleave", de), Q($, F, null, "subMenuRef"), $;
131
+ }, 777), $.$evtmouseover = d(ue), _($, "mouseleave", de), Q($, I, null, "subMenuRef"), $;
130
132
  }
131
133
  });
132
134
  //#endregion
133
- export { P as default };
135
+ export { F as default };
@@ -1,4 +1,4 @@
1
- import { InjectionKey, Ref } from 'vue';
1
+ import { ComputedRef, InjectionKey, Ref } from 'vue';
2
2
  import { ScrollbarProps } from '../scrollbar';
3
3
  export interface MenuProps {
4
4
  /** 是否折叠 */
@@ -103,6 +103,7 @@ export interface MenuContext {
103
103
  isCollapsed: Ref<boolean>;
104
104
  activePopoverKey: Ref<string | number | undefined>;
105
105
  setActivePopoverKey: (name: string | number) => void;
106
+ menuColorStyle: ComputedRef<Record<string, string>>;
106
107
  }
107
108
  export declare const menuContextKey: InjectionKey<MenuContext>;
108
109
  export interface SubMenuContext {
@@ -11,54 +11,54 @@ import { SAutoComplete as d } from "../components/src/auto-complete/index.mjs";
11
11
  import { SAvatar as f } from "../components/src/avatar/index.mjs";
12
12
  import { SBadge as p } from "../components/src/badge/index.mjs";
13
13
  import { SButton as m, SButtonGroup as h } from "../components/src/button/index.mjs";
14
- import { SCard as g } from "../components/src/card/index.mjs";
15
- import { SCarousel as _ } from "../components/src/carousel/index.mjs";
16
- import { SEmpty as v } from "../components/src/empty/index.mjs";
17
- import { SCheckbox as y, SCheckboxGroup as b } from "../components/src/checkbox/index.mjs";
18
- import { SRadio as x, SRadioGroup as S } from "../components/src/radio/index.mjs";
19
- import { SCascader as C } from "../components/src/cascader/index.mjs";
20
- import { SChatList as w } from "../components/src/chat-list/index.mjs";
21
- import { SChatSender as T } from "../components/src/chat-sender/index.mjs";
22
- import { STransition as E } from "../components/src/transition/index.mjs";
23
- import { SCollapse as D, SCollapseItem as O } from "../components/src/collapse/index.mjs";
24
- import { SIcon as k } from "../components/src/icon/index.mjs";
25
- import { STag as A } from "../components/src/tag/index.mjs";
26
- import { SSelect as j } from "../components/src/select/index.mjs";
27
- import { SColorPicker as M } from "../components/src/color-picker/index.mjs";
28
- import { SDatePicker as N } from "../components/src/date-picker/index.mjs";
29
- import { SDatetimePicker as P } from "../components/src/datetime-picker/index.mjs";
30
- import { SDescriptions as F, SDescriptionsItem as I } from "../components/src/descriptions/index.mjs";
31
- import { SDivider as L } from "../components/src/divider/index.mjs";
32
- import { SDrawer as R } from "../components/src/drawer/index.mjs";
33
- import { SDoption as z, SDropdown as B, SDsubmenu as V } from "../components/src/dropdown/index.mjs";
34
- import { SExpandCard as H } from "../components/src/expand-card/index.mjs";
35
- import { SGalleria as U } from "../components/src/galleria/index.mjs";
36
- import { SGrid as W, SGridItem as G } from "../components/src/grid/index.mjs";
37
- import { SHighlight as K } from "../components/src/highlight/index.mjs";
38
- import { SImage as q, SImageGroup as J, SImagePreview as Y } from "../components/src/image/index.mjs";
39
- import { SInputGroup as X } from "../components/src/input-group/index.mjs";
40
- import { SInputNumber as Z } from "../components/src/input-number/index.mjs";
41
- import { SInputTag as Q } from "../components/src/input-tag/index.mjs";
42
- import { SLayout as $, SLayoutAside as ee, SLayoutContent as te, SLayoutFooter as ne, SLayoutHeader as re } from "../components/src/layout/index.mjs";
43
- import { SLink as ie } from "../components/src/link/index.mjs";
44
- import { SList as ae } from "../components/src/list/index.mjs";
45
- import { SMenu as oe, SMenuGroup as se, SMenuItem as ce, SSubMenu as le } from "../components/src/menu/index.mjs";
46
- import { SMeterGroup as ue } from "../components/src/meter-group/index.mjs";
47
- import { SModal as de } from "../components/src/modal/index.mjs";
48
- import { SPagination as fe } from "../components/src/pagination/index.mjs";
49
- import { SPanel as pe } from "../components/src/panel/index.mjs";
50
- import { SProgress as me } from "../components/src/progress/index.mjs";
51
- import { SSegmented as he } from "../components/src/segmented/index.mjs";
52
- import { SSkeleton as ge } from "../components/src/skeleton/index.mjs";
53
- import { SSliderVerify as _e } from "../components/src/slider-verify/index.mjs";
54
- import { SSpace as ve } from "../components/src/space/index.mjs";
55
- import { SSplit as ye, SSplitPane as be } from "../components/src/split/index.mjs";
56
- import { SStatistic as xe } from "../components/src/statistic/index.mjs";
57
- import { SSteps as Se } from "../components/src/steps/index.mjs";
58
- import { SSwitch as Ce } from "../components/src/switch/index.mjs";
59
- import { STable as we } from "../components/src/table/index.mjs";
60
- import { STab as Te, STabPane as Ee, STabs as De } from "../components/src/tabs/index.mjs";
61
- import { SText as Oe } from "../components/src/text/index.mjs";
14
+ import { SText as g } from "../components/src/text/index.mjs";
15
+ import { SCard as _ } from "../components/src/card/index.mjs";
16
+ import { SCarousel as v } from "../components/src/carousel/index.mjs";
17
+ import { SEmpty as y } from "../components/src/empty/index.mjs";
18
+ import { SCheckbox as b, SCheckboxGroup as x } from "../components/src/checkbox/index.mjs";
19
+ import { SRadio as S, SRadioGroup as C } from "../components/src/radio/index.mjs";
20
+ import { SCascader as w } from "../components/src/cascader/index.mjs";
21
+ import { SChatList as T } from "../components/src/chat-list/index.mjs";
22
+ import { SChatSender as E } from "../components/src/chat-sender/index.mjs";
23
+ import { STransition as D } from "../components/src/transition/index.mjs";
24
+ import { SCollapse as O, SCollapseItem as k } from "../components/src/collapse/index.mjs";
25
+ import { SIcon as A } from "../components/src/icon/index.mjs";
26
+ import { STag as j } from "../components/src/tag/index.mjs";
27
+ import { SSelect as M } from "../components/src/select/index.mjs";
28
+ import { SColorPicker as N } from "../components/src/color-picker/index.mjs";
29
+ import { SDatePicker as P } from "../components/src/date-picker/index.mjs";
30
+ import { SDatetimePicker as F } from "../components/src/datetime-picker/index.mjs";
31
+ import { SDescriptions as I, SDescriptionsItem as L } from "../components/src/descriptions/index.mjs";
32
+ import { SDivider as R } from "../components/src/divider/index.mjs";
33
+ import { SDrawer as z } from "../components/src/drawer/index.mjs";
34
+ import { SDoption as B, SDropdown as V, SDsubmenu as H } from "../components/src/dropdown/index.mjs";
35
+ import { SExpandCard as U } from "../components/src/expand-card/index.mjs";
36
+ import { SGalleria as W } from "../components/src/galleria/index.mjs";
37
+ import { SGrid as G, SGridItem as K } from "../components/src/grid/index.mjs";
38
+ import { SHighlight as q } from "../components/src/highlight/index.mjs";
39
+ import { SImage as J, SImageGroup as Y, SImagePreview as X } from "../components/src/image/index.mjs";
40
+ import { SInputGroup as Z } from "../components/src/input-group/index.mjs";
41
+ import { SInputNumber as Q } from "../components/src/input-number/index.mjs";
42
+ import { SInputTag as $ } from "../components/src/input-tag/index.mjs";
43
+ import { SLayout as ee, SLayoutAside as te, SLayoutContent as ne, SLayoutFooter as re, SLayoutHeader as ie } from "../components/src/layout/index.mjs";
44
+ import { SLink as ae } from "../components/src/link/index.mjs";
45
+ import { SList as oe } from "../components/src/list/index.mjs";
46
+ import { SMenu as se, SMenuGroup as ce, SMenuItem as le, SSubMenu as ue } from "../components/src/menu/index.mjs";
47
+ import { SMeterGroup as de } from "../components/src/meter-group/index.mjs";
48
+ import { SModal as fe } from "../components/src/modal/index.mjs";
49
+ import { SPagination as pe } from "../components/src/pagination/index.mjs";
50
+ import { SPanel as me } from "../components/src/panel/index.mjs";
51
+ import { SProgress as he } from "../components/src/progress/index.mjs";
52
+ import { SSegmented as ge } from "../components/src/segmented/index.mjs";
53
+ import { SSkeleton as _e } from "../components/src/skeleton/index.mjs";
54
+ import { SSliderVerify as ve } from "../components/src/slider-verify/index.mjs";
55
+ import { SSpace as ye } from "../components/src/space/index.mjs";
56
+ import { SSplit as be, SSplitPane as xe } from "../components/src/split/index.mjs";
57
+ import { SStatistic as Se } from "../components/src/statistic/index.mjs";
58
+ import { SSteps as Ce } from "../components/src/steps/index.mjs";
59
+ import { SSwitch as we } from "../components/src/switch/index.mjs";
60
+ import { STable as Te } from "../components/src/table/index.mjs";
61
+ import { STab as Ee, STabPane as De, STabs as Oe } from "../components/src/tabs/index.mjs";
62
62
  import { STextarea as ke } from "../components/src/textarea/index.mjs";
63
63
  import { STimeline as Ae, STimelineItem as je } from "../components/src/timeline/index.mjs";
64
64
  import { STree as Me } from "../components/src/tree/index.mjs";
@@ -80,38 +80,37 @@ var ze = [
80
80
  p,
81
81
  m,
82
82
  h,
83
- g,
84
83
  _,
85
- C,
86
- y,
84
+ v,
85
+ w,
87
86
  b,
88
- D,
87
+ x,
89
88
  O,
90
- M,
91
- r,
89
+ k,
92
90
  N,
91
+ r,
93
92
  P,
94
93
  F,
95
94
  I,
96
95
  L,
97
- z,
98
96
  R,
99
97
  B,
98
+ z,
100
99
  V,
101
- v,
102
100
  H,
101
+ y,
102
+ U,
103
103
  o,
104
104
  s,
105
- U,
106
105
  W,
107
106
  G,
108
107
  K,
109
- k,
110
108
  q,
109
+ A,
111
110
  J,
112
111
  Y,
113
- c,
114
112
  X,
113
+ c,
115
114
  Z,
116
115
  Q,
117
116
  $,
@@ -124,39 +123,40 @@ var ze = [
124
123
  oe,
125
124
  se,
126
125
  ce,
127
- ue,
126
+ le,
128
127
  de,
129
128
  fe,
130
129
  pe,
131
- i,
132
130
  me,
133
- x,
131
+ i,
132
+ he,
134
133
  S,
134
+ C,
135
135
  u,
136
- he,
137
- j,
138
- T,
139
- w,
140
136
  ge,
137
+ M,
138
+ E,
139
+ T,
141
140
  _e,
142
141
  ve,
143
142
  ye,
144
143
  be,
145
144
  xe,
146
- le,
147
145
  Se,
146
+ ue,
148
147
  Ce,
149
- Te,
150
148
  we,
151
149
  Ee,
150
+ Te,
152
151
  De,
153
- A,
154
152
  Oe,
153
+ j,
154
+ g,
155
155
  ke,
156
156
  Ae,
157
157
  je,
158
158
  a,
159
- E,
159
+ D,
160
160
  Me,
161
161
  Ne,
162
162
  Pe,
@@ -17,68 +17,68 @@ import { SAutoComplete as v } from "../components/src/auto-complete/index.mjs";
17
17
  import { SAvatar as y } from "../components/src/avatar/index.mjs";
18
18
  import { SBadge as b } from "../components/src/badge/index.mjs";
19
19
  import { SButton as x, SButtonGroup as S } from "../components/src/button/index.mjs";
20
- import { SCard as C } from "../components/src/card/index.mjs";
21
- import { SCarousel as w } from "../components/src/carousel/index.mjs";
22
- import { SEmpty as T } from "../components/src/empty/index.mjs";
23
- import { checkboxGroupContextKey as E } from "../components/src/checkbox/types.mjs";
24
- import { SCheckbox as D, SCheckboxGroup as O } from "../components/src/checkbox/index.mjs";
25
- import { radioGroupContextKey as k } from "../components/src/radio/types.mjs";
26
- import { SRadio as A, SRadioGroup as j } from "../components/src/radio/index.mjs";
27
- import { SCascader as M } from "../components/src/cascader/index.mjs";
28
- import { SChatList as N } from "../components/src/chat-list/index.mjs";
29
- import { SChatSender as P } from "../components/src/chat-sender/index.mjs";
30
- import { STransition as F } from "../components/src/transition/index.mjs";
31
- import { collapseContextKey as I } from "../components/src/collapse/types.mjs";
32
- import { SCollapse as L, SCollapseItem as R } from "../components/src/collapse/index.mjs";
33
- import { SIcon as z } from "../components/src/icon/index.mjs";
34
- import { STag as B } from "../components/src/tag/index.mjs";
35
- import { SSelect as V } from "../components/src/select/index.mjs";
36
- import { SColorPicker as H } from "../components/src/color-picker/index.mjs";
37
- import { SDatePicker as U } from "../components/src/date-picker/index.mjs";
38
- import { SDatetimePicker as W } from "../components/src/datetime-picker/index.mjs";
39
- import { descriptionsContextKey as G } from "../components/src/descriptions/types.mjs";
40
- import { SDescriptions as K, SDescriptionsItem as q } from "../components/src/descriptions/index.mjs";
41
- import { SDivider as J } from "../components/src/divider/index.mjs";
42
- import { SDrawer as Y } from "../components/src/drawer/index.mjs";
43
- import { dropdownContextKey as X } from "../components/src/dropdown/types.mjs";
44
- import { SDoption as Z, SDropdown as Q, SDsubmenu as $ } from "../components/src/dropdown/index.mjs";
45
- import { SExpandCard as ee } from "../components/src/expand-card/index.mjs";
46
- import { SGalleria as te } from "../components/src/galleria/index.mjs";
47
- import { gridContextKey as ne } from "../components/src/grid/types.mjs";
48
- import { SGrid as re, SGridItem as ie } from "../components/src/grid/index.mjs";
49
- import { SHighlight as ae } from "../components/src/highlight/index.mjs";
50
- import { imageGroupContextKey as oe } from "../components/src/image/types.mjs";
51
- import { SImage as se, SImageGroup as ce, SImagePreview as le } from "../components/src/image/index.mjs";
52
- import { SInputGroup as ue } from "../components/src/input-group/index.mjs";
53
- import { SInputNumber as de } from "../components/src/input-number/index.mjs";
54
- import { SInputTag as fe } from "../components/src/input-tag/index.mjs";
55
- import pe from "../components/src/layer/method.mjs";
56
- import { SLayout as me, SLayoutAside as he, SLayoutContent as ge, SLayoutFooter as _e, SLayoutHeader as ve } from "../components/src/layout/index.mjs";
57
- import { SLink as ye } from "../components/src/link/index.mjs";
58
- import { SList as be } from "../components/src/list/index.mjs";
59
- import { menuContextKey as xe, menuLevelContextKey as Se, subMenuContextKey as Ce } from "../components/src/menu/types.mjs";
60
- import { SMenu as we, SMenuGroup as Te, SMenuItem as Ee, SSubMenu as De } from "../components/src/menu/index.mjs";
61
- import { useMessage as Oe } from "../components/src/message/method.mjs";
62
- import { SMeterGroup as ke } from "../components/src/meter-group/index.mjs";
63
- import { useModal as Ae } from "../components/src/modal/method.mjs";
64
- import { SModal as je } from "../components/src/modal/index.mjs";
65
- import { SPagination as Me } from "../components/src/pagination/index.mjs";
66
- import { SPanel as Ne } from "../components/src/panel/index.mjs";
67
- import { SProgress as Pe } from "../components/src/progress/index.mjs";
68
- import { SSegmented as Fe } from "../components/src/segmented/index.mjs";
69
- import { SSkeleton as Ie } from "../components/src/skeleton/index.mjs";
70
- import { SSliderVerify as Le } from "../components/src/slider-verify/index.mjs";
71
- import { SSpace as Re } from "../components/src/space/index.mjs";
72
- import { splitContextKey as ze } from "../components/src/split/types.mjs";
73
- import { SSplit as Be, SSplitPane as Ve } from "../components/src/split/index.mjs";
74
- import { SStatistic as He } from "../components/src/statistic/index.mjs";
75
- import { SSteps as Ue } from "../components/src/steps/index.mjs";
76
- import { SSwitch as We } from "../components/src/switch/index.mjs";
77
- import { tableContextKey as Ge } from "../components/src/table/types.mjs";
78
- import { STable as Ke } from "../components/src/table/index.mjs";
79
- import { tabsContextKey as qe } from "../components/src/tabs/types.mjs";
80
- import { STab as Je, STabPane as Ye, STabs as Xe } from "../components/src/tabs/index.mjs";
81
- import { SText as Ze } from "../components/src/text/index.mjs";
20
+ import { SText as C } from "../components/src/text/index.mjs";
21
+ import { SCard as w } from "../components/src/card/index.mjs";
22
+ import { SCarousel as T } from "../components/src/carousel/index.mjs";
23
+ import { SEmpty as E } from "../components/src/empty/index.mjs";
24
+ import { checkboxGroupContextKey as D } from "../components/src/checkbox/types.mjs";
25
+ import { SCheckbox as O, SCheckboxGroup as k } from "../components/src/checkbox/index.mjs";
26
+ import { radioGroupContextKey as A } from "../components/src/radio/types.mjs";
27
+ import { SRadio as j, SRadioGroup as M } from "../components/src/radio/index.mjs";
28
+ import { SCascader as N } from "../components/src/cascader/index.mjs";
29
+ import { SChatList as P } from "../components/src/chat-list/index.mjs";
30
+ import { SChatSender as F } from "../components/src/chat-sender/index.mjs";
31
+ import { STransition as I } from "../components/src/transition/index.mjs";
32
+ import { collapseContextKey as L } from "../components/src/collapse/types.mjs";
33
+ import { SCollapse as R, SCollapseItem as z } from "../components/src/collapse/index.mjs";
34
+ import { SIcon as B } from "../components/src/icon/index.mjs";
35
+ import { STag as V } from "../components/src/tag/index.mjs";
36
+ import { SSelect as H } from "../components/src/select/index.mjs";
37
+ import { SColorPicker as U } from "../components/src/color-picker/index.mjs";
38
+ import { SDatePicker as W } from "../components/src/date-picker/index.mjs";
39
+ import { SDatetimePicker as G } from "../components/src/datetime-picker/index.mjs";
40
+ import { descriptionsContextKey as K } from "../components/src/descriptions/types.mjs";
41
+ import { SDescriptions as q, SDescriptionsItem as J } from "../components/src/descriptions/index.mjs";
42
+ import { SDivider as Y } from "../components/src/divider/index.mjs";
43
+ import { SDrawer as X } from "../components/src/drawer/index.mjs";
44
+ import { dropdownContextKey as Z } from "../components/src/dropdown/types.mjs";
45
+ import { SDoption as Q, SDropdown as $, SDsubmenu as ee } from "../components/src/dropdown/index.mjs";
46
+ import { SExpandCard as te } from "../components/src/expand-card/index.mjs";
47
+ import { SGalleria as ne } from "../components/src/galleria/index.mjs";
48
+ import { gridContextKey as re } from "../components/src/grid/types.mjs";
49
+ import { SGrid as ie, SGridItem as ae } from "../components/src/grid/index.mjs";
50
+ import { SHighlight as oe } from "../components/src/highlight/index.mjs";
51
+ import { imageGroupContextKey as se } from "../components/src/image/types.mjs";
52
+ import { SImage as ce, SImageGroup as le, SImagePreview as ue } from "../components/src/image/index.mjs";
53
+ import { SInputGroup as de } from "../components/src/input-group/index.mjs";
54
+ import { SInputNumber as fe } from "../components/src/input-number/index.mjs";
55
+ import { SInputTag as pe } from "../components/src/input-tag/index.mjs";
56
+ import me from "../components/src/layer/method.mjs";
57
+ import { SLayout as he, SLayoutAside as ge, SLayoutContent as _e, SLayoutFooter as ve, SLayoutHeader as ye } from "../components/src/layout/index.mjs";
58
+ import { SLink as be } from "../components/src/link/index.mjs";
59
+ import { SList as xe } from "../components/src/list/index.mjs";
60
+ import { menuContextKey as Se, menuLevelContextKey as Ce, subMenuContextKey as we } from "../components/src/menu/types.mjs";
61
+ import { SMenu as Te, SMenuGroup as Ee, SMenuItem as De, SSubMenu as Oe } from "../components/src/menu/index.mjs";
62
+ import { useMessage as ke } from "../components/src/message/method.mjs";
63
+ import { SMeterGroup as Ae } from "../components/src/meter-group/index.mjs";
64
+ import { useModal as je } from "../components/src/modal/method.mjs";
65
+ import { SModal as Me } from "../components/src/modal/index.mjs";
66
+ import { SPagination as Ne } from "../components/src/pagination/index.mjs";
67
+ import { SPanel as Pe } from "../components/src/panel/index.mjs";
68
+ import { SProgress as Fe } from "../components/src/progress/index.mjs";
69
+ import { SSegmented as Ie } from "../components/src/segmented/index.mjs";
70
+ import { SSkeleton as Le } from "../components/src/skeleton/index.mjs";
71
+ import { SSliderVerify as Re } from "../components/src/slider-verify/index.mjs";
72
+ import { SSpace as ze } from "../components/src/space/index.mjs";
73
+ import { splitContextKey as Be } from "../components/src/split/types.mjs";
74
+ import { SSplit as Ve, SSplitPane as He } from "../components/src/split/index.mjs";
75
+ import { SStatistic as Ue } from "../components/src/statistic/index.mjs";
76
+ import { SSteps as We } from "../components/src/steps/index.mjs";
77
+ import { SSwitch as Ge } from "../components/src/switch/index.mjs";
78
+ import { tableContextKey as Ke } from "../components/src/table/types.mjs";
79
+ import { STable as qe } from "../components/src/table/index.mjs";
80
+ import { tabsContextKey as Je } from "../components/src/tabs/types.mjs";
81
+ import { STab as Ye, STabPane as Xe, STabs as Ze } from "../components/src/tabs/index.mjs";
82
82
  import { STextarea as Qe } from "../components/src/textarea/index.mjs";
83
83
  import { timelineContextKey as $e } from "../components/src/timeline/types.mjs";
84
84
  import { STimeline as et, STimelineItem as tt } from "../components/src/timeline/index.mjs";
@@ -96,4 +96,4 @@ import dt from "dayjs";
96
96
  //#region index.ts
97
97
  var ft = e(ut);
98
98
  //#endregion
99
- export { t as SAlert, r as SAnchor, i as SAnchorLink, v as SAutoComplete, y as SAvatar, g as SBackTop, b as SBadge, x as SButton, S as SButtonGroup, C as SCard, w as SCarousel, M as SCascader, N as SChatList, P as SChatSender, D as SCheckbox, O as SCheckboxGroup, L as SCollapse, R as SCollapseItem, H as SColorPicker, l as SConfigProvider, U as SDatePicker, W as SDatetimePicker, K as SDescriptions, q as SDescriptionsItem, J as SDivider, Z as SDoption, Y as SDrawer, Q as SDropdown, $ as SDsubmenu, T as SEmpty, ee as SExpandCard, f as SForm, p as SFormItem, te as SGalleria, re as SGrid, ie as SGridItem, ae as SHighlight, z as SIcon, se as SImage, ce as SImageGroup, le as SImagePreview, m as SInput, ue as SInputGroup, de as SInputNumber, fe as SInputTag, me as SLayout, he as SLayoutAside, ge as SLayoutContent, _e as SLayoutFooter, ve as SLayoutHeader, ye as SLink, be as SList, we as SMenu, Te as SMenuGroup, Ee as SMenuItem, ke as SMeterGroup, je as SModal, Me as SPagination, Ne as SPanel, u as SPopover, Pe as SProgress, A as SRadio, j as SRadioGroup, _ as SScrollbar, Fe as SSegmented, V as SSelect, Ie as SSkeleton, Le as SSliderVerify, Re as SSpace, Be as SSplit, Ve as SSplitPane, He as SStatistic, Ue as SSteps, De as SSubMenu, We as SSwitch, Je as STab, Ye as STabPane, Ke as STable, Xe as STabs, B as STag, Ze as SText, Qe as STextarea, et as STimeline, tt as STimelineItem, d as STooltip, F as STransition, rt as STree, it as STreeSelect, at as SUpload, ot as SVirtualList, st as SWaterfall, ct as SWatermark, lt as SWheel, n as anchorContextKey, h as buttonGroupContextKey, E as checkboxGroupContextKey, I as collapseContextKey, c as configProviderContextKey, dt as dayjs, ft as default, G as descriptionsContextKey, X as dropdownContextKey, a as formContextKey, o as formItemContextKey, s as formItemStatusContextKey, ne as gridContextKey, oe as imageGroupContextKey, xe as menuContextKey, Se as menuLevelContextKey, k as radioGroupContextKey, ze as splitContextKey, Ce as subMenuContextKey, Ge as tableContextKey, qe as tabsContextKey, $e as timelineContextKey, nt as treeContextKey, pe as useLayer, Oe as useMessage, Ae as useModal };
99
+ export { t as SAlert, r as SAnchor, i as SAnchorLink, v as SAutoComplete, y as SAvatar, g as SBackTop, b as SBadge, x as SButton, S as SButtonGroup, w as SCard, T as SCarousel, N as SCascader, P as SChatList, F as SChatSender, O as SCheckbox, k as SCheckboxGroup, R as SCollapse, z as SCollapseItem, U as SColorPicker, l as SConfigProvider, W as SDatePicker, G as SDatetimePicker, q as SDescriptions, J as SDescriptionsItem, Y as SDivider, Q as SDoption, X as SDrawer, $ as SDropdown, ee as SDsubmenu, E as SEmpty, te as SExpandCard, f as SForm, p as SFormItem, ne as SGalleria, ie as SGrid, ae as SGridItem, oe as SHighlight, B as SIcon, ce as SImage, le as SImageGroup, ue as SImagePreview, m as SInput, de as SInputGroup, fe as SInputNumber, pe as SInputTag, he as SLayout, ge as SLayoutAside, _e as SLayoutContent, ve as SLayoutFooter, ye as SLayoutHeader, be as SLink, xe as SList, Te as SMenu, Ee as SMenuGroup, De as SMenuItem, Ae as SMeterGroup, Me as SModal, Ne as SPagination, Pe as SPanel, u as SPopover, Fe as SProgress, j as SRadio, M as SRadioGroup, _ as SScrollbar, Ie as SSegmented, H as SSelect, Le as SSkeleton, Re as SSliderVerify, ze as SSpace, Ve as SSplit, He as SSplitPane, Ue as SStatistic, We as SSteps, Oe as SSubMenu, Ge as SSwitch, Ye as STab, Xe as STabPane, qe as STable, Ze as STabs, V as STag, C as SText, Qe as STextarea, et as STimeline, tt as STimelineItem, d as STooltip, I as STransition, rt as STree, it as STreeSelect, at as SUpload, ot as SVirtualList, st as SWaterfall, ct as SWatermark, lt as SWheel, n as anchorContextKey, h as buttonGroupContextKey, D as checkboxGroupContextKey, L as collapseContextKey, c as configProviderContextKey, dt as dayjs, ft as default, K as descriptionsContextKey, Z as dropdownContextKey, a as formContextKey, o as formItemContextKey, s as formItemStatusContextKey, re as gridContextKey, se as imageGroupContextKey, Se as menuContextKey, Ce as menuLevelContextKey, A as radioGroupContextKey, Be as splitContextKey, we as subMenuContextKey, Ke as tableContextKey, Je as tabsContextKey, $e as timelineContextKey, nt as treeContextKey, me as useLayer, ke as useMessage, je as useModal };
@@ -5,10 +5,12 @@
5
5
  background-color: getCssVar("color", "bg-2");
6
6
  font-size: getCssVar("font-size", "medium");
7
7
  border-radius: getCssVar("radius", "larger");
8
- border: 1px solid getCssVar("color", "fill-3");
9
8
  display: inline-flex;
10
9
  flex-direction: column;
11
10
  overflow: hidden;
11
+ @include m(bordered) {
12
+ border: 1px solid getCssVar("color", "fill-3");
13
+ }
12
14
  @include e(image) {
13
15
  overflow: hidden;
14
16
  }
@@ -9,6 +9,7 @@
9
9
  }
10
10
 
11
11
  @include b(form-item) {
12
+ width: 100%;
12
13
  display: flex;
13
14
  box-sizing: border-box;
14
15
  font-size: getCssVar("font-size", "medium");
@@ -217,9 +217,16 @@
217
217
  "s-card/shadow": {
218
218
  "description": "卡片阴影"
219
219
  },
220
+ "s-card/bordered": {
221
+ "description": "卡片边框",
222
+ "type": "boolean"
223
+ },
220
224
  "s-card/bodyStyle": {
221
225
  "description": "卡片内容区域样式"
222
226
  },
227
+ "s-card/titleProps": {
228
+ "description": "卡片标题属性"
229
+ },
223
230
  "s-carousel/modelValue": {
224
231
  "description": "当前轮播图索引(v-model)",
225
232
  "type": "number"
@@ -239,8 +246,8 @@
239
246
  "description": "切换速度",
240
247
  "type": "number"
241
248
  },
242
- "s-carousel/card": {
243
- "description": "是否显示为卡片样式",
249
+ "s-carousel/solid": {
250
+ "description": "是否显示为3D样式",
244
251
  "type": "boolean"
245
252
  },
246
253
  "s-carousel/showArrow": {
@@ -96,7 +96,9 @@
96
96
  "subtitle",
97
97
  "bar",
98
98
  "shadow",
99
- "bodyStyle"
99
+ "bordered",
100
+ "bodyStyle",
101
+ "titleProps"
100
102
  ]
101
103
  },
102
104
  "s-carousel": {
@@ -106,7 +108,7 @@
106
108
  "items",
107
109
  "autoplay",
108
110
  "speed",
109
- "card",
111
+ "solid",
110
112
  "showArrow",
111
113
  "indicator",
112
114
  "indicatorPosition"
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "savor-ui",
5
- "version": "0.17.0",
5
+ "version": "0.18.0",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "types-syntax": "typescript",
@@ -580,6 +580,14 @@
580
580
  "kind": "expression"
581
581
  }
582
582
  },
583
+ {
584
+ "name": "bordered",
585
+ "description": "卡片边框",
586
+ "value": {
587
+ "type": "boolean",
588
+ "kind": "expression"
589
+ }
590
+ },
583
591
  {
584
592
  "name": "bodyStyle",
585
593
  "description": "卡片内容区域样式",
@@ -587,6 +595,14 @@
587
595
  "type": "Record<string, string>",
588
596
  "kind": "expression"
589
597
  }
598
+ },
599
+ {
600
+ "name": "titleProps",
601
+ "description": "卡片标题属性",
602
+ "value": {
603
+ "type": "TextProps",
604
+ "kind": "expression"
605
+ }
590
606
  }
591
607
  ],
592
608
  "events": [],
@@ -661,8 +677,8 @@
661
677
  }
662
678
  },
663
679
  {
664
- "name": "card",
665
- "description": "是否显示为卡片样式",
680
+ "name": "solid",
681
+ "description": "是否显示为3D样式",
666
682
  "value": {
667
683
  "type": "boolean",
668
684
  "kind": "expression"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "savor-ui",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "A Vue3 Components Library",
5
5
  "keywords": [
6
6
  "component library",