@keyblade/pro-components 1.13.8-alpha.1 → 1.13.8-alpha.10
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 +2 -0
- package/es/global-props.d.ts +11 -0
- package/es/global-props.js +4 -0
- package/es/index.d.ts +6 -1
- package/es/index.js +29 -22
- package/es/inerface.d.ts +2 -0
- package/es/pro-date-range-picker/index.d.ts +8 -8
- package/es/pro-date-range-picker/{type.d.ts → inerface.d.ts} +5 -1
- package/es/pro-date-range-picker/pro-date-range-picker.vue.d.ts +1 -1
- package/es/pro-date-range-picker/pro-date-range-picker.vue.js +2 -2
- package/es/pro-date-range-picker/pro-date-range-picker.vue2.js +74 -52
- package/es/pro-footer-bar/index.d.ts +38 -0
- package/es/pro-footer-bar/index.js +11 -0
- package/es/pro-footer-bar/index.vue.d.ts +24 -0
- package/es/pro-footer-bar/index.vue.js +7 -0
- package/es/pro-footer-bar/index.vue2.js +44 -0
- package/es/pro-footer-bar/inerface.d.ts +7 -0
- package/es/pro-form-group/index.d.ts +43 -0
- package/es/pro-form-group/index.js +12 -0
- package/es/pro-form-group/index.vue.d.ts +28 -0
- package/es/pro-form-group/index.vue.js +7 -0
- package/es/pro-form-group/index.vue2.js +43 -0
- package/es/pro-image-upload/image-upload.vue.d.ts +1 -1
- package/es/pro-image-upload/index.d.ts +3 -3
- package/es/pro-layout/hooks.js +83 -83
- package/es/pro-page-container/index.d.ts +36 -130
- package/es/pro-page-container/index.js +7 -6
- package/es/pro-page-container/inerface.d.ts +12 -0
- package/es/pro-page-container/pro-page-container.vue.d.ts +21 -79
- package/es/pro-page-container/pro-page-container.vue.js +38 -36
- package/es/pro-table/index.d.ts +4 -2
- package/es/pro-table/index.js +5 -4
- package/es/pro-table/index.vue.d.ts +9 -2
- package/es/pro-table/index.vue.js +30 -17
- package/es/pro-table/index.vue3.js +5 -0
- package/es/pro-table/interface.d.ts +1 -0
- package/es/pro-textarea/index.d.ts +25 -0
- package/es/pro-textarea/index.js +11 -0
- package/es/pro-textarea/index.vue.d.ts +4 -0
- package/es/pro-textarea/index.vue.js +7 -0
- package/es/pro-textarea/index.vue2.js +40 -0
- package/es/pro-textarea/inerface.d.ts +43 -0
- package/es/style.css +1 -1
- package/package.json +1 -1
- package/es/pro-table/index.vue2.js +0 -4
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as m, resolveComponent as o, createBlock as _, openBlock as n, normalizeClass as t, withCtx as l, createVNode as r, createElementBlock as h, createCommentVNode as f, renderSlot as u, createTextVNode as i, toDisplayString as c, withDirectives as y, vShow as g } from "vue";
|
|
2
|
+
const a = "keyblade-pro-form-group", v = /* @__PURE__ */ m({
|
|
3
|
+
__name: "index",
|
|
4
|
+
props: {
|
|
5
|
+
label: {},
|
|
6
|
+
heading: { default: 6 },
|
|
7
|
+
extra: {},
|
|
8
|
+
hideIcon: { type: Boolean }
|
|
9
|
+
},
|
|
10
|
+
setup(x) {
|
|
11
|
+
return (e, C) => {
|
|
12
|
+
const p = o("a-typography-title"), s = o("icon-exclamation-circle-fill"), d = o("a-typography");
|
|
13
|
+
return n(), _(d, {
|
|
14
|
+
class: t(a)
|
|
15
|
+
}, {
|
|
16
|
+
default: l(() => [
|
|
17
|
+
r(p, { heading: e.heading }, {
|
|
18
|
+
default: l(() => [
|
|
19
|
+
i(c(e.label), 1)
|
|
20
|
+
]),
|
|
21
|
+
_: 1
|
|
22
|
+
}, 8, ["heading"]),
|
|
23
|
+
e.extra ? (n(), h("div", {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: t(`${a}-extra`)
|
|
26
|
+
}, [
|
|
27
|
+
y(r(s, {
|
|
28
|
+
class: t(`${a}-icon`)
|
|
29
|
+
}, null, 8, ["class"]), [
|
|
30
|
+
[g, !e.hideIcon]
|
|
31
|
+
]),
|
|
32
|
+
i(" " + c(e.extra), 1)
|
|
33
|
+
], 2)) : f("", !0),
|
|
34
|
+
u(e.$slots, "default", {}, void 0, !0)
|
|
35
|
+
]),
|
|
36
|
+
_: 3
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
v as default
|
|
43
|
+
};
|
|
@@ -609,8 +609,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
609
609
|
onCropperImgLoad?: ((value: File) => any) | undefined;
|
|
610
610
|
}>, {
|
|
611
611
|
name: string;
|
|
612
|
-
accept: string[];
|
|
613
612
|
disabled: boolean;
|
|
613
|
+
accept: string[];
|
|
614
614
|
multiple: boolean;
|
|
615
615
|
singleLimit: number;
|
|
616
616
|
hideInnerBeforeUploadLoading: boolean;
|
|
@@ -528,8 +528,8 @@ declare const ProImageUpload: {
|
|
|
528
528
|
cropperImgLoad: (value: File) => any;
|
|
529
529
|
}, import('vue').PublicProps, {
|
|
530
530
|
name: string;
|
|
531
|
-
accept: string[];
|
|
532
531
|
disabled: boolean;
|
|
532
|
+
accept: string[];
|
|
533
533
|
multiple: boolean;
|
|
534
534
|
singleLimit: number;
|
|
535
535
|
hideInnerBeforeUploadLoading: boolean;
|
|
@@ -1103,8 +1103,8 @@ declare const ProImageUpload: {
|
|
|
1103
1103
|
isUploadComplete: import('vue').ComputedRef<boolean>;
|
|
1104
1104
|
}, {}, {}, {}, {
|
|
1105
1105
|
name: string;
|
|
1106
|
-
accept: string[];
|
|
1107
1106
|
disabled: boolean;
|
|
1107
|
+
accept: string[];
|
|
1108
1108
|
multiple: boolean;
|
|
1109
1109
|
singleLimit: number;
|
|
1110
1110
|
hideInnerBeforeUploadLoading: boolean;
|
|
@@ -1640,8 +1640,8 @@ declare const ProImageUpload: {
|
|
|
1640
1640
|
cropperImgLoad: (value: File) => any;
|
|
1641
1641
|
}, string, {
|
|
1642
1642
|
name: string;
|
|
1643
|
-
accept: string[];
|
|
1644
1643
|
disabled: boolean;
|
|
1644
|
+
accept: string[];
|
|
1645
1645
|
multiple: boolean;
|
|
1646
1646
|
singleLimit: number;
|
|
1647
1647
|
hideInnerBeforeUploadLoading: boolean;
|
package/es/pro-layout/hooks.js
CHANGED
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as h, computed as L, watch as g } from "vue";
|
|
2
2
|
import { useRoute as R, useRouter as W } from "vue-router";
|
|
3
3
|
import { ProLayoutMode as P, ProLayoutMenuType as B } from "./enum.js";
|
|
4
|
-
function z(
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
4
|
+
function z(o) {
|
|
5
|
+
const u = R(), r = W(), y = h([]), T = h([]), i = h(), v = h([]), M = h({}), k = h([]), s = h([]), p = h([]), b = h([]), f = h([]), d = L(() => {
|
|
6
|
+
const e = [...o.menuItems], a = (t) => {
|
|
7
|
+
t.forEach((l) => {
|
|
8
8
|
if (l != null && l.children && l.children.length > 0) {
|
|
9
9
|
if ((l == null ? void 0 : l.topChildrenMenu) !== void 0)
|
|
10
|
-
l.children = l.children.map((
|
|
10
|
+
l.children = l.children.map((n) => ({ ...n, topMenu: l == null ? void 0 : l.topChildrenMenu }));
|
|
11
11
|
else {
|
|
12
|
-
const
|
|
13
|
-
|
|
12
|
+
const n = l.children.find((c) => c.topMenu !== void 0);
|
|
13
|
+
n && (l.topChildrenMenu = n.topMenu, l.children = l.children.map((c) => ({ ...c, topMenu: n.topMenu })));
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
a(l.children);
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
|
-
return
|
|
20
|
-
}), C = (
|
|
21
|
-
var
|
|
22
|
-
y.value = [
|
|
23
|
-
}, E = (
|
|
24
|
-
|
|
25
|
-
}, N = async (
|
|
26
|
-
if (
|
|
27
|
-
if (
|
|
28
|
-
window.open(
|
|
19
|
+
return o.layout === P.mix && a(e), e;
|
|
20
|
+
}), C = (e) => {
|
|
21
|
+
var a;
|
|
22
|
+
y.value = [e.name], !(e != null && e.children) || ((a = e == null ? void 0 : e.children) == null ? void 0 : a.length) === 0 ? (f.value = [], r == null || r.push({ path: e.path })) : f.value = e.children;
|
|
23
|
+
}, E = (e) => {
|
|
24
|
+
e != null && e.name ? r == null || r.push({ name: e.name }) : r == null || r.push({ path: e.path, params: {} }), T.value = [e.name];
|
|
25
|
+
}, N = async (e, a) => {
|
|
26
|
+
if (a != null && a.path && !(o != null && o.onMenuItemClick && !await o.onMenuItemClick(a))) {
|
|
27
|
+
if (a.path.startsWith("http") || a.path.startsWith("https")) {
|
|
28
|
+
window.open(a.path);
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
e === B.top ? C(a) : E(a);
|
|
32
32
|
}
|
|
33
33
|
}, S = () => {
|
|
34
|
-
const
|
|
34
|
+
const e = [], a = (t) => {
|
|
35
35
|
var l;
|
|
36
|
-
for (const
|
|
37
|
-
const c = n
|
|
38
|
-
if (c.name === ((l = i == null ? void 0 : i.value) == null ? void 0 : l.name) || c.children && c.children.length > 0 &&
|
|
39
|
-
return
|
|
36
|
+
for (const n in t) {
|
|
37
|
+
const c = t[n];
|
|
38
|
+
if (c.name === ((l = i == null ? void 0 : i.value) == null ? void 0 : l.name) || c.children && c.children.length > 0 && a(c.children))
|
|
39
|
+
return e.unshift(c), !0;
|
|
40
40
|
}
|
|
41
41
|
return !1;
|
|
42
42
|
};
|
|
43
|
-
|
|
43
|
+
a(JSON.parse(JSON.stringify(d.value))), v.value = e;
|
|
44
44
|
}, x = () => {
|
|
45
|
-
var
|
|
46
|
-
const
|
|
47
|
-
k.value = (
|
|
45
|
+
var a, t, l;
|
|
46
|
+
const e = (a = v.value) == null ? void 0 : a.map((n) => ({ path: n == null ? void 0 : n.path, label: n == null ? void 0 : n.title }));
|
|
47
|
+
k.value = (t = i.value) != null && t.breadcrumbs ? (l = i.value) == null ? void 0 : l.breadcrumbs : e.length !== 0 ? e : [];
|
|
48
48
|
};
|
|
49
49
|
function A() {
|
|
50
50
|
if (!i.value || i.value.noAffix) {
|
|
51
|
-
s.value.forEach((
|
|
52
|
-
|
|
51
|
+
s.value.forEach((n) => {
|
|
52
|
+
n.active = !1;
|
|
53
53
|
});
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
-
const { name:
|
|
57
|
-
let
|
|
58
|
-
s.value.forEach((
|
|
59
|
-
|
|
56
|
+
const { name: e, title: a } = i.value;
|
|
57
|
+
let t = -1;
|
|
58
|
+
s.value.forEach((n, c) => {
|
|
59
|
+
n.active = !1, n.name === e && (t = c);
|
|
60
60
|
});
|
|
61
61
|
const l = {
|
|
62
|
-
name:
|
|
63
|
-
parentNames: v.value.map((
|
|
64
|
-
title:
|
|
65
|
-
fullPath:
|
|
62
|
+
name: e,
|
|
63
|
+
parentNames: v.value.map((n) => n.name),
|
|
64
|
+
title: a ?? e,
|
|
65
|
+
fullPath: u.fullPath,
|
|
66
66
|
active: !0
|
|
67
67
|
};
|
|
68
|
-
if (~
|
|
69
|
-
const
|
|
70
|
-
|
|
68
|
+
if (~t) {
|
|
69
|
+
const n = s.value[t];
|
|
70
|
+
n.fullPath === u.fullPath ? (n.active = !0, n.fullPath = u.fullPath) : (s.value.splice(t, 1), setTimeout(() => {
|
|
71
71
|
s.value.push(l);
|
|
72
72
|
}));
|
|
73
73
|
} else
|
|
74
74
|
s.value.push(l);
|
|
75
75
|
}
|
|
76
|
-
const w = (
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
}, K = (
|
|
80
|
-
let
|
|
81
|
-
if (s.value.forEach((
|
|
82
|
-
|
|
83
|
-
}),
|
|
84
|
-
let
|
|
85
|
-
|
|
76
|
+
const w = (e) => {
|
|
77
|
+
const a = s.value.findIndex((l) => l.name === e), t = s.value[a];
|
|
78
|
+
r.push(t.fullPath);
|
|
79
|
+
}, K = (e) => {
|
|
80
|
+
let a = -1, t = -1;
|
|
81
|
+
if (s.value.forEach((n, c) => {
|
|
82
|
+
n.name === e && (t = c), n.active && (a = c);
|
|
83
|
+
}), a === t) {
|
|
84
|
+
let n;
|
|
85
|
+
t === 0 ? n = s.value[t + 1] : n = s.value[t - 1], n.active = !0, r.push(n.fullPath);
|
|
86
86
|
}
|
|
87
|
-
const l = s.value.splice(
|
|
87
|
+
const l = s.value.splice(t, 1);
|
|
88
88
|
O(l[0]);
|
|
89
89
|
}, J = () => {
|
|
90
|
-
var
|
|
91
|
-
if (
|
|
90
|
+
var a;
|
|
91
|
+
if (o != null && o.disableKeepAlive || (a = u == null ? void 0 : u.meta) != null && a.ignoreCache)
|
|
92
92
|
return;
|
|
93
|
-
const a = new Set(p.value);
|
|
94
|
-
v.value.forEach((n) => {
|
|
95
|
-
n.name && a.add(n.name);
|
|
96
|
-
}), p.value = Array.from(a.values());
|
|
97
|
-
}, O = (a) => {
|
|
98
93
|
const e = new Set(p.value);
|
|
99
|
-
|
|
100
|
-
e.
|
|
101
|
-
}), s.value.forEach((n) => {
|
|
102
|
-
n.parentNames.forEach((l) => {
|
|
103
|
-
const t = M.value[l];
|
|
104
|
-
t != null && t.ignoreCache || e.add(t.name);
|
|
105
|
-
});
|
|
94
|
+
v.value.forEach((t) => {
|
|
95
|
+
t.name && e.add(t.name);
|
|
106
96
|
}), p.value = Array.from(e.values());
|
|
97
|
+
}, O = (e) => {
|
|
98
|
+
const a = new Set(p.value);
|
|
99
|
+
e.parentNames.forEach((t) => {
|
|
100
|
+
a.delete(t);
|
|
101
|
+
}), s.value.forEach((t) => {
|
|
102
|
+
t.parentNames.forEach((l) => {
|
|
103
|
+
const n = M.value[l];
|
|
104
|
+
n != null && n.ignoreCache || a.add(n.name);
|
|
105
|
+
});
|
|
106
|
+
}), p.value = Array.from(a.values());
|
|
107
107
|
};
|
|
108
108
|
return g(() => d.value, () => {
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
l.children && l.children.length > 0 &&
|
|
109
|
+
const e = {}, a = (t) => {
|
|
110
|
+
t.forEach((l) => {
|
|
111
|
+
l.children && l.children.length > 0 && a(l.children), delete l.children, e[l.name] = l;
|
|
112
112
|
});
|
|
113
113
|
};
|
|
114
|
-
|
|
115
|
-
}, { immediate: !0 }), g(() => [
|
|
116
|
-
var
|
|
117
|
-
if (b.value = [], f.value = [],
|
|
114
|
+
a(JSON.parse(JSON.stringify(d.value))), M.value = e;
|
|
115
|
+
}, { immediate: !0 }), g(() => [o.layout, d.value], () => {
|
|
116
|
+
var e;
|
|
117
|
+
if (b.value = [], f.value = [], o.layout === P.side)
|
|
118
118
|
f.value = d.value;
|
|
119
|
-
else if (
|
|
120
|
-
const
|
|
121
|
-
(
|
|
119
|
+
else if (o.layout === P.mix) {
|
|
120
|
+
const a = (e = d.value) == null ? void 0 : e.filter((t) => t.topMenu);
|
|
121
|
+
(a == null ? void 0 : a.length) === 0 ? f.value = d.value : b.value = a;
|
|
122
122
|
}
|
|
123
|
-
}, { immediate: !0 }), g(() =>
|
|
124
|
-
var
|
|
125
|
-
const
|
|
126
|
-
i.value = M.value[
|
|
127
|
-
const
|
|
128
|
-
|
|
123
|
+
}, { immediate: !0 }), g(() => u == null ? void 0 : u.name, () => {
|
|
124
|
+
var t, l, n;
|
|
125
|
+
const e = u == null ? void 0 : u.name;
|
|
126
|
+
i.value = M.value[e], S();
|
|
127
|
+
const a = v.value.filter((c) => c.topMenu);
|
|
128
|
+
a.length > 0 && b.value.length > 0 && (f.value = ((t = a[a.length - 1]) == null ? void 0 : t.children) || []), y.value = i != null && i.value ? [...a.map((c) => c.name), ...((l = i.value) == null ? void 0 : l.activatedKeys) || []] : [], T.value = i != null && i.value ? [i.value.name, ...((n = i.value) == null ? void 0 : n.activatedKeys) || []] : [], x(), o.hideTabs || A(), J();
|
|
129
129
|
}, { immediate: !0 }), {
|
|
130
130
|
topMenuItems: b,
|
|
131
131
|
siderMenuItems: f,
|
|
@@ -1,151 +1,57 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
declare const ProPageContainer: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<
|
|
4
|
-
hidePageHeader
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
titlePosition?: "top" | "bottom";
|
|
14
|
-
hideTitle?: boolean;
|
|
15
|
-
breadcrumbRouterMode?: boolean;
|
|
16
|
-
breadcrumbPrefixIcon?: boolean | string;
|
|
17
|
-
breadcrumbItems?: {
|
|
18
|
-
label: string;
|
|
19
|
-
path?: string;
|
|
20
|
-
}[];
|
|
21
|
-
}>;
|
|
22
|
-
required: false;
|
|
23
|
-
default: () => {
|
|
24
|
-
title: string;
|
|
25
|
-
subTitle: string;
|
|
26
|
-
titlePosition: string;
|
|
27
|
-
hideTitle: boolean;
|
|
28
|
-
breadcrumbRouterMode: boolean;
|
|
29
|
-
breadcrumbPrefixIcon: string;
|
|
30
|
-
breadcrumbItems: never[];
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
+
hidePageHeader?: boolean;
|
|
5
|
+
showFooterBar?: boolean;
|
|
6
|
+
footerBarOptions?: import('..').ProFooterBarProps;
|
|
7
|
+
pageHeader?: import('./inerface').PageHeaderProps;
|
|
8
|
+
}> & Readonly<{
|
|
9
|
+
onBack?: (() => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
back: () => any;
|
|
12
|
+
}, import('vue').PublicProps, {
|
|
34
13
|
hidePageHeader: boolean;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
titlePosition?: "top" | "bottom";
|
|
39
|
-
hideTitle?: boolean;
|
|
40
|
-
breadcrumbRouterMode?: boolean;
|
|
41
|
-
breadcrumbPrefixIcon?: boolean | string;
|
|
42
|
-
breadcrumbItems?: {
|
|
43
|
-
label: string;
|
|
44
|
-
path?: string;
|
|
45
|
-
}[];
|
|
46
|
-
};
|
|
47
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
14
|
+
showFooterBar: boolean;
|
|
15
|
+
pageHeader: import('./inerface').PageHeaderProps;
|
|
16
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
48
17
|
P: {};
|
|
49
18
|
B: {};
|
|
50
19
|
D: {};
|
|
51
20
|
C: {};
|
|
52
21
|
M: {};
|
|
53
22
|
Defaults: {};
|
|
54
|
-
}, Readonly<
|
|
55
|
-
hidePageHeader
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
title?: string;
|
|
63
|
-
subTitle?: string;
|
|
64
|
-
titlePosition?: "top" | "bottom";
|
|
65
|
-
hideTitle?: boolean;
|
|
66
|
-
breadcrumbRouterMode?: boolean;
|
|
67
|
-
breadcrumbPrefixIcon?: boolean | string;
|
|
68
|
-
breadcrumbItems?: {
|
|
69
|
-
label: string;
|
|
70
|
-
path?: string;
|
|
71
|
-
}[];
|
|
72
|
-
}>;
|
|
73
|
-
required: false;
|
|
74
|
-
default: () => {
|
|
75
|
-
title: string;
|
|
76
|
-
subTitle: string;
|
|
77
|
-
titlePosition: string;
|
|
78
|
-
hideTitle: boolean;
|
|
79
|
-
breadcrumbRouterMode: boolean;
|
|
80
|
-
breadcrumbPrefixIcon: string;
|
|
81
|
-
breadcrumbItems: never[];
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
23
|
+
}, Readonly<{
|
|
24
|
+
hidePageHeader?: boolean;
|
|
25
|
+
showFooterBar?: boolean;
|
|
26
|
+
footerBarOptions?: import('..').ProFooterBarProps;
|
|
27
|
+
pageHeader?: import('./inerface').PageHeaderProps;
|
|
28
|
+
}> & Readonly<{
|
|
29
|
+
onBack?: (() => any) | undefined;
|
|
30
|
+
}>, {}, {}, {}, {}, {
|
|
85
31
|
hidePageHeader: boolean;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
subTitle?: string;
|
|
89
|
-
titlePosition?: "top" | "bottom";
|
|
90
|
-
hideTitle?: boolean;
|
|
91
|
-
breadcrumbRouterMode?: boolean;
|
|
92
|
-
breadcrumbPrefixIcon?: boolean | string;
|
|
93
|
-
breadcrumbItems?: {
|
|
94
|
-
label: string;
|
|
95
|
-
path?: string;
|
|
96
|
-
}[];
|
|
97
|
-
};
|
|
32
|
+
showFooterBar: boolean;
|
|
33
|
+
pageHeader: import('./inerface').PageHeaderProps;
|
|
98
34
|
}>;
|
|
99
35
|
__isFragment?: never;
|
|
100
36
|
__isTeleport?: never;
|
|
101
37
|
__isSuspense?: never;
|
|
102
|
-
} & import('vue').ComponentOptionsBase<Readonly<
|
|
103
|
-
hidePageHeader
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
titlePosition?: "top" | "bottom";
|
|
113
|
-
hideTitle?: boolean;
|
|
114
|
-
breadcrumbRouterMode?: boolean;
|
|
115
|
-
breadcrumbPrefixIcon?: boolean | string;
|
|
116
|
-
breadcrumbItems?: {
|
|
117
|
-
label: string;
|
|
118
|
-
path?: string;
|
|
119
|
-
}[];
|
|
120
|
-
}>;
|
|
121
|
-
required: false;
|
|
122
|
-
default: () => {
|
|
123
|
-
title: string;
|
|
124
|
-
subTitle: string;
|
|
125
|
-
titlePosition: string;
|
|
126
|
-
hideTitle: boolean;
|
|
127
|
-
breadcrumbRouterMode: boolean;
|
|
128
|
-
breadcrumbPrefixIcon: string;
|
|
129
|
-
breadcrumbItems: never[];
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
38
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
39
|
+
hidePageHeader?: boolean;
|
|
40
|
+
showFooterBar?: boolean;
|
|
41
|
+
footerBarOptions?: import('..').ProFooterBarProps;
|
|
42
|
+
pageHeader?: import('./inerface').PageHeaderProps;
|
|
43
|
+
}> & Readonly<{
|
|
44
|
+
onBack?: (() => any) | undefined;
|
|
45
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
46
|
+
back: () => any;
|
|
47
|
+
}, string, {
|
|
133
48
|
hidePageHeader: boolean;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
subTitle?: string;
|
|
137
|
-
titlePosition?: "top" | "bottom";
|
|
138
|
-
hideTitle?: boolean;
|
|
139
|
-
breadcrumbRouterMode?: boolean;
|
|
140
|
-
breadcrumbPrefixIcon?: boolean | string;
|
|
141
|
-
breadcrumbItems?: {
|
|
142
|
-
label: string;
|
|
143
|
-
path?: string;
|
|
144
|
-
}[];
|
|
145
|
-
};
|
|
49
|
+
showFooterBar: boolean;
|
|
50
|
+
pageHeader: import('./inerface').PageHeaderProps;
|
|
146
51
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
147
52
|
$slots: {
|
|
148
53
|
default?(_: {}): any;
|
|
54
|
+
footerBar?(_: {}): any;
|
|
149
55
|
};
|
|
150
56
|
}) & {
|
|
151
57
|
install: (app: App) => void;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from "./pro-page-container.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { ProPageHeader as
|
|
4
|
-
|
|
3
|
+
import { ProPageHeader as e } from "../pro-page-header/index.js";
|
|
4
|
+
import { ProFooterBar as t } from "../pro-footer-bar/index.js";
|
|
5
|
+
const s = Object.assign(r, {
|
|
5
6
|
install: (o) => {
|
|
6
|
-
o.use(
|
|
7
|
+
o.use(e), o.use(t), o.component("KbProPageContainer", r);
|
|
7
8
|
}
|
|
8
9
|
});
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
s as ProPageContainer,
|
|
12
|
+
s as default
|
|
12
13
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface PageHeaderProps {
|
|
2
|
+
title?: string;
|
|
3
|
+
subTitle?: string;
|
|
4
|
+
titlePosition?: 'top' | 'bottom';
|
|
5
|
+
hideTitle?: boolean;
|
|
6
|
+
breadcrumbRouterMode?: boolean;
|
|
7
|
+
breadcrumbPrefixIcon?: boolean | string;
|
|
8
|
+
breadcrumbItems?: {
|
|
9
|
+
label: string;
|
|
10
|
+
path?: string;
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
@@ -1,92 +1,34 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProFooterBarProps } from '../pro-footer-bar/inerface';
|
|
2
|
+
import { PageHeaderProps } from './inerface';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** 是否隐藏页头 */
|
|
5
|
+
hidePageHeader?: boolean;
|
|
6
|
+
/** 是否显示底部栏 */
|
|
7
|
+
showFooterBar?: boolean;
|
|
8
|
+
/** 底部栏属性 */
|
|
9
|
+
footerBarOptions?: ProFooterBarProps;
|
|
10
|
+
/** 页头属性 */
|
|
11
|
+
pageHeader?: PageHeaderProps;
|
|
12
|
+
};
|
|
2
13
|
declare function __VLS_template(): {
|
|
3
14
|
attrs: Partial<{}>;
|
|
4
15
|
slots: {
|
|
5
16
|
default?(_: {}): any;
|
|
17
|
+
footerBar?(_: {}): any;
|
|
6
18
|
};
|
|
7
19
|
refs: {};
|
|
8
20
|
rootEl: HTMLDivElement;
|
|
9
21
|
};
|
|
10
22
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<import('vue').
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
default: boolean;
|
|
17
|
-
};
|
|
18
|
-
/** 页头属性 */
|
|
19
|
-
pageHeader: {
|
|
20
|
-
type: PropType<{
|
|
21
|
-
title?: string;
|
|
22
|
-
subTitle?: string;
|
|
23
|
-
titlePosition?: "top" | "bottom";
|
|
24
|
-
hideTitle?: boolean;
|
|
25
|
-
breadcrumbRouterMode?: boolean;
|
|
26
|
-
breadcrumbPrefixIcon?: boolean | string;
|
|
27
|
-
breadcrumbItems?: {
|
|
28
|
-
label: string;
|
|
29
|
-
path?: string;
|
|
30
|
-
}[];
|
|
31
|
-
}>;
|
|
32
|
-
required: false;
|
|
33
|
-
default: () => {
|
|
34
|
-
title: string;
|
|
35
|
-
subTitle: string;
|
|
36
|
-
titlePosition: string;
|
|
37
|
-
hideTitle: boolean;
|
|
38
|
-
breadcrumbRouterMode: boolean;
|
|
39
|
-
breadcrumbPrefixIcon: string;
|
|
40
|
-
breadcrumbItems: never[];
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
44
|
-
/** 是否隐藏页头 */
|
|
45
|
-
hidePageHeader: {
|
|
46
|
-
type: PropType<boolean>;
|
|
47
|
-
required: false;
|
|
48
|
-
default: boolean;
|
|
49
|
-
};
|
|
50
|
-
/** 页头属性 */
|
|
51
|
-
pageHeader: {
|
|
52
|
-
type: PropType<{
|
|
53
|
-
title?: string;
|
|
54
|
-
subTitle?: string;
|
|
55
|
-
titlePosition?: "top" | "bottom";
|
|
56
|
-
hideTitle?: boolean;
|
|
57
|
-
breadcrumbRouterMode?: boolean;
|
|
58
|
-
breadcrumbPrefixIcon?: boolean | string;
|
|
59
|
-
breadcrumbItems?: {
|
|
60
|
-
label: string;
|
|
61
|
-
path?: string;
|
|
62
|
-
}[];
|
|
63
|
-
}>;
|
|
64
|
-
required: false;
|
|
65
|
-
default: () => {
|
|
66
|
-
title: string;
|
|
67
|
-
subTitle: string;
|
|
68
|
-
titlePosition: string;
|
|
69
|
-
hideTitle: boolean;
|
|
70
|
-
breadcrumbRouterMode: boolean;
|
|
71
|
-
breadcrumbPrefixIcon: string;
|
|
72
|
-
breadcrumbItems: never[];
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
}>> & Readonly<{}>, {
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
24
|
+
back: () => any;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
|
+
onBack?: (() => any) | undefined;
|
|
27
|
+
}>, {
|
|
76
28
|
hidePageHeader: boolean;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
titlePosition?: "top" | "bottom";
|
|
81
|
-
hideTitle?: boolean;
|
|
82
|
-
breadcrumbRouterMode?: boolean;
|
|
83
|
-
breadcrumbPrefixIcon?: boolean | string;
|
|
84
|
-
breadcrumbItems?: {
|
|
85
|
-
label: string;
|
|
86
|
-
path?: string;
|
|
87
|
-
}[];
|
|
88
|
-
};
|
|
89
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
29
|
+
showFooterBar: boolean;
|
|
30
|
+
pageHeader: PageHeaderProps;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
90
32
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
91
33
|
export default _default;
|
|
92
34
|
type __VLS_WithTemplateSlots<T, S> = T & {
|