oeos-components 0.2.81 → 0.2.83
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.
|
@@ -32446,7 +32446,7 @@ const tne = P({ name: "OInput" }), nne = P({ ...tne, props: { modelValue: { requ
|
|
|
32446
32446
|
const s = Be("el-switch");
|
|
32447
32447
|
return E(), ve(s, Ve(r.$attrs, { "inline-prompt": "", class: "o-custom-switch", loading: o.value, "before-change": a }), null, 16, ["loading"]);
|
|
32448
32448
|
};
|
|
32449
|
-
} }), Ene = pt(mt(Lne, [["__scopeId", "data-v-d2c75b49"]])), c7 = P({ name: "RenderComp", props: { render: Function, scope: Object, row: Object, value: [Object, String, Number] }, render: (n) => n.render(n == null ? void 0 : n.row, n == null ? void 0 : n.scope, n == null ? void 0 : n.value) }), s3 = (n) => (Eh("data-v-
|
|
32449
|
+
} }), Ene = pt(mt(Lne, [["__scopeId", "data-v-d2c75b49"]])), c7 = P({ name: "RenderComp", props: { render: Function, scope: Object, row: Object, value: [Object, String, Number] }, render: (n) => n.render(n == null ? void 0 : n.row, n == null ? void 0 : n.scope, n == null ? void 0 : n.value) }), s3 = (n) => (Eh("data-v-7398a6ed"), n = n(), Nh(), n), Nne = { class: "o-table" }, One = s3(() => k("span", null, "序号", -1)), zne = ["onClick"], Vne = { key: 2 }, Bne = { key: 3 }, Pne = { key: 0, style: { height: "64px" } }, Rne = { class: "page-wrap" }, Hne = { class: "page-left" }, Fne = s3(() => k("span", null, "共", -1)), Gne = { class: "m-lr-5" }, Wne = s3(() => k("span", null, "项数据", -1)), Une = P({ name: "OTable" }), jne = P({ ...Une, props: { data: { type: Array, default: () => [] }, columns: { type: Array, default: () => [] }, showPage: { type: Boolean, default: !0 }, showIndex: { type: Boolean, default: !0 }, pageSize: { type: Number, default: 30 }, pageSizes: { type: Array, default: () => [10, 30, 50] }, total: { type: Number }, columnEmptyText: { type: String, default: "-" }, isLoading: { type: Boolean } }, emits: ["update"], setup(n, { emit: t }) {
|
|
32450
32450
|
const e = Ia(), o = n, a = ye(null), r = ie(() => o.total || o.data.length), i = ye(o.pageSize), s = t, l = ye([]);
|
|
32451
32451
|
ut(() => o.columns, () => {
|
|
32452
32452
|
l.value = o.columns.map((_) => {
|
|
@@ -32474,7 +32474,7 @@ const tne = P({ name: "OInput" }), nne = P({ ...tne, props: { modelValue: { requ
|
|
|
32474
32474
|
const w = ie(() => o.isLoading === !0 ? "" : "暂无数据"), b = ie(() => e.hasOwnProperty("empty-text") ? e["empty-text"] : e.hasOwnProperty("emptyText") ? e.emptyText : w.value);
|
|
32475
32475
|
return (_, S) => {
|
|
32476
32476
|
const A = Be("el-table-column"), M = Be("el-button"), C = Be("el-dropdown-item"), I = Be("el-dropdown-menu"), T = Be("el-dropdown"), D = Be("el-table"), N = Be("el-pagination");
|
|
32477
|
-
return E(), B("div", Nne, [$e(D, Ve({ data: o.data, ref_key: "tableRef", ref: a, "header-cell-style": { background: "#f7f8fa", color: "rgba(39,48,75,0.85)", height: "50px", textAlign: "center", ..._.$attrs["header-cell-style"] || {} }, "empty-text": b.value }, { stripe: !0, border: !0, ..._.$attrs }), { default: he(() => [be(_.$slots, "default", {}, void 0, !0), n.showIndex ? (E(), ve(A, { key: 0, type: "index", width: "60", align: "center", index: f }, { header: he(({ column: O }) => [One]), _: 1 })) : Oe("", !0), (E(!0), B(gt, null, un(l.value, (O, z) => {
|
|
32477
|
+
return E(), B("div", Nne, [$e(D, Ve({ data: o.data, ref_key: "tableRef", ref: a, "header-cell-style": { background: "#f7f8fa", color: "rgba(39,48,75,0.85)", height: "50px", textAlign: "center", ..._.$attrs["custom-header-cell-style"] || {} }, "empty-text": b.value }, { stripe: !0, border: !0, ..._.$attrs }), { default: he(() => [be(_.$slots, "default", {}, void 0, !0), n.showIndex ? (E(), ve(A, { key: 0, type: "index", width: "60", align: "center", index: f }, { header: he(({ column: O }) => [One]), _: 1 })) : Oe("", !0), (E(!0), B(gt, null, un(l.value, (O, z) => {
|
|
32478
32478
|
return E(), B(gt, { key: z }, [h(O.isShowColumn, O, z) ? (E(), B(gt, { key: 0 }, [O.type ? (E(), ve(A, Ve({ key: O.type }, { align: "center", ...O }), null, 16)) : O.baseBtns && O.baseBtns.length > 0 ? (E(), ve(A, ns(Ve({ key: 1 }, { fixed: "right", width: (V = O.baseBtns, R = O.hideBtns, 26 + 36 * (V.length + (R.length === 0 ? 0 : 1)) + "px"), ...O })), { default: he((H) => [d(O.isShow, H.row, H) ? (E(), B(gt, { key: 0 }, [(E(!0), B(gt, null, un(O.baseBtns, (F, G) => (E(), B(gt, { key: G }, [d(F.isShow, H.row, H) ? (E(), B(gt, { key: 0 }, [F.useSlot ? be(_.$slots, F.prop, { key: 0, row: H.row, scope: H, value: H.row[F.prop] }, void 0, !0) : F.render ? (E(), ve(c7, { key: 1, render: F.render, row: H.row, scope: H, value: H.row[F.prop] }, null, 8, ["render", "row", "scope", "value"])) : p(F.reConfirm, H.row, H) ? (E(), ve(Y(ok), { key: 2, trigger: "click", title: F.title ?? "确定删除吗?", onConfirm: (X) => {
|
|
32479
32479
|
var q;
|
|
32480
32480
|
return (q = F.handler) == null ? void 0 : q.call(F, H.row, H);
|
|
@@ -32491,7 +32491,7 @@ const tne = P({ name: "OInput" }), nne = P({ ...tne, props: { modelValue: { requ
|
|
|
32491
32491
|
var V, R;
|
|
32492
32492
|
}), 128))]), _: 3 }, 16, ["data", "header-cell-style", "empty-text"]), n.showPage ? (E(), B("div", Pne, [k("div", Rne, [k("div", Hne, [Fne, k("span", Gne, je(r.value), 1), Wne]), $e(N, { class: "tab_pagination", background: "", "current-page": g.value, "page-size": i.value, "page-sizes": n.pageSizes, layout: "prev, pager, next, sizes, jumper", total: r.value, onSizeChange: v, onCurrentChange: y }, null, 8, ["current-page", "page-size", "page-sizes", "total"])])])) : Oe("", !0)]);
|
|
32493
32493
|
};
|
|
32494
|
-
} }), Yne = pt(mt(jne, [["__scopeId", "data-v-
|
|
32494
|
+
} }), Yne = pt(mt(jne, [["__scopeId", "data-v-7398a6ed"]])), Xne = { class: "tabs-box" }, Zne = P({ name: "OTabs" }), qne = P({ ...Zne, props: { modelValue: { type: String }, options: { type: Array, default: () => [] }, label: { type: String, default: "label" }, value: { type: String, default: "value" }, subAttrs: { type: Object, default: () => {
|
|
32495
32495
|
} } }, emits: ["update:modelValue"], setup(n, { emit: t }) {
|
|
32496
32496
|
const e = n, o = t, a = ie({ get: () => {
|
|
32497
32497
|
var r;
|
|
@@ -33936,7 +33936,7 @@ const Boe = P({ name: "OText" }), Poe = P({ ...Boe, props: { lineClamp: { type:
|
|
|
33936
33936
|
} }), uae = pt(mt(cae, [["__scopeId", "data-v-f4696737"]]));
|
|
33937
33937
|
qe([AC, wC, dC, $I, tT, Qg, oT, cv, aT, iT, hT, yT, Jl, _T, bT, AT, IT, TT, DT, NT, zT, Ey, Ny, HT, Oy, zy, FT, WT, GT]);
|
|
33938
33938
|
const dae = { key: 1, class: "vChart-box" }, pae = P({ name: "OCountBar" }), hae = P({ ...pae, props: { data: { type: Array, default: () => [] } }, setup(n) {
|
|
33939
|
-
const t = Oh(() => import("./index-
|
|
33939
|
+
const t = Oh(() => import("./index-e6bhPEfD.js")), e = n, o = ye(), a = ye(!1);
|
|
33940
33940
|
let r = { tooltip: { trigger: "axis", axisPointer: { type: "shadow" }, formatter: (i) => {
|
|
33941
33941
|
const s = i[0];
|
|
33942
33942
|
return `${s.name}: ${Yt(s.value)}个 <br> 总大小: ${no(i[1].value)}`;
|
|
@@ -33953,7 +33953,7 @@ const dae = { key: 1, class: "vChart-box" }, pae = P({ name: "OCountBar" }), hae
|
|
|
33953
33953
|
return a.value ? (E(), ve(l, { key: 0, class: "h-100%" })) : (E(), B("div", dae, [$e(Y(t), { class: "calc-height", option: o.value, autoresize: "" }, null, 8, ["option"])]));
|
|
33954
33954
|
};
|
|
33955
33955
|
} }), fae = pt(mt(hae, [["__scopeId", "data-v-b4162366"]])), mae = { key: 1, class: "vChart-box" }, gae = P({ name: "OCountBarOld" }), vae = P({ ...gae, props: { data: { type: Array, default: () => [] } }, setup(n) {
|
|
33956
|
-
const t = Oh(() => import("./index-
|
|
33956
|
+
const t = Oh(() => import("./index-e6bhPEfD.js")), e = n, o = ye(), a = ye(!1);
|
|
33957
33957
|
let r = { tooltip: { trigger: "axis", formatter: (i) => {
|
|
33958
33958
|
const s = i[0];
|
|
33959
33959
|
return `${s.name}: ${Yt(s.value)}个 <br> 总大小: ${no(i[1].value)}`;
|
|
@@ -33978,7 +33978,7 @@ const dae = { key: 1, class: "vChart-box" }, pae = P({ name: "OCountBar" }), hae
|
|
|
33978
33978
|
const t = n;
|
|
33979
33979
|
return (e, o) => (E(), B("div", Aae, [be(e.$slots, "default", {}, void 0, !0)]));
|
|
33980
33980
|
} }), Iae = pt(mt(Cae, [["__scopeId", "data-v-2148646d"]])), Tae = P({ name: "OObjectLine" }), Dae = P({ ...Tae, name: "OObjectLine", props: { objectCount: { type: Array, default: () => [] }, objectSize: { type: Array, default: () => [] } }, emits: ["dateChange"], setup(n, { expose: t, emit: e }) {
|
|
33981
|
-
const { proxy: o } = Et(), a = ye(null), r = n, i = ["
|
|
33981
|
+
const { proxy: o } = Et(), a = ye(null), r = n, i = ["rgb(167, 224, 211)", "rgb(154, 184, 191)"], s = ye([]), l = ye([]), c = ye([new Date((/* @__PURE__ */ new Date()).toLocaleDateString()).getTime() - 25056e5, (/* @__PURE__ */ new Date()).getTime()]), u = ye(0), d = (h) => {
|
|
33982
33982
|
let f = no(h.max), [m, g] = f.split(" "), v = function(x) {
|
|
33983
33983
|
return x <= 10 ? Math.ceil(x) : x <= 100 ? 10 * Math.ceil(x / 10) : 100 * Math.ceil(x / 100);
|
|
33984
33984
|
}(m), y = Ch(v + " " + g);
|
|
@@ -33999,7 +33999,7 @@ const dae = { key: 1, class: "vChart-box" }, pae = P({ name: "OCountBar" }), hae
|
|
|
33999
33999
|
} } }, yAxis: [{ type: "value", axisLine: { show: !1 }, splitLine: { show: !1 }, minInterval: 1, axisLabel: { color: "#8e97ae", formatter: (v) => {
|
|
34000
34000
|
var y;
|
|
34001
34001
|
return (y = v) >= 1e12 ? Yt(y / 1e12) + "兆" : y >= 1e8 ? Yt(y / 1e8) + "亿" : y >= 1e4 ? Yt(y / 1e4) + "万" : Yt(y);
|
|
34002
|
-
}, hideOverlap: !0 } }, { type: "value", position: "right", splitLine: { show: !1 }, minInterval: 1, interval: u.value, max: d, axisLabel: { color: "#8e97ae", formatter: (v) => no(v) } }], blendMode: "
|
|
34002
|
+
}, hideOverlap: !0 } }, { type: "value", position: "right", splitLine: { show: !1 }, minInterval: 1, interval: u.value, max: d, axisLabel: { color: "#8e97ae", formatter: (v) => no(v) } }], blendMode: "multiply", series: [{ name: "数量", type: "line", stack: "Total", smooth: !0, showSymbol: !1, lineStyle: { color: i[0], width: 1 }, areaStyle: { color: i[0] }, emphasis: { focus: "series" }, data: (f = (h = s.value) == null ? void 0 : h[0]) == null ? void 0 : f.timeValue.map((v) => Number(v.value)) }, { yAxisIndex: 1, name: "大小", type: "line", stack: "Total", smooth: !0, showSymbol: !1, lineStyle: { width: 1, color: i[1] }, areaStyle: { color: i[1] }, emphasis: { focus: "series" }, data: (g = (m = l.value) == null ? void 0 : m[0]) == null ? void 0 : g.timeValue.map((v) => Number(v.value)) }] };
|
|
34003
34003
|
});
|
|
34004
34004
|
return ut([() => r.objectCount, () => r.objectSize], ([h, f]) => {
|
|
34005
34005
|
s.value = h, l.value = f;
|
|
@@ -34029,7 +34029,7 @@ const dae = { key: 1, class: "vChart-box" }, pae = P({ name: "OCountBar" }), hae
|
|
|
34029
34029
|
return E(), ve(l, { class: "h-100%" }, { default: he(() => [$e(s, { class: "w-100%" }, { default: he(() => [(E(!0), B(gt, null, un(o.value, (c, u) => (E(), ve(i, { key: u, label: c.label, value: c.value, style: Lt({ 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", Rae, [k("img", { src: c.src, class: "po-r", useResize: !0 }, null, 8, Hae)])]), _: 2 }, 1032, ["label", "value", "style", "labelStyle", "valueStyle"]))), 128))]), _: 1 })]), _: 1 });
|
|
34030
34030
|
};
|
|
34031
34031
|
} }), Gae = pt(mt(Fae, [["__scopeId", "data-v-203686cc"]])), Wae = { key: 1, class: "vChart-box" }, Uae = 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) {
|
|
34032
|
-
const t = Oh(() => import("./index-
|
|
34032
|
+
const t = Oh(() => import("./index-e6bhPEfD.js")), { proxy: e } = Et(), o = n, a = ye(!1), r = ye();
|
|
34033
34033
|
ye([]);
|
|
34034
34034
|
const i = ye(0), s = ye(0);
|
|
34035
34035
|
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) {
|
|
@@ -34056,7 +34056,7 @@ ${o.text}`;
|
|
|
34056
34056
|
};
|
|
34057
34057
|
} }), jae = pt(mt(Uae, [["__scopeId", "data-v-d220cfdc"]])), Ak = (n) => (Eh("data-v-0ed7c01a"), n = n(), Nh(), n), Yae = { class: "vChart-box" }, Xae = { class: "f w-100% list-container" }, Zae = { class: "list" }, qae = Ak(() => k("div", null, "使用量", -1)), Qae = { class: "num" }, Kae = { class: "list" }, Jae = Ak(() => k("div", null, "总量", -1)), $ae = { class: "num" }, ere = P({ name: "OUsedPie" }), tre = P({ ...ere, props: { used: { type: [Number, String], default: 0 }, total: { type: [Number, String], default: 0 }, options: { type: Object, default: () => {
|
|
34058
34058
|
} } }, setup(n) {
|
|
34059
|
-
const t = Oh(() => import("./index-
|
|
34059
|
+
const t = Oh(() => import("./index-e6bhPEfD.js")), e = n, o = ye(), a = ye("0%");
|
|
34060
34060
|
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) {
|
|
34061
34061
|
return i.name === "使用量" ? Cu("--blue") : Cu("--green");
|
|
34062
34062
|
} }, 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-
|
|
2
|
+
import { i as ie, t as le } from "./index-DcGFxvYI.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 f, G as l, b as p, D as c, E as d, j as u, r as y, I as v, x as S, h, g as T, l as b, J as x, e as B, y as E, 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-
|
|
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 f, G as l, b as p, D as c, E as d, j as u, r as y, I as v, x as S, h, g as T, l as b, J as x, e as B, y as E, 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-DcGFxvYI.js";
|
|
2
2
|
export {
|
|
3
3
|
e as $toast,
|
|
4
4
|
t as OSvg,
|