@keyblade/pro-components 1.4.6 → 1.5.1

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.
Files changed (39) hide show
  1. package/es/components.d.ts +1 -1
  2. package/es/index.d.ts +1 -1
  3. package/es/index.js +19 -19
  4. package/es/pro-keep-alive-router-view/index.d.ts +44 -44
  5. package/es/pro-keep-alive-router-view/pro-keep-alive-router-view.vue.d.ts +3 -3
  6. package/es/pro-layout/hooks.d.ts +1 -1
  7. package/es/pro-layout/hooks.js +1 -1
  8. package/es/pro-layout/index.d.ts +98 -81
  9. package/es/pro-layout/pro-layout.vue.d.ts +40 -19
  10. package/es/pro-layout/pro-layout.vue.js +127 -115
  11. package/es/pro-menu/index.d.ts +66 -47
  12. package/es/pro-menu/index.js +7 -6
  13. package/es/pro-menu/pro-menu.vue.d.ts +17 -5
  14. package/es/pro-menu/pro-menu.vue.js +99 -34
  15. package/es/pro-menu/pro-menu.vue2.js +2 -2
  16. package/es/pro-menu/pro-menu.vue3.js +5 -0
  17. package/es/pro-page-container/index.d.ts +117 -144
  18. package/es/pro-page-container/index.js +7 -7
  19. package/es/pro-page-container/pro-page-container.vue.d.ts +52 -82
  20. package/es/pro-page-container/pro-page-container.vue.js +32 -51
  21. package/es/pro-page-header/index.d.ts +206 -0
  22. package/es/pro-page-header/index.js +13 -0
  23. package/es/{pro-breadcrumb/pro-breadcrumb.vue.d.ts → pro-page-header/pro-page-header.vue.d.ts} +43 -43
  24. package/es/pro-page-header/pro-page-header.vue.js +125 -0
  25. package/es/pro-page-header/pro-page-header.vue3.js +5 -0
  26. package/es/pro-reuse-tabs/index.d.ts +41 -42
  27. package/es/pro-reuse-tabs/pro-reuse-tabs.vue.d.ts +4 -4
  28. package/es/style.css +1 -1
  29. package/package.json +3 -2
  30. package/src/index.ts +3 -3
  31. package/es/pro-breadcrumb/index.d.ts +0 -206
  32. package/es/pro-breadcrumb/index.js +0 -13
  33. package/es/pro-breadcrumb/pro-breadcrumb.vue.js +0 -102
  34. package/es/pro-breadcrumb/pro-breadcrumb.vue3.js +0 -5
  35. package/es/pro-menu/pro-menu-item.vue.d.ts +0 -14
  36. package/es/pro-menu/pro-menu-item.vue.js +0 -88
  37. package/es/pro-menu/pro-menu-item.vue2.js +0 -4
  38. package/es/pro-menu/pro-menu-item.vue3.js +0 -5
  39. /package/es/{pro-breadcrumb/pro-breadcrumb.vue2.js → pro-page-header/pro-page-header.vue2.js} +0 -0
