@keyblade/pro-components 1.4.5 → 1.5.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/es/components.d.ts +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +22 -27
- package/es/pro-keep-alive-router-view/index.d.ts +1 -1
- 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.d.ts +1 -1
- package/es/pro-layout/hooks.js +87 -162
- package/es/pro-layout/index.d.ts +31 -13
- package/es/pro-layout/index.js +12 -23
- package/es/pro-layout/pro-layout.vue.d.ts +36 -15
- package/es/pro-layout/pro-layout.vue.js +154 -169
- 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.d.ts +24 -4
- package/es/pro-menu/index.js +9 -10
- package/es/pro-menu/pro-menu.vue.d.ts +13 -1
- package/es/pro-menu/pro-menu.vue.js +101 -46
- package/es/pro-menu/pro-menu.vue2.js +2 -2
- package/es/pro-menu/pro-menu.vue3.js +5 -0
- package/es/pro-page-container/index.d.ts +82 -109
- package/es/pro-page-container/index.js +8 -10
- package/es/pro-page-container/pro-page-container.vue.d.ts +49 -79
- package/es/pro-page-container/pro-page-container.vue.js +37 -57
- 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-breadcrumb → pro-page-header}/index.d.ts +55 -55
- package/es/pro-page-header/index.js +13 -0
- package/es/{pro-breadcrumb/pro-breadcrumb.vue.d.ts → pro-page-header/pro-page-header.vue.d.ts} +41 -41
- package/es/pro-page-header/pro-page-header.vue.js +125 -0
- package/es/pro-page-header/pro-page-header.vue2.js +4 -0
- package/es/pro-page-header/pro-page-header.vue3.js +5 -0
- package/es/pro-reuse-tabs/index.d.ts +1 -1
- 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 +5 -3
- package/src/index.ts +3 -3
- package/es/pro-breadcrumb/index.js +0 -16
- package/es/pro-breadcrumb/pro-breadcrumb.vue.js +0 -115
- package/es/pro-breadcrumb/pro-breadcrumb.vue2.js +0 -4
- package/es/pro-breadcrumb/pro-breadcrumb.vue3.js +0 -5
- package/es/pro-menu/pro-menu-item.vue.d.ts +0 -14
- package/es/pro-menu/pro-menu-item.vue.js +0 -103
- package/es/pro-menu/pro-menu-item.vue2.js +0 -4
- package/es/pro-menu/pro-menu-item.vue3.js +0 -5
|
@@ -1,71 +1,51 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, createCommentVNode, renderSlot } from "vue";
|
|
2
|
-
const
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1
|
+
import { defineComponent as o, resolveComponent as d, openBlock as t, createElementBlock as n, normalizeClass as a, createBlock as c, createCommentVNode as s, createElementVNode as m, renderSlot as b } from "vue";
|
|
2
|
+
const r = "keyblade-pro-page-container", f = /* @__PURE__ */ o({
|
|
4
3
|
__name: "pro-page-container",
|
|
5
4
|
props: {
|
|
6
|
-
/**
|
|
7
|
-
|
|
5
|
+
/** 是否隐藏页头 */
|
|
6
|
+
hidePageHeader: {
|
|
8
7
|
type: Boolean,
|
|
9
|
-
required:
|
|
10
|
-
default:
|
|
8
|
+
required: !1,
|
|
9
|
+
default: !1
|
|
11
10
|
},
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
type:
|
|
15
|
-
required:
|
|
16
|
-
default:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/** 面包屑项目 */
|
|
25
|
-
breadcrumbItems: {
|
|
26
|
-
type: Array,
|
|
27
|
-
required: false,
|
|
28
|
-
default: () => []
|
|
29
|
-
},
|
|
30
|
-
/** 面包屑是否显示标题 */
|
|
31
|
-
breadcrumbShowTitle: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
required: false,
|
|
34
|
-
default: true
|
|
35
|
-
},
|
|
36
|
-
/** 面包屑标题,不传默认展示面包屑标题最后一项 */
|
|
37
|
-
breadcrumbTitle: {
|
|
38
|
-
type: String,
|
|
39
|
-
required: false,
|
|
40
|
-
default: ""
|
|
41
|
-
},
|
|
42
|
-
/** 面包屑副标题,不传默认不展示 */
|
|
43
|
-
breadcrumbSubTitle: {
|
|
44
|
-
type: String,
|
|
45
|
-
required: false,
|
|
46
|
-
default: ""
|
|
11
|
+
/** 页头属性 */
|
|
12
|
+
pageHeader: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: !1,
|
|
15
|
+
default: () => ({
|
|
16
|
+
title: "",
|
|
17
|
+
subTitle: "",
|
|
18
|
+
titlePosition: "top",
|
|
19
|
+
hideTitle: !1,
|
|
20
|
+
breadcrumbPrefixIcon: "icon-apps",
|
|
21
|
+
breadcrumbItems: []
|
|
22
|
+
})
|
|
47
23
|
}
|
|
48
24
|
},
|
|
49
|
-
setup(
|
|
50
|
-
return (
|
|
51
|
-
const
|
|
52
|
-
return
|
|
53
|
-
class:
|
|
25
|
+
setup(e) {
|
|
26
|
+
return (i, u) => {
|
|
27
|
+
const l = d("kb-pro-page-header");
|
|
28
|
+
return t(), n("div", {
|
|
29
|
+
class: a(r)
|
|
54
30
|
}, [
|
|
55
|
-
|
|
31
|
+
e.hidePageHeader ? s("", !0) : (t(), c(l, {
|
|
56
32
|
key: 0,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}, null, 8, ["
|
|
64
|
-
|
|
33
|
+
title: e.pageHeader.title,
|
|
34
|
+
subTitle: e.pageHeader.subTitle,
|
|
35
|
+
titlePosition: e.pageHeader.titlePosition,
|
|
36
|
+
hideTitle: e.pageHeader.hideTitle,
|
|
37
|
+
breadcrumbPrefixIcon: e.pageHeader.breadcrumbPrefixIcon,
|
|
38
|
+
breadcrumbItems: e.pageHeader.breadcrumbItems
|
|
39
|
+
}, null, 8, ["title", "subTitle", "titlePosition", "hideTitle", "breadcrumbPrefixIcon", "breadcrumbItems"])),
|
|
40
|
+
m("div", {
|
|
41
|
+
class: a(`${r}-content`)
|
|
42
|
+
}, [
|
|
43
|
+
b(i.$slots, "default")
|
|
44
|
+
], 2)
|
|
65
45
|
]);
|
|
66
46
|
};
|
|
67
47
|
}
|
|
68
48
|
});
|
|
69
49
|
export {
|
|
70
|
-
|
|
50
|
+
f as default
|
|
71
51
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { ComponentInternalInstance, VNodeRef, VNode, RendererNode, RendererElement, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, App } from 'vue';
|
|
2
|
-
declare const
|
|
2
|
+
declare const ProPageHeader: {
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
$: ComponentInternalInstance;
|
|
5
5
|
$data: {};
|
|
6
6
|
$props: {
|
|
7
|
-
showIcon?: boolean | undefined;
|
|
8
|
-
icon?: string | undefined;
|
|
9
|
-
items?: string[] | undefined;
|
|
10
|
-
showTitle?: boolean | undefined;
|
|
11
7
|
title?: string | undefined;
|
|
8
|
+
breadcrumbItems?: string[] | undefined;
|
|
12
9
|
subTitle?: string | undefined;
|
|
13
|
-
|
|
10
|
+
titlePosition?: "top" | "bottom" | undefined;
|
|
11
|
+
hideTitle?: boolean | undefined;
|
|
12
|
+
breadcrumbPrefixIcon?: string | boolean | undefined;
|
|
14
13
|
key?: string | number | symbol | undefined;
|
|
15
14
|
ref?: VNodeRef | undefined;
|
|
16
15
|
ref_for?: boolean | undefined;
|
|
@@ -54,6 +53,7 @@ declare const ProBreadcrumb: {
|
|
|
54
53
|
[key: string]: any;
|
|
55
54
|
}>) => void)[] | undefined;
|
|
56
55
|
class?: unknown;
|
|
56
|
+
style?: unknown;
|
|
57
57
|
};
|
|
58
58
|
$attrs: {
|
|
59
59
|
[x: string]: unknown;
|
|
@@ -69,43 +69,43 @@ declare const ProBreadcrumb: {
|
|
|
69
69
|
$emit: (event: string, ...args: any[]) => void;
|
|
70
70
|
$el: any;
|
|
71
71
|
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
72
|
-
|
|
73
|
-
type: PropType<
|
|
72
|
+
title: {
|
|
73
|
+
type: PropType<string>;
|
|
74
74
|
required: false;
|
|
75
|
-
default:
|
|
75
|
+
default: string;
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
subTitle: {
|
|
78
78
|
type: PropType<string>;
|
|
79
79
|
required: false;
|
|
80
80
|
default: string;
|
|
81
81
|
};
|
|
82
|
-
|
|
83
|
-
type: PropType<
|
|
82
|
+
titlePosition: {
|
|
83
|
+
type: PropType<"top" | "bottom">;
|
|
84
84
|
required: false;
|
|
85
|
-
default:
|
|
85
|
+
default: string;
|
|
86
86
|
};
|
|
87
|
-
|
|
87
|
+
hideTitle: {
|
|
88
88
|
type: PropType<boolean>;
|
|
89
89
|
required: false;
|
|
90
90
|
default: boolean;
|
|
91
91
|
};
|
|
92
|
-
|
|
93
|
-
type: PropType<string>;
|
|
92
|
+
breadcrumbPrefixIcon: {
|
|
93
|
+
type: PropType<string | boolean>;
|
|
94
94
|
required: false;
|
|
95
95
|
default: string;
|
|
96
96
|
};
|
|
97
|
-
|
|
98
|
-
type: PropType<string>;
|
|
97
|
+
breadcrumbItems: {
|
|
98
|
+
type: PropType<string[]>;
|
|
99
99
|
required: false;
|
|
100
|
-
default:
|
|
100
|
+
default: () => never[];
|
|
101
101
|
};
|
|
102
102
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
103
|
-
showIcon: boolean;
|
|
104
|
-
icon: string;
|
|
105
|
-
items: string[];
|
|
106
|
-
showTitle: boolean;
|
|
107
103
|
title: string;
|
|
104
|
+
breadcrumbItems: string[];
|
|
108
105
|
subTitle: string;
|
|
106
|
+
titlePosition: "top" | "bottom";
|
|
107
|
+
hideTitle: boolean;
|
|
108
|
+
breadcrumbPrefixIcon: string | boolean;
|
|
109
109
|
}, {}, string, {}> & {
|
|
110
110
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
111
111
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -127,80 +127,80 @@ declare const ProBreadcrumb: {
|
|
|
127
127
|
$nextTick: typeof nextTick;
|
|
128
128
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
129
129
|
} & Readonly<ExtractPropTypes<{
|
|
130
|
-
|
|
131
|
-
type: PropType<
|
|
130
|
+
title: {
|
|
131
|
+
type: PropType<string>;
|
|
132
132
|
required: false;
|
|
133
|
-
default:
|
|
133
|
+
default: string;
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
subTitle: {
|
|
136
136
|
type: PropType<string>;
|
|
137
137
|
required: false;
|
|
138
138
|
default: string;
|
|
139
139
|
};
|
|
140
|
-
|
|
141
|
-
type: PropType<
|
|
140
|
+
titlePosition: {
|
|
141
|
+
type: PropType<"top" | "bottom">;
|
|
142
142
|
required: false;
|
|
143
|
-
default:
|
|
143
|
+
default: string;
|
|
144
144
|
};
|
|
145
|
-
|
|
145
|
+
hideTitle: {
|
|
146
146
|
type: PropType<boolean>;
|
|
147
147
|
required: false;
|
|
148
148
|
default: boolean;
|
|
149
149
|
};
|
|
150
|
-
|
|
151
|
-
type: PropType<string>;
|
|
150
|
+
breadcrumbPrefixIcon: {
|
|
151
|
+
type: PropType<string | boolean>;
|
|
152
152
|
required: false;
|
|
153
153
|
default: string;
|
|
154
154
|
};
|
|
155
|
-
|
|
156
|
-
type: PropType<string>;
|
|
155
|
+
breadcrumbItems: {
|
|
156
|
+
type: PropType<string[]>;
|
|
157
157
|
required: false;
|
|
158
|
-
default:
|
|
158
|
+
default: () => never[];
|
|
159
159
|
};
|
|
160
160
|
}>> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
161
161
|
__isFragment?: undefined;
|
|
162
162
|
__isTeleport?: undefined;
|
|
163
163
|
__isSuspense?: undefined;
|
|
164
164
|
} & ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
165
|
-
|
|
166
|
-
type: PropType<
|
|
165
|
+
title: {
|
|
166
|
+
type: PropType<string>;
|
|
167
167
|
required: false;
|
|
168
|
-
default:
|
|
168
|
+
default: string;
|
|
169
169
|
};
|
|
170
|
-
|
|
170
|
+
subTitle: {
|
|
171
171
|
type: PropType<string>;
|
|
172
172
|
required: false;
|
|
173
173
|
default: string;
|
|
174
174
|
};
|
|
175
|
-
|
|
176
|
-
type: PropType<
|
|
175
|
+
titlePosition: {
|
|
176
|
+
type: PropType<"top" | "bottom">;
|
|
177
177
|
required: false;
|
|
178
|
-
default:
|
|
178
|
+
default: string;
|
|
179
179
|
};
|
|
180
|
-
|
|
180
|
+
hideTitle: {
|
|
181
181
|
type: PropType<boolean>;
|
|
182
182
|
required: false;
|
|
183
183
|
default: boolean;
|
|
184
184
|
};
|
|
185
|
-
|
|
186
|
-
type: PropType<string>;
|
|
185
|
+
breadcrumbPrefixIcon: {
|
|
186
|
+
type: PropType<string | boolean>;
|
|
187
187
|
required: false;
|
|
188
188
|
default: string;
|
|
189
189
|
};
|
|
190
|
-
|
|
191
|
-
type: PropType<string>;
|
|
190
|
+
breadcrumbItems: {
|
|
191
|
+
type: PropType<string[]>;
|
|
192
192
|
required: false;
|
|
193
|
-
default:
|
|
193
|
+
default: () => never[];
|
|
194
194
|
};
|
|
195
195
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
196
|
-
showIcon: boolean;
|
|
197
|
-
icon: string;
|
|
198
|
-
items: string[];
|
|
199
|
-
showTitle: boolean;
|
|
200
196
|
title: string;
|
|
197
|
+
breadcrumbItems: string[];
|
|
201
198
|
subTitle: string;
|
|
199
|
+
titlePosition: "top" | "bottom";
|
|
200
|
+
hideTitle: boolean;
|
|
201
|
+
breadcrumbPrefixIcon: string | boolean;
|
|
202
202
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
203
203
|
install: (app: App) => void;
|
|
204
204
|
};
|
|
205
|
-
export {
|
|
206
|
-
export default
|
|
205
|
+
export { ProPageHeader };
|
|
206
|
+
export default ProPageHeader;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import o from "./pro-page-header.vue.js";
|
|
2
|
+
import "./pro-page-header.vue2.js";
|
|
3
|
+
import { Breadcrumb as r, Typography as s } from "@arco-design/web-vue";
|
|
4
|
+
import { IconApps as t } from "@arco-design/web-vue/es/icon";
|
|
5
|
+
const a = Object.assign(o, {
|
|
6
|
+
install: (e) => {
|
|
7
|
+
e.use(r), e.use(s), e.use(t), e.component("KbProPageHeader", o);
|
|
8
|
+
}
|
|
9
|
+
}), P = a;
|
|
10
|
+
export {
|
|
11
|
+
a as ProPageHeader,
|
|
12
|
+
P as default
|
|
13
|
+
};
|
package/es/{pro-breadcrumb/pro-breadcrumb.vue.d.ts → pro-page-header/pro-page-header.vue.d.ts}
RENAMED
|
@@ -1,29 +1,42 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, type PropType } from 'vue';
|
|
2
2
|
declare const _default: DefineComponent<{
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
type: PropType<
|
|
3
|
+
/** 标题,不传默认展示面包屑标题最后一项 */
|
|
4
|
+
title: {
|
|
5
|
+
type: PropType<string>;
|
|
6
6
|
required: false;
|
|
7
|
-
default:
|
|
7
|
+
default: string;
|
|
8
8
|
};
|
|
9
|
-
/**
|
|
10
|
-
|
|
9
|
+
/** 副标题,不传默认不展示 */
|
|
10
|
+
subTitle: {
|
|
11
11
|
type: PropType<string>;
|
|
12
12
|
required: false;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
type: PropType<
|
|
15
|
+
/** 标题位置 */
|
|
16
|
+
titlePosition: {
|
|
17
|
+
type: PropType<"top" | "bottom">;
|
|
18
18
|
required: false;
|
|
19
|
-
default:
|
|
19
|
+
default: string;
|
|
20
20
|
};
|
|
21
|
-
/**
|
|
22
|
-
|
|
21
|
+
/** 是否隐藏标题 */
|
|
22
|
+
hideTitle: {
|
|
23
23
|
type: PropType<boolean>;
|
|
24
24
|
required: false;
|
|
25
25
|
default: boolean;
|
|
26
26
|
};
|
|
27
|
+
/** 面包屑前缀图标 */
|
|
28
|
+
breadcrumbPrefixIcon: {
|
|
29
|
+
type: PropType<string | boolean>;
|
|
30
|
+
required: false;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
/** 面包屑项 */
|
|
34
|
+
breadcrumbItems: {
|
|
35
|
+
type: PropType<string[]>;
|
|
36
|
+
required: false;
|
|
37
|
+
default: () => never[];
|
|
38
|
+
};
|
|
39
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
27
40
|
/** 标题,不传默认展示面包屑标题最后一项 */
|
|
28
41
|
title: {
|
|
29
42
|
type: PropType<string>;
|
|
@@ -36,49 +49,36 @@ declare const _default: DefineComponent<{
|
|
|
36
49
|
required: false;
|
|
37
50
|
default: string;
|
|
38
51
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
type: PropType<boolean>;
|
|
43
|
-
required: false;
|
|
44
|
-
default: boolean;
|
|
45
|
-
};
|
|
46
|
-
/** 图标类型 */
|
|
47
|
-
icon: {
|
|
48
|
-
type: PropType<string>;
|
|
52
|
+
/** 标题位置 */
|
|
53
|
+
titlePosition: {
|
|
54
|
+
type: PropType<"top" | "bottom">;
|
|
49
55
|
required: false;
|
|
50
56
|
default: string;
|
|
51
57
|
};
|
|
52
|
-
/**
|
|
53
|
-
|
|
54
|
-
type: PropType<string[]>;
|
|
55
|
-
required: false;
|
|
56
|
-
default: () => never[];
|
|
57
|
-
};
|
|
58
|
-
/** 是否显示标题 */
|
|
59
|
-
showTitle: {
|
|
58
|
+
/** 是否隐藏标题 */
|
|
59
|
+
hideTitle: {
|
|
60
60
|
type: PropType<boolean>;
|
|
61
61
|
required: false;
|
|
62
62
|
default: boolean;
|
|
63
63
|
};
|
|
64
|
-
/**
|
|
65
|
-
|
|
66
|
-
type: PropType<string>;
|
|
64
|
+
/** 面包屑前缀图标 */
|
|
65
|
+
breadcrumbPrefixIcon: {
|
|
66
|
+
type: PropType<string | boolean>;
|
|
67
67
|
required: false;
|
|
68
68
|
default: string;
|
|
69
69
|
};
|
|
70
|
-
/**
|
|
71
|
-
|
|
72
|
-
type: PropType<string>;
|
|
70
|
+
/** 面包屑项 */
|
|
71
|
+
breadcrumbItems: {
|
|
72
|
+
type: PropType<string[]>;
|
|
73
73
|
required: false;
|
|
74
|
-
default:
|
|
74
|
+
default: () => never[];
|
|
75
75
|
};
|
|
76
76
|
}>>, {
|
|
77
|
-
showIcon: boolean;
|
|
78
|
-
icon: string;
|
|
79
|
-
items: string[];
|
|
80
|
-
showTitle: boolean;
|
|
81
77
|
title: string;
|
|
78
|
+
breadcrumbItems: string[];
|
|
82
79
|
subTitle: string;
|
|
80
|
+
titlePosition: "top" | "bottom";
|
|
81
|
+
hideTitle: boolean;
|
|
82
|
+
breadcrumbPrefixIcon: string | boolean;
|
|
83
83
|
}, {}>;
|
|
84
84
|
export default _default;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { defineComponent as q, inject as $, computed as S, resolveComponent as d, openBlock as t, createElementBlock as c, normalizeClass as o, createVNode as r, unref as n, withCtx as a, createTextVNode as y, toDisplayString as p, createBlock as b, createCommentVNode as s, resolveDynamicComponent as N, Fragment as _, renderList as R } from "vue";
|
|
2
|
+
import { createReusableTemplate as x } from "@vueuse/core";
|
|
3
|
+
const i = "keyblade-pro-page-header", w = /* @__PURE__ */ q({
|
|
4
|
+
__name: "pro-page-header",
|
|
5
|
+
props: {
|
|
6
|
+
/** 标题,不传默认展示面包屑标题最后一项 */
|
|
7
|
+
title: {
|
|
8
|
+
type: String,
|
|
9
|
+
required: !1,
|
|
10
|
+
default: ""
|
|
11
|
+
},
|
|
12
|
+
/** 副标题,不传默认不展示 */
|
|
13
|
+
subTitle: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: !1,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
/** 标题位置 */
|
|
19
|
+
titlePosition: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: !1,
|
|
22
|
+
default: "top"
|
|
23
|
+
},
|
|
24
|
+
/** 是否隐藏标题 */
|
|
25
|
+
hideTitle: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
required: !1,
|
|
28
|
+
default: !1
|
|
29
|
+
},
|
|
30
|
+
/** 面包屑前缀图标 */
|
|
31
|
+
breadcrumbPrefixIcon: {
|
|
32
|
+
type: [Boolean, String],
|
|
33
|
+
required: !1,
|
|
34
|
+
default: "icon-apps"
|
|
35
|
+
},
|
|
36
|
+
/** 面包屑项 */
|
|
37
|
+
breadcrumbItems: {
|
|
38
|
+
type: Array,
|
|
39
|
+
required: !1,
|
|
40
|
+
default: () => []
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
setup(l) {
|
|
44
|
+
const e = l, [I, g] = x(), [k, h] = x(), B = $("ProBreadcrumbItems", []), f = S(() => e.breadcrumbItems instanceof Array && e.breadcrumbItems.length === 0 || !e.breadcrumbItems ? B.value : e.breadcrumbItems || []);
|
|
45
|
+
return (V, A) => {
|
|
46
|
+
const v = d("a-typography-title"), C = d("a-typography-text"), T = d("a-breadcrumb-item"), P = d("a-breadcrumb");
|
|
47
|
+
return t(), c("div", {
|
|
48
|
+
class: o(i)
|
|
49
|
+
}, [
|
|
50
|
+
r(n(k), null, {
|
|
51
|
+
default: a(() => [
|
|
52
|
+
l.hideTitle ? s("", !0) : (t(), c("div", {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: o(`${i}-section-title`)
|
|
55
|
+
}, [
|
|
56
|
+
r(v, {
|
|
57
|
+
heading: 6,
|
|
58
|
+
class: o(`${i}-title`)
|
|
59
|
+
}, {
|
|
60
|
+
default: a(() => {
|
|
61
|
+
var u, m;
|
|
62
|
+
return [
|
|
63
|
+
y(p((e == null ? void 0 : e.title) || ((m = f.value) == null ? void 0 : m[((u = f.value) == null ? void 0 : u.length) - 1])), 1)
|
|
64
|
+
];
|
|
65
|
+
}),
|
|
66
|
+
_: 1
|
|
67
|
+
}, 8, ["class"]),
|
|
68
|
+
e != null && e.subTitle ? (t(), b(C, {
|
|
69
|
+
key: 0,
|
|
70
|
+
type: "secondary",
|
|
71
|
+
class: o(`${i}-subtitle`)
|
|
72
|
+
}, {
|
|
73
|
+
default: a(() => [
|
|
74
|
+
y(p(e == null ? void 0 : e.subTitle), 1)
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
}, 8, ["class"])) : s("", !0)
|
|
78
|
+
], 2))
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
}),
|
|
82
|
+
r(n(I), null, {
|
|
83
|
+
default: a(() => [
|
|
84
|
+
r(P, {
|
|
85
|
+
class: o(`${i}-section-breadcrumb`)
|
|
86
|
+
}, {
|
|
87
|
+
default: a(() => [
|
|
88
|
+
l.breadcrumbPrefixIcon ? (t(), b(T, {
|
|
89
|
+
key: 0,
|
|
90
|
+
style: { cursor: "text" }
|
|
91
|
+
}, {
|
|
92
|
+
default: a(() => [
|
|
93
|
+
(t(), b(N(l.breadcrumbPrefixIcon)))
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
})) : s("", !0),
|
|
97
|
+
(t(!0), c(_, null, R(f.value, (u, m) => (t(), b(T, {
|
|
98
|
+
key: `${u}-${m}`
|
|
99
|
+
}, {
|
|
100
|
+
default: a(() => [
|
|
101
|
+
y(p(u), 1)
|
|
102
|
+
]),
|
|
103
|
+
_: 2
|
|
104
|
+
}, 1024))), 128))
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
}, 8, ["class"])
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
}),
|
|
111
|
+
l.titlePosition === "top" ? (t(), c(_, { key: 0 }, [
|
|
112
|
+
r(n(h)),
|
|
113
|
+
r(n(g))
|
|
114
|
+
], 64)) : s("", !0),
|
|
115
|
+
l.titlePosition === "bottom" ? (t(), c(_, { key: 1 }, [
|
|
116
|
+
r(n(g)),
|
|
117
|
+
r(n(h))
|
|
118
|
+
], 64)) : s("", !0)
|
|
119
|
+
]);
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
export {
|
|
124
|
+
w as default
|
|
125
|
+
};
|
|
@@ -6,7 +6,6 @@ declare const ProReuseTabs: {
|
|
|
6
6
|
$data: {};
|
|
7
7
|
$props: {
|
|
8
8
|
tabs?: IProTab[] | undefined;
|
|
9
|
-
style?: unknown;
|
|
10
9
|
key?: string | number | symbol | undefined;
|
|
11
10
|
ref?: VNodeRef | undefined;
|
|
12
11
|
ref_for?: boolean | undefined;
|
|
@@ -50,6 +49,7 @@ declare const ProReuseTabs: {
|
|
|
50
49
|
[key: string]: any;
|
|
51
50
|
}>) => void)[] | undefined;
|
|
52
51
|
class?: unknown;
|
|
52
|
+
style?: unknown;
|
|
53
53
|
"onTab-click"?: ((key: string) => any) | undefined;
|
|
54
54
|
"onTab-delete"?: ((key: string) => any) | undefined;
|
|
55
55
|
};
|
|
@@ -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
|
};
|