@keyblade/pro-components 1.4.3 → 1.4.4
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-breadcrumb/index.d.ts +91 -1
- package/es/pro-breadcrumb/index.js +2 -0
- package/es/pro-breadcrumb/pro-breadcrumb.vue.d.ts +67 -0
- package/es/pro-breadcrumb/pro-breadcrumb.vue.js +82 -23
- package/es/pro-keep-alive-router-view/index.d.ts +1 -1
- package/es/pro-layout/index.d.ts +76 -40
- package/es/pro-layout/index.js +3 -0
- package/es/pro-layout/pro-layout.vue.d.ts +67 -23
- package/es/pro-layout/pro-layout.vue.js +49 -35
- package/es/pro-menu/index.d.ts +1 -1
- package/es/pro-menu/interface.d.ts +2 -2
- package/es/pro-page-container/index.d.ts +91 -1
- package/es/pro-page-container/pro-page-container.vue.d.ts +67 -2
- package/es/pro-page-container/pro-page-container.vue.js +38 -3
- package/es/pro-reuse-tabs/index.d.ts +1 -1
- package/es/style.css +12 -15
- package/package.json +2 -2
|
@@ -1,102 +1,146 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, type PropType } from 'vue';
|
|
2
2
|
import type { IProMenuItem } from '../pro-menu';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
4
|
+
/** 布局类型 */
|
|
4
5
|
layout: {
|
|
5
6
|
type: PropType<"mix" | "side">;
|
|
6
7
|
required: false;
|
|
7
8
|
default: string;
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
/** 头部高度 */
|
|
11
|
+
headerHeight: {
|
|
12
|
+
type: PropType<number>;
|
|
11
13
|
required: false;
|
|
12
|
-
default:
|
|
14
|
+
default: number;
|
|
13
15
|
};
|
|
16
|
+
/** 右上角标题 */
|
|
14
17
|
title: {
|
|
15
18
|
type: PropType<string>;
|
|
16
19
|
required: false;
|
|
17
20
|
default: string;
|
|
18
21
|
};
|
|
22
|
+
/** 右上角logo */
|
|
19
23
|
logo: {
|
|
20
24
|
type: PropType<string>;
|
|
21
25
|
required: false;
|
|
22
26
|
default: string;
|
|
23
27
|
};
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
/** 侧边栏宽度 */
|
|
29
|
+
siderWidth: {
|
|
30
|
+
type: PropType<number>;
|
|
31
|
+
required: false;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
/** 侧边栏响应式的断点 */
|
|
35
|
+
siderBreakpoint: {
|
|
36
|
+
type: PropType<"xxl" | "xl" | "lg" | "md" | "sm" | "xs">;
|
|
26
37
|
required: false;
|
|
27
38
|
default: string;
|
|
28
39
|
};
|
|
40
|
+
/** 侧边栏是否收缩,会受 siderBreakpoint 影响 */
|
|
41
|
+
siderCollapsed: {
|
|
42
|
+
type: PropType<boolean>;
|
|
43
|
+
required: false;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
/** 菜单项 */
|
|
47
|
+
menuItems: {
|
|
48
|
+
type: PropType<IProMenuItem[]>;
|
|
49
|
+
required: false;
|
|
50
|
+
default: () => never[];
|
|
51
|
+
};
|
|
52
|
+
/** 页脚标题 */
|
|
29
53
|
footerTitle: {
|
|
30
54
|
type: PropType<string>;
|
|
31
55
|
required: false;
|
|
32
56
|
default: string;
|
|
33
57
|
};
|
|
58
|
+
/** 是否显示页签 */
|
|
34
59
|
showTabs: {
|
|
35
60
|
type: PropType<boolean>;
|
|
36
61
|
required: false;
|
|
37
62
|
default: boolean;
|
|
38
63
|
};
|
|
39
|
-
siderBreakpoint: {
|
|
40
|
-
type: PropType<"xxl" | "xl" | "lg" | "md" | "sm" | "xs">;
|
|
41
|
-
required: false;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
64
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
65
|
+
/** 收缩事件 */
|
|
45
66
|
collapse: (collapsed: boolean) => true;
|
|
67
|
+
/** keepAlive改变事件 */
|
|
46
68
|
keepAliveIncludeChange: (keepAliveInclude: string[]) => true;
|
|
47
69
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
70
|
+
/** 布局类型 */
|
|
48
71
|
layout: {
|
|
49
72
|
type: PropType<"mix" | "side">;
|
|
50
73
|
required: false;
|
|
51
74
|
default: string;
|
|
52
75
|
};
|
|
53
|
-
|
|
54
|
-
|
|
76
|
+
/** 头部高度 */
|
|
77
|
+
headerHeight: {
|
|
78
|
+
type: PropType<number>;
|
|
55
79
|
required: false;
|
|
56
|
-
default:
|
|
80
|
+
default: number;
|
|
57
81
|
};
|
|
82
|
+
/** 右上角标题 */
|
|
58
83
|
title: {
|
|
59
84
|
type: PropType<string>;
|
|
60
85
|
required: false;
|
|
61
86
|
default: string;
|
|
62
87
|
};
|
|
88
|
+
/** 右上角logo */
|
|
63
89
|
logo: {
|
|
64
90
|
type: PropType<string>;
|
|
65
91
|
required: false;
|
|
66
92
|
default: string;
|
|
67
93
|
};
|
|
68
|
-
|
|
69
|
-
|
|
94
|
+
/** 侧边栏宽度 */
|
|
95
|
+
siderWidth: {
|
|
96
|
+
type: PropType<number>;
|
|
97
|
+
required: false;
|
|
98
|
+
default: number;
|
|
99
|
+
};
|
|
100
|
+
/** 侧边栏响应式的断点 */
|
|
101
|
+
siderBreakpoint: {
|
|
102
|
+
type: PropType<"xxl" | "xl" | "lg" | "md" | "sm" | "xs">;
|
|
70
103
|
required: false;
|
|
71
104
|
default: string;
|
|
72
105
|
};
|
|
106
|
+
/** 侧边栏是否收缩,会受 siderBreakpoint 影响 */
|
|
107
|
+
siderCollapsed: {
|
|
108
|
+
type: PropType<boolean>;
|
|
109
|
+
required: false;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
/** 菜单项 */
|
|
113
|
+
menuItems: {
|
|
114
|
+
type: PropType<IProMenuItem[]>;
|
|
115
|
+
required: false;
|
|
116
|
+
default: () => never[];
|
|
117
|
+
};
|
|
118
|
+
/** 页脚标题 */
|
|
73
119
|
footerTitle: {
|
|
74
120
|
type: PropType<string>;
|
|
75
121
|
required: false;
|
|
76
122
|
default: string;
|
|
77
123
|
};
|
|
124
|
+
/** 是否显示页签 */
|
|
78
125
|
showTabs: {
|
|
79
126
|
type: PropType<boolean>;
|
|
80
127
|
required: false;
|
|
81
128
|
default: boolean;
|
|
82
129
|
};
|
|
83
|
-
siderBreakpoint: {
|
|
84
|
-
type: PropType<"xxl" | "xl" | "lg" | "md" | "sm" | "xs">;
|
|
85
|
-
required: false;
|
|
86
|
-
default: string;
|
|
87
|
-
};
|
|
88
130
|
}>> & {
|
|
89
131
|
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
90
132
|
onKeepAliveIncludeChange?: ((keepAliveInclude: string[]) => any) | undefined;
|
|
91
133
|
}, {
|
|
92
134
|
title: string;
|
|
93
|
-
theme: "dark" | "light";
|
|
94
135
|
layout: "mix" | "side";
|
|
95
|
-
|
|
136
|
+
headerHeight: number;
|
|
96
137
|
logo: string;
|
|
138
|
+
siderWidth: number;
|
|
139
|
+
siderBreakpoint: "xxl" | "xl" | "lg" | "md" | "sm" | "xs";
|
|
140
|
+
siderCollapsed: boolean;
|
|
141
|
+
menuItems: IProMenuItem[];
|
|
97
142
|
footerTitle: string;
|
|
98
143
|
showTabs: boolean;
|
|
99
|
-
siderBreakpoint: "xxl" | "xl" | "lg" | "md" | "sm" | "xs";
|
|
100
144
|
}, {}>, {
|
|
101
145
|
"header-left"?(_: {}): any;
|
|
102
146
|
"header-center"?(_: {}): any;
|
|
@@ -3,63 +3,83 @@ import { useHooks } from "./hooks.js";
|
|
|
3
3
|
const _hoisted_1 = ["src"];
|
|
4
4
|
const _hoisted_2 = ["src"];
|
|
5
5
|
const prefixClsName = "keyblade-pro-layout";
|
|
6
|
-
const headerHeight = 60;
|
|
7
|
-
const siderWidth = 220;
|
|
8
6
|
const siderCollapsedWidth = 48;
|
|
9
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
8
|
__name: "pro-layout",
|
|
11
9
|
props: {
|
|
10
|
+
/** 布局类型 */
|
|
12
11
|
layout: {
|
|
13
12
|
type: String,
|
|
14
13
|
required: false,
|
|
15
14
|
default: "mix"
|
|
16
15
|
},
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
/** 头部高度 */
|
|
17
|
+
headerHeight: {
|
|
18
|
+
type: Number,
|
|
19
19
|
required: false,
|
|
20
|
-
default:
|
|
20
|
+
default: 60
|
|
21
21
|
},
|
|
22
|
+
/** 右上角标题 */
|
|
22
23
|
title: {
|
|
23
24
|
type: String,
|
|
24
25
|
required: false,
|
|
25
26
|
default: "KeyBlade Pro"
|
|
26
27
|
},
|
|
28
|
+
/** 右上角logo */
|
|
27
29
|
logo: {
|
|
28
30
|
type: String,
|
|
29
31
|
required: false,
|
|
30
32
|
default: "http://p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"
|
|
31
33
|
},
|
|
32
|
-
|
|
34
|
+
/** 侧边栏宽度 */
|
|
35
|
+
siderWidth: {
|
|
36
|
+
type: Number,
|
|
37
|
+
required: false,
|
|
38
|
+
default: 220
|
|
39
|
+
},
|
|
40
|
+
/** 侧边栏响应式的断点 */
|
|
41
|
+
siderBreakpoint: {
|
|
33
42
|
type: String,
|
|
34
43
|
required: false,
|
|
35
|
-
default: "
|
|
44
|
+
default: "xl"
|
|
45
|
+
},
|
|
46
|
+
/** 侧边栏是否收缩,会受 siderBreakpoint 影响 */
|
|
47
|
+
siderCollapsed: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
required: false,
|
|
50
|
+
default: false
|
|
36
51
|
},
|
|
52
|
+
/** 菜单项 */
|
|
53
|
+
menuItems: {
|
|
54
|
+
type: Array,
|
|
55
|
+
required: false,
|
|
56
|
+
default: () => []
|
|
57
|
+
},
|
|
58
|
+
/** 页脚标题 */
|
|
37
59
|
footerTitle: {
|
|
38
60
|
type: String,
|
|
39
61
|
required: false,
|
|
40
62
|
default: "KeyBlade Pro"
|
|
41
63
|
},
|
|
64
|
+
/** 是否显示页签 */
|
|
42
65
|
showTabs: {
|
|
43
66
|
type: Boolean,
|
|
44
67
|
required: false,
|
|
45
68
|
default: true
|
|
46
|
-
},
|
|
47
|
-
siderBreakpoint: {
|
|
48
|
-
type: String,
|
|
49
|
-
required: false,
|
|
50
|
-
default: "xl"
|
|
51
69
|
}
|
|
52
70
|
},
|
|
53
71
|
emits: {
|
|
72
|
+
/** 收缩事件 */
|
|
54
73
|
"collapse": (collapsed) => true,
|
|
74
|
+
/** keepAlive改变事件 */
|
|
55
75
|
"keepAliveIncludeChange": (keepAliveInclude) => true
|
|
56
76
|
},
|
|
57
77
|
setup(__props, { emit }) {
|
|
58
78
|
const props = __props;
|
|
59
79
|
useCssVars((_ctx) => ({
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
80
|
+
"b3715416": headerHeightWidthPx,
|
|
81
|
+
"493be418": siderWidthPx,
|
|
82
|
+
"928044a6": siderCollapsedWidthPx
|
|
63
83
|
}));
|
|
64
84
|
const { menuItems } = toRefs(props);
|
|
65
85
|
const slots = useSlots();
|
|
@@ -76,23 +96,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
96
|
});
|
|
77
97
|
provide("ProBreadcrumbItems", breadcrumbItems);
|
|
78
98
|
provide("ProKeepAliveInclude", keepAliveInclude);
|
|
79
|
-
const headerHeightWidthPx = `${headerHeight}px`;
|
|
80
|
-
const siderWidthPx = `${siderWidth}px`;
|
|
99
|
+
const headerHeightWidthPx = `${props.headerHeight}px`;
|
|
100
|
+
const siderWidthPx = `${props.siderWidth}px`;
|
|
81
101
|
const siderCollapsedWidthPx = `${siderCollapsedWidth}px`;
|
|
82
|
-
const siderCollapsed = ref(
|
|
102
|
+
const siderCollapsed = ref(props.siderCollapsed);
|
|
83
103
|
const onSiderCollapse = (val) => {
|
|
84
104
|
siderCollapsed.value = val;
|
|
85
105
|
emit("collapse", val);
|
|
86
106
|
};
|
|
87
|
-
watch(() => props.
|
|
88
|
-
|
|
89
|
-
case "light":
|
|
90
|
-
document.body.removeAttribute("arco-theme");
|
|
91
|
-
break;
|
|
92
|
-
case "dark":
|
|
93
|
-
document.body.setAttribute("arco-theme", "dark");
|
|
94
|
-
break;
|
|
95
|
-
}
|
|
107
|
+
watch(() => props.siderCollapsed, () => {
|
|
108
|
+
siderCollapsed.value = props.siderCollapsed;
|
|
96
109
|
}, { immediate: true });
|
|
97
110
|
watch(keepAliveInclude, () => {
|
|
98
111
|
emit("keepAliveIncludeChange", keepAliveInclude.value);
|
|
@@ -163,7 +176,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
163
176
|
default: withCtx(() => [
|
|
164
177
|
createVNode(_component_a_layout_sider, {
|
|
165
178
|
class: normalizeClass(`${prefixClsName}-sider` + (siderCollapsed.value ? ` ${prefixClsName}-sider-collapsed` : "")),
|
|
166
|
-
width: siderWidth,
|
|
179
|
+
width: __props.siderWidth,
|
|
167
180
|
collapsible: true,
|
|
168
181
|
breakpoint: __props.siderBreakpoint,
|
|
169
182
|
collapsed: siderCollapsed.value,
|
|
@@ -220,17 +233,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
233
|
}, 8, ["class"])
|
|
221
234
|
]),
|
|
222
235
|
_: 3
|
|
223
|
-
}, 8, ["class", "breakpoint", "collapsed"]),
|
|
236
|
+
}, 8, ["class", "width", "breakpoint", "collapsed"]),
|
|
224
237
|
createVNode(_component_a_layout, {
|
|
225
238
|
class: normalizeClass(`${prefixClsName}-body` + (siderCollapsed.value ? ` ${prefixClsName}-body-collapsed` : ""))
|
|
226
239
|
}, {
|
|
227
240
|
default: withCtx(() => [
|
|
228
|
-
|
|
241
|
+
__props.showTabs ? (openBlock(), createBlock(_component_a_affix, {
|
|
242
|
+
key: 0,
|
|
229
243
|
class: normalizeClass(`${prefixClsName}-body-affix`),
|
|
230
|
-
offsetTop: headerHeight
|
|
244
|
+
offsetTop: __props.headerHeight
|
|
231
245
|
}, {
|
|
232
246
|
default: withCtx(() => [
|
|
233
|
-
|
|
247
|
+
unref(tabs).length > 0 ? (openBlock(), createBlock(_component_kb_pro_reuse_tabs, {
|
|
234
248
|
key: 0,
|
|
235
249
|
tabs: unref(tabs),
|
|
236
250
|
onTabClick: unref(onTabClick),
|
|
@@ -238,15 +252,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
238
252
|
}, null, 8, ["tabs", "onTabClick", "onTabDelete"])) : createCommentVNode("", true)
|
|
239
253
|
]),
|
|
240
254
|
_: 1
|
|
241
|
-
}, 8, ["class"]),
|
|
255
|
+
}, 8, ["class", "offsetTop"])) : createCommentVNode("", true),
|
|
242
256
|
createVNode(_component_a_layout_content, null, {
|
|
243
257
|
default: withCtx(() => [
|
|
244
258
|
createVNode(_component_kb_pro_keep_alive_router_view)
|
|
245
259
|
]),
|
|
246
260
|
_: 1
|
|
247
261
|
}),
|
|
248
|
-
unref(slots)["footer"] !== void 0 ? renderSlot(_ctx.$slots, "footer", { key:
|
|
249
|
-
key:
|
|
262
|
+
unref(slots)["footer"] !== void 0 ? renderSlot(_ctx.$slots, "footer", { key: 1 }) : (openBlock(), createBlock(_component_a_layout_footer, {
|
|
263
|
+
key: 2,
|
|
250
264
|
class: normalizeClass(`${prefixClsName}-body-footer`)
|
|
251
265
|
}, {
|
|
252
266
|
default: withCtx(() => [
|
package/es/pro-menu/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ declare const ProMenu: {
|
|
|
6
6
|
$data: {};
|
|
7
7
|
$props: {
|
|
8
8
|
readonly items: IProMenuItem[];
|
|
9
|
+
style?: unknown;
|
|
9
10
|
key?: string | number | symbol | undefined;
|
|
10
11
|
ref?: VNodeRef | undefined;
|
|
11
12
|
ref_for?: boolean | undefined;
|
|
@@ -49,7 +50,6 @@ declare const ProMenu: {
|
|
|
49
50
|
[key: string]: any;
|
|
50
51
|
}>) => void)[] | undefined;
|
|
51
52
|
class?: unknown;
|
|
52
|
-
style?: unknown;
|
|
53
53
|
readonly collapsed: boolean;
|
|
54
54
|
readonly selectedKeys: string[];
|
|
55
55
|
"onMenu-item-click"?: ((key: string) => any) | undefined;
|
|
@@ -9,8 +9,8 @@ export interface IProMenuItem {
|
|
|
9
9
|
activatedKeys?: string[];
|
|
10
10
|
/**
|
|
11
11
|
* 菜单图标
|
|
12
|
-
* arco design icon: 'icon-apps'
|
|
13
|
-
* url: 绝对路径或相对路径
|
|
12
|
+
* 方式一、arco design icon: 'icon-apps',这样需要在主项目中,手动使用 app.use(IconXXX) 进行注册,否则按需加载不能识别动态组件
|
|
13
|
+
* 方式二、url: 绝对路径或相对路径
|
|
14
14
|
* */
|
|
15
15
|
icon?: string;
|
|
16
16
|
/** 如果设置为 true,右侧菜单不显示 */
|
|
@@ -6,6 +6,12 @@ declare const ProPageContainer: {
|
|
|
6
6
|
$props: {
|
|
7
7
|
breadcrumbItems?: string[] | undefined;
|
|
8
8
|
hideBreadcrumb?: boolean | undefined;
|
|
9
|
+
breadcrumbShowIcon?: boolean | undefined;
|
|
10
|
+
breadcrumbIcon?: string | undefined;
|
|
11
|
+
breadcrumbShowTitle?: boolean | undefined;
|
|
12
|
+
breadcrumbTitle?: string | undefined;
|
|
13
|
+
breadcrumbSubTitle?: string | undefined;
|
|
14
|
+
style?: unknown;
|
|
9
15
|
key?: string | number | symbol | undefined;
|
|
10
16
|
ref?: VNodeRef | undefined;
|
|
11
17
|
ref_for?: boolean | undefined;
|
|
@@ -49,7 +55,6 @@ declare const ProPageContainer: {
|
|
|
49
55
|
[key: string]: any;
|
|
50
56
|
}>) => void)[] | undefined;
|
|
51
57
|
class?: unknown;
|
|
52
|
-
style?: unknown;
|
|
53
58
|
};
|
|
54
59
|
$attrs: {
|
|
55
60
|
[x: string]: unknown;
|
|
@@ -70,14 +75,44 @@ declare const ProPageContainer: {
|
|
|
70
75
|
required: false;
|
|
71
76
|
default: boolean;
|
|
72
77
|
};
|
|
78
|
+
breadcrumbShowIcon: {
|
|
79
|
+
type: PropType<boolean>;
|
|
80
|
+
required: false;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
breadcrumbIcon: {
|
|
84
|
+
type: PropType<string>;
|
|
85
|
+
required: false;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
73
88
|
breadcrumbItems: {
|
|
74
89
|
type: PropType<string[]>;
|
|
75
90
|
required: false;
|
|
76
91
|
default: () => never[];
|
|
77
92
|
};
|
|
93
|
+
breadcrumbShowTitle: {
|
|
94
|
+
type: PropType<boolean>;
|
|
95
|
+
required: false;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
breadcrumbTitle: {
|
|
99
|
+
type: PropType<string>;
|
|
100
|
+
required: false;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
breadcrumbSubTitle: {
|
|
104
|
+
type: PropType<string>;
|
|
105
|
+
required: false;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
78
108
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
79
109
|
breadcrumbItems: string[];
|
|
80
110
|
hideBreadcrumb: boolean;
|
|
111
|
+
breadcrumbShowIcon: boolean;
|
|
112
|
+
breadcrumbIcon: string;
|
|
113
|
+
breadcrumbShowTitle: boolean;
|
|
114
|
+
breadcrumbTitle: string;
|
|
115
|
+
breadcrumbSubTitle: string;
|
|
81
116
|
}, {}, string, {}> & {
|
|
82
117
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
83
118
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -104,11 +139,36 @@ declare const ProPageContainer: {
|
|
|
104
139
|
required: false;
|
|
105
140
|
default: boolean;
|
|
106
141
|
};
|
|
142
|
+
breadcrumbShowIcon: {
|
|
143
|
+
type: PropType<boolean>;
|
|
144
|
+
required: false;
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
147
|
+
breadcrumbIcon: {
|
|
148
|
+
type: PropType<string>;
|
|
149
|
+
required: false;
|
|
150
|
+
default: string;
|
|
151
|
+
};
|
|
107
152
|
breadcrumbItems: {
|
|
108
153
|
type: PropType<string[]>;
|
|
109
154
|
required: false;
|
|
110
155
|
default: () => never[];
|
|
111
156
|
};
|
|
157
|
+
breadcrumbShowTitle: {
|
|
158
|
+
type: PropType<boolean>;
|
|
159
|
+
required: false;
|
|
160
|
+
default: boolean;
|
|
161
|
+
};
|
|
162
|
+
breadcrumbTitle: {
|
|
163
|
+
type: PropType<string>;
|
|
164
|
+
required: false;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
167
|
+
breadcrumbSubTitle: {
|
|
168
|
+
type: PropType<string>;
|
|
169
|
+
required: false;
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
112
172
|
}>> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
113
173
|
__isFragment?: undefined;
|
|
114
174
|
__isTeleport?: undefined;
|
|
@@ -119,14 +179,44 @@ declare const ProPageContainer: {
|
|
|
119
179
|
required: false;
|
|
120
180
|
default: boolean;
|
|
121
181
|
};
|
|
182
|
+
breadcrumbShowIcon: {
|
|
183
|
+
type: PropType<boolean>;
|
|
184
|
+
required: false;
|
|
185
|
+
default: boolean;
|
|
186
|
+
};
|
|
187
|
+
breadcrumbIcon: {
|
|
188
|
+
type: PropType<string>;
|
|
189
|
+
required: false;
|
|
190
|
+
default: string;
|
|
191
|
+
};
|
|
122
192
|
breadcrumbItems: {
|
|
123
193
|
type: PropType<string[]>;
|
|
124
194
|
required: false;
|
|
125
195
|
default: () => never[];
|
|
126
196
|
};
|
|
197
|
+
breadcrumbShowTitle: {
|
|
198
|
+
type: PropType<boolean>;
|
|
199
|
+
required: false;
|
|
200
|
+
default: boolean;
|
|
201
|
+
};
|
|
202
|
+
breadcrumbTitle: {
|
|
203
|
+
type: PropType<string>;
|
|
204
|
+
required: false;
|
|
205
|
+
default: string;
|
|
206
|
+
};
|
|
207
|
+
breadcrumbSubTitle: {
|
|
208
|
+
type: PropType<string>;
|
|
209
|
+
required: false;
|
|
210
|
+
default: string;
|
|
211
|
+
};
|
|
127
212
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
128
213
|
breadcrumbItems: string[];
|
|
129
214
|
hideBreadcrumb: boolean;
|
|
215
|
+
breadcrumbShowIcon: boolean;
|
|
216
|
+
breadcrumbIcon: string;
|
|
217
|
+
breadcrumbShowTitle: boolean;
|
|
218
|
+
breadcrumbTitle: string;
|
|
219
|
+
breadcrumbSubTitle: string;
|
|
130
220
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
131
221
|
$slots: {
|
|
132
222
|
default?(_: {}): any;
|
|
@@ -6,12 +6,42 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
6
6
|
required: false;
|
|
7
7
|
default: boolean;
|
|
8
8
|
};
|
|
9
|
-
/**
|
|
9
|
+
/** 面包屑是否显示图标 */
|
|
10
|
+
breadcrumbShowIcon: {
|
|
11
|
+
type: PropType<boolean>;
|
|
12
|
+
required: false;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
/** 面包屑图标类型 */
|
|
16
|
+
breadcrumbIcon: {
|
|
17
|
+
type: PropType<string>;
|
|
18
|
+
required: false;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
/** 面包屑项目 */
|
|
10
22
|
breadcrumbItems: {
|
|
11
23
|
type: PropType<string[]>;
|
|
12
24
|
required: false;
|
|
13
25
|
default: () => never[];
|
|
14
26
|
};
|
|
27
|
+
/** 面包屑是否显示标题 */
|
|
28
|
+
breadcrumbShowTitle: {
|
|
29
|
+
type: PropType<boolean>;
|
|
30
|
+
required: false;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
/** 面包屑标题,不传默认展示面包屑标题最后一项 */
|
|
34
|
+
breadcrumbTitle: {
|
|
35
|
+
type: PropType<string>;
|
|
36
|
+
required: false;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
/** 面包屑副标题,不传默认不展示 */
|
|
40
|
+
breadcrumbSubTitle: {
|
|
41
|
+
type: PropType<string>;
|
|
42
|
+
required: false;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
15
45
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
16
46
|
/** 是否隐藏面包屑 */
|
|
17
47
|
hideBreadcrumb: {
|
|
@@ -19,15 +49,50 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
19
49
|
required: false;
|
|
20
50
|
default: boolean;
|
|
21
51
|
};
|
|
22
|
-
/**
|
|
52
|
+
/** 面包屑是否显示图标 */
|
|
53
|
+
breadcrumbShowIcon: {
|
|
54
|
+
type: PropType<boolean>;
|
|
55
|
+
required: false;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
/** 面包屑图标类型 */
|
|
59
|
+
breadcrumbIcon: {
|
|
60
|
+
type: PropType<string>;
|
|
61
|
+
required: false;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
/** 面包屑项目 */
|
|
23
65
|
breadcrumbItems: {
|
|
24
66
|
type: PropType<string[]>;
|
|
25
67
|
required: false;
|
|
26
68
|
default: () => never[];
|
|
27
69
|
};
|
|
70
|
+
/** 面包屑是否显示标题 */
|
|
71
|
+
breadcrumbShowTitle: {
|
|
72
|
+
type: PropType<boolean>;
|
|
73
|
+
required: false;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
/** 面包屑标题,不传默认展示面包屑标题最后一项 */
|
|
77
|
+
breadcrumbTitle: {
|
|
78
|
+
type: PropType<string>;
|
|
79
|
+
required: false;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
/** 面包屑副标题,不传默认不展示 */
|
|
83
|
+
breadcrumbSubTitle: {
|
|
84
|
+
type: PropType<string>;
|
|
85
|
+
required: false;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
28
88
|
}>>, {
|
|
29
89
|
breadcrumbItems: string[];
|
|
30
90
|
hideBreadcrumb: boolean;
|
|
91
|
+
breadcrumbShowIcon: boolean;
|
|
92
|
+
breadcrumbIcon: string;
|
|
93
|
+
breadcrumbShowTitle: boolean;
|
|
94
|
+
breadcrumbTitle: string;
|
|
95
|
+
breadcrumbSubTitle: string;
|
|
31
96
|
}, {}>, {
|
|
32
97
|
default?(_: {}): any;
|
|
33
98
|
}>;
|
|
@@ -9,11 +9,41 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9
9
|
required: false,
|
|
10
10
|
default: false
|
|
11
11
|
},
|
|
12
|
-
/**
|
|
12
|
+
/** 面包屑是否显示图标 */
|
|
13
|
+
breadcrumbShowIcon: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
required: false,
|
|
16
|
+
default: true
|
|
17
|
+
},
|
|
18
|
+
/** 面包屑图标类型 */
|
|
19
|
+
breadcrumbIcon: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: false,
|
|
22
|
+
default: "icon-apps"
|
|
23
|
+
},
|
|
24
|
+
/** 面包屑项目 */
|
|
13
25
|
breadcrumbItems: {
|
|
14
26
|
type: Array,
|
|
15
27
|
required: false,
|
|
16
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: ""
|
|
17
47
|
}
|
|
18
48
|
},
|
|
19
49
|
setup(__props) {
|
|
@@ -24,8 +54,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
54
|
}, [
|
|
25
55
|
!__props.hideBreadcrumb ? (openBlock(), createBlock(_component_kb_pro_breadcrumb, {
|
|
26
56
|
key: 0,
|
|
27
|
-
|
|
28
|
-
|
|
57
|
+
"show-icon": __props.breadcrumbShowIcon,
|
|
58
|
+
icon: __props.breadcrumbIcon,
|
|
59
|
+
items: __props.breadcrumbItems,
|
|
60
|
+
"show-title": __props.breadcrumbShowTitle,
|
|
61
|
+
title: __props.breadcrumbTitle,
|
|
62
|
+
"sub-title": __props.breadcrumbSubTitle
|
|
63
|
+
}, null, 8, ["show-icon", "icon", "items", "show-title", "title", "sub-title"])) : createCommentVNode("", true),
|
|
29
64
|
renderSlot(_ctx.$slots, "default")
|
|
30
65
|
]);
|
|
31
66
|
};
|
|
@@ -6,6 +6,7 @@ declare const ProReuseTabs: {
|
|
|
6
6
|
$data: {};
|
|
7
7
|
$props: {
|
|
8
8
|
tabs?: IProTab[] | undefined;
|
|
9
|
+
style?: unknown;
|
|
9
10
|
key?: string | number | symbol | undefined;
|
|
10
11
|
ref?: VNodeRef | undefined;
|
|
11
12
|
ref_for?: boolean | undefined;
|
|
@@ -49,7 +50,6 @@ declare const ProReuseTabs: {
|
|
|
49
50
|
[key: string]: any;
|
|
50
51
|
}>) => void)[] | undefined;
|
|
51
52
|
class?: unknown;
|
|
52
|
-
style?: unknown;
|
|
53
53
|
"onTab-click"?: ((key: string) => any) | undefined;
|
|
54
54
|
"onTab-delete"?: ((key: string) => any) | undefined;
|
|
55
55
|
};
|