oeos-components 0.2.74 → 0.2.76

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.
@@ -33939,12 +33939,12 @@ const Boe = P({ name: "OText" }), Poe = P({ ...Boe, props: { lineClamp: { type:
33939
33939
  window.removeEventListener("resize", l);
33940
33940
  }), (u, d) => {
33941
33941
  const p = Be("o-tooltip"), h = Be("o-progress"), f = Be("o-icon");
33942
- return E(), B("div", aae, [nt(h, Ve({ ref_key: "progressBoxRef", ref: t, class: ["progress-box", { "prgress-less-zero": Number(n.used) < 0 }], percentage: i.value, type: "line", "stroke-width": 20, "text-inside": "", format: a, color: s }, u.$attrs), { default: he(({ percentage: g }) => [k("div", { ref_key: "percentageRef", ref: e, class: "f-bt-ct", style: Et({ ...l() }) }, [k("div", rae, Ge(a()), 1), k("div", iae, [be(u.$slots, "default", {}, () => [c.value ? (E(), B("span", sae, Ge(r(o.used)) + "/" + Ge(r(o.total)), 1)) : (E(), me(p, { key: 1, content: `${a()} ${r(o.used)}/${r(o.total)}` }, { default: he(() => [k("span", lae, "??" + Ge(r(o.used)) + "/" + Ge(r(o.total)), 1)]), _: 1 }, 8, ["content"]))], !0)])], 4)]), _: 3 }, 16, ["class", "percentage"]), i.value > 100 ? (E(), me(f, Ve({ key: 0, name: "warning", content: "已用容量远超总容量, 请扩容 ", class: "ml" }, n.iconAttrs), null, 16)) : Oe("", !0)]);
33942
+ return E(), B("div", aae, [nt(h, Ve({ ref_key: "progressBoxRef", ref: t, class: ["progress-box", { "prgress-less-zero": Number(n.used) < 0 }], percentage: i.value, type: "line", "stroke-width": 20, "text-inside": "", format: a, color: s }, u.$attrs), { default: he(({ percentage: g }) => [k("div", { ref_key: "percentageRef", ref: e, class: "f-bt-ct", style: Et({ ...l() }) }, [k("div", rae, Ge(a()), 1), k("div", iae, [be(u.$slots, "default", {}, () => [c.value ? (E(), B("span", sae, Ge(r(o.used)) + "/" + Ge(r(o.total)), 1)) : (E(), me(p, { key: 1, content: `${a()} ${r(o.used)}/${r(o.total)}` }, { default: he(() => [k("span", lae, Ge(r(o.used)) + "/" + Ge(r(o.total)), 1)]), _: 1 }, 8, ["content"]))], !0)])], 4)]), _: 3 }, 16, ["class", "percentage"]), i.value > 100 ? (E(), me(f, Ve({ key: 0, name: "warning", content: "已用容量远超总容量, 请扩容 ", class: "ml" }, n.iconAttrs), null, 16)) : Oe("", !0)]);
33943
33943
  };
33944
- } }), dae = pt(mt(uae, [["__scopeId", "data-v-c0db78d9"]]));
33944
+ } }), dae = pt(mt(uae, [["__scopeId", "data-v-763e9142"]]));
33945
33945
  qe([SC, xC, uC, JI, eT, Qg, nT, cv, oT, rT, pT, vT, $l, wT, _T, ST, CT, IT, TT, ET, OT, Ly, Ey, RT, Ny, Oy, HT, GT, FT]);