@@ -1,102 +0,0 @@
1
- import { defineComponent as k, inject as v, computed as x, resolveComponent as s, openBlock as t, createElementBlock as _, normalizeClass as u, createVNode as B, withCtx as r, createBlock as l, resolveDynamicComponent as C, createCommentVNode as c, Fragment as q, renderList as T, createTextVNode as d, toDisplayString as y } from "vue";
2
- const i = "keyblade-pro-breadcrumb", N = /* @__PURE__ */ k({
3
- __name: "pro-breadcrumb",
4
- props: {
5
- /** 是否显示图标 */
6
- showIcon: {
7
- type: Boolean,
8
- required: !1,
9
- default: !0
10
- },
11
- /** 图标类型 */
12
- icon: {
13
- type: String,
14
- required: !1,
15
- default: "icon-apps"
16
- },
17
- /** 面包屑项目 */
18
- items: {
19
- type: Array,
20
- required: !1,
21
- default: () => []
22
- },
23
- /** 是否显示标题 */
24
- showTitle: {
25
- type: Boolean,
26
- required: !1,
27
- default: !0
28
- },
29
- /** 标题,不传默认展示面包屑标题最后一项 */
30
- title: {
31
- type: String,
32
- required: !1,
33
- default: ""
34
- },
35
- /** 副标题,不传默认不展示 */
36
- subTitle: {
37
- type: String,
38
- required: !1,
39
- default: ""
40
- }
41
- },
42
- setup(m) {
43
- const e = m, b = v("ProBreadcrumbItems", []), n = x(() => e.items instanceof Array && e.items.length === 0 || !e.items ? b.value : e.items || []);
44
- return (w, I) => {
45
- const f = s("a-breadcrumb-item"), p = s("a-breadcrumb"), h = s("a-typography-title"), g = s("a-typography-text");
46
- return n.value ? (t(), _("div", {
47
- key: 0,
48
- class: u(i)
49
- }, [
50
- B(p, {
51
- class: u(`${i}-items`)
52
- }, {
53
- default: r(() => [
54
- m.showIcon ? (t(), l(f, {
55
- key: 0,
56
- style: { cursor: "text" }
57
- }, {
58
- default: r(() => [
59
- (t(), l(C(m.icon)))
60
- ]),
61
- _: 1
62
- })) : c("", !0),
63
- (t(!0), _(q, null, T(n.value, (a, o) => (t(), l(f, {
64
- key: `${a}-${o}`
65
- }, {
66
- default: r(() => [
67
- d(y(a), 1)
68
- ]),
69
- _: 2
70
- }, 1024))), 128))
71
- ]),
72
- _: 1
73
- }, 8, ["class"]),
74
- e != null && e.showTitle ? (t(), l(h, {
75
- key: 0,
76
- heading: 6,
77
- class: u(`${i}-title`)
78
- }, {
79
- default: r(() => {
80
- var a, o;
81
- return [
82
- d(y((e == null ? void 0 : e.title) || ((o = n.value) == null ? void 0 : o[((a = n.value) == null ? void 0 : a.length) - 1])), 1)
83
- ];
84
- }),
85
- _: 1
86
- }, 8, ["class"])) : c("", !0),
87
- e != null && e.subTitle ? (t(), l(g, {
88
- key: 1,
89
- class: u(`${i}-subtitle`)
90
- }, {
91
- default: r(() => [
92
- d(y(e == null ? void 0 : e.subTitle), 1)
93
- ]),
94
- _: 1
95
- }, 8, ["class"])) : c("", !0)
96
- ])) : c("", !0);
97
- };
98
- }
99
- });
100
- export {
101
- N as default
102
- };
@@ -1,5 +0,0 @@
1
- import o from "./pro-breadcrumb.vue.js";
2
- import "./pro-breadcrumb.vue2.js";
3
- export {
4
- o as default
5
- };
@@ -1,14 +0,0 @@
1
- import { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
- import type { IProMenuItem } from './interface';
3
- declare const _default: DefineComponent<{
4
- item: {
5
- type: PropType<IProMenuItem>;
6
- required: true;
7
- };
8
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
9
- item: {
10
- type: PropType<IProMenuItem>;
11
- required: true;
12
- };
13
- }>>, {}, {}>;
14
- export default _default;
@@ -1,88 +0,0 @@
1
- import { defineComponent as z, computed as E, resolveComponent as a, openBlock as t, createElementBlock as s, Fragment as _, createBlock as o, createSlots as I, withCtx as r, createTextVNode as M, toDisplayString as w, renderList as F, createCommentVNode as n, resolveDynamicComponent as B, normalizeClass as N } from "vue";
2
- import { useRouter as K } from "vue-router";
3
- const L = ["src"], P = ["src"], R = {
4
- name: "KbProMenuItem"
5
- }, A = /* @__PURE__ */ z({
6
- ...R,
7
- props: {
8
- item: {}
9
- },
10
- setup(W) {
11
- const $ = W, c = "keyblade-pro-menu-item", u = K(), m = E(() => {
12
- var i;
13
- const e = (i = $.item) == null ? void 0 : i.icon;
14
- return e != null && e.startsWith("icon") ? "icon" : "url";
15
- }), D = (e) => {
16
- if (e != null && e.path) {
17
- if (e.path.startsWith("http") || e.path.startsWith("https")) {
18
- window.open(e.path);
19
- return;
20
- }
21
- u == null || u.push({ path: e.path });
22
- }
23
- };
24
- return (e, i) => {
25
- var p, h, d, k, y, f, C, v;
26
- const S = a("kb-pro-menu-item"), T = a("a-sub-menu"), V = a("a-menu-item");
27
- return e.item && !e.item.hideInMenu ? (t(), s(_, { key: 0 }, [
28
- (p = e.item) != null && p.children && ((d = (h = e.item) == null ? void 0 : h.children) == null ? void 0 : d.length) > 0 ? (t(), o(T, {
29
- key: e.item.name
30
- }, I({
31
- title: r(() => [
32
- M(w(e.item.title), 1)
33
- ]),
34
- default: r(() => {
35
- var l, g;
36
- return [
37
- (l = e.item) != null && l.hideChildrenInMenu ? n("", !0) : (t(!0), s(_, { key: 0 }, F(((g = e.item) == null ? void 0 : g.children) || [], (b) => (t(), o(S, {
38
- key: b.name,
39
- item: b
40
- }, null, 8, ["item"]))), 128))
41
- ];
42
- }),
43
- _: 2
44
- }, [
45
- (k = e.item) != null && k.icon ? {
46
- name: "icon",
47
- fn: r(() => [
48
- m.value === "icon" ? (t(), o(B(e.item.icon), { key: 0 })) : n("", !0),
49
- m.value === "url" ? (t(), s("img", {
50
- key: 1,
51
- class: N(`${c}-img`),
52
- src: e.item.icon,
53
- alt: ""
54
- }, null, 10, L)) : n("", !0)
55
- ]),
56
- key: "0"
57
- } : void 0
58
- ]), 1024)) : n("", !0),
59
- !((y = e.item) != null && y.children) || ((C = (f = e.item) == null ? void 0 : f.children) == null ? void 0 : C.length) === 0 ? (t(), o(V, {
60
- key: e.item.name,
61
- onClick: i[0] || (i[0] = (l) => D(e.item))
62
- }, I({
63
- default: r(() => [
64
- M(" " + w(e.item.title), 1)
65
- ]),
66
- _: 2
67
- }, [
68
- (v = e.item) != null && v.icon ? {
69
- name: "icon",
70
- fn: r(() => [
71
- m.value === "icon" ? (t(), o(B(e.item.icon), { key: 0 })) : n("", !0),
72
- m.value === "url" ? (t(), s("img", {
73
- key: 1,
74
- class: N(`${c}-img`),
75
- src: e.item.icon,
76
- alt: ""
77
- }, null, 10, P)) : n("", !0)
78
- ]),
79
- key: "0"
80
- } : void 0
81
- ]), 1024)) : n("", !0)
82
- ], 64)) : n("", !0);
83
- };
84
- }
85
- });
86
- export {
87
- A as default
88
- };
@@ -1,4 +0,0 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
@@ -1,5 +0,0 @@
1
- import o from "./pro-menu-item.vue.js";
2
- import "./pro-menu-item.vue2.js";
3
- export {
4
- o as default
5
- };