@maxtropy/v-components 0.1.18-beta.31 → 0.1.18-beta.32
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/dist/mx-vcomponents.es.js +35 -30
- package/package.json +1 -1
|
@@ -27710,46 +27710,51 @@ const QEe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABmQAAAJGCAYAAABFrOoDA
|
|
|
27710
27710
|
setup(e, { emit: t }) {
|
|
27711
27711
|
const n = e;
|
|
27712
27712
|
let r = j();
|
|
27713
|
-
|
|
27714
|
-
|
|
27715
|
-
|
|
27716
|
-
|
|
27717
|
-
|
|
27718
|
-
|
|
27713
|
+
const a = j(!1);
|
|
27714
|
+
hg((f) => {
|
|
27715
|
+
r.value = f, a.value = f !== void 0;
|
|
27716
|
+
});
|
|
27717
|
+
let i = j([]);
|
|
27718
|
+
gC((f) => i.value = f ?? []);
|
|
27719
|
+
const o = N(() => n != null && n.router ? n == null ? void 0 : n.router : null), s = N(() => {
|
|
27720
|
+
var h, p;
|
|
27721
|
+
if (((h = r.value) == null ? void 0 : h.currentId) === null)
|
|
27719
27722
|
return "/home";
|
|
27720
|
-
const
|
|
27721
|
-
var
|
|
27722
|
-
return String((
|
|
27723
|
+
const f = (p = i.value) == null ? void 0 : p.find((v) => {
|
|
27724
|
+
var g;
|
|
27725
|
+
return String((g = r.value) == null ? void 0 : g.currentId) === v.currentId;
|
|
27723
27726
|
});
|
|
27724
|
-
return (
|
|
27725
|
-
}),
|
|
27726
|
-
var
|
|
27727
|
-
if (t("click",
|
|
27727
|
+
return (f == null ? void 0 : f.transitPagePath) ?? "/home";
|
|
27728
|
+
}), l = () => {
|
|
27729
|
+
var v;
|
|
27730
|
+
if (t("click", s.value), !n.linkEnable)
|
|
27728
27731
|
return;
|
|
27729
|
-
|
|
27730
|
-
const
|
|
27731
|
-
let
|
|
27732
|
-
if (
|
|
27733
|
-
const
|
|
27734
|
-
|
|
27732
|
+
o.value && n.linkPath && ((v = o.value) == null || v.push(n.linkPath));
|
|
27733
|
+
const f = /^http/.test(s.value);
|
|
27734
|
+
let h = !1, p = "";
|
|
27735
|
+
if (f) {
|
|
27736
|
+
const g = new URL(s.value);
|
|
27737
|
+
h = g.origin === window.location.origin, p = g.pathname, h && o.value ? o.value.push({ path: p }) : window.location.assign(s.value);
|
|
27735
27738
|
} else
|
|
27736
|
-
|
|
27737
|
-
},
|
|
27738
|
-
var
|
|
27739
|
-
|
|
27740
|
-
|
|
27741
|
-
|
|
27742
|
-
|
|
27739
|
+
o.value ? o.value.push({ path: s.value }) : window.location.assign(window.origin + s.value);
|
|
27740
|
+
}, u = N(() => {
|
|
27741
|
+
var f, h;
|
|
27742
|
+
if (a.value)
|
|
27743
|
+
return ((h = (f = r.value) == null ? void 0 : f.logoUrl) == null ? void 0 : h.replace("-internal", "")) || QEe;
|
|
27744
|
+
}), c = N(() => u.value ? { backgroundImage: `url(${u.value})` } : void 0), d = N(() => {
|
|
27745
|
+
var f;
|
|
27746
|
+
if (a.value)
|
|
27747
|
+
return ((f = r.value) == null ? void 0 : f.platformSloganName) || n.title;
|
|
27743
27748
|
});
|
|
27744
|
-
return (
|
|
27749
|
+
return (f, h) => (H(), X("div", {
|
|
27745
27750
|
class: W(["system-content", n == null ? void 0 : n.customClass]),
|
|
27746
|
-
onClick:
|
|
27751
|
+
onClick: l
|
|
27747
27752
|
}, [
|
|
27748
27753
|
ee("div", {
|
|
27749
27754
|
class: "logo-pic",
|
|
27750
|
-
style: pt(
|
|
27755
|
+
style: pt(c.value)
|
|
27751
27756
|
}, null, 4),
|
|
27752
|
-
ee("span", UEe, ke(
|
|
27757
|
+
ee("span", UEe, ke(d.value), 1)
|
|
27753
27758
|
], 2));
|
|
27754
27759
|
}
|
|
27755
27760
|
});
|