33946
33946
  const pae = { key: 1, class: "vChart-box" }, hae = P({ name: "OCountBar" }), fae = P({ ...hae, props: { data: { type: Array, default: () => [] } }, setup(n) {
33947
- const t = zh(() => import("./index-BGcH3HaH.js")), e = n, o = ye(), a = ye(!1);
33947
+ const t = zh(() => import("./index-JiwB49sJ.js")), e = n, o = ye(), a = ye(!1);
33948
33948
  let r = { tooltip: { trigger: "axis", axisPointer: { type: "shadow" }, formatter: (i) => {
33949
33949
  const s = i[0];
33950
33950
  return `${s.name}: ${Yt(s.value)}个 <br> 总大小: ${no(i[1].value)}`;
@@ -33961,7 +33961,7 @@ const pae = { key: 1, class: "vChart-box" }, hae = P({ name: "OCountBar" }), fae
33961
33961
  return a.value ? (E(), me(l, { key: 0, class: "h-100%" })) : (E(), B("div", pae, [nt(Y(t), { class: "calc-height", option: o.value, autoresize: "" }, null, 8, ["option"])]));
33962
33962
  };
33963
33963
  } }), mae = pt(mt(fae, [["__scopeId", "data-v-0ae8a201"]])), gae = { key: 1, class: "vChart-box" }, vae = P({ name: "OCountBarOld" }), yae = P({ ...vae, props: { data: { type: Array, default: () => [] } }, setup(n) {
33964
- const t = zh(() => import("./index-BGcH3HaH.js")), e = n, o = ye(), a = ye(!1);
33964
+ const t = zh(() => import("./index-JiwB49sJ.js")), e = n, o = ye(), a = ye(!1);
33965
33965
  let r = { tooltip: { trigger: "axis", formatter: (i) => {
33966
33966
  const s = i[0];
33967
33967
  return `${s.name}: ${Yt(s.value)}个 <br> 总大小: ${no(i[1].value)}`;
@@ -33986,7 +33986,7 @@ const pae = { key: 1, class: "vChart-box" }, hae = P({ name: "OCountBar" }), fae
33986
33986
  const t = n;
33987
33987
  return (e, o) => (E(), B("div", Mae, [be(e.$slots, "default", {}, void 0, !0)]));
33988
33988
  } }), Tae = pt(mt(Iae, [["__scopeId", "data-v-2148646d"]])), Dae = P({ name: "OObjectLine" }), kae = P({ ...Dae, name: "OObjectLine", props: { objectCount: { type: Array, default: () => [] }, objectSize: { type: Array, default: () => [] } }, emits: ["dateChange"], setup(n, { expose: t, emit: e }) {
33989
- const { proxy: o } = Lt(), a = ye(null), r = n, i = ["rgb(180, 225, 215)", gl("--green")], s = ye([]), l = ye([]), c = ye([(/* @__PURE__ */ new Date()).getTime() - 25056e5, (/* @__PURE__ */ new Date()).getTime()]), u = ye(0), d = (h) => {
33989
+ const { proxy: o } = Lt(), a = ye(null), r = n, i = ["rgb(180, 225, 215)", gl("--green")], s = ye([]), l = ye([]), c = ye([new Date((/* @__PURE__ */ new Date()).toLocaleDateString()).getTime() - 25056e5, (/* @__PURE__ */ new Date()).getTime()]), u = ye(0), d = (h) => {
33990
33990
  let f = no(h.max), [g, m] = f.split(" "), v = function(x) {
33991
33991
  return x <= 10 ? Math.ceil(x) : x <= 100 ? 10 * Math.ceil(x / 10) : 100 * Math.ceil(x / 100);
33992
33992
  }(g), y = Ch(v + " " + m);
@@ -34038,7 +34038,7 @@ const pae = { key: 1, class: "vChart-box" }, hae = P({ name: "OCountBar" }), fae
34038
34038
  return E(), me(l, { class: "h-100%" }, { default: he(() => [nt(s, { class: "w-100%" }, { default: he(() => [(E(!0), B(gt, null, un(o.value, (c, u) => (E(), me(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", Hae, [k("img", { src: c.src, class: "po-r", useResize: !0 }, null, 8, Fae)])]), _: 2 }, 1032, ["label", "value", "style", "labelStyle", "valueStyle"]))), 128))]), _: 1 })]), _: 1 });
34039
34039
  };
34040
34040
  } }), Wae = pt(mt(Gae, [["__scopeId", "data-v-203686cc"]])), Uae = { key: 1, class: "vChart-box" }, jae = 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) {
34041
- const t = zh(() => import("./index-BGcH3HaH.js")), { proxy: e } = Lt(), o = n, a = ye(!1), r = ye();
34041
+ const t = zh(() => import("./index-JiwB49sJ.js")), { proxy: e } = Lt(), o = n, a = ye(!1), r = ye();
34042
34042
  ye([]);
34043
34043
  const i = ye(0), s = ye(0);
34044
34044
  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) {
@@ -34065,7 +34065,7 @@ ${o.text}`;
34065
34065
  };
34066
34066
  } }), Yae = pt(mt(jae, [["__scopeId", "data-v-d220cfdc"]])), Sk = (n) => (Nh("data-v-0ed7c01a"), n = n(), Oh(), n), Xae = { class: "vChart-box" }, Zae = { class: "f w-100% list-container" }, qae = { class: "list" }, Qae = Sk(() => k("div", null, "使用量", -1)), Kae = { class: "num" }, Jae = { class: "list" }, $ae = Sk(() => k("div", null, "总量", -1)), ere = { class: "num" }, tre = P({ name: "OUsedPie" }), nre = P({ ...tre, props: { used: { type: [Number, String], default: 0 }, total: { type: [Number, String], default: 0 }, options: { type: Object, default: () => {
34067
34067
  } } }, setup(n) {
34068
- const t = zh(() => import("./index-BGcH3HaH.js")), e = n, o = ye(), a = ye("0%");
34068
+ const t = zh(() => import("./index-JiwB49sJ.js")), e = n, o = ye(), a = ye("0%");
34069
34069
  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) {
34070
34070
  return i.name === "使用量" ? gl("--blue") : gl("--green");
34071
34071
  } }, 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-BdoOefjN.js";
2
+ import { i as ie, t as le } from "./index-DIOHlYnQ.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-BdoOefjN.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-DIOHlYnQ.js";
2
2
  export {
3
3
  e as $toast,
4
4
  t as OSvg,