@keyblade/pro-components 1.13.8-alpha.40 → 1.13.8-alpha.41
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-footer-bar/interface.d.ts +1 -0
- package/es/pro-page-container/constant.js +4 -4
- package/es/pro-page-container/index.d.ts +14 -4
- package/es/pro-page-container/index.js +21 -8
- package/es/pro-page-container/pro-page-container.vue.d.ts +4 -1
- package/es/pro-page-container/pro-page-container.vue.js +34 -34
- package/es/pro-page-header/constant.js +3 -3
- package/es/pro-page-header/index.d.ts +14 -4
- package/es/pro-page-header/index.js +21 -8
- package/es/pro-page-header/interface.d.ts +2 -2
- package/es/pro-page-header/pro-page-header.vue.d.ts +4 -1
- package/es/pro-page-header/pro-page-header.vue.js +26 -26
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defaultPageHeaderProps as e } from "../pro-page-header/constant.js";
|
|
2
|
-
const
|
|
3
|
-
hidePageHeader:
|
|
4
|
-
showFooterBar:
|
|
2
|
+
const a = {
|
|
3
|
+
hidePageHeader: void 0,
|
|
4
|
+
showFooterBar: void 0,
|
|
5
5
|
pageHeader: e
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
a as defaultPageContainerProps
|
|
9
9
|
};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
import { GlobalProps } from '../global-props.ts';
|
|
2
3
|
declare const ProPageContainer: {
|
|
3
4
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./interface').PageContainerProps> & Readonly<{
|
|
4
5
|
onBack?: (() => any) | undefined;
|
|
5
6
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
7
|
back: () => any;
|
|
7
|
-
}, import('vue').PublicProps, {
|
|
8
|
+
}, import('vue').PublicProps, {
|
|
9
|
+
hidePageHeader: boolean;
|
|
10
|
+
showFooterBar: boolean;
|
|
11
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
8
12
|
P: {};
|
|
9
13
|
B: {};
|
|
10
14
|
D: {};
|
|
@@ -13,7 +17,10 @@ declare const ProPageContainer: {
|
|
|
13
17
|
Defaults: {};
|
|
14
18
|
}, Readonly<import('./interface').PageContainerProps> & Readonly<{
|
|
15
19
|
onBack?: (() => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, {
|
|
20
|
+
}>, {}, {}, {}, {}, {
|
|
21
|
+
hidePageHeader: boolean;
|
|
22
|
+
showFooterBar: boolean;
|
|
23
|
+
}>;
|
|
17
24
|
__isFragment?: never;
|
|
18
25
|
__isTeleport?: never;
|
|
19
26
|
__isSuspense?: never;
|
|
@@ -21,14 +28,17 @@ declare const ProPageContainer: {
|
|
|
21
28
|
onBack?: (() => any) | undefined;
|
|
22
29
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
23
30
|
back: () => any;
|
|
24
|
-
}, string, {
|
|
31
|
+
}, string, {
|
|
32
|
+
hidePageHeader: boolean;
|
|
33
|
+
showFooterBar: boolean;
|
|
34
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
25
35
|
$slots: {
|
|
26
36
|
'page-header-breadcrumb-right'?(_: {}): any;
|
|
27
37
|
default?(_: {}): any;
|
|
28
38
|
footerBar?(_: {}): any;
|
|
29
39
|
};
|
|
30
40
|
}) & {
|
|
31
|
-
install: (app: App) => void;
|
|
41
|
+
install: (app: App, options?: GlobalProps["pageContainer"]) => void;
|
|
32
42
|
};
|
|
33
43
|
/** 导出类型 */
|
|
34
44
|
export * from './interface';
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var t = Object.getOwnPropertySymbols;
|
|
3
|
+
var P = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var n = (e, o, r) => o in e ? s(e, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[o] = r, a = (e, o) => {
|
|
5
|
+
for (var r in o || (o = {}))
|
|
6
|
+
P.call(o, r) && n(e, r, o[r]);
|
|
7
|
+
if (t)
|
|
8
|
+
for (var r of t(o))
|
|
9
|
+
f.call(o, r) && n(e, r, o[r]);
|
|
10
|
+
return e;
|
|
11
|
+
};
|
|
12
|
+
import i from "./pro-page-container.vue.js";
|
|
2
13
|
/* empty css */
|
|
3
|
-
import { ProPageHeader as
|
|
4
|
-
import { ProFooterBar as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
14
|
+
import { ProPageHeader as g } from "../pro-page-header/index.js";
|
|
15
|
+
import { ProFooterBar as l } from "../pro-footer-bar/index.js";
|
|
16
|
+
import { globalProps as m } from "../global-props.js";
|
|
17
|
+
const _ = Object.assign(i, {
|
|
18
|
+
install: (e, o) => {
|
|
19
|
+
var r;
|
|
20
|
+
o && (m.pageContainer = a(a({}, ((r = m) == null ? void 0 : r.pageContainer) || {}), o || {})), e.use(g), e.use(l), e.component("KbProPageContainer", i);
|
|
8
21
|
}
|
|
9
22
|
});
|
|
10
23
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
24
|
+
_ as ProPageContainer,
|
|
25
|
+
_ as default
|
|
13
26
|
};
|
|
@@ -14,7 +14,10 @@ declare const __VLS_component: import('vue').DefineComponent<PageContainerProps,
|
|
|
14
14
|
back: () => any;
|
|
15
15
|
}, string, import('vue').PublicProps, Readonly<PageContainerProps> & Readonly<{
|
|
16
16
|
onBack?: (() => any) | undefined;
|
|
17
|
-
}>, {
|
|
17
|
+
}>, {
|
|
18
|
+
hidePageHeader: boolean;
|
|
19
|
+
showFooterBar: boolean;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
21
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
22
|
export default _default;
|
|
20
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
var V = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var I = Object.getOwnPropertySymbols;
|
|
3
3
|
var z = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var T = (a, e, r) => e in a ? V(a, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[e] = r, y = (a, e) => {
|
|
5
5
|
for (var r in e || (e = {}))
|
|
6
|
-
z.call(e, r) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var r of
|
|
9
|
-
S.call(e, r) &&
|
|
6
|
+
z.call(e, r) && T(a, r, e[r]);
|
|
7
|
+
if (I)
|
|
8
|
+
for (var r of I(e))
|
|
9
|
+
S.call(e, r) && T(a, r, e[r]);
|
|
10
10
|
return a;
|
|
11
11
|
};
|
|
12
|
-
import { defineComponent as j, computed as F, createElementBlock as q, openBlock as
|
|
12
|
+
import { defineComponent as j, computed as F, createElementBlock as q, openBlock as s, normalizeClass as _, createBlock as M, createCommentVNode as N, createElementVNode as A, withCtx as R, renderSlot as l, mergeProps as D } from "vue";
|
|
13
13
|
import G from "../pro-page-header/pro-page-header.vue.js";
|
|
14
14
|
/* empty css */
|
|
15
15
|
import J from "../pro-footer-bar/index.vue.js";
|
|
16
16
|
import { merge as x } from "es-toolkit/object";
|
|
17
17
|
import { globalProps as K } from "../global-props.js";
|
|
18
18
|
import { defaultPageContainerProps as L } from "./constant.js";
|
|
19
|
-
const i = "keyblade-pro-page-container",
|
|
19
|
+
const i = "keyblade-pro-page-container", te = /* @__PURE__ */ j({
|
|
20
20
|
__name: "pro-page-container",
|
|
21
21
|
props: {
|
|
22
|
-
hidePageHeader: { type: Boolean },
|
|
23
|
-
showFooterBar: { type: Boolean },
|
|
22
|
+
hidePageHeader: { type: Boolean, default: void 0 },
|
|
23
|
+
showFooterBar: { type: Boolean, default: void 0 },
|
|
24
24
|
footerBarOptions: {},
|
|
25
25
|
pageHeader: {}
|
|
26
26
|
},
|
|
27
27
|
emits: ["back"],
|
|
28
28
|
setup(a, { emit: e }) {
|
|
29
|
-
const r = e, E = a,
|
|
30
|
-
var
|
|
31
|
-
return x(y({}, L), x(((
|
|
29
|
+
const r = e, E = a, t = F(() => {
|
|
30
|
+
var o;
|
|
31
|
+
return x(y({}, L), x(((o = K) == null ? void 0 : o.pageContainer) || {}, E || {}));
|
|
32
32
|
}), O = F(() => {
|
|
33
|
-
var
|
|
34
|
-
return (
|
|
33
|
+
var o;
|
|
34
|
+
return (o = t.value) != null && o.showFooterBar ? [i, `${i}-with-footer-bar`] : [i];
|
|
35
35
|
});
|
|
36
|
-
return (
|
|
37
|
-
var d,
|
|
38
|
-
return
|
|
36
|
+
return (o, n) => {
|
|
37
|
+
var d, u, m, p, c, b, f, g, v, h, B, P, k, H, w, $, C;
|
|
38
|
+
return s(), q("div", {
|
|
39
39
|
class: _(O.value)
|
|
40
40
|
}, [
|
|
41
|
-
(d =
|
|
41
|
+
(d = t.value) != null && d.hidePageHeader ? N("", !0) : (s(), M(G, {
|
|
42
42
|
key: 0,
|
|
43
|
-
title: (
|
|
44
|
-
subTitle: (c = (p =
|
|
45
|
-
titlePosition: (f = (b =
|
|
46
|
-
hideTitle: (
|
|
47
|
-
"
|
|
48
|
-
breadcrumbRouterMode: (k = (P =
|
|
49
|
-
breadcrumbPrefixIcon: (
|
|
50
|
-
breadcrumbItems: (
|
|
43
|
+
title: (m = (u = t.value) == null ? void 0 : u.pageHeader) == null ? void 0 : m.title,
|
|
44
|
+
subTitle: (c = (p = t.value) == null ? void 0 : p.pageHeader) == null ? void 0 : c.subTitle,
|
|
45
|
+
titlePosition: (f = (b = t.value) == null ? void 0 : b.pageHeader) == null ? void 0 : f.titlePosition,
|
|
46
|
+
hideTitle: (v = (g = t.value) == null ? void 0 : g.pageHeader) == null ? void 0 : v.hideTitle,
|
|
47
|
+
"show-back-button": (B = (h = t.value) == null ? void 0 : h.pageHeader) == null ? void 0 : B.showBackButton,
|
|
48
|
+
breadcrumbRouterMode: (k = (P = t.value) == null ? void 0 : P.pageHeader) == null ? void 0 : k.breadcrumbRouterMode,
|
|
49
|
+
breadcrumbPrefixIcon: (w = (H = t.value) == null ? void 0 : H.pageHeader) == null ? void 0 : w.breadcrumbPrefixIcon,
|
|
50
|
+
breadcrumbItems: (C = ($ = t.value) == null ? void 0 : $.pageHeader) == null ? void 0 : C.breadcrumbItems
|
|
51
51
|
}, {
|
|
52
52
|
"breadcrumb-right": R(() => [
|
|
53
|
-
l(
|
|
53
|
+
l(o.$slots, "page-header-breadcrumb-right")
|
|
54
54
|
]),
|
|
55
55
|
_: 3
|
|
56
|
-
}, 8, ["title", "subTitle", "titlePosition", "hideTitle", "
|
|
56
|
+
}, 8, ["title", "subTitle", "titlePosition", "hideTitle", "show-back-button", "breadcrumbRouterMode", "breadcrumbPrefixIcon", "breadcrumbItems"])),
|
|
57
57
|
A("div", {
|
|
58
58
|
class: _(`${i}-content`)
|
|
59
59
|
}, [
|
|
60
|
-
l(
|
|
60
|
+
l(o.$slots, "default")
|
|
61
61
|
], 2),
|
|
62
|
-
|
|
63
|
-
onBack:
|
|
62
|
+
o.showFooterBar ? (s(), M(J, D({ key: 1 }, o.footerBarOptions, {
|
|
63
|
+
onBack: n[0] || (n[0] = (Q) => r("back"))
|
|
64
64
|
}), {
|
|
65
65
|
default: R(() => [
|
|
66
|
-
l(
|
|
66
|
+
l(o.$slots, "footerBar")
|
|
67
67
|
]),
|
|
68
68
|
_: 3
|
|
69
69
|
}, 16)) : N("", !0)
|
|
@@ -72,5 +72,5 @@ const i = "keyblade-pro-page-container", oe = /* @__PURE__ */ j({
|
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
export {
|
|
75
|
-
|
|
75
|
+
te as default
|
|
76
76
|
};
|
|
@@ -2,9 +2,9 @@ const e = {
|
|
|
2
2
|
title: "",
|
|
3
3
|
subTitle: "",
|
|
4
4
|
titlePosition: "top",
|
|
5
|
-
hideTitle:
|
|
6
|
-
|
|
7
|
-
breadcrumbRouterMode:
|
|
5
|
+
hideTitle: void 0,
|
|
6
|
+
showBackButton: void 0,
|
|
7
|
+
breadcrumbRouterMode: void 0,
|
|
8
8
|
breadcrumbPrefixIcon: "icon-apps",
|
|
9
9
|
breadcrumbItems: []
|
|
10
10
|
};
|
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
import { GlobalProps } from '../global-props.ts';
|
|
2
3
|
declare const ProPageHeader: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./interface').PageHeaderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
4
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./interface').PageHeaderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
5
|
+
hideTitle: boolean;
|
|
6
|
+
breadcrumbRouterMode: boolean;
|
|
7
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
4
8
|
P: {};
|
|
5
9
|
B: {};
|
|
6
10
|
D: {};
|
|
7
11
|
C: {};
|
|
8
12
|
M: {};
|
|
9
13
|
Defaults: {};
|
|
10
|
-
}, Readonly<import('./interface').PageHeaderProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
14
|
+
}, Readonly<import('./interface').PageHeaderProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
15
|
+
hideTitle: boolean;
|
|
16
|
+
breadcrumbRouterMode: boolean;
|
|
17
|
+
}>;
|
|
11
18
|
__isFragment?: never;
|
|
12
19
|
__isTeleport?: never;
|
|
13
20
|
__isSuspense?: never;
|
|
14
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./interface').PageHeaderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
21
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./interface').PageHeaderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
22
|
+
hideTitle: boolean;
|
|
23
|
+
breadcrumbRouterMode: boolean;
|
|
24
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
15
25
|
$slots: {
|
|
16
26
|
'breadcrumb-right'?(_: {}): any;
|
|
17
27
|
};
|
|
18
28
|
}) & {
|
|
19
|
-
install: (app: App) => void;
|
|
29
|
+
install: (app: App, options?: GlobalProps["pageHeader"]) => void;
|
|
20
30
|
};
|
|
21
31
|
/** 导出类型 */
|
|
22
32
|
export * from './interface';
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var n = Object.defineProperty;
|
|
2
|
+
var s = Object.getOwnPropertySymbols;
|
|
3
|
+
var u = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var t = (e, r, o) => r in e ? n(e, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[r] = o, m = (e, r) => {
|
|
5
|
+
for (var o in r || (r = {}))
|
|
6
|
+
u.call(r, o) && t(e, o, r[o]);
|
|
7
|
+
if (s)
|
|
8
|
+
for (var o of s(r))
|
|
9
|
+
f.call(r, o) && t(e, o, r[o]);
|
|
10
|
+
return e;
|
|
11
|
+
};
|
|
12
|
+
import { Breadcrumb as g, Button as c, Link as d, Typography as l } from "@arco-design/web-vue";
|
|
13
|
+
import { IconApps as P } from "@arco-design/web-vue/es/icon";
|
|
14
|
+
import a from "./pro-page-header.vue.js";
|
|
4
15
|
/* empty css */
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
16
|
+
import { globalProps as i } from "../global-props.js";
|
|
17
|
+
const h = Object.assign(a, {
|
|
18
|
+
install: (e, r) => {
|
|
19
|
+
var o;
|
|
20
|
+
r && (i.pageHeader = m(m({}, ((o = i) == null ? void 0 : o.pageHeader) || {}), r || {})), e.use(g), e.use(c), e.use(d), e.use(l), e.use(P), e.component("KbProPageHeader", a);
|
|
8
21
|
}
|
|
9
22
|
});
|
|
10
23
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
24
|
+
h as ProPageHeader,
|
|
25
|
+
h as default
|
|
13
26
|
};
|
|
@@ -7,8 +7,8 @@ export interface PageHeaderProps {
|
|
|
7
7
|
titlePosition?: 'top' | 'bottom';
|
|
8
8
|
/** 是否隐藏标题 */
|
|
9
9
|
hideTitle?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
|
|
10
|
+
/** 是否显示返回按钮 */
|
|
11
|
+
showBackButton?: boolean;
|
|
12
12
|
/** 面包屑路由模式 */
|
|
13
13
|
breadcrumbRouterMode?: boolean;
|
|
14
14
|
/** 面包屑前缀图标 */
|
|
@@ -8,7 +8,10 @@ declare function __VLS_template(): {
|
|
|
8
8
|
rootEl: HTMLDivElement;
|
|
9
9
|
};
|
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<PageHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PageHeaderProps> & Readonly<{}>, {
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<PageHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PageHeaderProps> & Readonly<{}>, {
|
|
12
|
+
hideTitle: boolean;
|
|
13
|
+
breadcrumbRouterMode: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
15
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
16
|
export default _default;
|
|
14
17
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -9,11 +9,11 @@ var R = (u, a, e) => a in u ? z(u, a, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
F.call(a, e) && R(u, e, a[e]);
|
|
10
10
|
return u;
|
|
11
11
|
};
|
|
12
|
-
import { defineComponent as q, computed as
|
|
12
|
+
import { defineComponent as q, computed as w, inject as G, resolveComponent as J, createElementBlock as d, openBlock as o, normalizeClass as b, createVNode as s, createCommentVNode as i, unref as r, withCtx as l, createBlock as m, createTextVNode as k, toDisplayString as B, createElementVNode as K, renderSlot as O, resolveDynamicComponent as Q, Fragment as g, renderList as U } from "vue";
|
|
13
13
|
import { useRouter as W } from "vue-router";
|
|
14
|
-
import { createReusableTemplate as
|
|
15
|
-
import { TypographyTitle as X, TypographyText as Y, Breadcrumb as Z, BreadcrumbItem as
|
|
16
|
-
import { merge as
|
|
14
|
+
import { createReusableTemplate as V } from "@vueuse/core";
|
|
15
|
+
import { TypographyTitle as X, TypographyText as Y, Breadcrumb as Z, BreadcrumbItem as S, Link as ee, Button as te } from "@arco-design/web-vue";
|
|
16
|
+
import { merge as j } from "es-toolkit/object";
|
|
17
17
|
import { globalProps as re } from "../global-props.js";
|
|
18
18
|
import { defaultPageHeaderProps as ae } from "./constant.js";
|
|
19
19
|
const oe = { style: { display: "flex", "justify-content": "space-between", "align-items": "center" } }, le = { key: 1 }, f = "keyblade-pro-page-header", be = /* @__PURE__ */ q({
|
|
@@ -22,32 +22,32 @@ const oe = { style: { display: "flex", "justify-content": "space-between", "alig
|
|
|
22
22
|
title: {},
|
|
23
23
|
subTitle: {},
|
|
24
24
|
titlePosition: {},
|
|
25
|
-
hideTitle: { type: Boolean },
|
|
26
|
-
|
|
27
|
-
breadcrumbRouterMode: { type: Boolean },
|
|
25
|
+
hideTitle: { type: Boolean, default: void 0 },
|
|
26
|
+
showBackButton: { type: Boolean },
|
|
27
|
+
breadcrumbRouterMode: { type: Boolean, default: void 0 },
|
|
28
28
|
breadcrumbPrefixIcon: { type: [Boolean, String] },
|
|
29
29
|
breadcrumbItems: {}
|
|
30
30
|
},
|
|
31
31
|
setup(u) {
|
|
32
|
-
const a = u, e =
|
|
32
|
+
const a = u, e = w(() => {
|
|
33
33
|
var y;
|
|
34
|
-
return
|
|
35
|
-
}), [D, T] =
|
|
34
|
+
return j(N({}, ae), j(((y = re) == null ? void 0 : y.pageHeader) || {}, a || {}));
|
|
35
|
+
}), [D, T] = V(), [E, h] = V(), H = W(), L = G("ProBreadcrumbItems", []), _ = w(() => e.value.breadcrumbItems instanceof Array && e.value.breadcrumbItems.length === 0 || !e.value.breadcrumbItems ? L.value : e.value.breadcrumbItems || []);
|
|
36
36
|
return (y, v) => {
|
|
37
37
|
var I, P;
|
|
38
38
|
const M = J("router-link");
|
|
39
39
|
return o(), d("div", {
|
|
40
40
|
class: b(f)
|
|
41
41
|
}, [
|
|
42
|
-
|
|
42
|
+
s(r(E), null, {
|
|
43
43
|
default: l(() => {
|
|
44
|
-
var
|
|
44
|
+
var n, t;
|
|
45
45
|
return [
|
|
46
|
-
(
|
|
46
|
+
(n = e.value) != null && n.hideTitle ? i("", !0) : (o(), d("div", {
|
|
47
47
|
key: 0,
|
|
48
48
|
class: b(`${f}-section-title`)
|
|
49
49
|
}, [
|
|
50
|
-
|
|
50
|
+
s(r(X), {
|
|
51
51
|
heading: 6,
|
|
52
52
|
class: b(`${f}-title`)
|
|
53
53
|
}, {
|
|
@@ -77,16 +77,16 @@ const oe = { style: { display: "flex", "justify-content": "space-between", "alig
|
|
|
77
77
|
}),
|
|
78
78
|
_: 1
|
|
79
79
|
}),
|
|
80
|
-
|
|
80
|
+
s(r(D), null, {
|
|
81
81
|
default: l(() => [
|
|
82
82
|
K("div", oe, [
|
|
83
|
-
|
|
83
|
+
s(r(Z), {
|
|
84
84
|
class: b(`${f}-section-breadcrumb`)
|
|
85
85
|
}, {
|
|
86
86
|
default: l(() => {
|
|
87
|
-
var
|
|
87
|
+
var n;
|
|
88
88
|
return [
|
|
89
|
-
(
|
|
89
|
+
(n = e.value) != null && n.breadcrumbPrefixIcon ? (o(), m(r(S), {
|
|
90
90
|
key: 0,
|
|
91
91
|
style: { cursor: "text" }
|
|
92
92
|
}, {
|
|
@@ -98,7 +98,7 @@ const oe = { style: { display: "flex", "justify-content": "space-between", "alig
|
|
|
98
98
|
}),
|
|
99
99
|
_: 1
|
|
100
100
|
})) : i("", !0),
|
|
101
|
-
(o(!0), d(g, null, U(_.value, (t, c) => (o(), m(r(
|
|
101
|
+
(o(!0), d(g, null, U(_.value, (t, c) => (o(), m(r(S), {
|
|
102
102
|
key: `${t}-${c}`
|
|
103
103
|
}, {
|
|
104
104
|
default: l(() => {
|
|
@@ -109,7 +109,7 @@ const oe = { style: { display: "flex", "justify-content": "space-between", "alig
|
|
|
109
109
|
to: (t == null ? void 0 : t.path) || ""
|
|
110
110
|
}, {
|
|
111
111
|
default: l(() => [
|
|
112
|
-
|
|
112
|
+
s(r(ee), null, {
|
|
113
113
|
default: l(() => [
|
|
114
114
|
k(B(t == null ? void 0 : t.label), 1)
|
|
115
115
|
]),
|
|
@@ -127,9 +127,9 @@ const oe = { style: { display: "flex", "justify-content": "space-between", "alig
|
|
|
127
127
|
_: 1
|
|
128
128
|
}, 8, ["class"]),
|
|
129
129
|
O(y.$slots, "breadcrumb-right", {}, () => {
|
|
130
|
-
var
|
|
130
|
+
var n;
|
|
131
131
|
return [
|
|
132
|
-
(
|
|
132
|
+
(n = e.value) != null && n.showBackButton ? i("", !0) : (o(), m(r(te), {
|
|
133
133
|
key: 0,
|
|
134
134
|
onClick: v[0] || (v[0] = (t) => r(H).back())
|
|
135
135
|
}, {
|
|
@@ -145,12 +145,12 @@ const oe = { style: { display: "flex", "justify-content": "space-between", "alig
|
|
|
145
145
|
_: 3
|
|
146
146
|
}),
|
|
147
147
|
((I = e.value) == null ? void 0 : I.titlePosition) === "top" ? (o(), d(g, { key: 0 }, [
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
s(r(h)),
|
|
149
|
+
s(r(T))
|
|
150
150
|
], 64)) : i("", !0),
|
|
151
151
|
((P = e.value) == null ? void 0 : P.titlePosition) === "bottom" ? (o(), d(g, { key: 1 }, [
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
s(r(T)),
|
|
153
|
+
s(r(h))
|
|
154
154
|
], 64)) : i("", !0)
|
|
155
155
|
]);
|
|
156
156
|
};
|
package/package.json
CHANGED