@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.
@@ -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
- hg((c) => r.value = c);
27714
- let a = j([]);
27715
- gC((c) => a.value = c ?? []);
27716
- const i = N(() => n != null && n.router ? n == null ? void 0 : n.router : null), o = N(() => {
27717
- var d, f;
27718
- if (((d = r.value) == null ? void 0 : d.currentId) === null)
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 c = (f = a.value) == null ? void 0 : f.find((h) => {
27721
- var p;
27722
- return String((p = r.value) == null ? void 0 : p.currentId) === h.currentId;
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 (c == null ? void 0 : c.transitPagePath) ?? "/home";
27725
- }), s = () => {
27726
- var h;
27727
- if (t("click", o.value), !n.linkEnable)
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
- i.value && n.linkPath && ((h = i.value) == null || h.push(n.linkPath));
27730
- const c = /^http/.test(o.value);
27731
- let d = !1, f = "";
27732
- if (c) {
27733
- const p = new URL(o.value);
27734
- d = p.origin === window.location.origin, f = p.pathname, d && i.value ? i.value.push({ path: f }) : window.location.assign(o.value);
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
- i.value ? i.value.push({ path: o.value }) : window.location.assign(window.origin + o.value);
27737
- }, l = N(() => {
27738
- var c, d;
27739
- return ((d = (c = r.value) == null ? void 0 : c.logoUrl) == null ? void 0 : d.replace("-internal", "")) ?? QEe;
27740
- }), u = N(() => {
27741
- var c;
27742
- return ((c = r.value) == null ? void 0 : c.platformSloganName) ?? n.title;
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 (c, d) => (H(), X("div", {
27749
+ return (f, h) => (H(), X("div", {
27745
27750
  class: W(["system-content", n == null ? void 0 : n.customClass]),
27746
- onClick: s
27751
+ onClick: l
27747
27752
  }, [
27748
27753
  ee("div", {
27749
27754
  class: "logo-pic",
27750
- style: pt({ backgroundImage: "url(" + l.value + ")" })
27755
+ style: pt(c.value)
27751
27756
  }, null, 4),
27752
- ee("span", UEe, ke(u.value), 1)
27757
+ ee("span", UEe, ke(d.value), 1)
27753
27758
  ], 2));
27754
27759
  }
27755
27760
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxtropy/v-components",
3
- "version": "0.1.18-beta.31",
3
+ "version": "0.1.18-beta.32",
4
4
  "files": [
5
5
  "dist"
6
6
  ],