@keyblade/pro-components 1.15.0-alpha.5 → 1.15.0-alpha.7

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/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export { default as ProFindPassword } from './pro-find-password';
9
9
  export { default as ProPageHeader } from './pro-page-header';
10
10
  export { default as ProKeepAliveRouterView } from './pro-keep-alive-router-view';
11
11
  export { default as ProLayout } from './pro-layout';
12
+ export { ProLayoutHeader } from './pro-layout';
12
13
  export { default as ProFooterBar } from './pro-footer-bar';
13
14
  export { default as ProMenu } from './pro-menu';
14
15
  export type { IProMenuItem } from './pro-menu';
package/es/index.js CHANGED
@@ -2,55 +2,56 @@ import { ProLogin as e } from "./pro-login/index.js";
2
2
  import { ProFindPassword as m } from "./pro-find-password/index.js";
3
3
  import { ProPageHeader as t } from "./pro-page-header/index.js";
4
4
  import { ProKeepAliveRouterView as s } from "./pro-keep-alive-router-view/index.js";
5
- import { ProLayout as i } from "./pro-layout/index.js";
6
- import { ProMenu as f } from "./pro-menu/index.js";
7
- import { ProPageContainer as P } from "./pro-page-container/index.js";
8
- import { ProReuseTabs as u } from "./pro-reuse-tabs/index.js";
9
- import { ProImageUpload as a } from "./pro-image-upload/index.js";
10
- import { ProDatesPicker as n } from "./pro-dates-picker/index.js";
5
+ import { ProLayout as i, ProLayoutHeader as f } from "./pro-layout/index.js";
6
+ import { ProMenu as P } from "./pro-menu/index.js";
7
+ import { ProPageContainer as u } from "./pro-page-container/index.js";
8
+ import { ProReuseTabs as a } from "./pro-reuse-tabs/index.js";
9
+ import { ProImageUpload as n } from "./pro-image-upload/index.js";
10
+ import { ProDatesPicker as d } from "./pro-dates-picker/index.js";
11
11
  import { ProDateRangePicker as l } from "./pro-date-range-picker/index.js";
12
- import { ProTable as d } from "./pro-table/index.js";
13
- import { ProTextarea as g } from "./pro-textarea/index.js";
14
- import { ProFooterBar as x } from "./pro-footer-bar/index.js";
15
- import { ProFormGroup as p } from "./pro-form-group/index.js";
16
- import { ProCalendar as b } from "./pro-calendar/index.js";
17
- import { ProLoader as c } from "./pro-loader/index.js";
12
+ import { ProTable as g } from "./pro-table/index.js";
13
+ import { ProTextarea as x } from "./pro-textarea/index.js";
14
+ import { ProFooterBar as b } from "./pro-footer-bar/index.js";
15
+ import { ProFormGroup as c } from "./pro-form-group/index.js";
16
+ import { ProCalendar as p } from "./pro-calendar/index.js";
17
+ import { ProLoader as L } from "./pro-loader/index.js";
18
18
  import { globalProps as F } from "./global-props.js";
19
- import { setGlobalProps as M } from "./global-props.js";
20
- import { splitStringWithCommaAndSpace as W } from "./utils.js";
21
- import { EImageUploadInnerBeforeUploadStep as z } from "./pro-image-upload/types.js";
22
- import { defaultImageUploadOptions as N } from "./pro-image-upload/constant.js";
23
- import { EProLoginType as X } from "./pro-login/enum.js";
24
- import { EFindPasswordSteps as Z } from "./pro-find-password/enum.js";
19
+ import { setGlobalProps as V } from "./global-props.js";
20
+ import { splitStringWithCommaAndSpace as q } from "./utils.js";
21
+ import { EImageUploadInnerBeforeUploadStep as J } from "./pro-image-upload/types.js";
22
+ import { defaultImageUploadOptions as Q } from "./pro-image-upload/constant.js";
23
+ import { EProLoginType as Y } from "./pro-login/enum.js";
24
+ import { EFindPasswordSteps as _ } from "./pro-find-password/enum.js";
25
25
  const v = {
26
26
  install(o, r) {
27
- Object.assign(F, r || {}), o.use(e), o.use(m), o.use(t), o.use(s), o.use(i), o.use(x), o.use(f), o.use(P), o.use(u), o.use(a), o.use(n), o.use(l), o.use(g), o.use(d), o.use(p), o.use(b), o.use(c);
27
+ Object.assign(F, r || {}), o.use(e), o.use(m), o.use(t), o.use(s), o.use(i), o.use(f), o.use(b), o.use(P), o.use(u), o.use(a), o.use(n), o.use(d), o.use(l), o.use(x), o.use(g), o.use(c), o.use(p), o.use(L);
28
28
  }
29
29
  };
