oeos-components 0.2.66 → 0.2.67

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.
@@ -31917,7 +31917,7 @@ function _a(n, { toFixed: t = 2, thousands: e = !0 } = {}) {
31917
31917
  if (!bh(n) && !_h(n))
31918
31918
  return n;
31919
31919
  if ((n = Number(n)) <= 0)
31920
- return n.toFixed(t) + "B";
31920
+ return n.toFixed(t) + " B";
31921
31921
  const o = Math.floor(Math.log(n) / Math.log(1024));
31922
31922
  let a = (n / Math.pow(1024, o)).toFixed(t) + " " + ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"][o];
31923
31923
  return e && (a = Fn(a)), a;
@@ -33931,7 +33931,7 @@ const Boe = P({ name: "OText" }), Poe = P({ ...Boe, props: { lineClamp: { type:
33931
33931
  } }), cae = ht(vt(lae, [["__scopeId", "data-v-bb1c45a2"]]));
33932
33932
  qe([SC, xC, uC, JI, eT, Yg, nT, rv, oT, rT, pT, vT, Jl, wT, _T, ST, CT, IT, TT, ET, OT, Dy, ky, RT, Ly, Ey, HT, GT, FT]);
33933
33933
  const uae = { key: 1, class: "vChart-box" }, dae = P({ name: "OCountBar" }), pae = P({ ...dae, props: { data: { type: Array, default: () => [] } }, setup(n) {
33934
- const t = Jv(() => import("./index-BtzAaMfT.js")), e = n, o = ye(), a = ye(!1);
33934
+ const t = Jv(() => import("./index-Du_jEnQl.js")), e = n, o = ye(), a = ye(!1);
33935
33935
  let r = { tooltip: { trigger: "axis", formatter: (i) => {
33936
33936
  const s = i[0];
33937
33937
  return `${s.name}: ${Fn(s.value)}个 <br> 总大小: ${_a(i[1].value)}`;
@@ -34015,7 +34015,7 @@ const uae = { key: 1, class: "vChart-box" }, dae = P({ name: "OCountBar" }), pae
34015
34015
  return N(), ve(l, { class: "h-100%" }, { default: he(() => [$e(s, { class: "w-100%" }, { default: he(() => [(N(!0), B(mt, null, cn(o.value, (c, u) => (N(), ve(i, { key: u, label: c.label, value: c.value, style: Et({ background: c.style.background, fontSize: "12px" }), labelStyle: { color: c.style.color }, itemStyle: { minWidth: "100px" }, valueStyle: { color: c.style.color, fontSize: "16px" } }, { img: he(() => [k("div", Vae, [k("img", { src: c.src, class: "po-r", useResize: !0 }, null, 8, Bae)])]), _: 2 }, 1032, ["label", "value", "style", "labelStyle", "valueStyle"]))), 128))]), _: 1 })]), _: 1 });
34016
34016
  };
34017
34017
  } }), Rae = ht(vt(Pae, [["__scopeId", "data-v-203686cc"]])), Hae = { key: 1, class: "vChart-box" }, Fae = P({ name: "OQuotaPie", __name: "index", props: { used: { type: [String, Number], required: !0 }, total: { type: [String, Number], required: !0 }, type: { type: String, default: "used" }, text: { type: String, required: !0 } }, setup(n) {
34018
- const t = Jv(() => import("./index-BtzAaMfT.js")), { proxy: e } = Tt(), o = n, a = ye(!1), r = ye();
34018
+ const t = Jv(() => import("./index-Du_jEnQl.js")), { proxy: e } = Tt(), o = n, a = ye(!1), r = ye();
34019
34019
  ye([]);
34020
34020
  const i = ye(0), s = ye(0);
34021
34021
  let l = { title: { text: "", textStyle: { color: "blue", fontSize: 16 } }, legend: { top: "bottom", textStyle: { fontSize: 10 }, left: "center" }, tooltip: { trigger: "item", show: !1 }, toolbox: { show: !0, feature: { mark: { show: !0 } } }, series: [{ type: "pie", radius: ["70%", "90%"], center: ["50%", "50%"], label: { backgroundColor: "#F6F8FC", borderColor: "#8C8D8E", position: "inner", borderRadius: 4, textStyle: { fontSize: 12, color: "#e4393c" }, rich: { a: { color: "#6E7079", lineHeight: 22, fontSize: 10, align: "center" }, hr: { borderColor: "#8C8D8E", width: "100%", borderWidth: 1, height: 0 }, b: { color: "#4C5058", fontSize: 12, fontWeight: "bold", lineHeight: 33 } } }, itemStyle: { borderRadius: 8, color: function(c) {
@@ -34024,13 +34024,13 @@ const uae = { key: 1, class: "vChart-box" }, dae = P({ name: "OCountBar" }), pae
34024
34024
  if (o.type === "used")
34025
34025
  return `${(i.value / s.value * 100).toFixed(2) + "%"}
34026
34026
 
34027
- ${`${e.formatBytes(o.used)} / ${e.formatBytes(o.total)}`}
34027
+ ${`${e.formatBytes(e.formatBytesConvert(o.used))} / ${e.formatBytes(e.formatBytesConvert(o.total))}`}
34028
34028
 
34029
34029
  ${o.text}`;
34030
34030
  if (o.type === "quota")
34031
34031
  return `${(i.value / s.value * 100).toFixed(2) + "%"}
34032
34032
 
34033
- ${`${o.used} / ${e.toFixed(o.total)}`}
34033
+ ${`${e.formatBytes(e.formatBytesConvert(o.used))} / ${e.formatBytes(e.formatBytesConvert(o.total))}`}
34034
34034
 
34035
34035
  ${o.text}`;
34036
34036
  }), textAlign: "center", fill: "#000", fontSize: 14, fontWeight: "bold" } } };
@@ -34040,9 +34040,9 @@ ${o.text}`;
34040
34040
  const d = Re("o-empty");
34041
34041
  return a.value ? (N(), ve(d, { key: 0, class: "h-100%" })) : (N(), B("div", Hae, [$e(Y(t), { class: "calc-height", option: r.value, autoresize: "" }, null, 8, ["option"])]));
34042
34042
  };
34043
- } }), Gae = ht(vt(Fae, [["__scopeId", "data-v-d37450ea"]])), Sk = (n) => (Lh("data-v-0ed7c01a"), n = n(), Eh(), n), Wae = { class: "vChart-box" }, Uae = { class: "f w-100% list-container" }, jae = { class: "list" }, Yae = Sk(() => k("div", null, "使用量", -1)), Xae = { class: "num" }, Zae = { class: "list" }, qae = Sk(() => k("div", null, "总量", -1)), Qae = { class: "num" }, Kae = P({ name: "OUsedPie" }), Jae = P({ ...Kae, props: { used: { type: [Number, String], default: 0 }, total: { type: [Number, String], default: 0 }, options: { type: Object, default: () => {
34043
+ } }), Gae = ht(vt(Fae, [["__scopeId", "data-v-d220cfdc"]])), Sk = (n) => (Lh("data-v-0ed7c01a"), n = n(), Eh(), n), Wae = { class: "vChart-box" }, Uae = { class: "f w-100% list-container" }, jae = { class: "list" }, Yae = Sk(() => k("div", null, "使用量", -1)), Xae = { class: "num" }, Zae = { class: "list" }, qae = Sk(() => k("div", null, "总量", -1)), Qae = { class: "num" }, Kae = P({ name: "OUsedPie" }), Jae = P({ ...Kae, props: { used: { type: [Number, String], default: 0 }, total: { type: [Number, String], default: 0 }, options: { type: Object, default: () => {
34044
34044
  } } }, setup(n) {
34045
- const t = Jv(() => import("./index-BtzAaMfT.js")), e = n, o = ye(), a = ye("0%");
34045
+ const t = Jv(() => import("./index-Du_jEnQl.js")), e = n, o = ye(), a = ye("0%");
34046
34046
  let r = { tooltip: { trigger: "item", show: !1 }, series: [{ type: "pie", center: ["50%", "50%"], radius: ["65%", "85%"], clockwise: !0, avoidLabelOverlap: !0, hoverOffset: 15, itemStyle: { color: function(i) {
34047
34047
  return i.name === "使用量" ? Mu("--blue") : Mu("--green");
34048
34048
  } }, label: { show: !1, position: "outside", formatter: function(i) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as Q, h as V, shallowRef as w, inject as _, toRefs as X, computed as p, getCurrentInstance as ee, watch as E, watchEffect as P, onMounted as te, onBeforeUnmount as ne, isRef as oe, unref as se, nextTick as ae } from "vue";
2
- import { i as ie, t as le } from "./index-C7PeV21K.js";
2
+ import { i as ie, t as le } from "./index-CU5fC-O5.js";
3
3
  const re = ["getWidth", "getHeight", "getDom", "getOption", "resize", "dispatchAction", "convertToPixel", "convertFromPixel", "containPixel", "getDataURL", "getConnectedDataURL", "appendData", "clear", "isDisposed", "dispose"];
4
4
  function ue(t) {
5
5
  return function() {
@@ -1,4 +1,4 @@
1
- import { $ as e, O as t, q as o, d as r, f as m, c as i, H as n, w as g, a as p, G as f, b as l, D as c, E as d, j as u, r as y, I as v, x as S, h, g as x, l as E, J as T, e as b, y as B, m as F, n as w, B as C, z as D, s as I, o as L, F as O, C as W, A as $, u as j, k, v as q, p as z } from "./index-C7PeV21K.js";
1
+ import { $ as e, O as t, q as o, d as r, f as m, c as i, H as n, w as g, a as p, G as f, b as l, D as c, E as d, j as u, r as y, I as v, x as S, h, g as x, l as E, J as T, e as b, y as B, m as F, n as w, B as C, z as D, s as I, o as L, F as O, C as W, A as $, u as j, k, v as q, p as z } from "./index-CU5fC-O5.js";
2
2
  export {
3
3
  e as $toast,
4
4
  t as OSvg,