@keyblade/pro-components 1.4.5 → 1.4.6
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/es/index.js +22 -27
- package/es/pro-breadcrumb/index.js +9 -12
- package/es/pro-breadcrumb/pro-breadcrumb.vue.js +45 -58
- package/es/pro-breadcrumb/pro-breadcrumb.vue2.js +2 -2
- package/es/pro-breadcrumb/pro-breadcrumb.vue3.js +2 -2
- package/es/pro-keep-alive-router-view/index.js +7 -8
- package/es/pro-keep-alive-router-view/pro-keep-alive-router-view.vue.js +18 -28
- package/es/pro-keep-alive-router-view/pro-keep-alive-router-view.vue2.js +2 -2
- package/es/pro-layout/hooks.js +87 -162
- package/es/pro-layout/index.js +12 -23
- package/es/pro-layout/pro-layout.vue.js +128 -155
- package/es/pro-layout/pro-layout.vue2.js +2 -2
- package/es/pro-layout/pro-layout.vue3.js +2 -2
- package/es/pro-menu/index.js +8 -10
- package/es/pro-menu/pro-menu-item.vue.js +56 -71
- package/es/pro-menu/pro-menu-item.vue2.js +2 -2
- package/es/pro-menu/pro-menu-item.vue3.js +2 -2
- package/es/pro-menu/pro-menu.vue.js +31 -41
- package/es/pro-menu/pro-menu.vue2.js +2 -2
- package/es/pro-page-container/index.js +8 -10
- package/es/pro-page-container/pro-page-container.vue.js +27 -28
- package/es/pro-page-container/pro-page-container.vue2.js +2 -2
- package/es/pro-page-container/pro-page-container.vue3.js +2 -2
- package/es/pro-reuse-tabs/index.js +8 -10
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.js +28 -35
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue2.js +2 -2
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue3.js +2 -2
- package/es/style.css +1 -121
- package/package.json +3 -2
|
@@ -1,103 +1,88 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createBlock, createSlots, withCtx, createTextVNode, toDisplayString, renderList, createCommentVNode, resolveDynamicComponent, normalizeClass } from "vue";
|
|
2
|
-
import { useRouter } from "vue-router";
|
|
3
|
-
const
|
|
4
|
-
const _hoisted_2 = ["src"];
|
|
5
|
-
const __default__ = {
|
|
1
|
+
import { defineComponent as z, computed as E, resolveComponent as a, openBlock as t, createElementBlock as s, Fragment as _, createBlock as o, createSlots as I, withCtx as r, createTextVNode as M, toDisplayString as w, renderList as F, createCommentVNode as n, resolveDynamicComponent as B, normalizeClass as N } from "vue";
|
|
2
|
+
import { useRouter as K } from "vue-router";
|
|
3
|
+
const L = ["src"], P = ["src"], R = {
|
|
6
4
|
name: "KbProMenuItem"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
...__default__,
|
|
5
|
+
}, A = /* @__PURE__ */ z({
|
|
6
|
+
...R,
|
|
10
7
|
props: {
|
|
11
8
|
item: {}
|
|
12
9
|
},
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const onMenuItemClick = (item) => {
|
|
26
|
-
if (!(item == null ? void 0 : item.path)) {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
if (item.path.startsWith("http") || item.path.startsWith("https")) {
|
|
30
|
-
window.open(item.path);
|
|
31
|
-
return;
|
|
10
|
+
setup(W) {
|
|
11
|
+
const $ = W, c = "keyblade-pro-menu-item", u = K(), m = E(() => {
|
|
12
|
+
var i;
|
|
13
|
+
const e = (i = $.item) == null ? void 0 : i.icon;
|
|
14
|
+
return e != null && e.startsWith("icon") ? "icon" : "url";
|
|
15
|
+
}), D = (e) => {
|
|
16
|
+
if (e != null && e.path) {
|
|
17
|
+
if (e.path.startsWith("http") || e.path.startsWith("https")) {
|
|
18
|
+
window.open(e.path);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
u == null || u.push({ path: e.path });
|
|
32
22
|
}
|
|
33
|
-
router.push({ path: item.path });
|
|
34
23
|
};
|
|
35
|
-
return (
|
|
36
|
-
var
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
title: withCtx(() => [
|
|
45
|
-
createTextVNode(toDisplayString(_ctx.item.title), 1)
|
|
24
|
+
return (e, i) => {
|
|
25
|
+
var p, h, d, k, y, f, C, v;
|
|
26
|
+
const S = a("kb-pro-menu-item"), T = a("a-sub-menu"), V = a("a-menu-item");
|
|
27
|
+
return e.item && !e.item.hideInMenu ? (t(), s(_, { key: 0 }, [
|
|
28
|
+
(p = e.item) != null && p.children && ((d = (h = e.item) == null ? void 0 : h.children) == null ? void 0 : d.length) > 0 ? (t(), o(T, {
|
|
29
|
+
key: e.item.name
|
|
30
|
+
}, I({
|
|
31
|
+
title: r(() => [
|
|
32
|
+
M(w(e.item.title), 1)
|
|
46
33
|
]),
|
|
47
|
-
default:
|
|
48
|
-
var
|
|
34
|
+
default: r(() => {
|
|
35
|
+
var l, g;
|
|
49
36
|
return [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}, null, 8, ["item"]);
|
|
55
|
-
}), 128)) : createCommentVNode("", true)
|
|
37
|
+
(l = e.item) != null && l.hideChildrenInMenu ? n("", !0) : (t(!0), s(_, { key: 0 }, F(((g = e.item) == null ? void 0 : g.children) || [], (b) => (t(), o(S, {
|
|
38
|
+
key: b.name,
|
|
39
|
+
item: b
|
|
40
|
+
}, null, 8, ["item"]))), 128))
|
|
56
41
|
];
|
|
57
42
|
}),
|
|
58
43
|
_: 2
|
|
59
44
|
}, [
|
|
60
|
-
(
|
|
45
|
+
(k = e.item) != null && k.icon ? {
|
|
61
46
|
name: "icon",
|
|
62
|
-
fn:
|
|
63
|
-
|
|
64
|
-
|
|
47
|
+
fn: r(() => [
|
|
48
|
+
m.value === "icon" ? (t(), o(B(e.item.icon), { key: 0 })) : n("", !0),
|
|
49
|
+
m.value === "url" ? (t(), s("img", {
|
|
65
50
|
key: 1,
|
|
66
|
-
class:
|
|
67
|
-
src:
|
|
51
|
+
class: N(`${c}-img`),
|
|
52
|
+
src: e.item.icon,
|
|
68
53
|
alt: ""
|
|
69
|
-
}, null, 10,
|
|
54
|
+
}, null, 10, L)) : n("", !0)
|
|
70
55
|
]),
|
|
71
56
|
key: "0"
|
|
72
57
|
} : void 0
|
|
73
|
-
]), 1024)) :
|
|
74
|
-
!((
|
|
75
|
-
key:
|
|
76
|
-
onClick:
|
|
77
|
-
},
|
|
78
|
-
default:
|
|
79
|
-
|
|
58
|
+
]), 1024)) : n("", !0),
|
|
59
|
+
!((y = e.item) != null && y.children) || ((C = (f = e.item) == null ? void 0 : f.children) == null ? void 0 : C.length) === 0 ? (t(), o(V, {
|
|
60
|
+
key: e.item.name,
|
|
61
|
+
onClick: i[0] || (i[0] = (l) => D(e.item))
|
|
62
|
+
}, I({
|
|
63
|
+
default: r(() => [
|
|
64
|
+
M(" " + w(e.item.title), 1)
|
|
80
65
|
]),
|
|
81
66
|
_: 2
|
|
82
67
|
}, [
|
|
83
|
-
(
|
|
68
|
+
(v = e.item) != null && v.icon ? {
|
|
84
69
|
name: "icon",
|
|
85
|
-
fn:
|
|
86
|
-
|
|
87
|
-
|
|
70
|
+
fn: r(() => [
|
|
71
|
+
m.value === "icon" ? (t(), o(B(e.item.icon), { key: 0 })) : n("", !0),
|
|
72
|
+
m.value === "url" ? (t(), s("img", {
|
|
88
73
|
key: 1,
|
|
89
|
-
class:
|
|
90
|
-
src:
|
|
74
|
+
class: N(`${c}-img`),
|
|
75
|
+
src: e.item.icon,
|
|
91
76
|
alt: ""
|
|
92
|
-
}, null, 10,
|
|
77
|
+
}, null, 10, P)) : n("", !0)
|
|
93
78
|
]),
|
|
94
79
|
key: "0"
|
|
95
80
|
} : void 0
|
|
96
|
-
]), 1024)) :
|
|
97
|
-
], 64)) :
|
|
81
|
+
]), 1024)) : n("", !0)
|
|
82
|
+
], 64)) : n("", !0);
|
|
98
83
|
};
|
|
99
84
|
}
|
|
100
85
|
});
|
|
101
86
|
export {
|
|
102
|
-
|
|
87
|
+
A as default
|
|
103
88
|
};
|
|
@@ -1,65 +1,55 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeClass, withCtx, createElementBlock, Fragment, renderList } from "vue";
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as p, resolveComponent as f, openBlock as o, createBlock as i, normalizeClass as h, withCtx as y, createElementBlock as k, Fragment as C, renderList as _ } from "vue";
|
|
2
|
+
import x from "./pro-menu-item.vue.js";
|
|
3
3
|
import "./pro-menu-item.vue2.js";
|
|
4
|
-
const
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
const B = "keyblade-pro-menu", I = /* @__PURE__ */ p({
|
|
6
5
|
__name: "pro-menu",
|
|
7
6
|
props: {
|
|
8
7
|
collapsed: {
|
|
9
8
|
type: Boolean,
|
|
10
|
-
required:
|
|
9
|
+
required: !0
|
|
11
10
|
},
|
|
12
11
|
selectedKeys: {
|
|
13
12
|
type: Array,
|
|
14
|
-
required:
|
|
13
|
+
required: !0
|
|
15
14
|
},
|
|
16
15
|
items: {
|
|
17
16
|
type: Array,
|
|
18
|
-
required:
|
|
17
|
+
required: !0
|
|
19
18
|
}
|
|
20
19
|
},
|
|
21
20
|
emits: {
|
|
22
|
-
"menu-item-click": (
|
|
21
|
+
"menu-item-click": (t) => !0
|
|
23
22
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
findItem = item;
|
|
23
|
+
setup(t, { emit: m }) {
|
|
24
|
+
const u = t, d = (s) => {
|
|
25
|
+
let n;
|
|
26
|
+
const l = (r) => {
|
|
27
|
+
var a;
|
|
28
|
+
for (let c = 0; c < r.length; c++) {
|
|
29
|
+
const e = r[c];
|
|
30
|
+
if (e.name === s) {
|
|
31
|
+
n = e;
|
|
34
32
|
return;
|
|
35
33
|
}
|
|
36
|
-
|
|
37
|
-
find(item.children);
|
|
38
|
-
}
|
|
34
|
+
e != null && e.children && ((a = e.children) == null ? void 0 : a.length) > 0 && l(e.children);
|
|
39
35
|
}
|
|
40
36
|
};
|
|
41
|
-
|
|
42
|
-
if (findItem && (findItem.path.startsWith("http") || findItem.path.startsWith("https"))) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
emit("menu-item-click", key);
|
|
37
|
+
l(u.items), !(n && (n.path.startsWith("http") || n.path.startsWith("https"))) && m("menu-item-click", s);
|
|
46
38
|
};
|
|
47
|
-
return (
|
|
48
|
-
const
|
|
49
|
-
return
|
|
50
|
-
class:
|
|
51
|
-
collapsed:
|
|
52
|
-
"selected-keys":
|
|
39
|
+
return (s, n) => {
|
|
40
|
+
const l = f("a-menu");
|
|
41
|
+
return o(), i(l, {
|
|
42
|
+
class: h(B),
|
|
43
|
+
collapsed: t.collapsed,
|
|
44
|
+
"selected-keys": t.selectedKeys,
|
|
53
45
|
"auto-open-selected": "",
|
|
54
|
-
onMenuItemClick
|
|
46
|
+
onMenuItemClick: d
|
|
55
47
|
}, {
|
|
56
|
-
default:
|
|
57
|
-
(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}, null, 8, ["item"]);
|
|
62
|
-
}), 128))
|
|
48
|
+
default: y(() => [
|
|
49
|
+
(o(!0), k(C, null, _(t.items, (r) => (o(), i(x, {
|
|
50
|
+
key: r.name,
|
|
51
|
+
item: r
|
|
52
|
+
}, null, 8, ["item"]))), 128))
|
|
63
53
|
]),
|
|
64
54
|
_: 1
|
|
65
55
|
}, 8, ["collapsed", "selected-keys"]);
|
|
@@ -67,5 +57,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
67
57
|
}
|
|
68
58
|
});
|
|
69
59
|
export {
|
|
70
|
-
|
|
60
|
+
I as default
|
|
71
61
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from "./pro-page-container.vue.js";
|
|
2
2
|
import "./pro-page-container.vue2.js";
|
|
3
|
-
import { ProBreadcrumb } from "../pro-breadcrumb/index.js";
|
|
4
|
-
const
|
|
5
|
-
install: (
|
|
6
|
-
|
|
7
|
-
app.component("KbProPageContainer", _sfc_main);
|
|
3
|
+
import { ProBreadcrumb as n } from "../pro-breadcrumb/index.js";
|
|
4
|
+
const t = Object.assign(r, {
|
|
5
|
+
install: (o) => {
|
|
6
|
+
o.use(n), o.component("KbProPageContainer", r);
|
|
8
7
|
}
|
|
9
|
-
});
|
|
10
|
-
const ProPageContainer$1 = ProPageContainer;
|
|
8
|
+
}), m = t;
|
|
11
9
|
export {
|
|
12
|
-
ProPageContainer,
|
|
13
|
-
|
|
10
|
+
t as ProPageContainer,
|
|
11
|
+
m as default
|
|
14
12
|
};
|
|
@@ -1,71 +1,70 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, createCommentVNode, renderSlot } from "vue";
|
|
2
|
-
const
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1
|
+
import { defineComponent as l, resolveComponent as o, openBlock as r, createElementBlock as u, normalizeClass as c, createBlock as d, createCommentVNode as i, renderSlot as n } from "vue";
|
|
2
|
+
const b = "keyblade-pro-page-container", f = /* @__PURE__ */ l({
|
|
4
3
|
__name: "pro-page-container",
|
|
5
4
|
props: {
|
|
6
5
|
/** 是否隐藏面包屑 */
|
|
7
6
|
hideBreadcrumb: {
|
|
8
7
|
type: Boolean,
|
|
9
|
-
required:
|
|
10
|
-
default:
|
|
8
|
+
required: !1,
|
|
9
|
+
default: !1
|
|
11
10
|
},
|
|
12
11
|
/** 面包屑是否显示图标 */
|
|
13
12
|
breadcrumbShowIcon: {
|
|
14
13
|
type: Boolean,
|
|
15
|
-
required:
|
|
16
|
-
default:
|
|
14
|
+
required: !1,
|
|
15
|
+
default: !0
|
|
17
16
|
},
|
|
18
17
|
/** 面包屑图标类型 */
|
|
19
18
|
breadcrumbIcon: {
|
|
20
19
|
type: String,
|
|
21
|
-
required:
|
|
20
|
+
required: !1,
|
|
22
21
|
default: "icon-apps"
|
|
23
22
|
},
|
|
24
23
|
/** 面包屑项目 */
|
|
25
24
|
breadcrumbItems: {
|
|
26
25
|
type: Array,
|
|
27
|
-
required:
|
|
26
|
+
required: !1,
|
|
28
27
|
default: () => []
|
|
29
28
|
},
|
|
30
29
|
/** 面包屑是否显示标题 */
|
|
31
30
|
breadcrumbShowTitle: {
|
|
32
31
|
type: Boolean,
|
|
33
|
-
required:
|
|
34
|
-
default:
|
|
32
|
+
required: !1,
|
|
33
|
+
default: !0
|
|
35
34
|
},
|
|
36
35
|
/** 面包屑标题,不传默认展示面包屑标题最后一项 */
|
|
37
36
|
breadcrumbTitle: {
|
|
38
37
|
type: String,
|
|
39
|
-
required:
|
|
38
|
+
required: !1,
|
|
40
39
|
default: ""
|
|
41
40
|
},
|
|
42
41
|
/** 面包屑副标题,不传默认不展示 */
|
|
43
42
|
breadcrumbSubTitle: {
|
|
44
43
|
type: String,
|
|
45
|
-
required:
|
|
44
|
+
required: !1,
|
|
46
45
|
default: ""
|
|
47
46
|
}
|
|
48
47
|
},
|
|
49
|
-
setup(
|
|
50
|
-
return (
|
|
51
|
-
const
|
|
52
|
-
return
|
|
53
|
-
class:
|
|
48
|
+
setup(e) {
|
|
49
|
+
return (t, m) => {
|
|
50
|
+
const a = o("kb-pro-breadcrumb");
|
|
51
|
+
return r(), u("div", {
|
|
52
|
+
class: c(b)
|
|
54
53
|
}, [
|
|
55
|
-
|
|
54
|
+
e.hideBreadcrumb ? i("", !0) : (r(), d(a, {
|
|
56
55
|
key: 0,
|
|
57
|
-
"show-icon":
|
|
58
|
-
icon:
|
|
59
|
-
items:
|
|
60
|
-
"show-title":
|
|
61
|
-
title:
|
|
62
|
-
"sub-title":
|
|
63
|
-
}, null, 8, ["show-icon", "icon", "items", "show-title", "title", "sub-title"]))
|
|
64
|
-
|
|
56
|
+
"show-icon": e.breadcrumbShowIcon,
|
|
57
|
+
icon: e.breadcrumbIcon,
|
|
58
|
+
items: e.breadcrumbItems,
|
|
59
|
+
"show-title": e.breadcrumbShowTitle,
|
|
60
|
+
title: e.breadcrumbTitle,
|
|
61
|
+
"sub-title": e.breadcrumbSubTitle
|
|
62
|
+
}, null, 8, ["show-icon", "icon", "items", "show-title", "title", "sub-title"])),
|
|
63
|
+
n(t.$slots, "default")
|
|
65
64
|
]);
|
|
66
65
|
};
|
|
67
66
|
}
|
|
68
67
|
});
|
|
69
68
|
export {
|
|
70
|
-
|
|
69
|
+
f as default
|
|
71
70
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./pro-reuse-tabs.vue.js";
|
|
2
2
|
import "./pro-reuse-tabs.vue2.js";
|
|
3
|
-
import { Tabs } from "@arco-design/web-vue";
|
|
4
|
-
const
|
|
5
|
-
install: (
|
|
6
|
-
|
|
7
|
-
app.component("KbProReuseTabs", _sfc_main);
|
|
3
|
+
import { Tabs as e } from "@arco-design/web-vue";
|
|
4
|
+
const t = Object.assign(o, {
|
|
5
|
+
install: (s) => {
|
|
6
|
+
s.use(e), s.component("KbProReuseTabs", o);
|
|
8
7
|
}
|
|
9
|
-
});
|
|
10
|
-
const ProReuseTabs$1 = ProReuseTabs;
|
|
8
|
+
}), n = t;
|
|
11
9
|
export {
|
|
12
|
-
ProReuseTabs,
|
|
13
|
-
|
|
10
|
+
t as ProReuseTabs,
|
|
11
|
+
n as default
|
|
14
12
|
};
|
|
@@ -1,53 +1,46 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Fragment, renderList, createBlock } from "vue";
|
|
2
|
-
const
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1
|
+
import { defineComponent as p, computed as k, resolveComponent as c, openBlock as a, createElementBlock as l, normalizeClass as y, createVNode as _, withCtx as f, Fragment as v, renderList as C, createBlock as h } from "vue";
|
|
2
|
+
const g = "keyblade-pro-reuse-tabs", B = /* @__PURE__ */ p({
|
|
4
3
|
__name: "pro-reuse-tabs",
|
|
5
4
|
props: {
|
|
6
5
|
tabs: {
|
|
7
6
|
type: Array,
|
|
8
|
-
required:
|
|
7
|
+
required: !0,
|
|
9
8
|
default: () => []
|
|
10
9
|
}
|
|
11
10
|
},
|
|
12
11
|
emits: {
|
|
13
|
-
"tab-click": (
|
|
14
|
-
"tab-delete": (
|
|
12
|
+
"tab-click": (t) => !0,
|
|
13
|
+
"tab-delete": (t) => !0
|
|
15
14
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
setup(t, { emit: n }) {
|
|
16
|
+
const s = t, i = k(() => {
|
|
17
|
+
var e;
|
|
18
|
+
return ((e = s.tabs.find((o) => o.active)) == null ? void 0 : e.name) ?? void 0;
|
|
19
|
+
}), d = (e) => {
|
|
20
|
+
n("tab-click", String(e));
|
|
21
|
+
}, u = (e) => {
|
|
22
|
+
n("tab-delete", String(e));
|
|
24
23
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const _component_a_tab_pane = resolveComponent("a-tab-pane");
|
|
30
|
-
const _component_a_tabs = resolveComponent("a-tabs");
|
|
31
|
-
return openBlock(), createElementBlock("div", {
|
|
32
|
-
class: normalizeClass(prefixClsName)
|
|
24
|
+
return (e, o) => {
|
|
25
|
+
const b = c("a-tab-pane"), m = c("a-tabs");
|
|
26
|
+
return a(), l("div", {
|
|
27
|
+
class: y(g)
|
|
33
28
|
}, [
|
|
34
|
-
|
|
35
|
-
"active-key":
|
|
29
|
+
_(m, {
|
|
30
|
+
"active-key": i.value,
|
|
36
31
|
size: "mini",
|
|
37
32
|
type: "rounded",
|
|
38
|
-
editable:
|
|
33
|
+
editable: t.tabs.length > 1,
|
|
39
34
|
"hide-content": "",
|
|
40
35
|
"destroy-on-hide": "",
|
|
41
|
-
onTabClick,
|
|
42
|
-
onDelete:
|
|
36
|
+
onTabClick: d,
|
|
37
|
+
onDelete: u
|
|
43
38
|
}, {
|
|
44
|
-
default:
|
|
45
|
-
(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}, null, 8, ["title"]);
|
|
50
|
-
}), 128))
|
|
39
|
+
default: f(() => [
|
|
40
|
+
(a(!0), l(v, null, C(t.tabs, (r) => (a(), h(b, {
|
|
41
|
+
key: r.name,
|
|
42
|
+
title: r.title
|
|
43
|
+
}, null, 8, ["title"]))), 128))
|
|
51
44
|
]),
|
|
52
45
|
_: 1
|
|
53
46
|
}, 8, ["active-key", "editable"])
|
|
@@ -56,5 +49,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
49
|
}
|
|
57
50
|
});
|
|
58
51
|
export {
|
|
59
|
-
|
|
52
|
+
B as default
|
|
60
53
|
};
|