30
30
  export {
31
- Z as EFindPasswordSteps,
32
- z as EImageUploadInnerBeforeUploadStep,
33
- X as EProLoginType,
34
- b as ProCalendar,
31
+ _ as EFindPasswordSteps,
32
+ J as EImageUploadInnerBeforeUploadStep,
33
+ Y as EProLoginType,
34
+ p as ProCalendar,
35
35
  l as ProDateRangePicker,
36
- n as ProDatesPicker,
36
+ d as ProDatesPicker,
37
37
  m as ProFindPassword,
38
- x as ProFooterBar,
39
- p as ProFormGroup,
40
- a as ProImageUpload,
38
+ b as ProFooterBar,
39
+ c as ProFormGroup,
40
+ n as ProImageUpload,
41
41
  s as ProKeepAliveRouterView,
42
42
  i as ProLayout,
43
- c as ProLoader,
43
+ f as ProLayoutHeader,
44
+ L as ProLoader,
44
45
  e as ProLogin,
45
- f as ProMenu,
46
- P as ProPageContainer,
46
+ P as ProMenu,
47
+ u as ProPageContainer,
47
48
  t as ProPageHeader,
48
- u as ProReuseTabs,
49
- d as ProTable,
50
- g as ProTextarea,
49
+ a as ProReuseTabs,
50
+ g as ProTable,
51
+ x as ProTextarea,
51
52
  v as default,
52
- N as defaultImageUploadOptions,
53
+ Q as defaultImageUploadOptions,
53
54
  F as globalProps,
54
- M as setGlobalProps,
55
- W as splitStringWithCommaAndSpace
55
+ V as setGlobalProps,
56
+ q as splitStringWithCommaAndSpace
56
57
  };
