@das-fed/ui 6.4.0-dev.119 → 6.4.0-dev.120
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/package.json +5 -5
- package/packages/business-components/device-panel/index.js +2232 -2210
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/layout-breadcrumb/index.js +23 -26
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
|
Binary file
|
|
@@ -6,22 +6,19 @@ import { useRouter as $, useRoute as j } from "vue-router";
|
|
|
6
6
|
import { flatTree as q } from "@das-fed/utils/common-tools";
|
|
7
7
|
import { getSubApps as k } from "@das-fed/utils/common-info";
|
|
8
8
|
import { setThemeRule as E } from "@das-fed/web/packages/theme/index";
|
|
9
|
-
const J = (
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const o = ()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
o();
|
|
20
|
-
});
|
|
21
|
-
}, h = async (e, i) => {
|
|
9
|
+
const J = (a, l) => {
|
|
10
|
+
const i = S([]), f = R(() => [...i.value, ...a.data || []]), p = () => new Promise((e) => {
|
|
11
|
+
const s = () => {
|
|
12
|
+
var n, t;
|
|
13
|
+
const { app: o = "" } = (u == null ? void 0 : u.query) || {}, d = ((t = (n = k()) == null ? void 0 : n.currentSubApp) == null ? void 0 : t.menus) ?? [];
|
|
14
|
+
if (o === k().currentSubAppCode && d.length) return e();
|
|
15
|
+
setTimeout(() => s(), 50);
|
|
16
|
+
};
|
|
17
|
+
s();
|
|
18
|
+
}), h = async (e, s) => {
|
|
22
19
|
var b, c;
|
|
23
20
|
await I(), await p();
|
|
24
|
-
const o = [], d =
|
|
21
|
+
const o = [], d = s.menu || "", n = ((c = (b = k()) == null ? void 0 : b.currentSubApp) == null ? void 0 : c.menus) ?? [];
|
|
25
22
|
if (!n || !n.length) return;
|
|
26
23
|
let t = null;
|
|
27
24
|
const r = q(n);
|
|
@@ -38,25 +35,25 @@ const J = (s, l) => {
|
|
|
38
35
|
};
|
|
39
36
|
o.push(M);
|
|
40
37
|
}
|
|
41
|
-
|
|
38
|
+
i.value = o;
|
|
42
39
|
}, C = (e) => {
|
|
43
40
|
e.disabled || l("click-item", e);
|
|
44
41
|
}, y = $(), u = j();
|
|
45
42
|
L(
|
|
46
43
|
() => y.currentRoute.value,
|
|
47
44
|
(e) => {
|
|
48
|
-
const
|
|
49
|
-
h(
|
|
45
|
+
const s = (e == null ? void 0 : e.path) ?? "", o = (e == null ? void 0 : e.query) ?? {};
|
|
46
|
+
h(s, o);
|
|
50
47
|
}
|
|
51
48
|
), h(u.path, u.query);
|
|
52
49
|
const B = S(!1);
|
|
53
50
|
return L(
|
|
54
|
-
() =>
|
|
51
|
+
() => a.data,
|
|
55
52
|
() => {
|
|
56
53
|
I(() => {
|
|
57
54
|
p().then(() => {
|
|
58
55
|
var t;
|
|
59
|
-
const e = k(),
|
|
56
|
+
const e = k(), s = u.query.app || e.currentSubApp.code || "";
|
|
60
57
|
let o = u.query.menu || "";
|
|
61
58
|
if (!o) {
|
|
62
59
|
const r = ((t = e.currentSubApp) == null ? void 0 : t.menus) ?? [], b = q(r).find(
|
|
@@ -64,7 +61,7 @@ const J = (s, l) => {
|
|
|
64
61
|
);
|
|
65
62
|
b && (o = b.code);
|
|
66
63
|
}
|
|
67
|
-
const d = JSON.parse(sessionStorage.getItem("breadcrumb") || "{}")[
|
|
64
|
+
const d = JSON.parse(sessionStorage.getItem("breadcrumb") || "{}")[s], n = [];
|
|
68
65
|
for (let r in d) d[r] && n.push(r);
|
|
69
66
|
B.value = !!n.find((r) => o === r);
|
|
70
67
|
});
|
|
@@ -87,8 +84,8 @@ const J = (s, l) => {
|
|
|
87
84
|
data: { default: () => [] }
|
|
88
85
|
},
|
|
89
86
|
emits: ["click-item"],
|
|
90
|
-
setup(
|
|
91
|
-
const
|
|
87
|
+
setup(a, { emit: l }) {
|
|
88
|
+
const i = a, f = l, { isShow: p, breadcrumbList: h, clickItem: C } = J(i, f);
|
|
92
89
|
return (y, u) => g(p) && y.data && y.data.length ? (x(), N("div", z, [
|
|
93
90
|
D(g(O), {
|
|
94
91
|
data: g(h),
|
|
@@ -96,11 +93,11 @@ const J = (s, l) => {
|
|
|
96
93
|
}, null, 8, ["data", "onClickItem"])
|
|
97
94
|
])) : U("v-if", !0);
|
|
98
95
|
}
|
|
99
|
-
}), H = (
|
|
100
|
-
const
|
|
96
|
+
}), H = (a, l) => {
|
|
97
|
+
const i = a.__vccOpts || a;
|
|
101
98
|
for (const [f, p] of l)
|
|
102
|
-
|
|
103
|
-
return
|
|
99
|
+
i[f] = p;
|
|
100
|
+
return i;
|
|
104
101
|
}, K = /* @__PURE__ */ H(G, [["__scopeId", "data-v-878cd70a"]]), Q = {
|
|
105
102
|
"--das-layout-micro-container-bg-color": "#e2e7ef",
|
|
106
103
|
"--das-layout-breadcrumb-bg-color": "#ffffff"
|
|
Binary file
|