@keyblade/pro-components 1.13.8-alpha.2 → 1.13.8-alpha.20
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 +5 -0
- package/es/global-props.d.ts +13 -0
- package/es/global-props.js +4 -0
- package/es/index.d.ts +7 -1
- package/es/index.js +31 -22
- package/es/inerface.d.ts +2 -0
- package/es/pro-calendar/calendar.vue.d.ts +75 -0
- package/es/pro-calendar/calendar.vue.js +158 -0
- package/es/pro-calendar/calendar.vue3.js +5 -0
- package/es/pro-calendar/enum.d.ts +6 -0
- package/es/pro-calendar/enum.js +4 -0
- package/es/pro-calendar/header.vue.d.ts +27 -0
- package/es/pro-calendar/header.vue.js +135 -0
- package/es/pro-calendar/header.vue2.js +4 -0
- package/es/pro-calendar/hooks/useCellClassName.d.ts +12 -0
- package/es/pro-calendar/hooks/useCellClassName.js +41 -0
- package/es/pro-calendar/index.d.ts +118 -0
- package/es/pro-calendar/index.js +11 -0
- package/es/pro-calendar/inerface.d.ts +87 -0
- package/es/pro-calendar/month.d.ts +5 -0
- package/es/pro-calendar/month.js +43 -0
- package/es/pro-calendar/month.vue.d.ts +22 -0
- package/es/pro-calendar/month.vue.js +127 -0
- package/es/pro-calendar/month.vue2.js +4 -0
- package/es/pro-calendar/week.vue.d.ts +3 -0
- package/es/pro-calendar/week.vue.js +34 -0
- package/es/pro-calendar/week.vue2.js +4 -0
- package/es/pro-calendar/year.vue.d.ts +3 -0
- package/es/pro-calendar/year.vue.js +112 -0
- package/es/pro-calendar/year.vue2.js +4 -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 +3 -3
- package/es/pro-date-range-picker/pro-date-range-picker.vue2.js +70 -56
- 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.d.ts +1 -1
- package/es/pro-layout/hooks.js +84 -84
- package/es/pro-layout/pro-layout.vue.js +35 -37
- package/es/pro-menu/index.d.ts +11 -80
- package/es/pro-menu/interface.d.ts +19 -0
- package/es/pro-menu/menu-item.vue.d.ts +25 -0
- package/es/pro-menu/menu-item.vue.js +35 -0
- package/es/pro-menu/menu-item.vue2.js +4 -0
- package/es/pro-menu/pro-menu-item.vue.d.ts +7 -0
- package/es/pro-menu/pro-menu-item.vue.js +63 -0
- package/es/pro-menu/pro-menu-item.vue2.js +4 -0
- package/es/pro-menu/pro-menu.vue.d.ts +7 -55
- package/es/pro-menu/pro-menu.vue.js +28 -114
- package/es/pro-menu/sub-menu.vue.d.ts +22 -0
- package/es/pro-menu/sub-menu.vue.js +54 -0
- package/es/pro-menu/sub-menu.vue2.js +4 -0
- package/es/pro-menu/util.d.ts +9 -0
- package/es/pro-menu/util.js +7 -0
- 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 +7 -5
- package/es/pro-table/index.js +5 -4
- package/es/pro-table/index.vue.d.ts +10 -3
- package/es/pro-table/index.vue.js +30 -20
- 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,63 @@
|
|
|
1
|
+
import { defineComponent as p, createBlock as u, createCommentVNode as l, openBlock as r, withCtx as i, createElementBlock as a, resolveDynamicComponent as m, normalizeClass as k } from "vue";
|
|
2
|
+
import I from "./menu-item.vue.js";
|
|
3
|
+
import M from "./sub-menu.vue.js";
|
|
4
|
+
const $ = ["src"], z = ["src"], y = "keyblade-pro-menu-item", v = /* @__PURE__ */ p({
|
|
5
|
+
__name: "pro-menu-item",
|
|
6
|
+
props: {
|
|
7
|
+
item: {},
|
|
8
|
+
selectedKeys: {},
|
|
9
|
+
mode: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["menu-item-click"],
|
|
12
|
+
setup(h, { emit: f }) {
|
|
13
|
+
const o = h, d = f, C = (e) => {
|
|
14
|
+
var n;
|
|
15
|
+
return (e == null ? void 0 : e.children) && ((n = e == null ? void 0 : e.children) == null ? void 0 : n.length) > 0 && ((o == null ? void 0 : o.mode) === "vertical" || (o == null ? void 0 : o.mode) === "horizontal" && e.topChildrenMenu);
|
|
16
|
+
}, g = (e) => {
|
|
17
|
+
var n;
|
|
18
|
+
return !(e != null && e.children) || ((n = e == null ? void 0 : e.children) == null ? void 0 : n.length) === 0 || o.mode === "horizontal" && e.children.length > 0 && !e.topChildrenMenu;
|
|
19
|
+
}, s = (e) => {
|
|
20
|
+
var n;
|
|
21
|
+
return (n = o == null ? void 0 : o.selectedKeys) != null && n.includes(e.name) && e != null && e.selectedIcon ? e == null ? void 0 : e.selectedIcon : e == null ? void 0 : e.icon;
|
|
22
|
+
}, c = (e) => {
|
|
23
|
+
const n = e == null ? void 0 : e.icon;
|
|
24
|
+
return n != null && n.startsWith("icon") ? "icon" : "url";
|
|
25
|
+
};
|
|
26
|
+
return (e, n) => C(e.item) ? (r(), u(M, {
|
|
27
|
+
key: 0,
|
|
28
|
+
item: e.item,
|
|
29
|
+
mode: e.mode,
|
|
30
|
+
"selected-keys": e.selectedKeys,
|
|
31
|
+
onMenuItemClick: n[0] || (n[0] = (t) => d("menu-item-click", t))
|
|
32
|
+
}, {
|
|
33
|
+
icon: i(() => [
|
|
34
|
+
c(e.item) === "icon" ? (r(), u(m(s(e.item)), { key: 0 })) : l("", !0),
|
|
35
|
+
c(e.item) === "url" ? (r(), a("img", {
|
|
36
|
+
key: 1,
|
|
37
|
+
class: k(`${y}-img`),
|
|
38
|
+
src: s(e.item),
|
|
39
|
+
alt: ""
|
|
40
|
+
}, null, 10, $)) : l("", !0)
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}, 8, ["item", "mode", "selected-keys"])) : g(e.item) ? (r(), u(I, {
|
|
44
|
+
key: 1,
|
|
45
|
+
item: e.item,
|
|
46
|
+
onMenuItemClick: n[1] || (n[1] = (t) => d("menu-item-click", t))
|
|
47
|
+
}, {
|
|
48
|
+
icon: i(() => [
|
|
49
|
+
c(e.item) === "icon" ? (r(), u(m(s(e.item)), { key: 0 })) : l("", !0),
|
|
50
|
+
c(e.item) === "url" ? (r(), a("img", {
|
|
51
|
+
key: 1,
|
|
52
|
+
class: k(`${y}-img`),
|
|
53
|
+
src: s(e.item),
|
|
54
|
+
alt: ""
|
|
55
|
+
}, null, 10, z)) : l("", !0)
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["item"])) : l("", !0);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
v as default
|
|
63
|
+
};
|
|
@@ -1,58 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type: PropType<"horizontal" | "vertical">;
|
|
7
|
-
required: false;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
collapsed: {
|
|
11
|
-
type: PropType<boolean>;
|
|
12
|
-
required: false;
|
|
13
|
-
};
|
|
14
|
-
selectedKeys: {
|
|
15
|
-
type: PropType<string[]>;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
items: {
|
|
19
|
-
type: PropType<IProMenuItem[]>;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
menuProps: {
|
|
23
|
-
type: PropType<Partial<MenuProps>>;
|
|
24
|
-
required: false;
|
|
25
|
-
default: () => {};
|
|
26
|
-
};
|
|
27
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
-
"menu-item-click": (_item: IProMenuItem) => void;
|
|
29
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
30
|
-
mode: {
|
|
31
|
-
type: PropType<"horizontal" | "vertical">;
|
|
32
|
-
required: false;
|
|
33
|
-
default: string;
|
|
34
|
-
};
|
|
35
|
-
collapsed: {
|
|
36
|
-
type: PropType<boolean>;
|
|
37
|
-
required: false;
|
|
38
|
-
};
|
|
39
|
-
selectedKeys: {
|
|
40
|
-
type: PropType<string[]>;
|
|
41
|
-
required: true;
|
|
42
|
-
};
|
|
43
|
-
items: {
|
|
44
|
-
type: PropType<IProMenuItem[]>;
|
|
45
|
-
required: true;
|
|
46
|
-
};
|
|
47
|
-
menuProps: {
|
|
48
|
-
type: PropType<Partial<MenuProps>>;
|
|
49
|
-
required: false;
|
|
50
|
-
default: () => {};
|
|
51
|
-
};
|
|
52
|
-
}>> & Readonly<{
|
|
53
|
-
"onMenu-item-click"?: ((_item: IProMenuItem) => any) | undefined;
|
|
1
|
+
import { IProMenuProps } from './interface';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IProMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
"menu-item-click": (item: import('./interface').IProMenuItem) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<IProMenuProps> & Readonly<{
|
|
5
|
+
"onMenu-item-click"?: ((item: import('./interface').IProMenuItem) => any) | undefined;
|
|
54
6
|
}>, {
|
|
55
7
|
mode: "horizontal" | "vertical";
|
|
56
|
-
menuProps: Partial<MenuProps>;
|
|
57
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
8
|
+
menuProps: Partial<import('@arco-design/web-vue/es/menu/interface').MenuProps>;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
58
10
|
export default _default;
|
|
@@ -1,121 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { defineComponent as p, resolveComponent as a, createBlock as t, openBlock as o, mergeProps as u, withCtx as c, createElementBlock as i, Fragment as f, renderList as k, unref as y } from "vue";
|
|
2
|
+
import C from "./pro-menu-item.vue.js";
|
|
3
|
+
import { renderItems as B } from "./util.js";
|
|
4
|
+
const _ = "keyblade-pro-menu", I = /* @__PURE__ */ p({
|
|
4
5
|
__name: "pro-menu",
|
|
5
6
|
props: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
collapsed: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
required: !1
|
|
14
|
-
},
|
|
15
|
-
selectedKeys: {
|
|
16
|
-
type: Array,
|
|
17
|
-
required: !0
|
|
18
|
-
},
|
|
19
|
-
items: {
|
|
20
|
-
type: Array,
|
|
21
|
-
required: !0
|
|
22
|
-
},
|
|
23
|
-
menuProps: {
|
|
24
|
-
type: Object,
|
|
25
|
-
required: !1,
|
|
26
|
-
default: () => ({})
|
|
27
|
-
}
|
|
7
|
+
items: {},
|
|
8
|
+
selectedKeys: {},
|
|
9
|
+
mode: { default: "vertical" },
|
|
10
|
+
collapsed: { type: Boolean },
|
|
11
|
+
menuProps: { default: () => ({}) }
|
|
28
12
|
},
|
|
29
|
-
emits:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}), K = (n) => {
|
|
40
|
-
B("menu-item-click", n);
|
|
41
|
-
};
|
|
42
|
-
return (n, c) => {
|
|
43
|
-
const P = f("a-sub-menu"), S = f("a-menu-item"), V = f("a-menu");
|
|
44
|
-
return o(), u(V, A(l.menuProps, {
|
|
45
|
-
mode: l.mode,
|
|
46
|
-
class: F,
|
|
47
|
-
collapsed: l.collapsed,
|
|
48
|
-
"selected-keys": l.selectedKeys,
|
|
13
|
+
emits: ["menu-item-click"],
|
|
14
|
+
setup(K, { emit: n }) {
|
|
15
|
+
const l = n;
|
|
16
|
+
return (e, m) => {
|
|
17
|
+
const r = a("a-menu");
|
|
18
|
+
return o(), t(r, u(e.menuProps, {
|
|
19
|
+
mode: e.mode,
|
|
20
|
+
class: _,
|
|
21
|
+
collapsed: e.collapsed,
|
|
22
|
+
"selected-keys": e.selectedKeys,
|
|
49
23
|
"auto-open-selected": ""
|
|
50
24
|
}), {
|
|
51
|
-
default:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
key: e.name
|
|
60
|
-
}, x({
|
|
61
|
-
title: a(() => [
|
|
62
|
-
_(q(e.title), 1)
|
|
63
|
-
]),
|
|
64
|
-
default: a(() => [
|
|
65
|
-
e != null && e.hideChildrenInMenu ? r("", !0) : (o(!0), s(p, { key: 0 }, M((e == null ? void 0 : e.children) || [], (k) => (o(), u(h(v), {
|
|
66
|
-
key: k.name,
|
|
67
|
-
item: k
|
|
68
|
-
}, null, 8, ["item"]))), 128))
|
|
69
|
-
]),
|
|
70
|
-
_: 2
|
|
71
|
-
}, [
|
|
72
|
-
e != null && e.icon ? {
|
|
73
|
-
name: "icon",
|
|
74
|
-
fn: a(() => [
|
|
75
|
-
t.value(e) === "icon" ? (o(), u(I(d.value(e)), { key: 0 })) : r("", !0),
|
|
76
|
-
t.value(e) === "url" ? (o(), s("img", {
|
|
77
|
-
key: 1,
|
|
78
|
-
class: N(`${T}-img`),
|
|
79
|
-
src: d.value(e),
|
|
80
|
-
alt: ""
|
|
81
|
-
}, null, 10, w)) : r("", !0)
|
|
82
|
-
]),
|
|
83
|
-
key: "0"
|
|
84
|
-
} : void 0
|
|
85
|
-
]), 1024)) : r("", !0),
|
|
86
|
-
!(e != null && e.children) || ((g = e == null ? void 0 : e.children) == null ? void 0 : g.length) === 0 || // 顶部菜单模式 & 有子元素 & 子元素不是顶部菜单
|
|
87
|
-
l.mode === "horizontal" && e.children.length > 0 && !e.topChildrenMenu ? (o(), u(S, {
|
|
88
|
-
key: e.name,
|
|
89
|
-
onClick: (k) => K(e)
|
|
90
|
-
}, x({
|
|
91
|
-
default: a(() => [
|
|
92
|
-
_(" " + q(e.title), 1)
|
|
93
|
-
]),
|
|
94
|
-
_: 2
|
|
95
|
-
}, [
|
|
96
|
-
e != null && e.icon ? {
|
|
97
|
-
name: "icon",
|
|
98
|
-
fn: a(() => [
|
|
99
|
-
t.value(e) === "icon" ? (o(), u(I(d.value(e)), { key: 0 })) : r("", !0),
|
|
100
|
-
t.value(e) === "url" ? (o(), s("img", {
|
|
101
|
-
key: 1,
|
|
102
|
-
class: N(`${T}-img`),
|
|
103
|
-
src: d.value(e),
|
|
104
|
-
alt: ""
|
|
105
|
-
}, null, 10, E)) : r("", !0)
|
|
106
|
-
]),
|
|
107
|
-
key: "0"
|
|
108
|
-
} : void 0
|
|
109
|
-
]), 1032, ["onClick"])) : r("", !0)
|
|
110
|
-
], 64)) : r("", !0)
|
|
111
|
-
];
|
|
112
|
-
}),
|
|
113
|
-
_: 1
|
|
114
|
-
}),
|
|
115
|
-
(o(!0), s(p, null, M(l.items, (e) => (o(), u(h(v), {
|
|
116
|
-
key: e.name,
|
|
117
|
-
item: e
|
|
118
|
-
}, null, 8, ["item"]))), 128))
|
|
25
|
+
default: c(() => [
|
|
26
|
+
(o(!0), i(f, null, k(y(B)(e.items, { mode: e.mode }), (s) => (o(), t(C, {
|
|
27
|
+
key: s.name,
|
|
28
|
+
mode: e.mode,
|
|
29
|
+
item: s,
|
|
30
|
+
"selected-keys": e.selectedKeys,
|
|
31
|
+
onMenuItemClick: m[0] || (m[0] = (d) => l("menu-item-click", d))
|
|
32
|
+
}, null, 8, ["mode", "item", "selected-keys"]))), 128))
|
|
119
33
|
]),
|
|
120
34
|
_: 1
|
|
121
35
|
}, 16, ["mode", "collapsed", "selected-keys"]);
|
|
@@ -123,5 +37,5 @@ const w = ["src"], E = ["src"], F = "keyblade-pro-menu", T = "keyblade-pro-menu-
|
|
|
123
37
|
}
|
|
124
38
|
});
|
|
125
39
|
export {
|
|
126
|
-
|
|
40
|
+
I as default
|
|
127
41
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IProMenuItem, IProMenuItemProps } from './interface.ts';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
icon?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<IProMenuItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"menu-item-click": (_item: IProMenuItem) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<IProMenuItemProps> & Readonly<{
|
|
14
|
+
"onMenu-item-click"?: ((_item: IProMenuItem) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { defineComponent as p, resolveComponent as k, createBlock as s, openBlock as t, createSlots as f, withCtx as m, createElementBlock as y, createCommentVNode as _, Fragment as C, renderList as h, unref as b, createTextVNode as B, toDisplayString as S, renderSlot as g } from "vue";
|
|
2
|
+
import v from "./pro-menu-item.vue.js";
|
|
3
|
+
import { renderItems as I } from "./util.js";
|
|
4
|
+
const $ = /* @__PURE__ */ p({
|
|
5
|
+
__name: "sub-menu",
|
|
6
|
+
props: {
|
|
7
|
+
item: {},
|
|
8
|
+
selectedKeys: {},
|
|
9
|
+
mode: {}
|
|
10
|
+
},
|
|
11
|
+
emits: {
|
|
12
|
+
"menu-item-click": (l) => !0
|
|
13
|
+
},
|
|
14
|
+
setup(l, { emit: c }) {
|
|
15
|
+
const d = c, u = (e) => {
|
|
16
|
+
d("menu-item-click", e);
|
|
17
|
+
};
|
|
18
|
+
return (e, K) => {
|
|
19
|
+
var n;
|
|
20
|
+
const a = k("a-sub-menu");
|
|
21
|
+
return t(), s(a, {
|
|
22
|
+
key: e.item.name
|
|
23
|
+
}, f({
|
|
24
|
+
title: m(() => [
|
|
25
|
+
B(S(e.item.title), 1)
|
|
26
|
+
]),
|
|
27
|
+
default: m(() => {
|
|
28
|
+
var o, i;
|
|
29
|
+
return [
|
|
30
|
+
(o = e.item) != null && o.hideChildrenInMenu ? _("", !0) : (t(!0), y(C, { key: 0 }, h(b(I)(((i = e.item) == null ? void 0 : i.children) || [], { mode: e.mode }), (r) => (t(), s(v, {
|
|
31
|
+
key: r.name,
|
|
32
|
+
mode: e.mode,
|
|
33
|
+
item: r,
|
|
34
|
+
"selected-keys": e.selectedKeys,
|
|
35
|
+
onMenuItemClick: u
|
|
36
|
+
}, null, 8, ["mode", "item", "selected-keys"]))), 128))
|
|
37
|
+
];
|
|
38
|
+
}),
|
|
39
|
+
_: 2
|
|
40
|
+
}, [
|
|
41
|
+
(n = e.item) != null && n.icon ? {
|
|
42
|
+
name: "icon",
|
|
43
|
+
fn: m(() => [
|
|
44
|
+
g(e.$slots, "icon")
|
|
45
|
+
]),
|
|
46
|
+
key: "0"
|
|
47
|
+
} : void 0
|
|
48
|
+
]), 1024);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
$ as default
|
|
54
|
+
};
|
|
@@ -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
|
+
}
|