@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
package/es/pro-menu/index.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import n from "./pro-menu.vue.js";
|
|
2
|
+
import "./pro-menu.vue2.js";
|
|
3
|
+
import { Menu as t } from "@arco-design/web-vue";
|
|
4
|
+
const e = Object.assign(n, {
|
|
5
|
+
install: (o) => {
|
|
6
|
+
o.use(t), o.component("KbProMenu", n);
|
|
7
7
|
}
|
|
8
|
-
});
|
|
9
|
-
const ProMenu$1 = ProMenu;
|
|
8
|
+
}), i = e;
|
|
10
9
|
export {
|
|
11
|
-
ProMenu,
|
|
12
|
-
|
|
10
|
+
e as ProMenu,
|
|
11
|
+
i as default
|
|
13
12
|
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, type PropType } from 'vue';
|
|
2
2
|
import type { IProMenuItem } from './interface';
|
|
3
3
|
declare const _default: DefineComponent<{
|
|
4
|
+
mode: {
|
|
5
|
+
type: PropType<"horizontal" | "vertical">;
|
|
6
|
+
required: false;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
4
9
|
collapsed: {
|
|
5
10
|
type: PropType<boolean>;
|
|
6
11
|
required: true;
|
|
@@ -16,6 +21,11 @@ declare const _default: DefineComponent<{
|
|
|
16
21
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
22
|
'menu-item-click': (key: string) => true;
|
|
18
23
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
24
|
+
mode: {
|
|
25
|
+
type: PropType<"horizontal" | "vertical">;
|
|
26
|
+
required: false;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
19
29
|
collapsed: {
|
|
20
30
|
type: PropType<boolean>;
|
|
21
31
|
required: true;
|
|
@@ -30,5 +40,7 @@ declare const _default: DefineComponent<{
|
|
|
30
40
|
};
|
|
31
41
|
}>> & {
|
|
32
42
|
"onMenu-item-click"?: ((key: string) => any) | undefined;
|
|
33
|
-
}, {
|
|
43
|
+
}, {
|
|
44
|
+
mode: "horizontal" | "vertical";
|
|
45
|
+
}, {}>;
|
|
34
46
|
export default _default;
|
|
@@ -1,71 +1,126 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeClass, withCtx, createElementBlock, Fragment, renderList } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import "
|
|
4
|
-
const
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1
|
+
import { defineComponent as R, computed as S, resolveComponent as y, openBlock as r, createBlock as l, normalizeClass as h, withCtx as c, createVNode as V, unref as k, createSlots as g, createTextVNode as i, toDisplayString as x, createElementBlock as u, Fragment as f, renderList as b, createCommentVNode as o, resolveDynamicComponent as N } from "vue";
|
|
2
|
+
import { createReusableTemplate as W } from "@vueuse/core";
|
|
3
|
+
import { useRouter as $ } from "vue-router";
|
|
4
|
+
const A = ["src"], K = ["src"], z = "keyblade-pro-menu", T = "keyblade-pro-menu-item", j = /* @__PURE__ */ R({
|
|
6
5
|
__name: "pro-menu",
|
|
7
6
|
props: {
|
|
7
|
+
mode: {
|
|
8
|
+
type: String,
|
|
9
|
+
required: !1,
|
|
10
|
+
default: "vertical"
|
|
11
|
+
},
|
|
8
12
|
collapsed: {
|
|
9
13
|
type: Boolean,
|
|
10
|
-
required:
|
|
14
|
+
required: !0
|
|
11
15
|
},
|
|
12
16
|
selectedKeys: {
|
|
13
17
|
type: Array,
|
|
14
|
-
required:
|
|
18
|
+
required: !0
|
|
15
19
|
},
|
|
16
20
|
items: {
|
|
17
21
|
type: Array,
|
|
18
|
-
required:
|
|
22
|
+
required: !0
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
25
|
emits: {
|
|
22
|
-
"menu-item-click": (
|
|
26
|
+
"menu-item-click": (a) => !0
|
|
23
27
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
findItem = item;
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
if ((item == null ? void 0 : item.children) && ((_a = item.children) == null ? void 0 : _a.length) > 0) {
|
|
37
|
-
find(item.children);
|
|
38
|
-
}
|
|
28
|
+
setup(a, { emit: q }) {
|
|
29
|
+
const d = $(), [B, _] = W(), s = S(() => (n) => {
|
|
30
|
+
const t = n == null ? void 0 : n.icon;
|
|
31
|
+
return t != null && t.startsWith("icon") ? "icon" : "url";
|
|
32
|
+
}), w = (n) => {
|
|
33
|
+
if (n != null && n.path) {
|
|
34
|
+
if (n.path.startsWith("http") || n.path.startsWith("https")) {
|
|
35
|
+
window.open(n.path);
|
|
36
|
+
return;
|
|
39
37
|
}
|
|
40
|
-
|
|
41
|
-
find(props.items);
|
|
42
|
-
if (findItem && (findItem.path.startsWith("http") || findItem.path.startsWith("https"))) {
|
|
43
|
-
return;
|
|
38
|
+
d == null || d.push({ path: n.path }), q("menu-item-click", n.name);
|
|
44
39
|
}
|
|
45
|
-
emit("menu-item-click", key);
|
|
46
40
|
};
|
|
47
|
-
return (
|
|
48
|
-
const
|
|
49
|
-
return
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
41
|
+
return (n, t) => {
|
|
42
|
+
const D = y("a-sub-menu"), I = y("a-menu-item"), M = y("a-menu");
|
|
43
|
+
return r(), l(M, {
|
|
44
|
+
mode: a.mode,
|
|
45
|
+
class: h(z),
|
|
46
|
+
collapsed: a.collapsed,
|
|
47
|
+
"selected-keys": a.selectedKeys,
|
|
48
|
+
"auto-open-selected": ""
|
|
55
49
|
}, {
|
|
56
|
-
default:
|
|
57
|
-
(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
50
|
+
default: c(() => [
|
|
51
|
+
V(k(B), null, {
|
|
52
|
+
default: c(({ item: e }) => {
|
|
53
|
+
var C, v;
|
|
54
|
+
return [
|
|
55
|
+
e != null && e.children && ((C = e == null ? void 0 : e.children) == null ? void 0 : C.length) > 0 ? (r(), l(D, {
|
|
56
|
+
key: e.name
|
|
57
|
+
}, g({
|
|
58
|
+
title: c(() => [
|
|
59
|
+
i(x(e.title), 1)
|
|
60
|
+
]),
|
|
61
|
+
default: c(() => [
|
|
62
|
+
e != null && e.hideChildrenInMenu ? o("", !0) : (r(!0), u(f, { key: 0 }, b((e == null ? void 0 : e.children) || [], (p) => (r(), l(k(_), {
|
|
63
|
+
key: p.name,
|
|
64
|
+
item: p
|
|
65
|
+
}, null, 8, ["item"]))), 128))
|
|
66
|
+
]),
|
|
67
|
+
_: 2
|
|
68
|
+
}, [
|
|
69
|
+
e != null && e.icon ? {
|
|
70
|
+
name: "icon",
|
|
71
|
+
fn: c(() => [
|
|
72
|
+
s.value(e) === "icon" ? (r(), l(N(e.icon), { key: 0 })) : o("", !0),
|
|
73
|
+
s.value(e) === "url" ? (r(), u("img", {
|
|
74
|
+
key: 1,
|
|
75
|
+
class: h(`${T}-img`),
|
|
76
|
+
src: e.icon,
|
|
77
|
+
alt: ""
|
|
78
|
+
}, null, 10, A)) : o("", !0)
|
|
79
|
+
]),
|
|
80
|
+
key: "0"
|
|
81
|
+
} : void 0
|
|
82
|
+
]), 1024)) : o("", !0),
|
|
83
|
+
!(e != null && e.children) || ((v = e == null ? void 0 : e.children) == null ? void 0 : v.length) === 0 ? (r(), l(I, {
|
|
84
|
+
key: e.name,
|
|
85
|
+
onClick: (p) => w(e)
|
|
86
|
+
}, g({
|
|
87
|
+
default: c(() => [
|
|
88
|
+
i(" " + x(e.title), 1)
|
|
89
|
+
]),
|
|
90
|
+
_: 2
|
|
91
|
+
}, [
|
|
92
|
+
e != null && e.icon ? {
|
|
93
|
+
name: "icon",
|
|
94
|
+
fn: c(() => [
|
|
95
|
+
s.value(e) === "icon" ? (r(), l(N(e.icon), { key: 0 })) : o("", !0),
|
|
96
|
+
s.value(e) === "url" ? (r(), u("img", {
|
|
97
|
+
key: 1,
|
|
98
|
+
class: h(`${T}-img`),
|
|
99
|
+
src: e.icon,
|
|
100
|
+
alt: ""
|
|
101
|
+
}, null, 10, K)) : o("", !0)
|
|
102
|
+
]),
|
|
103
|
+
key: "0"
|
|
104
|
+
} : void 0
|
|
105
|
+
]), 1032, ["onClick"])) : o("", !0)
|
|
106
|
+
];
|
|
107
|
+
}),
|
|
108
|
+
_: 1
|
|
109
|
+
}),
|
|
110
|
+
(r(!0), u(f, null, b(a.items, (e) => (r(), u(f, {
|
|
111
|
+
key: e.name
|
|
112
|
+
}, [
|
|
113
|
+
e && !e.hideInMenu ? (r(), l(k(_), {
|
|
114
|
+
key: 0,
|
|
115
|
+
item: e
|
|
116
|
+
}, null, 8, ["item"])) : o("", !0)
|
|
117
|
+
], 64))), 128))
|
|
63
118
|
]),
|
|
64
119
|
_: 1
|
|
65
|
-
}, 8, ["collapsed", "selected-keys"]);
|
|
120
|
+
}, 8, ["mode", "collapsed", "selected-keys"]);
|
|
66
121
|
};
|
|
67
122
|
}
|
|
68
123
|
});
|
|
69
124
|
export {
|
|
70
|
-
|
|
125
|
+
j as default
|
|
71
126
|
};
|
|
@@ -4,14 +4,15 @@ declare const ProPageContainer: {
|
|
|
4
4
|
$: ComponentInternalInstance;
|
|
5
5
|
$data: {};
|
|
6
6
|
$props: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
hidePageHeader?: boolean | undefined;
|
|
8
|
+
pageHeader?: {
|
|
9
|
+
title?: string | undefined;
|
|
10
|
+
subTitle?: string | undefined;
|
|
11
|
+
titlePosition?: "top" | "bottom" | undefined;
|
|
12
|
+
hideTitle?: boolean | undefined;
|
|
13
|
+
breadcrumbPrefixIcon?: string | boolean | undefined;
|
|
14
|
+
breadcrumbItems?: string[] | undefined;
|
|
15
|
+
} | undefined;
|
|
15
16
|
key?: string | number | symbol | undefined;
|
|
16
17
|
ref?: VNodeRef | undefined;
|
|
17
18
|
ref_for?: boolean | undefined;
|
|
@@ -55,6 +56,7 @@ declare const ProPageContainer: {
|
|
|
55
56
|
[key: string]: any;
|
|
56
57
|
}>) => void)[] | undefined;
|
|
57
58
|
class?: unknown;
|
|
59
|
+
style?: unknown;
|
|
58
60
|
};
|
|
59
61
|
$attrs: {
|
|
60
62
|
[x: string]: unknown;
|
|
@@ -70,49 +72,40 @@ declare const ProPageContainer: {
|
|
|
70
72
|
$emit: (event: string, ...args: any[]) => void;
|
|
71
73
|
$el: any;
|
|
72
74
|
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
73
|
-
|
|
74
|
-
type: PropType<boolean>;
|
|
75
|
-
required: false;
|
|
76
|
-
default: boolean;
|
|
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
|
-
};
|
|
88
|
-
breadcrumbItems: {
|
|
89
|
-
type: PropType<string[]>;
|
|
90
|
-
required: false;
|
|
91
|
-
default: () => never[];
|
|
92
|
-
};
|
|
93
|
-
breadcrumbShowTitle: {
|
|
75
|
+
hidePageHeader: {
|
|
94
76
|
type: PropType<boolean>;
|
|
95
77
|
required: false;
|
|
96
78
|
default: boolean;
|
|
97
79
|
};
|
|
98
|
-
|
|
99
|
-
type: PropType<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
80
|
+
pageHeader: {
|
|
81
|
+
type: PropType<{
|
|
82
|
+
title?: string | undefined;
|
|
83
|
+
subTitle?: string | undefined;
|
|
84
|
+
titlePosition?: "top" | "bottom" | undefined;
|
|
85
|
+
hideTitle?: boolean | undefined;
|
|
86
|
+
breadcrumbPrefixIcon?: string | boolean | undefined;
|
|
87
|
+
breadcrumbItems?: string[] | undefined;
|
|
88
|
+
}>;
|
|
105
89
|
required: false;
|
|
106
|
-
default:
|
|
90
|
+
default: () => {
|
|
91
|
+
title: string;
|
|
92
|
+
subTitle: string;
|
|
93
|
+
titlePosition: string;
|
|
94
|
+
hideTitle: boolean;
|
|
95
|
+
breadcrumbPrefixIcon: string;
|
|
96
|
+
breadcrumbItems: never[];
|
|
97
|
+
};
|
|
107
98
|
};
|
|
108
99
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
100
|
+
hidePageHeader: boolean;
|
|
101
|
+
pageHeader: {
|
|
102
|
+
title?: string | undefined;
|
|
103
|
+
subTitle?: string | undefined;
|
|
104
|
+
titlePosition?: "top" | "bottom" | undefined;
|
|
105
|
+
hideTitle?: boolean | undefined;
|
|
106
|
+
breadcrumbPrefixIcon?: string | boolean | undefined;
|
|
107
|
+
breadcrumbItems?: string[] | undefined;
|
|
108
|
+
};
|
|
116
109
|
}, {}, string, {}> & {
|
|
117
110
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
118
111
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -134,89 +127,69 @@ declare const ProPageContainer: {
|
|
|
134
127
|
$nextTick: typeof nextTick;
|
|
135
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;
|
|
136
129
|
} & Readonly<ExtractPropTypes<{
|
|
137
|
-
|
|
130
|
+
hidePageHeader: {
|
|
138
131
|
type: PropType<boolean>;
|
|
139
132
|
required: false;
|
|
140
133
|
default: boolean;
|
|
141
134
|
};
|
|
142
|
-
|
|
143
|
-
type: PropType<
|
|
135
|
+
pageHeader: {
|
|
136
|
+
type: PropType<{
|
|
137
|
+
title?: string | undefined;
|
|
138
|
+
subTitle?: string | undefined;
|
|
139
|
+
titlePosition?: "top" | "bottom" | undefined;
|
|
140
|
+
hideTitle?: boolean | undefined;
|
|
141
|
+
breadcrumbPrefixIcon?: string | boolean | undefined;
|
|
142
|
+
breadcrumbItems?: string[] | undefined;
|
|
143
|
+
}>;
|
|
144
144
|
required: false;
|
|
145
|
-
default:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
type: PropType<string[]>;
|
|
154
|
-
required: false;
|
|
155
|
-
default: () => never[];
|
|
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;
|
|
145
|
+
default: () => {
|
|
146
|
+
title: string;
|
|
147
|
+
subTitle: string;
|
|
148
|
+
titlePosition: string;
|
|
149
|
+
hideTitle: boolean;
|
|
150
|
+
breadcrumbPrefixIcon: string;
|
|
151
|
+
breadcrumbItems: never[];
|
|
152
|
+
};
|
|
171
153
|
};
|
|
172
154
|
}>> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
173
155
|
__isFragment?: undefined;
|
|
174
156
|
__isTeleport?: undefined;
|
|
175
157
|
__isSuspense?: undefined;
|
|
176
158
|
} & ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
177
|
-
|
|
159
|
+
hidePageHeader: {
|
|
178
160
|
type: PropType<boolean>;
|
|
179
161
|
required: false;
|
|
180
162
|
default: boolean;
|
|
181
163
|
};
|
|
182
|
-
|
|
183
|
-
type: PropType<
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
};
|
|
192
|
-
breadcrumbItems: {
|
|
193
|
-
type: PropType<string[]>;
|
|
194
|
-
required: false;
|
|
195
|
-
default: () => never[];
|
|
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>;
|
|
164
|
+
pageHeader: {
|
|
165
|
+
type: PropType<{
|
|
166
|
+
title?: string | undefined;
|
|
167
|
+
subTitle?: string | undefined;
|
|
168
|
+
titlePosition?: "top" | "bottom" | undefined;
|
|
169
|
+
hideTitle?: boolean | undefined;
|
|
170
|
+
breadcrumbPrefixIcon?: string | boolean | undefined;
|
|
171
|
+
breadcrumbItems?: string[] | undefined;
|
|
172
|
+
}>;
|
|
209
173
|
required: false;
|
|
210
|
-
default:
|
|
174
|
+
default: () => {
|
|
175
|
+
title: string;
|
|
176
|
+
subTitle: string;
|
|
177
|
+
titlePosition: string;
|
|
178
|
+
hideTitle: boolean;
|
|
179
|
+
breadcrumbPrefixIcon: string;
|
|
180
|
+
breadcrumbItems: never[];
|
|
181
|
+
};
|
|
211
182
|
};
|
|
212
183
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
184
|
+
hidePageHeader: boolean;
|
|
185
|
+
pageHeader: {
|
|
186
|
+
title?: string | undefined;
|
|
187
|
+
subTitle?: string | undefined;
|
|
188
|
+
titlePosition?: "top" | "bottom" | undefined;
|
|
189
|
+
hideTitle?: boolean | undefined;
|
|
190
|
+
breadcrumbPrefixIcon?: string | boolean | undefined;
|
|
191
|
+
breadcrumbItems?: string[] | undefined;
|
|
192
|
+
};
|
|
220
193
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
221
194
|
$slots: {
|
|
222
195
|
default?(_: {}): any;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./pro-page-container.vue.js";
|
|
2
2
|
import "./pro-page-container.vue2.js";
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
install: (
|
|
6
|
-
|
|
7
|
-
app.component("KbProPageContainer", _sfc_main);
|
|
3
|
+
import { ProPageHeader as r } from "../pro-page-header/index.js";
|
|
4
|
+
const n = Object.assign(e, {
|
|
5
|
+
install: (o) => {
|
|
6
|
+
o.use(r), o.component("KbProPageContainer", e);
|
|
8
7
|
}
|
|
9
|
-
});
|
|
10
|
-
const ProPageContainer$1 = ProPageContainer;
|
|
8
|
+
}), s = n;
|
|
11
9
|
export {
|
|
12
|
-
ProPageContainer,
|
|
13
|
-
|
|
10
|
+
n as ProPageContainer,
|
|
11
|
+
s as default
|
|
14
12
|
};
|
|
@@ -1,98 +1,68 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
3
|
-
/**
|
|
4
|
-
|
|
3
|
+
/** 是否隐藏页头 */
|
|
4
|
+
hidePageHeader: {
|
|
5
5
|
type: PropType<boolean>;
|
|
6
6
|
required: false;
|
|
7
7
|
default: boolean;
|
|
8
8
|
};
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
type: PropType<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
/** 页头属性 */
|
|
10
|
+
pageHeader: {
|
|
11
|
+
type: PropType<{
|
|
12
|
+
title?: string | undefined;
|
|
13
|
+
subTitle?: string | undefined;
|
|
14
|
+
titlePosition?: "top" | "bottom" | undefined;
|
|
15
|
+
hideTitle?: boolean | undefined;
|
|
16
|
+
breadcrumbPrefixIcon?: string | boolean | undefined;
|
|
17
|
+
breadcrumbItems?: string[] | undefined;
|
|
18
|
+
}>;
|
|
18
19
|
required: false;
|
|
19
|
-
default:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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;
|
|
20
|
+
default: () => {
|
|
21
|
+
title: string;
|
|
22
|
+
subTitle: string;
|
|
23
|
+
titlePosition: string;
|
|
24
|
+
hideTitle: boolean;
|
|
25
|
+
breadcrumbPrefixIcon: string;
|
|
26
|
+
breadcrumbItems: never[];
|
|
27
|
+
};
|
|
44
28
|
};
|
|
45
29
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
46
|
-
/**
|
|
47
|
-
|
|
30
|
+
/** 是否隐藏页头 */
|
|
31
|
+
hidePageHeader: {
|
|
48
32
|
type: PropType<boolean>;
|
|
49
33
|
required: false;
|
|
50
34
|
default: boolean;
|
|
51
35
|
};
|
|
52
|
-
/**
|
|
53
|
-
|
|
54
|
-
type: PropType<
|
|
36
|
+
/** 页头属性 */
|
|
37
|
+
pageHeader: {
|
|
38
|
+
type: PropType<{
|
|
39
|
+
title?: string | undefined;
|
|
40
|
+
subTitle?: string | undefined;
|
|
41
|
+
titlePosition?: "top" | "bottom" | undefined;
|
|
42
|
+
hideTitle?: boolean | undefined;
|
|
43
|
+
breadcrumbPrefixIcon?: string | boolean | undefined;
|
|
44
|
+
breadcrumbItems?: string[] | undefined;
|
|
45
|
+
}>;
|
|
55
46
|
required: false;
|
|
56
|
-
default:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
/** 面包屑项目 */
|
|
65
|
-
breadcrumbItems: {
|
|
66
|
-
type: PropType<string[]>;
|
|
67
|
-
required: false;
|
|
68
|
-
default: () => never[];
|
|
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;
|
|
47
|
+
default: () => {
|
|
48
|
+
title: string;
|
|
49
|
+
subTitle: string;
|
|
50
|
+
titlePosition: string;
|
|
51
|
+
hideTitle: boolean;
|
|
52
|
+
breadcrumbPrefixIcon: string;
|
|
53
|
+
breadcrumbItems: never[];
|
|
54
|
+
};
|
|
87
55
|
};
|
|
88
56
|
}>>, {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
57
|
+
hidePageHeader: boolean;
|
|
58
|
+
pageHeader: {
|
|
59
|
+
title?: string | undefined;
|
|
60
|
+
subTitle?: string | undefined;
|
|
61
|
+
titlePosition?: "top" | "bottom" | undefined;
|
|
62
|
+
hideTitle?: boolean | undefined;
|
|
63
|
+
breadcrumbPrefixIcon?: string | boolean | undefined;
|
|
64
|
+
breadcrumbItems?: string[] | undefined;
|
|
65
|
+
};
|
|
96
66
|
}, {}>, {
|
|
97
67
|
default?(_: {}): any;
|
|
98
68
|
}>;
|