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 +13 -0
- package/dist/es/components/index.mjs +1 -1
- package/dist/es/components/src/card/card.vue_vue_type_script_setup_true_vapor_true_lang.mjs +39 -32
- package/dist/es/components/src/card/index.d.ts +3 -0
- package/dist/es/components/src/card/types.d.ts +5 -0
- package/dist/es/components/src/carousel/carousel.vue_vue_type_script_setup_true_vapor_true_lang.mjs +6 -6
- package/dist/es/components/src/carousel/index.d.ts +1 -1
- package/dist/es/components/src/carousel/types.d.ts +2 -2
- package/dist/es/components/src/menu/menu.vue_vue_type_script_setup_true_vapor_true_lang.mjs +31 -28
- package/dist/es/components/src/menu/sub-menu.vue_vue_type_script_setup_true_vapor_true_lang.mjs +87 -85
- package/dist/es/components/src/menu/types.d.ts +2 -1
- package/dist/es/core/components.mjs +70 -70
- package/dist/es/core/index.mjs +63 -63
- package/dist/es/theme/components/card.scss +3 -1
- package/dist/es/theme/components/form.scss +1 -0
- package/dist/json/vetur-attributes.json +9 -2
- package/dist/json/vetur-tags.json +4 -2
- package/dist/json/web-types.json +19 -3
- package/package.json +1 -1
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/
|
|
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,
|
|
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
|
|
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
|
-
|
|
14
|
+
bordered: { type: Boolean },
|
|
15
|
+
bodyStyle: {},
|
|
16
|
+
titleProps: {}
|
|
15
17
|
},
|
|
16
|
-
setup(o, { slots:
|
|
17
|
-
let
|
|
18
|
+
setup(o, { slots: d }) {
|
|
19
|
+
let g = e("card"), _ = h(), v = n(_, 1);
|
|
18
20
|
return s(() => {
|
|
19
|
-
let e =
|
|
20
|
-
c(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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(
|
|
26
|
-
}), l(
|
|
27
|
-
let 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 =
|
|
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, {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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(
|
|
39
|
-
let e =
|
|
40
|
-
return s(() => c(e, [
|
|
41
|
-
}), l(
|
|
42
|
-
let e =
|
|
43
|
-
return s(() => c(e, [
|
|
44
|
-
}), l(
|
|
45
|
-
let e =
|
|
46
|
-
return s(() => c(e, [
|
|
47
|
-
}),
|
|
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 {
|
|
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
|
/** 自定义卡片内容 */
|
package/dist/es/components/src/carousel/carousel.vue_vue_type_script_setup_true_vapor_true_lang.mjs
CHANGED
|
@@ -18,7 +18,7 @@ var D = /*@__PURE__*/ u({
|
|
|
18
18
|
items: { default: () => [] },
|
|
19
19
|
autoplay: { type: Boolean },
|
|
20
20
|
speed: { default: 2e3 },
|
|
21
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
13
|
+
solid?: boolean | undefined;
|
|
14
14
|
showArrow?: boolean | undefined;
|
|
15
15
|
indicator?: boolean | undefined;
|
|
16
16
|
indicatorPosition?: "top" | "bottom" | "left" | "right" | "outside" | undefined;
|
|
@@ -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: "
|
|
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
|
-
})),
|
|
42
|
-
|
|
43
|
-
},
|
|
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
|
-
|
|
47
|
+
k.value = [e];
|
|
46
48
|
return;
|
|
47
49
|
}
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
}, { collapsed:
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
n(
|
|
55
|
-
e[0].contentRect.width ===
|
|
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:
|
|
58
|
-
collapsedWidth:
|
|
59
|
-
activeKey:
|
|
60
|
-
itemClick:
|
|
61
|
-
openKeys:
|
|
62
|
-
setOpenKey:
|
|
63
|
-
removeOpenKey:
|
|
64
|
-
isCollapsed:
|
|
65
|
-
activePopoverKey:
|
|
66
|
-
setActivePopoverKey:
|
|
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
|
|
71
|
+
let z = C();
|
|
69
72
|
return f(() => {
|
|
70
|
-
p(
|
|
71
|
-
}), m(
|
|
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(
|
|
80
|
+
}), h(z, R, null, "menuRef"), z;
|
|
78
81
|
}
|
|
79
82
|
});
|
|
80
83
|
//#endregion
|
package/dist/es/components/src/menu/sub-menu.vue_vue_type_script_setup_true_vapor_true_lang.mjs
CHANGED
|
@@ -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
|
|
10
|
-
import { child as
|
|
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
|
|
13
|
-
|
|
14
|
-
var
|
|
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(
|
|
24
|
-
let
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
let e =
|
|
28
|
-
return e != null &&
|
|
29
|
-
}),
|
|
30
|
-
e ?
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
|
|
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
|
-
|
|
37
|
-
|
|
36
|
+
X(), q = setTimeout(() => {
|
|
37
|
+
G(!1), q = null;
|
|
38
38
|
}, 150);
|
|
39
|
-
},
|
|
40
|
-
|
|
39
|
+
}, Z = () => {
|
|
40
|
+
Y.value === void 0 && (J.value || se());
|
|
41
41
|
}, ce = () => {
|
|
42
|
-
|
|
42
|
+
X(), R?.cancelParentClose();
|
|
43
43
|
}, le = (e) => {
|
|
44
|
-
|
|
44
|
+
Y.value === e && (Y.value = void 0, Z());
|
|
45
45
|
}, ue = () => {
|
|
46
|
-
|
|
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
|
-
|
|
49
|
-
}, Z = () => {
|
|
50
|
-
q.value = !0, Y(), L?.cancelParentClose();
|
|
48
|
+
L?.isCollapsed.value && (J.value = !1, Z());
|
|
51
49
|
}, fe = () => {
|
|
52
|
-
|
|
50
|
+
J.value = !0, X(), R?.cancelParentClose();
|
|
51
|
+
}, pe = () => {
|
|
52
|
+
J.value = !1, Z();
|
|
53
53
|
};
|
|
54
|
-
|
|
55
|
-
e && !
|
|
56
|
-
}),
|
|
57
|
-
|
|
58
|
-
}),
|
|
59
|
-
e && e.length > 0 && (
|
|
60
|
-
}, { immediate: !0 }),
|
|
61
|
-
|
|
62
|
-
}),
|
|
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
|
-
|
|
64
|
+
H.value.add(e), R?.registerDescendant(e);
|
|
65
65
|
},
|
|
66
|
-
outsideClick:
|
|
67
|
-
activeChildPopoverKey:
|
|
66
|
+
outsideClick: K,
|
|
67
|
+
activeChildPopoverKey: Y,
|
|
68
68
|
setActiveChildPopoverKey: (e) => {
|
|
69
|
-
|
|
69
|
+
Y.value = e;
|
|
70
70
|
},
|
|
71
71
|
notifyChildPopoverClose: le,
|
|
72
72
|
cancelParentClose: ce
|
|
73
73
|
});
|
|
74
|
-
let Q =
|
|
75
|
-
return
|
|
76
|
-
let e =
|
|
77
|
-
|
|
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",
|
|
80
|
-
e.is("collapse",
|
|
79
|
+
e.is("disabled", p.disabled),
|
|
80
|
+
e.is("collapse", E(L)?.isCollapsed.value)
|
|
81
81
|
]);
|
|
82
|
-
}),
|
|
83
|
-
let e =
|
|
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: () =>
|
|
87
|
+
onClickOutside: () => K
|
|
88
88
|
}, {
|
|
89
89
|
content: () => {
|
|
90
|
-
let e =
|
|
91
|
-
return
|
|
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: () =>
|
|
94
|
-
let e =
|
|
95
|
-
return
|
|
96
|
-
let n =
|
|
97
|
-
|
|
98
|
-
}),
|
|
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 =
|
|
101
|
-
return
|
|
102
|
-
let t =
|
|
103
|
-
|
|
104
|
-
}),
|
|
105
|
-
let e =
|
|
106
|
-
return
|
|
107
|
-
}),
|
|
108
|
-
let e =
|
|
109
|
-
return
|
|
110
|
-
}),
|
|
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,
|
|
115
|
+
return Q(e, W, null, "popoverRef"), e;
|
|
114
116
|
}, () => {
|
|
115
|
-
let e =
|
|
116
|
-
return
|
|
117
|
-
let t =
|
|
118
|
-
|
|
119
|
-
}),
|
|
120
|
-
let e =
|
|
121
|
-
return
|
|
122
|
-
}),
|
|
123
|
-
let e =
|
|
124
|
-
return
|
|
125
|
-
}),
|
|
126
|
-
let e =
|
|
127
|
-
return
|
|
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 =
|
|
131
|
+
}, 777), $.$evtmouseover = d(ue), _($, "mouseleave", de), Q($, I, null, "subMenuRef"), $;
|
|
130
132
|
}
|
|
131
133
|
});
|
|
132
134
|
//#endregion
|
|
133
|
-
export {
|
|
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 {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
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
|
-
|
|
86
|
-
|
|
84
|
+
v,
|
|
85
|
+
w,
|
|
87
86
|
b,
|
|
88
|
-
|
|
87
|
+
x,
|
|
89
88
|
O,
|
|
90
|
-
|
|
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
|
-
|
|
126
|
+
le,
|
|
128
127
|
de,
|
|
129
128
|
fe,
|
|
130
129
|
pe,
|
|
131
|
-
i,
|
|
132
130
|
me,
|
|
133
|
-
|
|
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
|
-
|
|
159
|
+
D,
|
|
160
160
|
Me,
|
|
161
161
|
Ne,
|
|
162
162
|
Pe,
|
package/dist/es/core/index.mjs
CHANGED
|
@@ -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 {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import pe from "../components/src/
|
|
56
|
-
import
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
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,
|
|
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
|
}
|
|
@@ -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/
|
|
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
|
-
"
|
|
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
|
-
"
|
|
111
|
+
"solid",
|
|
110
112
|
"showArrow",
|
|
111
113
|
"indicator",
|
|
112
114
|
"indicatorPosition"
|
package/dist/json/web-types.json
CHANGED
|
@@ -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.
|
|
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": "
|
|
665
|
-
"description": "
|
|
680
|
+
"name": "solid",
|
|
681
|
+
"description": "是否显示为3D样式",
|
|
666
682
|
"value": {
|
|
667
683
|
"type": "boolean",
|
|
668
684
|
"kind": "expression"
|