@keyblade/pro-components 1.4.6 → 1.5.0

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 (36) 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 +1 -1
  5. package/es/pro-layout/hooks.d.ts +1 -1
  6. package/es/pro-layout/hooks.js +1 -1
  7. package/es/pro-layout/index.d.ts +31 -13
  8. package/es/pro-layout/pro-layout.vue.d.ts +36 -15
  9. package/es/pro-layout/pro-layout.vue.js +127 -115
  10. package/es/pro-menu/index.d.ts +24 -4
  11. package/es/pro-menu/index.js +7 -6
  12. package/es/pro-menu/pro-menu.vue.d.ts +13 -1
  13. package/es/pro-menu/pro-menu.vue.js +99 -34
  14. package/es/pro-menu/pro-menu.vue2.js +2 -2
  15. package/es/pro-menu/pro-menu.vue3.js +5 -0
  16. package/es/pro-page-container/index.d.ts +82 -109
  17. package/es/pro-page-container/index.js +7 -7
  18. package/es/pro-page-container/pro-page-container.vue.d.ts +49 -79
  19. package/es/pro-page-container/pro-page-container.vue.js +32 -51
  20. package/es/{pro-breadcrumb → pro-page-header}/index.d.ts +55 -55
  21. package/es/pro-page-header/index.js +13 -0
  22. package/es/{pro-breadcrumb/pro-breadcrumb.vue.d.ts → pro-page-header/pro-page-header.vue.d.ts} +41 -41
  23. package/es/pro-page-header/pro-page-header.vue.js +125 -0
  24. package/es/pro-page-header/pro-page-header.vue3.js +5 -0
  25. package/es/pro-reuse-tabs/index.d.ts +1 -1
  26. package/es/style.css +1 -1
  27. package/package.json +3 -2
  28. package/src/index.ts +3 -3
  29. package/es/pro-breadcrumb/index.js +0 -13
  30. package/es/pro-breadcrumb/pro-breadcrumb.vue.js +0 -102
  31. package/es/pro-breadcrumb/pro-breadcrumb.vue3.js +0 -5
  32. package/es/pro-menu/pro-menu-item.vue.d.ts +0 -14
  33. package/es/pro-menu/pro-menu-item.vue.js +0 -88
  34. package/es/pro-menu/pro-menu-item.vue2.js +0 -4
  35. package/es/pro-menu/pro-menu-item.vue3.js +0 -5
  36. /package/es/{pro-breadcrumb/pro-breadcrumb.vue2.js → pro-page-header/pro-page-header.vue2.js} +0 -0
@@ -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
- };