sprof 0.0.211 → 0.0.213

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/sprof.js CHANGED
@@ -12815,7 +12815,13 @@ const s0 = { class: "background-container" }, r0 = { class: "dialog-footer" }, o
12815
12815
  },
12816
12816
  emits: ["crop", "removeFile", "update:ratio"],
12817
12817
  setup(t, { emit: e }) {
12818
- const i = ue(() => ({ width: r.height * h.value + "px", height: r.height + "px" })), n = ue(() => ({ width: h.value < 0.66 ? r.height * 0.66 + "px" : r.height * r.ratio + "px", height: r.height + "px" })), s = ue(() => ({ width: h.value < 0.66 ? r.height * 0.66 + "px" : r.height * r.ratio + "px", height: r.height + "px" })), r = t, o = e, u = T(void 0), l = ve.GUID(), c = T(!1), d = T(), h = T(r.ratio), g = T(""), y = () => {
12818
+ const i = ue(() => ({ width: r.height * h.value + "px", height: r.height + "px" })), n = ue(() => ({
12819
+ width: h.value < 0.66 ? r.height * 0.66 + "px" : r.height * h.value + "px",
12820
+ height: r.height + "px"
12821
+ })), s = ue(() => ({
12822
+ width: h.value < 0.66 ? r.height * 0.66 + "px" : r.height * h.value + "px",
12823
+ height: r.height + "px"
12824
+ })), r = t, o = e, u = T(void 0), l = ve.GUID(), c = T(!1), d = T(), h = T(r.ratio), g = T(""), y = () => {
12819
12825
  u.value = void 0, h.value = 1, o("update:ratio", 1), o("removeFile"), C = document.getElementById(l), C.value = "";
12820
12826
  }, x = (W) => {
12821
12827
  r.fileInfo.setFile(W), r.fileInfo.fileSystemPath && (u.value = r.fileInfo), c.value = !1, o("crop");
@@ -12885,7 +12891,7 @@ const s0 = { class: "background-container" }, r0 = { class: "dialog-footer" }, o
12885
12891
  ])) : (m(), w("div", v0, [
12886
12892
  f("div", {
12887
12893
  class: "add-button",
12888
- style: I({ width: t.height * t.ratio - 2 + "px", height: t.height - 2 + "px" }),
12894
+ style: I({ width: t.height * p(h) - 2 + "px", height: t.height - 2 + "px" }),
12889
12895
  onClick: M
12890
12896
  }, [
12891
12897
  R(f0, { size: "40px" })
@@ -12919,7 +12925,7 @@ const s0 = { class: "background-container" }, r0 = { class: "dialog-footer" }, o
12919
12925
  }, 8, ["show"])
12920
12926
  ], 64));
12921
12927
  }
12922
- }), Pl = /* @__PURE__ */ A(w0, [["__scopeId", "data-v-46c7f39d"]]);
12928
+ }), Pl = /* @__PURE__ */ A(w0, [["__scopeId", "data-v-62bda261"]]);
12923
12929
  function El(t) {
12924
12930
  t.component("PTabs", dl), t.component("PUploaderFile", hl), t.component("PUploaderImage", Pl), t.component("PAuthForm", Es), t.component("PAuthModal", ul), t.component("PNameEdit", cl);
12925
12931
  }