@keyblade/pro-components 1.7.3 → 1.7.5
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/pro-layout/hooks.d.ts +5 -1
- package/es/pro-layout/hooks.js +75 -75
- package/es/pro-layout/index.d.ts +72 -0
- package/es/pro-layout/pro-layout.vue.d.ts +52 -0
- package/es/pro-layout/pro-layout.vue.js +108 -80
- package/es/pro-menu/interface.d.ts +4 -1
- package/es/pro-page-container/index.d.ts +33 -6
- package/es/pro-page-container/pro-page-container.vue.d.ts +17 -3
- package/es/pro-page-container/pro-page-container.vue.js +14 -11
- package/es/pro-page-header/index.d.ts +42 -6
- package/es/pro-page-header/index.js +3 -3
- package/es/pro-page-header/pro-page-header.vue.d.ts +25 -3
- package/es/pro-page-header/pro-page-header.vue.js +63 -44
- package/es/pro-reuse-tabs/index.d.ts +54 -0
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.d.ts +35 -0
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.js +45 -28
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import o from "./pro-page-header.vue.js";
|
|
2
2
|
import "./pro-page-header.vue2.js";
|
|
3
|
-
import { Breadcrumb as r, Typography as s } from "@arco-design/web-vue";
|
|
4
|
-
import { IconApps as
|
|
3
|
+
import { Breadcrumb as r, Typography as s, Link as t } from "@arco-design/web-vue";
|
|
4
|
+
import { IconApps as m } from "@arco-design/web-vue/es/icon";
|
|
5
5
|
const a = Object.assign(o, {
|
|
6
6
|
install: (e) => {
|
|
7
|
-
e.use(r), e.use(s), e.use(t), e.component("KbProPageHeader", o);
|
|
7
|
+
e.use(r), e.use(s), e.use(t), e.use(m), e.component("KbProPageHeader", o);
|
|
8
8
|
}
|
|
9
9
|
}), P = a;
|
|
10
10
|
export {
|
|
@@ -24,6 +24,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
required: false;
|
|
25
25
|
default: boolean;
|
|
26
26
|
};
|
|
27
|
+
/** 面包屑路由模式 */
|
|
28
|
+
breadcrumbRouterMode: {
|
|
29
|
+
type: PropType<boolean>;
|
|
30
|
+
required: false;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
27
33
|
/** 面包屑前缀图标 */
|
|
28
34
|
breadcrumbPrefixIcon: {
|
|
29
35
|
type: PropType<string | boolean>;
|
|
@@ -32,7 +38,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
38
|
};
|
|
33
39
|
/** 面包屑项 */
|
|
34
40
|
breadcrumbItems: {
|
|
35
|
-
type: PropType<
|
|
41
|
+
type: PropType<{
|
|
42
|
+
path?: string | undefined;
|
|
43
|
+
label: string;
|
|
44
|
+
}[]>;
|
|
36
45
|
required: false;
|
|
37
46
|
default: () => never[];
|
|
38
47
|
};
|
|
@@ -61,6 +70,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
70
|
required: false;
|
|
62
71
|
default: boolean;
|
|
63
72
|
};
|
|
73
|
+
/** 面包屑路由模式 */
|
|
74
|
+
breadcrumbRouterMode: {
|
|
75
|
+
type: PropType<boolean>;
|
|
76
|
+
required: false;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
64
79
|
/** 面包屑前缀图标 */
|
|
65
80
|
breadcrumbPrefixIcon: {
|
|
66
81
|
type: PropType<string | boolean>;
|
|
@@ -69,16 +84,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
84
|
};
|
|
70
85
|
/** 面包屑项 */
|
|
71
86
|
breadcrumbItems: {
|
|
72
|
-
type: PropType<
|
|
87
|
+
type: PropType<{
|
|
88
|
+
path?: string | undefined;
|
|
89
|
+
label: string;
|
|
90
|
+
}[]>;
|
|
73
91
|
required: false;
|
|
74
92
|
default: () => never[];
|
|
75
93
|
};
|
|
76
94
|
}>>, {
|
|
77
95
|
title: string;
|
|
78
|
-
breadcrumbItems:
|
|
96
|
+
breadcrumbItems: {
|
|
97
|
+
path?: string | undefined;
|
|
98
|
+
label: string;
|
|
99
|
+
}[];
|
|
79
100
|
subTitle: string;
|
|
80
101
|
titlePosition: "top" | "bottom";
|
|
81
102
|
hideTitle: boolean;
|
|
103
|
+
breadcrumbRouterMode: boolean;
|
|
82
104
|
breadcrumbPrefixIcon: string | boolean;
|
|
83
105
|
}, {}>;
|
|
84
106
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as S, inject as N, computed as V, resolveComponent as n, openBlock as a, createElementBlock as u, normalizeClass as s, createVNode as r, unref as c, withCtx as l, createTextVNode as p, toDisplayString as f, createBlock as d, createCommentVNode as i, resolveDynamicComponent as A, Fragment as _, renderList as D } from "vue";
|
|
2
2
|
import { createReusableTemplate as x } from "@vueuse/core";
|
|
3
|
-
const
|
|
3
|
+
const M = { key: 1 }, b = "keyblade-pro-page-header", F = /* @__PURE__ */ S({
|
|
4
4
|
__name: "pro-page-header",
|
|
5
5
|
props: {
|
|
6
6
|
/** 标题,不传默认展示面包屑标题最后一项 */
|
|
@@ -27,6 +27,12 @@ const i = "keyblade-pro-page-header", w = /* @__PURE__ */ q({
|
|
|
27
27
|
required: !1,
|
|
28
28
|
default: !1
|
|
29
29
|
},
|
|
30
|
+
/** 面包屑路由模式 */
|
|
31
|
+
breadcrumbRouterMode: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
required: !1,
|
|
34
|
+
default: !1
|
|
35
|
+
},
|
|
30
36
|
/** 面包屑前缀图标 */
|
|
31
37
|
breadcrumbPrefixIcon: {
|
|
32
38
|
type: [Boolean, String],
|
|
@@ -40,65 +46,78 @@ const i = "keyblade-pro-page-header", w = /* @__PURE__ */ q({
|
|
|
40
46
|
default: () => []
|
|
41
47
|
}
|
|
42
48
|
},
|
|
43
|
-
setup(
|
|
44
|
-
const e =
|
|
45
|
-
return (
|
|
46
|
-
const
|
|
47
|
-
return
|
|
48
|
-
class:
|
|
49
|
+
setup(o) {
|
|
50
|
+
const e = o, [I, k] = x(), [B, g] = x(), v = N("ProBreadcrumbItems", []), y = V(() => e.breadcrumbItems instanceof Array && e.breadcrumbItems.length === 0 || !e.breadcrumbItems ? v.value : e.breadcrumbItems || []);
|
|
51
|
+
return (j, w) => {
|
|
52
|
+
const q = n("a-typography-title"), C = n("a-typography-text"), h = n("a-breadcrumb-item"), P = n("a-link"), $ = n("router-link"), R = n("a-breadcrumb");
|
|
53
|
+
return a(), u("div", {
|
|
54
|
+
class: s(b)
|
|
49
55
|
}, [
|
|
50
|
-
r(
|
|
51
|
-
default:
|
|
52
|
-
|
|
56
|
+
r(c(B), null, {
|
|
57
|
+
default: l(() => [
|
|
58
|
+
o.hideTitle ? i("", !0) : (a(), u("div", {
|
|
53
59
|
key: 0,
|
|
54
|
-
class:
|
|
60
|
+
class: s(`${b}-section-title`)
|
|
55
61
|
}, [
|
|
56
|
-
r(
|
|
62
|
+
r(q, {
|
|
57
63
|
heading: 6,
|
|
58
|
-
class:
|
|
64
|
+
class: s(`${b}-title`)
|
|
59
65
|
}, {
|
|
60
|
-
default:
|
|
61
|
-
var
|
|
66
|
+
default: l(() => {
|
|
67
|
+
var t, m, T;
|
|
62
68
|
return [
|
|
63
|
-
|
|
69
|
+
p(f((e == null ? void 0 : e.title) || ((T = (m = y.value) == null ? void 0 : m[((t = y.value) == null ? void 0 : t.length) - 1]) == null ? void 0 : T.label)), 1)
|
|
64
70
|
];
|
|
65
71
|
}),
|
|
66
72
|
_: 1
|
|
67
73
|
}, 8, ["class"]),
|
|
68
|
-
e != null && e.subTitle ? (
|
|
74
|
+
e != null && e.subTitle ? (a(), d(C, {
|
|
69
75
|
key: 0,
|
|
70
76
|
type: "secondary",
|
|
71
|
-
class:
|
|
77
|
+
class: s(`${b}-subtitle`)
|
|
72
78
|
}, {
|
|
73
|
-
default:
|
|
74
|
-
|
|
79
|
+
default: l(() => [
|
|
80
|
+
p(f(e == null ? void 0 : e.subTitle), 1)
|
|
75
81
|
]),
|
|
76
82
|
_: 1
|
|
77
|
-
}, 8, ["class"])) :
|
|
83
|
+
}, 8, ["class"])) : i("", !0)
|
|
78
84
|
], 2))
|
|
79
85
|
]),
|
|
80
86
|
_: 1
|
|
81
87
|
}),
|
|
82
|
-
r(
|
|
83
|
-
default:
|
|
84
|
-
r(
|
|
85
|
-
class:
|
|
88
|
+
r(c(I), null, {
|
|
89
|
+
default: l(() => [
|
|
90
|
+
r(R, {
|
|
91
|
+
class: s(`${b}-section-breadcrumb`)
|
|
86
92
|
}, {
|
|
87
|
-
default:
|
|
88
|
-
|
|
93
|
+
default: l(() => [
|
|
94
|
+
o.breadcrumbPrefixIcon ? (a(), d(h, {
|
|
89
95
|
key: 0,
|
|
90
96
|
style: { cursor: "text" }
|
|
91
97
|
}, {
|
|
92
|
-
default:
|
|
93
|
-
(
|
|
98
|
+
default: l(() => [
|
|
99
|
+
(a(), d(A(o.breadcrumbPrefixIcon)))
|
|
94
100
|
]),
|
|
95
101
|
_: 1
|
|
96
|
-
})) :
|
|
97
|
-
(
|
|
98
|
-
key: `${
|
|
102
|
+
})) : i("", !0),
|
|
103
|
+
(a(!0), u(_, null, D(y.value, (t, m) => (a(), d(h, {
|
|
104
|
+
key: `${t}-${m}`
|
|
99
105
|
}, {
|
|
100
|
-
default:
|
|
101
|
-
|
|
106
|
+
default: l(() => [
|
|
107
|
+
o.breadcrumbRouterMode ? (a(), d($, {
|
|
108
|
+
key: 0,
|
|
109
|
+
to: (t == null ? void 0 : t.path) || ""
|
|
110
|
+
}, {
|
|
111
|
+
default: l(() => [
|
|
112
|
+
r(P, null, {
|
|
113
|
+
default: l(() => [
|
|
114
|
+
p(f(t == null ? void 0 : t.label), 1)
|
|
115
|
+
]),
|
|
116
|
+
_: 2
|
|
117
|
+
}, 1024)
|
|
118
|
+
]),
|
|
119
|
+
_: 2
|
|
120
|
+
}, 1032, ["to"])) : (a(), u("span", M, f(t == null ? void 0 : t.label), 1))
|
|
102
121
|
]),
|
|
103
122
|
_: 2
|
|
104
123
|
}, 1024))), 128))
|
|
@@ -108,18 +127,18 @@ const i = "keyblade-pro-page-header", w = /* @__PURE__ */ q({
|
|
|
108
127
|
]),
|
|
109
128
|
_: 1
|
|
110
129
|
}),
|
|
111
|
-
|
|
112
|
-
r(
|
|
113
|
-
r(
|
|
114
|
-
], 64)) :
|
|
115
|
-
|
|
116
|
-
r(
|
|
117
|
-
r(
|
|
118
|
-
], 64)) :
|
|
130
|
+
o.titlePosition === "top" ? (a(), u(_, { key: 0 }, [
|
|
131
|
+
r(c(g)),
|
|
132
|
+
r(c(k))
|
|
133
|
+
], 64)) : i("", !0),
|
|
134
|
+
o.titlePosition === "bottom" ? (a(), u(_, { key: 1 }, [
|
|
135
|
+
r(c(k)),
|
|
136
|
+
r(c(g))
|
|
137
|
+
], 64)) : i("", !0)
|
|
119
138
|
]);
|
|
120
139
|
};
|
|
121
140
|
}
|
|
122
141
|
});
|
|
123
142
|
export {
|
|
124
|
-
|
|
143
|
+
F as default
|
|
125
144
|
};
|
|
@@ -5,6 +5,9 @@ declare const ProReuseTabs: {
|
|
|
5
5
|
$data: {};
|
|
6
6
|
$props: {
|
|
7
7
|
tabs?: import("./interface").IProTab[] | undefined;
|
|
8
|
+
tabsSize?: "small" | "mini" | "medium" | "large" | undefined;
|
|
9
|
+
tabsType?: "line" | "text" | "card" | "card-gutter" | "rounded" | "capsule" | undefined;
|
|
10
|
+
tabsHeaderPadding?: boolean | undefined;
|
|
8
11
|
key?: string | number | symbol | undefined;
|
|
9
12
|
ref?: import("vue").VNodeRef | undefined;
|
|
10
13
|
ref_for?: boolean | undefined;
|
|
@@ -71,6 +74,21 @@ declare const ProReuseTabs: {
|
|
|
71
74
|
required: true;
|
|
72
75
|
default: () => never[];
|
|
73
76
|
};
|
|
77
|
+
tabsSize: {
|
|
78
|
+
type: import("vue").PropType<"small" | "mini" | "medium" | "large">;
|
|
79
|
+
required: false;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
tabsType: {
|
|
83
|
+
type: import("vue").PropType<"line" | "text" | "card" | "card-gutter" | "rounded" | "capsule">;
|
|
84
|
+
required: false;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
tabsHeaderPadding: {
|
|
88
|
+
type: import("vue").PropType<boolean>;
|
|
89
|
+
required: false;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
74
92
|
}>> & {
|
|
75
93
|
"onTab-click"?: ((key: string) => any) | undefined;
|
|
76
94
|
"onTab-delete"?: ((key: string) => any) | undefined;
|
|
@@ -79,6 +97,9 @@ declare const ProReuseTabs: {
|
|
|
79
97
|
'tab-delete': (key: string) => true;
|
|
80
98
|
}, string, {
|
|
81
99
|
tabs: import("./interface").IProTab[];
|
|
100
|
+
tabsSize: "small" | "mini" | "medium" | "large";
|
|
101
|
+
tabsType: "line" | "text" | "card" | "card-gutter" | "rounded" | "capsule";
|
|
102
|
+
tabsHeaderPadding: boolean;
|
|
82
103
|
}, {}, string, {}> & {
|
|
83
104
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
84
105
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -105,6 +126,21 @@ declare const ProReuseTabs: {
|
|
|
105
126
|
required: true;
|
|
106
127
|
default: () => never[];
|
|
107
128
|
};
|
|
129
|
+
tabsSize: {
|
|
130
|
+
type: import("vue").PropType<"small" | "mini" | "medium" | "large">;
|
|
131
|
+
required: false;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
tabsType: {
|
|
135
|
+
type: import("vue").PropType<"line" | "text" | "card" | "card-gutter" | "rounded" | "capsule">;
|
|
136
|
+
required: false;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
tabsHeaderPadding: {
|
|
140
|
+
type: import("vue").PropType<boolean>;
|
|
141
|
+
required: false;
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
108
144
|
}>> & {
|
|
109
145
|
"onTab-click"?: ((key: string) => any) | undefined;
|
|
110
146
|
"onTab-delete"?: ((key: string) => any) | undefined;
|
|
@@ -118,6 +154,21 @@ declare const ProReuseTabs: {
|
|
|
118
154
|
required: true;
|
|
119
155
|
default: () => never[];
|
|
120
156
|
};
|
|
157
|
+
tabsSize: {
|
|
158
|
+
type: import("vue").PropType<"small" | "mini" | "medium" | "large">;
|
|
159
|
+
required: false;
|
|
160
|
+
default: string;
|
|
161
|
+
};
|
|
162
|
+
tabsType: {
|
|
163
|
+
type: import("vue").PropType<"line" | "text" | "card" | "card-gutter" | "rounded" | "capsule">;
|
|
164
|
+
required: false;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
167
|
+
tabsHeaderPadding: {
|
|
168
|
+
type: import("vue").PropType<boolean>;
|
|
169
|
+
required: false;
|
|
170
|
+
default: boolean;
|
|
171
|
+
};
|
|
121
172
|
}>> & {
|
|
122
173
|
"onTab-click"?: ((key: string) => any) | undefined;
|
|
123
174
|
"onTab-delete"?: ((key: string) => any) | undefined;
|
|
@@ -126,6 +177,9 @@ declare const ProReuseTabs: {
|
|
|
126
177
|
'tab-delete': (key: string) => true;
|
|
127
178
|
}, string, {
|
|
128
179
|
tabs: import("./interface").IProTab[];
|
|
180
|
+
tabsSize: "small" | "mini" | "medium" | "large";
|
|
181
|
+
tabsType: "line" | "text" | "card" | "card-gutter" | "rounded" | "capsule";
|
|
182
|
+
tabsHeaderPadding: boolean;
|
|
129
183
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
130
184
|
install: (app: App) => void;
|
|
131
185
|
};
|
|
@@ -6,6 +6,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
required: true;
|
|
7
7
|
default: () => never[];
|
|
8
8
|
};
|
|
9
|
+
tabsSize: {
|
|
10
|
+
type: PropType<"small" | "mini" | "medium" | "large">;
|
|
11
|
+
required: false;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
/** tabs类型 */
|
|
15
|
+
tabsType: {
|
|
16
|
+
type: PropType<"line" | "text" | "card" | "card-gutter" | "rounded" | "capsule">;
|
|
17
|
+
required: false;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
tabsHeaderPadding: {
|
|
21
|
+
type: PropType<boolean>;
|
|
22
|
+
required: false;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
9
25
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
26
|
'tab-click': (key: string) => true;
|
|
11
27
|
'tab-delete': (key: string) => true;
|
|
@@ -15,10 +31,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
31
|
required: true;
|
|
16
32
|
default: () => never[];
|
|
17
33
|
};
|
|
34
|
+
tabsSize: {
|
|
35
|
+
type: PropType<"small" | "mini" | "medium" | "large">;
|
|
36
|
+
required: false;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
/** tabs类型 */
|
|
40
|
+
tabsType: {
|
|
41
|
+
type: PropType<"line" | "text" | "card" | "card-gutter" | "rounded" | "capsule">;
|
|
42
|
+
required: false;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
tabsHeaderPadding: {
|
|
46
|
+
type: PropType<boolean>;
|
|
47
|
+
required: false;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
18
50
|
}>> & {
|
|
19
51
|
"onTab-click"?: ((key: string) => any) | undefined;
|
|
20
52
|
"onTab-delete"?: ((key: string) => any) | undefined;
|
|
21
53
|
}, {
|
|
22
54
|
tabs: IProTab[];
|
|
55
|
+
tabsSize: "small" | "mini" | "medium" | "large";
|
|
56
|
+
tabsType: "line" | "text" | "card" | "card-gutter" | "rounded" | "capsule";
|
|
57
|
+
tabsHeaderPadding: boolean;
|
|
23
58
|
}, {}>;
|
|
24
59
|
export default _default;
|
|
@@ -1,53 +1,70 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as y, computed as m, resolveComponent as l, openBlock as a, createElementBlock as d, normalizeClass as f, createVNode as k, withCtx as g, Fragment as v, renderList as h, createBlock as C } from "vue";
|
|
2
|
+
const S = "keyblade-pro-reuse-tabs", q = /* @__PURE__ */ y({
|
|
3
3
|
__name: "pro-reuse-tabs",
|
|
4
4
|
props: {
|
|
5
5
|
tabs: {
|
|
6
6
|
type: Array,
|
|
7
7
|
required: !0,
|
|
8
8
|
default: () => []
|
|
9
|
+
},
|
|
10
|
+
tabsSize: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: !1,
|
|
13
|
+
default: "small"
|
|
14
|
+
},
|
|
15
|
+
/** tabs类型 */
|
|
16
|
+
tabsType: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: !1,
|
|
19
|
+
default: "rounded"
|
|
20
|
+
},
|
|
21
|
+
tabsHeaderPadding: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
required: !1,
|
|
24
|
+
default: !0
|
|
9
25
|
}
|
|
10
26
|
},
|
|
11
27
|
emits: {
|
|
12
|
-
"tab-click": (
|
|
13
|
-
"tab-delete": (
|
|
28
|
+
"tab-click": (e) => !0,
|
|
29
|
+
"tab-delete": (e) => !0
|
|
14
30
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const s =
|
|
17
|
-
var
|
|
18
|
-
return ((
|
|
19
|
-
}),
|
|
20
|
-
n("tab-click", String(
|
|
21
|
-
}, u = (
|
|
22
|
-
n("tab-delete", String(
|
|
31
|
+
setup(e, { emit: n }) {
|
|
32
|
+
const s = e, o = m(() => {
|
|
33
|
+
var t;
|
|
34
|
+
return ((t = s.tabs.find((r) => r.active)) == null ? void 0 : t.name) ?? void 0;
|
|
35
|
+
}), c = (t) => {
|
|
36
|
+
n("tab-click", String(t));
|
|
37
|
+
}, u = (t) => {
|
|
38
|
+
n("tab-delete", String(t));
|
|
23
39
|
};
|
|
24
|
-
return (
|
|
25
|
-
const b =
|
|
26
|
-
return a(),
|
|
27
|
-
class:
|
|
40
|
+
return (t, r) => {
|
|
41
|
+
const b = l("a-tab-pane"), p = l("a-tabs");
|
|
42
|
+
return a(), d("div", {
|
|
43
|
+
class: f(S)
|
|
28
44
|
}, [
|
|
29
|
-
|
|
30
|
-
"active-key":
|
|
31
|
-
size:
|
|
32
|
-
type:
|
|
33
|
-
|
|
45
|
+
k(p, {
|
|
46
|
+
"active-key": o.value,
|
|
47
|
+
size: e.tabsSize,
|
|
48
|
+
type: e.tabsType,
|
|
49
|
+
"header-padding": e.tabsHeaderPadding,
|
|
50
|
+
editable: e.tabs.length > 1,
|
|
34
51
|
"hide-content": "",
|
|
35
52
|
"destroy-on-hide": "",
|
|
36
|
-
onTabClick:
|
|
53
|
+
onTabClick: c,
|
|
37
54
|
onDelete: u
|
|
38
55
|
}, {
|
|
39
|
-
default:
|
|
40
|
-
(a(!0),
|
|
41
|
-
key:
|
|
42
|
-
title:
|
|
56
|
+
default: g(() => [
|
|
57
|
+
(a(!0), d(v, null, h(e.tabs, (i) => (a(), C(b, {
|
|
58
|
+
key: i.name,
|
|
59
|
+
title: i.title
|
|
43
60
|
}, null, 8, ["title"]))), 128))
|
|
44
61
|
]),
|
|
45
62
|
_: 1
|
|
46
|
-
}, 8, ["active-key", "editable"])
|
|
63
|
+
}, 8, ["active-key", "size", "type", "header-padding", "editable"])
|
|
47
64
|
]);
|
|
48
65
|
};
|
|
49
66
|
}
|
|
50
67
|
});
|
|
51
68
|
export {
|
|
52
|
-
|
|
69
|
+
q as default
|
|
53
70
|
};
|
package/es/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.keyblade-pro-layout{width:100%;height:100%}.keyblade-pro-layout .keyblade-pro-layout-header{position:fixed;top:0;left:0;width:100%;height:var(--
|
|
1
|
+
.keyblade-pro-page-header{background:var(--color-bg-2);padding:16px 32px}.keyblade-pro-page-header .keyblade-pro-page-header-section-breadcrumb .arco-breadcrumb-item:first-child{padding-left:0}.keyblade-pro-page-header .keyblade-pro-page-header-title.arco-typography{padding-top:4px;margin-top:0}.keyblade-pro-menu .keyblade-pro-menu-item-img{width:14px;height:auto}.keyblade-pro-page-container .keyblade-pro-page-container-content{padding:20px}.keyblade-pro-layout{width:100%;height:100%}.keyblade-pro-layout .keyblade-pro-layout-header{position:fixed;top:0;left:0;width:100%;height:var(--c299e954);z-index:100;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background-color:var(--color-bg-2);border-bottom:1px solid var(--color-border);transition:all .2s cubic-bezier(.34,.69,.1,1)}.keyblade-pro-layout .keyblade-pro-layout-header-left{cursor:pointer;display:flex;align-items:center}.keyblade-pro-layout .keyblade-pro-layout-header-left-logo-img{width:28px;height:28px}.keyblade-pro-layout .keyblade-pro-layout-header-left-logo-title.arco-typography{margin:0;font-size:18px}.keyblade-pro-layout .keyblade-pro-layout-header-center{flex:1}.keyblade-pro-layout .keyblade-pro-layout-sider{padding-top:var(--c299e954);position:fixed;top:0;left:0;z-index:99;height:100%;transition:all .2s cubic-bezier(.34,.69,.1,1)}.keyblade-pro-layout .keyblade-pro-layout-sider-content{position:relative;height:100%;overflow:auto}.keyblade-pro-layout .keyblade-pro-layout-sider-collapse-btn.arco-btn{position:absolute;right:12px;bottom:12px}.keyblade-pro-layout .keyblade-pro-layout-body{padding-top:var(--c299e954);padding-left:var(--5c2d09d7);min-height:100vh;overflow-y:hidden;background-color:var(--color-fill-2);transition:padding .2s cubic-bezier(.34,.69,.1,1)}.keyblade-pro-layout .keyblade-pro-layout-body-affix .arco-affix{z-index:98}.keyblade-pro-layout .keyblade-pro-layout-body-footer{display:flex;align-items:center;justify-content:center;height:40px;color:var(--color-text-2);text-align:center}.keyblade-pro-layout .keyblade-pro-layout-body-collapsed{padding-left:var(--4313bece)}.keyblade-pro-layout-side .keyblade-pro-layout-header{z-index:98;left:var(--5c2d09d7);width:calc(100% - var(--5c2d09d7))}.keyblade-pro-layout-side .keyblade-pro-layout-header-collapsed{left:var(--4313bece);width:calc(100% - var(--4313bece))}.keyblade-pro-layout-side .keyblade-pro-layout-sider{padding-top:0}.keyblade-pro-layout-side .keyblade-pro-layout-sider-content-logo{position:relative;display:flex;align-items:center;padding:16px;cursor:pointer;transition:padding .3s cubic-bezier(.645,.045,.355,1)}.keyblade-pro-layout-side .keyblade-pro-layout-sider-content-logo-img{width:28px;height:28px}.keyblade-pro-layout-side .keyblade-pro-layout-sider-content-logo-title.arco-typography{margin:0;font-size:18px}.keyblade-pro-layout-side .keyblade-pro-layout-sider-collapsed .keyblade-pro-layout-sider-content-logo{padding:16px 10px}.keyblade-pro-reuse-tabs{position:relative;background-color:var(--color-bg-2);padding:4px 20px}
|