@@ -1,143 +1,143 @@
1
- var V = Object.defineProperty, X = Object.defineProperties;
2
- var Y = Object.getOwnPropertyDescriptors;
3
- var x = Object.getOwnPropertySymbols;
4
- var Z = Object.prototype.hasOwnProperty, $ = Object.prototype.propertyIsEnumerable;
5
- var J = (c, s, n) => s in c ? V(c, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : c[s] = n, O = (c, s) => {
6
- for (var n in s || (s = {}))
7
- Z.call(s, n) && J(c, n, s[n]);
8
- if (x)
9
- for (var n of x(s))
10
- $.call(s, n) && J(c, n, s[n]);
11
- return c;
12
- }, A = (c, s) => X(c, Y(s));
13
- var W = (c, s, n) => new Promise((K, P) => {
14
- var p = (f) => {
1
+ var X = Object.defineProperty, Y = Object.defineProperties;
2
+ var Z = Object.getOwnPropertyDescriptors;
3
+ var J = Object.getOwnPropertySymbols;
4
+ var $ = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
5
+ var R = (s, f, i) => f in s ? X(s, f, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[f] = i, N = (s, f) => {
6
+ for (var i in f || (f = {}))
7
+ $.call(f, i) && R(s, i, f[i]);
8
+ if (J)
9
+ for (var i of J(f))
10
+ _.call(f, i) && R(s, i, f[i]);
11
+ return s;
12
+ }, A = (s, f) => Y(s, Z(f));
13
+ var W = (s, f, i) => new Promise((o, b) => {
14
+ var P = (c) => {
15
15
  try {
16
- u(n.next(f));
16
+ p(i.next(c));
17
17
  } catch (d) {
18
- P(d);
18
+ b(d);
19
19
  }
20
- }, M = (f) => {
20
+ }, y = (c) => {
21
21
  try {
22
- u(n.throw(f));
22
+ p(i.throw(c));
23
23
  } catch (d) {
24
- P(d);
24
+ b(d);
25
25
  }
26
- }, u = (f) => f.done ? K(f.value) : Promise.resolve(f.value).then(p, M);
27
- u((n = n.apply(c, s)).next());
26
+ }, p = (c) => c.done ? o(c.value) : Promise.resolve(c.value).then(P, y);
27
+ p((i = i.apply(s, f)).next());
28
28
  });
29
- import { ref as v, computed as _, watch as E } from "vue";
30
- import { useRoute as I, useRouter as m } from "vue-router";
29
+ import { ref as v, computed as I, watch as E } from "vue";
30
+ import { useRoute as m, useRouter as ee } from "vue-router";
31
31
  import { ProLayoutMode as k, ProLayoutMenuType as D } from "./enum.js";
32
- const ne = (c) => {
33
- const s = I(), n = m(), K = v([]), P = v([]), p = v([]), M = v([]), u = v(), f = v([]), d = v({}), N = v([]), h = v([]), T = v([]), S = v([]), y = v([]), g = _(() => {
34
- const e = [...c.menuItems], a = (t) => {
32
+ const ie = (s) => {
33
+ const f = "cacheRouteTabs", i = m(), o = ee(), b = v([]), P = v([]), y = v([]), p = v([]), c = v(), d = v([]), K = v({}), x = v([]), h = v([]), S = v([]), C = v([]), M = v([]), g = I(() => {
34
+ const e = [...s.menuItems], a = (t) => {
35
35
  t.forEach((l) => {
36
36
  if (l != null && l.children && l.children.length > 0) {
37
37
  if ((l == null ? void 0 : l.topChildrenMenu) !== void 0)
38
- l.children = l.children.map((i) => A(O({}, i), { topMenu: l == null ? void 0 : l.topChildrenMenu }));
38
+ l.children = l.children.map((n) => A(N({}, n), { topMenu: l == null ? void 0 : l.topChildrenMenu }));
39
39
  else {
40
- const i = l.children.find((o) => o.topMenu !== void 0);
41
- i && (l.topChildrenMenu = i.topMenu, l.children = l.children.map((o) => A(O({}, o), { topMenu: i.topMenu })));
40
+ const n = l.children.find((u) => u.topMenu !== void 0);
41
+ n && (l.topChildrenMenu = n.topMenu, l.children = l.children.map((u) => A(N({}, u), { topMenu: n.topMenu })));
42
42
  }
43
43
  a(l.children);
44
44
  }
45
45
  });
46
46
  };
47
- return c.layout === k.mix && a(e), e;
47
+ return s.layout === k.mix && a(e), e;
48
48
  }), L = (e) => {
49
49
  var a;
50
- if (K.value = [e.name], !(e != null && e.children) || ((a = e == null ? void 0 : e.children) == null ? void 0 : a.length) === 0)
51
- y.value = [], n == null || n.push({ path: e.path });
52
- else if (y.value = e.children, e != null && e.redirect)
50
+ if (b.value = [e.name], !(e != null && e.children) || ((a = e == null ? void 0 : e.children) == null ? void 0 : a.length) === 0)
51
+ M.value = [], o == null || o.push({ path: e.path });
52
+ else if (M.value = e.children, e != null && e.redirect)
53
53
  if (typeof e.redirect == "string")
54
- n == null || n.push({ path: e.redirect });
54
+ o == null || o.push({ path: e.redirect });
55
55
  else if (typeof e.redirect == "function") {
56
- const t = e.redirect(s);
57
- n == null || n.push(t);
56
+ const t = e.redirect(i);
57
+ o == null || o.push(t);
58
58
  } else
59
- n == null || n.push(e.redirect);
60
- }, R = (e) => {
61
- e != null && e.name ? n == null || n.push({ name: e.name }) : n == null || n.push({ path: e.path }), P.value = [e.name];
62
- }, B = (e, a) => W(null, null, function* () {
63
- if (a != null && a.path && !(c != null && c.onMenuItemClick && !(yield c.onMenuItemClick(a)))) {
59
+ o == null || o.push(e.redirect);
60
+ }, B = (e) => {
61
+ e != null && e.name ? o == null || o.push({ name: e.name }) : o == null || o.push({ path: e.path }), P.value = [e.name];
62
+ }, H = (e, a) => W(null, null, function* () {
63
+ if (a != null && a.path && !(s != null && s.onMenuItemClick && !(yield s.onMenuItemClick(a)))) {
64
64
  if (a.path.startsWith("http") || a.path.startsWith("https")) {
65
65
  window.open(a.path);
66
66
  return;
67
67
  }
68
- e === D.top ? L(a) : R(a);
68
+ e === D.top ? L(a) : B(a);
69
69
  }
70
- }), H = (e, a) => {
71
- e === D.top ? p.value = a : M.value = a;
72
- }, j = () => {
70
+ }), j = (e, a) => {
71
+ e === D.top ? y.value = a : p.value = a;
72
+ }, q = () => {
73
73
  const e = [], a = (t) => {
74
74
  var l;
75
- for (const i in t) {
76
- const o = t[i];
77
- if (o.name === ((l = u == null ? void 0 : u.value) == null ? void 0 : l.name) || o.children && o.children.length > 0 && a(o.children))
78
- return e.unshift(o), !0;
75
+ for (const n in t) {
76
+ const u = t[n];
77
+ if (u.name === ((l = c == null ? void 0 : c.value) == null ? void 0 : l.name) || u.children && u.children.length > 0 && a(u.children))
78
+ return e.unshift(u), !0;
79
79
  }
80
80
  return !1;
81
81
  };
82
- a(JSON.parse(JSON.stringify(g.value))), f.value = e;
83
- }, q = () => {
82
+ a(JSON.parse(JSON.stringify(g.value))), d.value = e;
83
+ }, z = () => {
84
84
  var a, t, l;
85
- const e = (a = f.value) == null ? void 0 : a.map((i) => ({ path: i == null ? void 0 : i.path, label: i == null ? void 0 : i.title }));
86
- N.value = (t = u.value) != null && t.breadcrumbs ? (l = u.value) == null ? void 0 : l.breadcrumbs : e.length !== 0 ? e : [];
85
+ const e = (a = d.value) == null ? void 0 : a.map((n) => ({ path: n == null ? void 0 : n.path, label: n == null ? void 0 : n.title }));
86
+ x.value = (t = c.value) != null && t.breadcrumbs ? (l = c.value) == null ? void 0 : l.breadcrumbs : e.length !== 0 ? e : [];
87
87
  };
88
- function z() {
89
- var b, C;
90
- if (!u.value || u.value.noAffix) {
88
+ function F() {
89
+ var T, O;
90
+ if (!c.value || c.value.noAffix) {
91
91
  h.value.forEach((r) => {
92
92
  r.active = !1;
93
93
  });
94
94
  return;
95
95
  }
96
- const { name: e, title: a } = u.value;
96
+ const { name: e, title: a } = c.value;
97
97
  h.value.forEach((r) => {
98
98
  r.active = !1;
99
99
  });
100
- const t = (b = s.meta) == null ? void 0 : b.getTitle, l = typeof t == "function" ? t(s) : void 0, i = {
100
+ const t = (T = i.meta) == null ? void 0 : T.getTitle, l = typeof t == "function" ? t(i) : void 0, n = {
101
101
  name: e,
102
- parentNames: f.value.map((r) => r.name),
103
- title: (C = l != null ? l : a) != null ? C : e,
104
- fullPath: s.fullPath,
102
+ parentNames: d.value.map((r) => r.name),
103
+ title: (O = l != null ? l : a) != null ? O : e,
104
+ fullPath: i.fullPath,
105
105
  active: !0
106
- }, o = h.value.findIndex((r) => r.fullPath.startsWith(s.path));
107
- o >= 0 ? (h.value[o].active = !0, h.value[o].fullPath = s.fullPath) : h.value.push(i);
106
+ }, u = h.value.findIndex((r) => r.fullPath.startsWith(i.path));
107
+ u >= 0 ? (h.value[u].active = !0, h.value[u].fullPath = i.fullPath) : h.value.push(n);
108
108
  }
109
- const F = (e) => {
109
+ const G = (e) => {
110
110
  const a = h.value.find((t) => t.fullPath === e);
111
- a && n.push(a.fullPath);
112
- }, G = (e) => {
111
+ a && o.push(a.fullPath);
112
+ }, Q = (e) => {
113
113
  let a = -1, t = -1;
114
- if (h.value.forEach((i, o) => {
115
- i.fullPath === e && (t = o), i.active && (a = o);
114
+ if (h.value.forEach((n, u) => {
115
+ n.fullPath === e && (t = u), n.active && (a = u);
116
116
  }), t === -1) return;
117
117
  if (a === t) {
118
- let i;
119
- t === 0 ? i = h.value[t + 1] : i = h.value[t - 1], i && (i.active = !0, n.push(i.fullPath));
118
+ let n;
119
+ t === 0 ? n = h.value[t + 1] : n = h.value[t - 1], n && (n.active = !0, o.push(n.fullPath));
120
120
  }
121
121
  const l = h.value.splice(t, 1);
122
- U(l[0]);
123
- }, Q = () => {
122
+ V(l[0]);
123
+ }, U = () => {
124
124
  var a;
125
- if (c != null && c.disableKeepAlive || (a = s == null ? void 0 : s.meta) != null && a.ignoreCache)
125
+ if (s != null && s.disableKeepAlive || (a = i == null ? void 0 : i.meta) != null && a.ignoreCache)
126
126
  return;
127
- const e = new Set(T.value);
128
- f.value.forEach((t) => {
127
+ const e = new Set(S.value);
128
+ d.value.forEach((t) => {
129
129
  t.name && e.add(t.name);
130
- }), T.value = Array.from(e.values());
131
- }, U = (e) => {
132
- const a = new Set(T.value);
130
+ }), S.value = Array.from(e.values());
131
+ }, V = (e) => {
132
+ const a = new Set(S.value);
133
133
  e.parentNames.forEach((t) => {
134
134
  a.delete(t);
135
135
  }), h.value.forEach((t) => {
136
136
  t.parentNames.forEach((l) => {
137
- const i = d.value[l];
138
- i && (i != null && i.ignoreCache || a.add(i.name));
137
+ const n = K.value[l];
138
+ n && (n != null && n.ignoreCache || a.add(n.name));
139
139
  });
140
- }), T.value = Array.from(a.values());
140
+ }), S.value = Array.from(a.values());
141
141
  };
142
142
  return E(() => g.value, () => {
143
143
  const e = {}, a = (t) => {
@@ -145,46 +145,52 @@ const ne = (c) => {
145
145
  l.children && l.children.length > 0 && a(l.children), delete l.children, e[l.name] = l;
146
146
  });
147
147
  };
148
- a(JSON.parse(JSON.stringify(g.value))), d.value = e;
149
- }, { immediate: !0 }), E(() => [c.layout, g.value], () => {
148
+ a(JSON.parse(JSON.stringify(g.value))), K.value = e;
149
+ }, { immediate: !0 }), E(() => [s.layout, g.value], () => {
150
150
  var e, a, t;
151
- if (S.value = [], y.value = [], p.value = [...((e = c.menuProps) == null ? void 0 : e.defaultOpenKeys) || [], ...p.value], M.value = [...((a = c.menuProps) == null ? void 0 : a.defaultOpenKeys) || [], ...M.value], c.layout === k.side)
152
- y.value = g.value;
153
- else if (c.layout === k.mix) {
154
- const l = (t = g.value) == null ? void 0 : t.filter((i) => i.topMenu);
155
- (l == null ? void 0 : l.length) === 0 ? y.value = g.value : S.value = l;
151
+ if (C.value = [], M.value = [], y.value = [...((e = s.menuProps) == null ? void 0 : e.defaultOpenKeys) || [], ...y.value], p.value = [...((a = s.menuProps) == null ? void 0 : a.defaultOpenKeys) || [], ...p.value], s.layout === k.side)
152
+ M.value = g.value;
153
+ else if (s.layout === k.mix) {
154
+ const l = (t = g.value) == null ? void 0 : t.filter((n) => n.topMenu);
155
+ (l == null ? void 0 : l.length) === 0 ? M.value = g.value : C.value = l;
156
+ }
157
+ if (s != null && s.cacheTabs) {
158
+ const l = JSON.parse(sessionStorage.getItem(f) || "[]") || [];
159
+ l.forEach((n) => n.active = !1), h.value = l, sessionStorage.removeItem(f);
156
160
  }
157
- }, { immediate: !0 }), E(() => [s == null ? void 0 : s.name, s == null ? void 0 : s.fullPath], () => {
158
- var t, l, i;
159
- const e = s == null ? void 0 : s.name;
160
- u.value = d.value[e], j();
161
- const a = f.value.filter((o) => o.topMenu);
162
- if (a.length > 0 && S.value.length > 0 && (y.value = ((t = a[a.length - 1]) == null ? void 0 : t.children) || []), K.value = u != null && u.value ? [...a.map((o) => o.name), ...((l = u.value) == null ? void 0 : l.activatedKeys) || []] : [], P.value = u != null && u.value ? [u.value.name, ...((i = u.value) == null ? void 0 : i.activatedKeys) || []] : [], u.value) {
163
- const o = f.value.filter((r, w) => w < f.value.length - 1), b = o.filter((r) => r.topMenu).map((r) => r.name), C = o.filter((r) => !r.topMenu).map((r) => r.name);
164
- u.value.activatedKeys && u.value.activatedKeys.length > 0 && u.value.activatedKeys.forEach((r) => {
165
- const w = d.value[r];
166
- w && (w.topMenu ? b.push(r) : C.push(r));
167
- }), p.value = Array.from(/* @__PURE__ */ new Set([...p.value, ...b])), M.value = Array.from(/* @__PURE__ */ new Set([...M.value, ...C]));
161
+ }, { immediate: !0 }), E(() => [i == null ? void 0 : i.name, i == null ? void 0 : i.fullPath], () => {
162
+ var t, l, n;
163
+ const e = i == null ? void 0 : i.name;
164
+ c.value = K.value[e], q();
165
+ const a = d.value.filter((u) => u.topMenu);
166
+ if (a.length > 0 && C.value.length > 0 && (M.value = ((t = a[a.length - 1]) == null ? void 0 : t.children) || []), b.value = c != null && c.value ? [...a.map((u) => u.name), ...((l = c.value) == null ? void 0 : l.activatedKeys) || []] : [], P.value = c != null && c.value ? [c.value.name, ...((n = c.value) == null ? void 0 : n.activatedKeys) || []] : [], c.value) {
167
+ const u = d.value.filter((r, w) => w < d.value.length - 1), T = u.filter((r) => r.topMenu).map((r) => r.name), O = u.filter((r) => !r.topMenu).map((r) => r.name);
168
+ c.value.activatedKeys && c.value.activatedKeys.length > 0 && c.value.activatedKeys.forEach((r) => {
169
+ const w = K.value[r];
170
+ w && (w.topMenu ? T.push(r) : O.push(r));
171
+ }), y.value = Array.from(/* @__PURE__ */ new Set([...y.value, ...T])), p.value = Array.from(/* @__PURE__ */ new Set([...p.value, ...O]));
168
172
  }
169
- q(), c.hideTabs || z(), Q();
170
- }, { immediate: !0 }), {
171
- topMenuItems: S,
172
- siderMenuItems: y,
173
- topMenuSelectedKeys: K,
173
+ z(), s.hideTabs || F(), U();
174
+ }, { immediate: !0 }), E(() => h.value, () => {
175
+ s != null && s.cacheTabs && sessionStorage.setItem(f, JSON.stringify(h.value || []));
176
+ }, { deep: !0 }), {
177
+ topMenuItems: C,
178
+ siderMenuItems: M,
179
+ topMenuSelectedKeys: b,
174
180
  siderMenuSelectedKeys: P,
175
- topMenuOpenKeys: p,
176
- siderMenuOpenKeys: M,
177
- activeMenuItem: u,
178
- menuItemMap: d,
179
- breadcrumbItems: N,
181
+ topMenuOpenKeys: y,
182
+ siderMenuOpenKeys: p,
183
+ activeMenuItem: c,
184
+ menuItemMap: K,
185
+ breadcrumbItems: x,
180
186
  tabs: h,
181
- keepAliveInclude: T,
182
- onProMenuItemClick: B,
183
- onProMenuOpenKeysChange: H,
184
- onTabClick: F,
185
- onTabDelete: G
187
+ keepAliveInclude: S,
188
+ onProMenuItemClick: H,
189
+ onProMenuOpenKeysChange: j,
190
+ onTabClick: G,
191
+ onTabDelete: Q
186
192
  };
187
193
  };
188
194
  export {
189
- ne as useHooks
195
+ ie as useHooks
190
196
  };
@@ -14,16 +14,17 @@ declare const ProLayout: {
14
14
  tabsHeaderPadding: boolean;
15
15
  menuProps: Partial<import('@arco-design/web-vue/es/menu/interface').MenuProps>;
16
16
  hideHeader: boolean;
17
- hiderSider: boolean;
18
- headerHeight: number;
17
+ siderCollapsed: boolean;
19
18
  logo: string;
19
+ headerHeight: number;
20
20
  siderWidth: number;
21
+ hiderSider: boolean;
21
22
  siderBreakpoint: "xxl" | "xl" | "lg" | "md" | "sm" | "xs";
22
- siderCollapsed: boolean;
23
23
  menuItems: import('..').IProMenuItem[];
24
24
  footerTitle: string;
25
25
  hideFooter: boolean;
26
26
  hideTabs: boolean;
27
+ cacheTabs: boolean;
27
28
  disableKeepAlive: boolean;
28
29
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
29
30
  P: {};
@@ -43,16 +44,17 @@ declare const ProLayout: {
43
44
  tabsHeaderPadding: boolean;
44
45
  menuProps: Partial<import('@arco-design/web-vue/es/menu/interface').MenuProps>;
45
46
  hideHeader: boolean;
46
- hiderSider: boolean;
47
- headerHeight: number;
47
+ siderCollapsed: boolean;
48
48
  logo: string;
49
+ headerHeight: number;
49
50
  siderWidth: number;
51
+ hiderSider: boolean;
50
52
  siderBreakpoint: "xxl" | "xl" | "lg" | "md" | "sm" | "xs";
51
- siderCollapsed: boolean;
52
53
  menuItems: import('..').IProMenuItem[];
53
54
  footerTitle: string;
54
55
  hideFooter: boolean;
55
56
  hideTabs: boolean;
57
+ cacheTabs: boolean;
56
58
  disableKeepAlive: boolean;
57
59
  }>;
58
60
  __isFragment?: never;
@@ -72,16 +74,17 @@ declare const ProLayout: {
72
74
  tabsHeaderPadding: boolean;
73
75
  menuProps: Partial<import('@arco-design/web-vue/es/menu/interface').MenuProps>;
74
76
  hideHeader: boolean;
75
- hiderSider: boolean;
76
- headerHeight: number;
77
+ siderCollapsed: boolean;
77
78
  logo: string;
79
+ headerHeight: number;
78
80
  siderWidth: number;
81
+ hiderSider: boolean;
79
82
  siderBreakpoint: "xxl" | "xl" | "lg" | "md" | "sm" | "xs";
80
- siderCollapsed: boolean;
81
83
  menuItems: import('..').IProMenuItem[];
82
84
  footerTitle: string;
83
85
  hideFooter: boolean;
84
86
  hideTabs: boolean;
87
+ cacheTabs: boolean;
85
88
  disableKeepAlive: boolean;
86
89
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
87
90
  $slots: {
@@ -98,6 +101,88 @@ declare const ProLayout: {
98
101
  }) & {
99
102
  install: (app: App) => void;
100
103
  };
104
+ declare const ProLayoutHeader: {
105
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./pro-layout-header.vue').IProLayoutHeaderProps> & Readonly<{
106
+ onMenuItemClick?: ((type: import('./enum').ProLayoutMenuType, item: import('..').IProMenuItem) => any) | undefined;
107
+ onOpenKeysChange?: ((type: import('./enum').ProLayoutMenuType, keys: string[]) => any) | undefined;
108
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
109
+ menuItemClick: (type: import('./enum').ProLayoutMenuType, item: import('..').IProMenuItem) => any;
110
+ openKeysChange: (type: import('./enum').ProLayoutMenuType, keys: string[]) => any;
111
+ }, import('vue').PublicProps, {
112
+ layout: import('./enum').ProLayoutMode;
113
+ prefixClsName: string;
114
+ title: string;
115
+ menuProps: Record<string, unknown>;
116
+ hideHeader: boolean;
117
+ siderCollapsed: boolean;
118
+ logo: string;
119
+ topMenuItems: import('..').IProMenuItem[];
120
+ topMenuSelectedKeys: string[];
121
+ topMenuOpenKeys: string[];
122
+ headerHeight: number;
123
+ siderWidth: number;
124
+ siderCollapsedWidth: number;
125
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
126
+ P: {};
127
+ B: {};
128
+ D: {};
129
+ C: {};
130
+ M: {};
131
+ Defaults: {};
132
+ }, Readonly<import('./pro-layout-header.vue').IProLayoutHeaderProps> & Readonly<{
133
+ onMenuItemClick?: ((type: import('./enum').ProLayoutMenuType, item: import('..').IProMenuItem) => any) | undefined;
134
+ onOpenKeysChange?: ((type: import('./enum').ProLayoutMenuType, keys: string[]) => any) | undefined;
135
+ }>, {}, {}, {}, {}, {
136
+ layout: import('./enum').ProLayoutMode;
137
+ prefixClsName: string;
138
+ title: string;
139
+ menuProps: Record<string, unknown>;
140
+ hideHeader: boolean;
141
+ siderCollapsed: boolean;
142
+ logo: string;
143
+ topMenuItems: import('..').IProMenuItem[];
144
+ topMenuSelectedKeys: string[];
145
+ topMenuOpenKeys: string[];
146
+ headerHeight: number;
147
+ siderWidth: number;
148
+ siderCollapsedWidth: number;
149
+ }>;
150
+ __isFragment?: never;
151
+ __isTeleport?: never;
152
+ __isSuspense?: never;
153
+ } & import('vue').ComponentOptionsBase<Readonly<import('./pro-layout-header.vue').IProLayoutHeaderProps> & Readonly<{
154
+ onMenuItemClick?: ((type: import('./enum').ProLayoutMenuType, item: import('..').IProMenuItem) => any) | undefined;
155
+ onOpenKeysChange?: ((type: import('./enum').ProLayoutMenuType, keys: string[]) => any) | undefined;
156
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
157
+ menuItemClick: (type: import('./enum').ProLayoutMenuType, item: import('..').IProMenuItem) => any;
158
+ openKeysChange: (type: import('./enum').ProLayoutMenuType, keys: string[]) => any;
159
+ }, string, {
160
+ layout: import('./enum').ProLayoutMode;
161
+ prefixClsName: string;
162
+ title: string;
163
+ menuProps: Record<string, unknown>;
164
+ hideHeader: boolean;
165
+ siderCollapsed: boolean;
166
+ logo: string;
167
+ topMenuItems: import('..').IProMenuItem[];
168
+ topMenuSelectedKeys: string[];
169
+ topMenuOpenKeys: string[];
170
+ headerHeight: number;
171
+ siderWidth: number;
172
+ siderCollapsedWidth: number;
173
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
174
+ $slots: {
175
+ 'header-left'?(_: {}): any;
176
+ 'header-left-logo-img'?(_: {}): any;
177
+ 'header-left-logo-title'?(_: {}): any;
178
+ 'header-center-left'?(_: {}): any;
179
+ 'header-center-center'?(_: {}): any;
180
+ 'header-center-right'?(_: {}): any;
181
+ 'header-right'?(_: {}): any;
182
+ };
183
+ }) & {
184
+ install: (app: App) => void;
185
+ };
101
186
  /** 导出组件 */
102
- export { ProLayout };
187
+ export { ProLayout, ProLayoutHeader };
103
188
  export default ProLayout;
@@ -1,11 +1,18 @@
1
- import o from "./pro-layout.vue.js";
1
+ import t from "./pro-layout.vue.js";
2
2
  /* empty css */
3
- const r = Object.assign(o, {
4
- install: (t) => {
5
- t.component("KbProLayout", o);
3
+ import a from "./pro-layout-header.vue.js";
4
+ /* empty css */
5
+ const i = Object.assign(t, {
6
+ install: (o) => {
7
+ o.component("KbProLayout", t);
8
+ }
9
+ }), m = Object.assign(a, {
10
+ install: (o) => {
11
+ o.component("KbProLayoutHeader", a);
6
12
  }
7
13
  });
8
14
  export {
9
- r as ProLayout,
10
- r as default
15
+ i as ProLayout,
16
+ m as ProLayoutHeader,
17
+ i as default
11
18
  };