oeos-components 0.3.13 → 0.3.14
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.
|
@@ -31888,14 +31888,15 @@ function yL(n, e = {}) {
|
|
|
31888
31888
|
let s = i[1].replace(/\D/g, ""), l = i[3] ? `.${i[3]}` : "", c = i[4] || "", u = s;
|
|
31889
31889
|
return (w0(s) || b0(s)) && (u = Number(s + l).toFixed(t)), a || (c = ""), `${o}${u}${c}${r}`;
|
|
31890
31890
|
}
|
|
31891
|
-
function Xn(n,
|
|
31891
|
+
function Xn(n, e = {}) {
|
|
31892
|
+
let { digit: t = 2, thousands: o = !0, prefix: r = "", suffix: a = "" } = e;
|
|
31892
31893
|
if (!w0(n) && !b0(n))
|
|
31893
31894
|
return n;
|
|
31894
31895
|
if ((n = Number(n)) <= 0)
|
|
31895
|
-
return n.toFixed(
|
|
31896
|
-
const
|
|
31897
|
-
let
|
|
31898
|
-
return
|
|
31896
|
+
return n.toFixed(t) + " B";
|
|
31897
|
+
const i = Math.floor(Math.log(n) / Math.log(1024));
|
|
31898
|
+
let s = (n / Math.pow(1024, i)).toFixed(t) + " " + ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"][i];
|
|
31899
|
+
return o && (s = jt(s)), `${r}${s}${a}`;
|
|
31899
31900
|
}
|
|
31900
31901
|
function $h(n, { thounsand: e = !1, toFixed: t = 0 } = {}) {
|
|
31901
31902
|
if (w0(n) || b0(n) || Lr(n) !== "string" || !n)
|
|
@@ -34736,7 +34737,7 @@ const Lse = P({ name: "OText" }), Ese = P({ ...Lse, props: { lineClamp: { type:
|
|
|
34736
34737
|
} }), rle = pt(vt(ole, [["__scopeId", "data-v-bc424bd4"]]));
|
|
34737
34738
|
Ye([jI, HI, LI, xD, bD, Nv, SD, Xv, AD, MD, VD, RD, mc, FD, WD, jD, XD, YD, QD, $D, tk, I3, T3, ik, D3, k3, sk, ck, lk]);
|
|
34738
34739
|
const ale = { key: 1, class: "vChart-box" }, ile = P({ name: "OCountBar" }), sle = P({ ...ile, props: { data: { type: Array, default: () => [] } }, setup(n) {
|
|
34739
|
-
const e = l2(() => import("./index-
|
|
34740
|
+
const e = l2(() => import("./index-Dld09S2g.js")), t = n, o = ge(), r = ge(!1);
|
|
34740
34741
|
let a = { tooltip: { trigger: "axis", axisPointer: { type: "shadow" }, formatter: (i) => {
|
|
34741
34742
|
const s = i[0];
|
|
34742
34743
|
return `${s.name}: ${jt(s.value)}个 <br> 总大小: ${Xn(i[1].value)}`;
|
|
@@ -34755,14 +34756,14 @@ const ale = { key: 1, class: "vChart-box" }, ile = P({ name: "OCountBar" }), sle
|
|
|
34755
34756
|
return r.value ? (E(), fe(l, { key: 0, class: "h-100%" })) : (E(), R("div", ale, [Qe(U(e), { class: "calc-height", option: o.value, autoresize: "" }, null, 8, ["option"])]));
|
|
34756
34757
|
};
|
|
34757
34758
|
} }), lle = pt(vt(sle, [["__scopeId", "data-v-5787c7b8"]])), cle = { key: 1, class: "vChart-box" }, ule = P({ name: "OCountBarOld" }), dle = P({ ...ule, props: { data: { type: Array, default: () => [] } }, setup(n) {
|
|
34758
|
-
const e = l2(() => import("./index-
|
|
34759
|
+
const e = l2(() => import("./index-Dld09S2g.js")), t = n, o = ge(), r = ge(!1);
|
|
34759
34760
|
let a = { tooltip: { trigger: "axis", formatter: (i) => {
|
|
34760
34761
|
const s = i[0];
|
|
34761
34762
|
return `${s.name}: ${jt(s.value)}个 <br> 总大小: ${Xn(i[1].value)}`;
|
|
34762
34763
|
} }, grid: { containLabel: !0, top: "8%", right: "2%", bottom: "2%", left: "2%" }, xAxis: { type: "category", data: [], axisLabel: { color: "#8e97ae", interval: 0, rotate: 0 } }, yAxis: [{ type: "value", axisLine: { show: !1 }, splitLine: { lineStyle: { type: "dashed", color: "#1b78fc", opacity: 0.4 } }, minInterval: 1, axisLabel: { color: "#8e97ae", formatter: (i) => {
|
|
34763
34764
|
var s;
|
|
34764
34765
|
return (s = i) >= 1e12 ? jt(s / 1e12) + "兆" : s >= 1e8 ? jt(s / 1e8) + "亿" : s >= 1e4 ? jt(s / 1e4) + "万" : jt(s);
|
|
34765
|
-
} } }, { type: "value", position: "right", axisLine: { show: !1 }, splitLine: { lineStyle: { opacity: 0.4, color: "#30bd82" } }, axisLabel: { color: "#8e97ae", formatter: (i) => Xn(i, {
|
|
34766
|
+
} } }, { type: "value", position: "right", axisLine: { show: !1 }, splitLine: { lineStyle: { opacity: 0.4, color: "#30bd82" } }, axisLabel: { color: "#8e97ae", formatter: (i) => Xn(i, {}) } }], series: [{ data: [], type: "bar", barWidth: "20%", label: { show: !0, position: "top", formatter: (i) => jt(i.value) }, itemStyle: { borderRadius: 10, color: "#1b78fc" } }, { data: [], type: "bar", yAxisIndex: 1, barWidth: "20%", label: { show: !0, position: "top", formatter: (i) => Xn(i.value) }, itemStyle: { borderRadius: 10, color: "#30bd82" } }] };
|
|
34766
34767
|
return ut(() => t.data, (i) => {
|
|
34767
34768
|
r.value = i.every((d) => !d.value);
|
|
34768
34769
|
let s = i.filter((d) => d.value), l = s.map((d) => d.name), c = s.map((d) => d.value), u = s.map((d) => d.value2);
|
|
@@ -34863,7 +34864,7 @@ function U4(n, e) {
|
|
|
34863
34864
|
return n.dataIndex === 0 ? parseInt(e) > 100 ? kl("--red") : kl("--blue") : kl("--green");
|
|
34864
34865
|
}
|
|
34865
34866
|
const zle = 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, default: "总使用量 / 总可用量" } }, setup(n) {
|
|
34866
|
-
const e = l2(() => import("./index-
|
|
34867
|
+
const e = l2(() => import("./index-Dld09S2g.js")), t = n, o = ge(null), r = ge({ width: 0, height: 0 }), a = ge(!1), i = ge();
|
|
34867
34868
|
ge([]);
|
|
34868
34869
|
const s = ge(0), l = ge(0), c = ge("0%");
|
|
34869
34870
|
let u = { 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: (p) => U4(p, c.value) }, data: [] }], graphic: { type: "text", left: "center", top: "center", style: { text: ae(() => {
|
|
@@ -34905,7 +34906,7 @@ ${t.text}`;
|
|
|
34905
34906
|
};
|
|
34906
34907
|
} }), Ble = pt(vt(zle, [["__scopeId", "data-v-e53d0ad0"]])), gE = (n) => (i2("data-v-8e59e54b"), n = n(), s2(), n), Rle = { class: "vChart-box" }, Ple = { class: "f w-100% list-container" }, Hle = { class: "list" }, Fle = gE(() => k("div", null, "使用量", -1)), Wle = { class: "num" }, Gle = { class: "list" }, jle = gE(() => k("div", null, "总量", -1)), Zle = { class: "num" }, Ule = P({ name: "OUsedPie" }), Xle = P({ ...Ule, props: { used: { type: [Number, String], default: 0 }, total: { type: [Number, String], default: 0 }, options: { type: Object, default: () => {
|
|
34907
34908
|
} } }, setup(n) {
|
|
34908
|
-
const e = l2(() => import("./index-
|
|
34909
|
+
const e = l2(() => import("./index-Dld09S2g.js")), t = n, o = ge(), r = ge("0%");
|
|
34909
34910
|
let a = { tooltip: { trigger: "item", show: !1 }, series: [{ type: "pie", center: ["50%", "50%"], radius: ["65%", "85%"], clockwise: !0, avoidLabelOverlap: !0, hoverOffset: 15, itemStyle: { color: (i) => U4(i, r.value) }, label: { show: !1, position: "outside", formatter: function(i) {
|
|
34910
34911
|
i.name, i.value;
|
|
34911
34912
|
let { value: s, name: l } = i.data, c = Xn(s);
|
|
@@ -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-
|
|
2
|
+
import { i as ie, t as le } from "./index-BdWEp-0Y.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 t, O as e, x as o, h as r, k as m, c as i, L as n, z as g, a as c, K as f, b as l, G as p, H as d, o as u, y, M as S, A as v, l as b, g as h, q as N, N as T, j as x, f as B, d as C, e as E, B as F, m as L, n as w, E as D, C as I, s as O, r as W, I as $, F as j, D as k, J as q, u as z, p as A, v as G, w as H } from "./index-
|
|
1
|
+
import { $ as t, O as e, x as o, h as r, k as m, c as i, L as n, z as g, a as c, K as f, b as l, G as p, H as d, o as u, y, M as S, A as v, l as b, g as h, q as N, N as T, j as x, f as B, d as C, e as E, B as F, m as L, n as w, E as D, C as I, s as O, r as W, I as $, F as j, D as k, J as q, u as z, p as A, v as G, w as H } from "./index-BdWEp-0Y.js";
|
|
2
2
|
export {
|
|
3
3
|
t as $toast,
|
|
4
4
|
e as OSvg,
|