savor-ui 0.10.1 → 0.11.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/src/menu/index.d.ts +6 -3
- package/dist/es/components/src/menu/menu-group.d.ts +3 -3
- package/dist/es/components/src/menu/menu-group.vue_vue_type_script_setup_true_vapor_true_lang.mjs +23 -22
- package/dist/es/components/src/menu/menu-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -1
- package/dist/es/components/src/menu/sub-menu.vue_vue_type_script_setup_true_vapor_true_lang.mjs +4 -3
- package/dist/es/components/src/menu/types.d.ts +23 -1
- package/dist/es/components/src/segmented/segmented.vue_vue_type_script_setup_true_vapor_true_lang.mjs +10 -18
- package/dist/es/components/src/switch/switch.vue_vue_type_script_setup_true_vapor_true_lang.mjs +27 -25
- package/dist/json/vetur-attributes.json +24 -0
- package/dist/json/vetur-tags.json +12 -2
- package/dist/json/web-types.json +69 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
# [0.11.0](https://gitee.com/mach552/savor-ui/compare/v0.10.1...v0.11.0) (2026-07-14)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **segmented:** 修复默认激活块宽度不足的问题 ([1d36714](https://gitee.com/mach552/savor-ui/commits/1d36714cf67b9c234c453ed77dc7a6beee80dba7))
|
|
11
|
+
* **switch:** 修复默认值错误的问题 ([729312b](https://gitee.com/mach552/savor-ui/commits/729312bfd5244932fac28774af3ddde61e646b6a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **menu:** 新增`ignoreLevel`属性 ([d183006](https://gitee.com/mach552/savor-ui/commits/d183006dbcf32ba78ed76af043e54b2469c86254))
|
|
17
|
+
|
|
5
18
|
## [0.10.1](https://gitee.com/mach552/savor-ui/compare/v0.10.0...v0.10.1) (2026-07-14)
|
|
6
19
|
|
|
7
20
|
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MenuGroupSlots, MenuItemSlots, MenuSlots, SubMenuSlots } from './types';
|
|
2
2
|
import { PublicProps, VNode, Plugin } from 'vue';
|
|
3
3
|
export declare const SMenuGroup: ((__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
|
-
slots:
|
|
5
|
+
slots: MenuGroupSlots;
|
|
6
6
|
emit: {};
|
|
7
7
|
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
8
|
props: PublicProps & {
|
|
9
9
|
name: string | number;
|
|
10
10
|
title?: string | undefined;
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
|
+
ignoreLevel?: boolean | undefined;
|
|
12
13
|
} & (typeof globalThis extends {
|
|
13
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
14
15
|
} ? P : {});
|
|
15
16
|
expose: (exposed: {}) => void;
|
|
16
17
|
attrs: any;
|
|
17
|
-
slots:
|
|
18
|
+
slots: MenuGroupSlots;
|
|
18
19
|
emit: {};
|
|
19
20
|
}>) => VNode & {
|
|
20
21
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -29,6 +30,7 @@ export declare const SMenuItem: ((__VLS_props: NonNullable<Awaited<typeof __VLS_
|
|
|
29
30
|
title?: string | undefined;
|
|
30
31
|
disabled?: boolean | undefined;
|
|
31
32
|
item?: any;
|
|
33
|
+
ignoreLevel?: boolean | undefined;
|
|
32
34
|
} & (typeof globalThis extends {
|
|
33
35
|
__VLS_PROPS_FALLBACK: infer P;
|
|
34
36
|
} ? P : {});
|
|
@@ -75,6 +77,7 @@ export declare const SSubMenu: ((__VLS_props: NonNullable<Awaited<typeof __VLS_s
|
|
|
75
77
|
name: string | number;
|
|
76
78
|
title?: string | undefined;
|
|
77
79
|
disabled?: boolean | undefined;
|
|
80
|
+
ignoreLevel?: boolean | undefined;
|
|
78
81
|
} & (typeof globalThis extends {
|
|
79
82
|
__VLS_PROPS_FALLBACK: infer P;
|
|
80
83
|
} ? P : {});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MenuGroupProps, MenuGroupSlots } from './types';
|
|
2
2
|
import { PublicProps, VNode } from 'vue';
|
|
3
3
|
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: PublicProps & __VLS_PrettifyLocal<
|
|
4
|
+
props: PublicProps & __VLS_PrettifyLocal<MenuGroupProps> & (typeof globalThis extends {
|
|
5
5
|
__VLS_PROPS_FALLBACK: infer P;
|
|
6
6
|
} ? P : {});
|
|
7
7
|
expose: (exposed: {}) => void;
|
|
8
8
|
attrs: any;
|
|
9
|
-
slots:
|
|
9
|
+
slots: MenuGroupSlots;
|
|
10
10
|
emit: {};
|
|
11
11
|
}>) => VNode & {
|
|
12
12
|
__ctx?: Awaited<typeof __VLS_setup>;
|
package/dist/es/components/src/menu/menu-group.vue_vue_type_script_setup_true_vapor_true_lang.mjs
CHANGED
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
import { useNamespace as e } from "../../../hooks/src/use-namespace.mjs";
|
|
2
2
|
import "../../../hooks/index.mjs";
|
|
3
3
|
import { menuContextKey as t, menuLevelContextKey as n } from "./types.mjs";
|
|
4
|
-
import { child as r,
|
|
4
|
+
import { child as r, computed as i, createIf as a, createSlot as o, defineVaporComponent as s, inject as c, next as l, onMounted as u, provide as d, renderEffect as f, setClass as p, setInsertionState as m, setStaticTemplateRef as h, setText as g, template as _, toDisplayString as v, unref as y, useTemplateRef as b } from "vue";
|
|
5
5
|
//#region ../components/src/menu/menu-group.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
6
|
-
var
|
|
6
|
+
var x = _("<div>"), S = _(" "), C = _("<div><div><div></div></div><div>", 1), w = /*@__PURE__*/ s({
|
|
7
7
|
name: "SMenuGroup",
|
|
8
8
|
__name: "menu-group",
|
|
9
9
|
props: {
|
|
10
10
|
name: {},
|
|
11
11
|
title: {},
|
|
12
|
-
disabled: { type: Boolean }
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
ignoreLevel: { type: Boolean }
|
|
13
14
|
},
|
|
14
|
-
setup(
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}),
|
|
19
|
-
let
|
|
20
|
-
return
|
|
21
|
-
let e =
|
|
22
|
-
|
|
15
|
+
setup(s, { slots: _ }) {
|
|
16
|
+
let w = s, T = e("menu"), E = b("groupRef"), D = c(t, void 0), O = c(n, void 0), k = i(() => w.ignoreLevel ? 1 : O ? O.level.value + 1 : 1);
|
|
17
|
+
u(() => {
|
|
18
|
+
E.value?.style.setProperty("--s-menu-level", `${k.value}`);
|
|
19
|
+
}), d(n, { level: k });
|
|
20
|
+
let A = C(), j = r(A), M = r(j, 1), N = l(j, 1);
|
|
21
|
+
return f(() => {
|
|
22
|
+
let e = y(T);
|
|
23
|
+
p(A, [
|
|
23
24
|
e.e("group"),
|
|
24
|
-
e.is("disabled",
|
|
25
|
-
e.is("collapse",
|
|
26
|
-
]),
|
|
27
|
-
}),
|
|
28
|
-
let e = b();
|
|
29
|
-
return d(() => f(e, [v(C).e("group-icon")])), p(e, null, 0), a("icon"), e;
|
|
30
|
-
}), d(() => f(A, [v(C).e("group-label")])), p(A, null, 0), a("title", null, () => {
|
|
25
|
+
e.is("disabled", s.disabled),
|
|
26
|
+
e.is("collapse", y(D)?.isCollapsed.value)
|
|
27
|
+
]), p(j, [e.e("group-title")]);
|
|
28
|
+
}), m(j, 0, 0), a(() => _.icon, () => {
|
|
31
29
|
let e = x();
|
|
32
|
-
return
|
|
33
|
-
}),
|
|
30
|
+
return f(() => p(e, [y(T).e("group-icon")])), m(e, null, 0), o("icon"), e;
|
|
31
|
+
}), f(() => p(M, [y(T).e("group-label")])), m(M, null, 0), o("title", null, () => {
|
|
32
|
+
let e = S();
|
|
33
|
+
return f(() => g(e, v(s.title))), e;
|
|
34
|
+
}), f(() => p(N, [y(T).e("group-content")])), m(N, null, 0), o(), h(A, E, null, "groupRef"), A;
|
|
34
35
|
}
|
|
35
36
|
});
|
|
36
37
|
//#endregion
|
|
37
|
-
export {
|
|
38
|
+
export { w as default };
|
package/dist/es/components/src/menu/menu-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs
CHANGED
|
@@ -13,7 +13,8 @@ var O = /*@__PURE__*/ u({
|
|
|
13
13
|
name: {},
|
|
14
14
|
title: {},
|
|
15
15
|
disabled: { type: Boolean },
|
|
16
|
-
item: {}
|
|
16
|
+
item: {},
|
|
17
|
+
ignoreLevel: { type: Boolean }
|
|
17
18
|
},
|
|
18
19
|
setup(u, { slots: d }) {
|
|
19
20
|
let y = u, O = e("menu"), k = S("itemRef"), A = f(n, void 0), j = f(i, void 0), M = f(r, void 0), N = () => {
|
package/dist/es/components/src/menu/sub-menu.vue_vue_type_script_setup_true_vapor_true_lang.mjs
CHANGED
|
@@ -17,10 +17,11 @@ var P = /*@__PURE__*/ m({
|
|
|
17
17
|
props: {
|
|
18
18
|
name: {},
|
|
19
19
|
title: {},
|
|
20
|
-
disabled: { type: Boolean }
|
|
20
|
+
disabled: { type: Boolean },
|
|
21
|
+
ignoreLevel: { type: Boolean }
|
|
21
22
|
},
|
|
22
23
|
setup(m, { slots: h }) {
|
|
23
|
-
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 = R ? R.level + 1 : 1, B = x(!1), V = x(/* @__PURE__ */ new Set()), oe = () => {
|
|
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 = () => {
|
|
24
25
|
I?.collapsed.value || (B.value = !B.value, B.value ? I?.setOpenKey(E.name) : I?.removeOpenKey(E.name));
|
|
25
26
|
}, H = l(() => {
|
|
26
27
|
let e = I?.activeKey.value;
|
|
@@ -89,7 +90,7 @@ var P = /*@__PURE__*/ m({
|
|
|
89
90
|
let e = M();
|
|
90
91
|
return S(() => C(e, [O(P).e("pop-content")])), w(e, null, 0), p(), v(e, "mouseenter", Z), v(e, "mouseleave", fe), e;
|
|
91
92
|
},
|
|
92
|
-
default: () => d(() =>
|
|
93
|
+
default: () => d(() => z.value === 1, () => {
|
|
93
94
|
let e = j(), t = c(e);
|
|
94
95
|
return S(() => {
|
|
95
96
|
let n = O(P);
|
|
@@ -32,6 +32,8 @@ export interface MenuItemProps {
|
|
|
32
32
|
disabled?: boolean;
|
|
33
33
|
/** 菜单项数据 */
|
|
34
34
|
item?: any;
|
|
35
|
+
/** 是否忽略层级 */
|
|
36
|
+
ignoreLevel?: boolean;
|
|
35
37
|
}
|
|
36
38
|
export interface MenuItemSlots {
|
|
37
39
|
/** 默认 */
|
|
@@ -48,6 +50,8 @@ export interface SubMenuProps {
|
|
|
48
50
|
title?: string;
|
|
49
51
|
/** 是否禁用 */
|
|
50
52
|
disabled?: boolean;
|
|
53
|
+
/** 是否忽略层级 */
|
|
54
|
+
ignoreLevel?: boolean;
|
|
51
55
|
}
|
|
52
56
|
export interface SubMenuSlots {
|
|
53
57
|
/** 默认 */
|
|
@@ -57,6 +61,24 @@ export interface SubMenuSlots {
|
|
|
57
61
|
/** 自定义子菜单标题 */
|
|
58
62
|
title?: () => any;
|
|
59
63
|
}
|
|
64
|
+
export interface MenuGroupProps {
|
|
65
|
+
/** 菜单键值 */
|
|
66
|
+
name: string | number;
|
|
67
|
+
/** 菜单标题 */
|
|
68
|
+
title?: string;
|
|
69
|
+
/** 是否禁用 */
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
/** 是否忽略层级 */
|
|
72
|
+
ignoreLevel?: boolean;
|
|
73
|
+
}
|
|
74
|
+
export interface MenuGroupSlots {
|
|
75
|
+
/** 默认 */
|
|
76
|
+
default?: () => any;
|
|
77
|
+
/** 自定义子菜单图标 */
|
|
78
|
+
icon?: () => any;
|
|
79
|
+
/** 自定义子菜单标题 */
|
|
80
|
+
title?: () => any;
|
|
81
|
+
}
|
|
60
82
|
export interface MenuContext {
|
|
61
83
|
collapsed: Ref<boolean>;
|
|
62
84
|
collapsedWidth: Ref<number>;
|
|
@@ -80,6 +102,6 @@ export interface SubMenuContext {
|
|
|
80
102
|
}
|
|
81
103
|
export declare const subMenuContextKey: InjectionKey<SubMenuContext>;
|
|
82
104
|
export interface MenuLevelContext {
|
|
83
|
-
level: number
|
|
105
|
+
level: Ref<number>;
|
|
84
106
|
}
|
|
85
107
|
export declare const menuLevelContextKey: InjectionKey<MenuLevelContext>;
|
|
@@ -32,41 +32,33 @@ var O = /*@__PURE__*/ c({
|
|
|
32
32
|
}),
|
|
33
33
|
emits: /*@__PURE__*/ u(["change"], ["update:modelValue"]),
|
|
34
34
|
setup(c, { emit: l, slots: u }) {
|
|
35
|
-
let y = c, O = l, k = e("segmented"), A = C(c, "modelValue"), j = f([]), M = f(0), N = f(0), P = f(0), F = f(null)
|
|
35
|
+
let y = c, O = l, k = e("segmented"), A = C(c, "modelValue"), j = f([]), M = f(0), N = f(0), P = f(0), F = f(null);
|
|
36
|
+
A.value === void 0 && y.defaultValue !== void 0 && (A.value = y.defaultValue);
|
|
37
|
+
let I = (e, t) => {
|
|
36
38
|
e instanceof HTMLElement && (j.value[t] = e);
|
|
37
39
|
}, L = () => {
|
|
38
40
|
let e = j.value[M.value], t = F.value;
|
|
39
|
-
|
|
40
|
-
let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
|
|
41
|
-
P.value = r.left - n.left, N.value = r.width;
|
|
42
|
-
}
|
|
41
|
+
e && t && (P.value = e.offsetLeft, N.value = e.offsetWidth);
|
|
43
42
|
}, R = (e, t, n) => {
|
|
44
43
|
n || (A.value = e, O("change", e, t));
|
|
45
44
|
}, z = () => {
|
|
46
45
|
if (y.options.length === 0) return 0;
|
|
47
|
-
let e = y.options.map((e) => e[y.fieldNames.value]), t = A.value ? e.indexOf(A.value)
|
|
46
|
+
let e = y.options.map((e) => e[y.fieldNames.value]), t = A.value === void 0 ? 0 : e.indexOf(A.value);
|
|
48
47
|
return t >= 0 ? t : 0;
|
|
49
48
|
};
|
|
50
49
|
w(() => {
|
|
51
|
-
y.options.length > 0 && (M.value = z(),
|
|
50
|
+
y.options.length > 0 && (M.value = z(), L());
|
|
52
51
|
}), t(F, () => {
|
|
53
|
-
|
|
52
|
+
L();
|
|
54
53
|
}), w((e) => {
|
|
55
54
|
let t = j.value[M.value];
|
|
56
55
|
if (!t) return;
|
|
57
56
|
let n = new ResizeObserver(() => {
|
|
58
|
-
|
|
57
|
+
L();
|
|
59
58
|
});
|
|
60
|
-
n.observe(t), e(() => n.disconnect());
|
|
59
|
+
n.observe(t), L(), e(() => n.disconnect());
|
|
61
60
|
}), d(() => {
|
|
62
|
-
|
|
63
|
-
}), w((e) => {
|
|
64
|
-
let t = F.value;
|
|
65
|
-
if (!t) return;
|
|
66
|
-
let n = new IntersectionObserver((e) => {
|
|
67
|
-
e.some((e) => e.isIntersecting) && requestAnimationFrame(L);
|
|
68
|
-
});
|
|
69
|
-
n.observe(t), e(() => n.disconnect());
|
|
61
|
+
M.value = z(), L();
|
|
70
62
|
});
|
|
71
63
|
let B = s(), V = D(), H = n(V);
|
|
72
64
|
return p(() => {
|
package/dist/es/components/src/switch/switch.vue_vue_type_script_setup_true_vapor_true_lang.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useNamespace as e } from "../../../hooks/src/use-namespace.mjs";
|
|
2
2
|
import "../../../hooks/index.mjs";
|
|
3
3
|
import { useFormItem as t } from "../form/use-form-item.mjs";
|
|
4
|
-
import { child as n, computed as r, createIf as i, createInvoker as a, createSlot as o, createTemplateRefSetter as s, defineVaporComponent as c, delegateEvents as l, mergeModels as u, next as d, on as f, onMounted as p,
|
|
4
|
+
import { child as n, computed as r, createIf as i, createInvoker as a, createSlot as o, createTemplateRefSetter as s, defineVaporComponent as c, delegateEvents as l, mergeModels as u, next as d, on as f, onMounted as p, renderEffect as m, setClass as h, setInsertionState as g, setProp as _, setStyle as v, setText as y, template as b, toDisplayString as x, toRefs as S, txt as C, unref as w, useModel as T, useTemplateRef as E, watch as D, withKeys as O } from "vue";
|
|
5
5
|
//#region ../components/src/switch/switch.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
6
|
-
var
|
|
6
|
+
var k = b("<span> "), A = b("<div><input role=switch type=checkbox><div><div></div><div>", 1);
|
|
7
7
|
l("click");
|
|
8
|
-
var
|
|
8
|
+
var j = /*@__PURE__*/ c({
|
|
9
9
|
name: "SSwitch",
|
|
10
10
|
__name: "switch",
|
|
11
11
|
props: /*@__PURE__*/ u({
|
|
@@ -57,43 +57,45 @@ var M = /*@__PURE__*/ c({
|
|
|
57
57
|
}),
|
|
58
58
|
emits: /*@__PURE__*/ u(["change"], ["update:modelValue"]),
|
|
59
59
|
setup(c, { emit: l }) {
|
|
60
|
-
let u = c,
|
|
61
|
-
size:
|
|
62
|
-
error:
|
|
63
|
-
}),
|
|
60
|
+
let u = c, b = l, j = e("switch"), { size: M, error: N } = S(u), { mergedSize: P, mergedError: F } = t({
|
|
61
|
+
size: M,
|
|
62
|
+
error: N
|
|
63
|
+
}), I = T(c, "modelValue"), L = E("inputRef");
|
|
64
|
+
I.value === void 0 && u.defaultValue !== void 0 && (I.value = u.defaultValue);
|
|
65
|
+
let R = r(() => I.value === u.activeValue), z = async () => {
|
|
64
66
|
if (u.disabled) return;
|
|
65
|
-
let e =
|
|
67
|
+
let e = R.value ? u.inactiveValue : u.activeValue;
|
|
66
68
|
if (u.beforeChange) try {
|
|
67
69
|
await u.beforeChange(e);
|
|
68
70
|
} catch {
|
|
69
71
|
return;
|
|
70
72
|
}
|
|
71
|
-
|
|
73
|
+
I.value = e, b("change", e);
|
|
72
74
|
};
|
|
73
75
|
p(() => {
|
|
74
|
-
L.value
|
|
75
|
-
}),
|
|
76
|
-
|
|
76
|
+
L.value.checked = R.value;
|
|
77
|
+
}), D(R, (e) => {
|
|
78
|
+
L.value.checked = e;
|
|
77
79
|
});
|
|
78
|
-
let
|
|
79
|
-
return f(
|
|
80
|
-
let e =
|
|
81
|
-
|
|
80
|
+
let B = s(), V = A(), H = n(V), U = d(H, 1), W = n(U), G = d(W, 1);
|
|
81
|
+
return f(H, "keypress", O(z, ["enter"])), B(H, L, null, "inputRef"), m(() => {
|
|
82
|
+
let e = w(j), t = R.value, n = c.disabled, r = c.activeColor, i = c.inactiveColor;
|
|
83
|
+
h(V, [
|
|
82
84
|
e.b(),
|
|
83
|
-
e.m(
|
|
85
|
+
e.m(w(P)),
|
|
84
86
|
e.is("checked", t),
|
|
85
87
|
e.is("disabled", n),
|
|
86
88
|
e.is("circle", c.circle),
|
|
87
|
-
e.is("error",
|
|
88
|
-
]),
|
|
89
|
+
e.is("error", w(F))
|
|
90
|
+
]), h(H, [e.e("inner")]), _(H, "disabled", n), h(U, [e.e("core")]), v(U, {
|
|
89
91
|
backgroundColor: t ? r : i,
|
|
90
92
|
borderColor: t ? r : i
|
|
91
|
-
}),
|
|
92
|
-
}),
|
|
93
|
-
let e =
|
|
94
|
-
return
|
|
95
|
-
}),
|
|
93
|
+
}), h(W, [e.e("core-label")]);
|
|
94
|
+
}), g(W, null, 0), i(() => c.activeText || c.inactiveText, () => {
|
|
95
|
+
let e = k(), t = C(e);
|
|
96
|
+
return m(() => y(t, x(R.value ? c.activeText : c.inactiveText))), e;
|
|
97
|
+
}), m(() => h(G, [w(j).e("core-action")])), g(G, null, 0), i(() => R.value, () => o("active-icon"), () => o("inactive-icon"), 517), V.$evtclick = a(z), V;
|
|
96
98
|
}
|
|
97
99
|
});
|
|
98
100
|
//#endregion
|
|
99
|
-
export {
|
|
101
|
+
export { j as default };
|
|
@@ -1356,6 +1356,10 @@
|
|
|
1356
1356
|
"s-menu-item/item": {
|
|
1357
1357
|
"description": "菜单项数据"
|
|
1358
1358
|
},
|
|
1359
|
+
"s-menu-item/ignoreLevel": {
|
|
1360
|
+
"description": "是否忽略层级",
|
|
1361
|
+
"type": "boolean"
|
|
1362
|
+
},
|
|
1359
1363
|
"s-sub-menu/name": {
|
|
1360
1364
|
"description": "菜单键值",
|
|
1361
1365
|
"type": "string | number"
|
|
@@ -1368,6 +1372,26 @@
|
|
|
1368
1372
|
"description": "是否禁用",
|
|
1369
1373
|
"type": "boolean"
|
|
1370
1374
|
},
|
|
1375
|
+
"s-sub-menu/ignoreLevel": {
|
|
1376
|
+
"description": "是否忽略层级",
|
|
1377
|
+
"type": "boolean"
|
|
1378
|
+
},
|
|
1379
|
+
"s-menu-group/name": {
|
|
1380
|
+
"description": "菜单键值",
|
|
1381
|
+
"type": "string | number"
|
|
1382
|
+
},
|
|
1383
|
+
"s-menu-group/title": {
|
|
1384
|
+
"description": "菜单标题",
|
|
1385
|
+
"type": "string"
|
|
1386
|
+
},
|
|
1387
|
+
"s-menu-group/disabled": {
|
|
1388
|
+
"description": "是否禁用",
|
|
1389
|
+
"type": "boolean"
|
|
1390
|
+
},
|
|
1391
|
+
"s-menu-group/ignoreLevel": {
|
|
1392
|
+
"description": "是否忽略层级",
|
|
1393
|
+
"type": "boolean"
|
|
1394
|
+
},
|
|
1371
1395
|
"s-message/type": {
|
|
1372
1396
|
"description": "消息类型"
|
|
1373
1397
|
},
|
|
@@ -586,14 +586,24 @@
|
|
|
586
586
|
"name",
|
|
587
587
|
"title",
|
|
588
588
|
"disabled",
|
|
589
|
-
"item"
|
|
589
|
+
"item",
|
|
590
|
+
"ignoreLevel"
|
|
590
591
|
]
|
|
591
592
|
},
|
|
592
593
|
"s-sub-menu": {
|
|
593
594
|
"attributes": [
|
|
594
595
|
"name",
|
|
595
596
|
"title",
|
|
596
|
-
"disabled"
|
|
597
|
+
"disabled",
|
|
598
|
+
"ignoreLevel"
|
|
599
|
+
]
|
|
600
|
+
},
|
|
601
|
+
"s-menu-group": {
|
|
602
|
+
"attributes": [
|
|
603
|
+
"name",
|
|
604
|
+
"title",
|
|
605
|
+
"disabled",
|
|
606
|
+
"ignoreLevel"
|
|
597
607
|
]
|
|
598
608
|
},
|
|
599
609
|
"s-message": {
|
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.10.
|
|
5
|
+
"version": "0.10.1",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"types-syntax": "typescript",
|
|
@@ -3561,6 +3561,14 @@
|
|
|
3561
3561
|
"type": "any",
|
|
3562
3562
|
"kind": "expression"
|
|
3563
3563
|
}
|
|
3564
|
+
},
|
|
3565
|
+
{
|
|
3566
|
+
"name": "ignoreLevel",
|
|
3567
|
+
"description": "是否忽略层级",
|
|
3568
|
+
"value": {
|
|
3569
|
+
"type": "boolean",
|
|
3570
|
+
"kind": "expression"
|
|
3571
|
+
}
|
|
3564
3572
|
}
|
|
3565
3573
|
],
|
|
3566
3574
|
"events": [],
|
|
@@ -3605,6 +3613,66 @@
|
|
|
3605
3613
|
"type": "boolean",
|
|
3606
3614
|
"kind": "expression"
|
|
3607
3615
|
}
|
|
3616
|
+
},
|
|
3617
|
+
{
|
|
3618
|
+
"name": "ignoreLevel",
|
|
3619
|
+
"description": "是否忽略层级",
|
|
3620
|
+
"value": {
|
|
3621
|
+
"type": "boolean",
|
|
3622
|
+
"kind": "expression"
|
|
3623
|
+
}
|
|
3624
|
+
}
|
|
3625
|
+
],
|
|
3626
|
+
"events": [],
|
|
3627
|
+
"slots": [
|
|
3628
|
+
{
|
|
3629
|
+
"name": "default",
|
|
3630
|
+
"description": "默认"
|
|
3631
|
+
},
|
|
3632
|
+
{
|
|
3633
|
+
"name": "icon",
|
|
3634
|
+
"description": "自定义子菜单图标"
|
|
3635
|
+
},
|
|
3636
|
+
{
|
|
3637
|
+
"name": "title",
|
|
3638
|
+
"description": "自定义子菜单标题"
|
|
3639
|
+
}
|
|
3640
|
+
]
|
|
3641
|
+
},
|
|
3642
|
+
{
|
|
3643
|
+
"name": "s-menu-group",
|
|
3644
|
+
"attributes": [
|
|
3645
|
+
{
|
|
3646
|
+
"name": "name",
|
|
3647
|
+
"description": "菜单键值",
|
|
3648
|
+
"value": {
|
|
3649
|
+
"type": "string | number",
|
|
3650
|
+
"kind": "expression"
|
|
3651
|
+
}
|
|
3652
|
+
},
|
|
3653
|
+
{
|
|
3654
|
+
"name": "title",
|
|
3655
|
+
"description": "菜单标题",
|
|
3656
|
+
"value": {
|
|
3657
|
+
"type": "string",
|
|
3658
|
+
"kind": "expression"
|
|
3659
|
+
}
|
|
3660
|
+
},
|
|
3661
|
+
{
|
|
3662
|
+
"name": "disabled",
|
|
3663
|
+
"description": "是否禁用",
|
|
3664
|
+
"value": {
|
|
3665
|
+
"type": "boolean",
|
|
3666
|
+
"kind": "expression"
|
|
3667
|
+
}
|
|
3668
|
+
},
|
|
3669
|
+
{
|
|
3670
|
+
"name": "ignoreLevel",
|
|
3671
|
+
"description": "是否忽略层级",
|
|
3672
|
+
"value": {
|
|
3673
|
+
"type": "boolean",
|
|
3674
|
+
"kind": "expression"
|
|
3675
|
+
}
|
|
3608
3676
|
}
|
|
3609
3677
|
],
|
|
3610
3678
|
"events": [],
|