oeos-components 0.3.49 → 0.3.52
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.
|
@@ -32784,9 +32784,9 @@ const Dne = R({ name: "OInput" }), kne = R({ ...Dne, props: { modelValue: { requ
|
|
|
32784
32784
|
const u = n;
|
|
32785
32785
|
return t({ close: l }), (d, p) => {
|
|
32786
32786
|
const h = ze("el-button"), f = ze("el-popover");
|
|
32787
|
-
return u.reConfirm ? (L(), me(f, Oe({ key: 0, class: "o-popconfirm", title: u.title, width: u.width }, d.$attrs, { onShow: a, visible: o.value, "onUpdate:visible": p[0] || (p[0] = (m) => o.value = m) }), { reference: he(() => [be(d.$slots, "default", {}, void 0, !0)]), default: he(() => [be(d.$slots, "content", {}, () => [k("div", Rne, Ge(u.content), 1)], !0), k("div", Pne, [be(d.$slots, "footer", {}, () => [qe(h, { size: "small", type: "info", onClick: c }, { default: he(() => [At("取消")]), _: 1 }), qe(h, { size: "small", type: "primary", onClick: s }, { default: he(() => [At("确定")]), _: 1 })], !0)])]), _: 3 }, 16, ["title", "width", "visible"])) : (
|
|
32787
|
+
return u.reConfirm ? (L(), me(f, Oe({ key: 0, class: "o-popconfirm", title: u.title, width: u.width }, d.$attrs, { onShow: a, visible: o.value, "onUpdate:visible": p[0] || (p[0] = (m) => o.value = m) }), { reference: he(() => [be(d.$slots, "default", {}, void 0, !0)]), default: he(() => [be(d.$slots, "content", {}, () => [k("div", Rne, Ge(u.content), 1)], !0), k("div", Pne, [be(d.$slots, "footer", {}, () => [qe(h, { size: "small", type: "info", onClick: c }, { default: he(() => [At("取消")]), _: 1 }), qe(h, { size: "small", type: "primary", onClick: s }, { default: he(() => [At("确定")]), _: 1 })], !0)])]), _: 3 }, 16, ["title", "width", "visible"])) : be(d.$slots, "default", { key: 1 }, void 0, !0);
|
|
32788
32788
|
};
|
|
32789
|
-
} }), YD = dt(vt(Hne, [["__scopeId", "data-v-
|
|
32789
|
+
} }), YD = dt(vt(Hne, [["__scopeId", "data-v-48d423e5"]])), Fne = { class: "o-progress" }, Gne = R({ name: "OProgress" }), Wne = R({ ...Gne, props: { percentage: { type: Number, required: !0 }, animationTime: { type: Number, default: 500 }, isAnimation: { type: Boolean, default: !0 } }, setup(n) {
|
|
32790
32790
|
const t = n, e = { "stroke-width": 16 }, o = fe(0), a = (r) => r < 30 ? "#909399" : r < 70 ? "#e6a23c" : "#67c23a";
|
|
32791
32791
|
return ut(() => t.percentage, (r) => {
|
|
32792
32792
|
t.isAnimation && (() => {
|
|
@@ -32882,7 +32882,7 @@ const Dne = R({ name: "OInput" }), kne = R({ ...Dne, props: { modelValue: { requ
|
|
|
32882
32882
|
const s = ze("el-switch");
|
|
32883
32883
|
return L(), me(s, Oe(r.$attrs, { "inline-prompt": "", class: "o-custom-switch", loading: o.value, "before-change": a }), null, 16, ["loading"]);
|
|
32884
32884
|
};
|
|
32885
|
-
} }), ioe = dt(vt(roe, [["__scopeId", "data-v-d2c75b49"]])), tS = R({ 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) }), p3 = (n) => (kh("data-v-
|
|
32885
|
+
} }), ioe = dt(vt(roe, [["__scopeId", "data-v-d2c75b49"]])), tS = R({ 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) }), p3 = (n) => (kh("data-v-2de4d814"), n = n(), Lh(), n), soe = { class: "o-table" }, loe = p3(() => k("span", null, "序号", -1)), coe = ["onClick"], uoe = { key: 2 }, doe = { key: 3 }, poe = { key: 0, style: { height: "64px" } }, hoe = { class: "page-wrap" }, foe = { class: "page-left" }, moe = p3(() => k("span", null, "共", -1)), goe = { class: "m-lr-5" }, voe = p3(() => k("span", null, "项数据", -1)), yoe = R({ name: "OTable" }), xoe = R({ ...yoe, props: { data: { type: Array, default: () => [] }, columns: { type: Array, default: () => [] }, showPage: { type: Boolean, default: !0 }, showIndex: { type: Boolean, default: !0 }, pageSize: { type: Number, default: 30 }, pageNumber: { type: Number, default: 1 }, pageSizes: { type: Array, default: () => [10, 30, 50] }, total: { type: Number }, columnEmptyText: { type: String, default: "-" }, isLoading: { type: Boolean }, indexAttrs: { type: Object, default: () => {
|
|
32886
32886
|
} }, asyncUpdate: { type: Boolean, default: !1 } }, emits: ["update"], setup(n, { emit: t }) {
|
|
32887
32887
|
const e = Ia(), o = n, a = fe(null), r = ae(() => o.total || o.data.length), i = fe(o.pageSize), s = fe(o.pageNumber), l = t, c = fe([]);
|
|
32888
32888
|
ut(() => o.columns, () => {
|
|
@@ -32930,7 +32930,7 @@ const Dne = R({ name: "OInput" }), kne = R({ ...Dne, props: { modelValue: { requ
|
|
|
32930
32930
|
var O, P;
|
|
32931
32931
|
}), 128))]), _: 3 }, 16, ["data", "header-cell-style", "empty-text"]), n.showPage ? (L(), B("div", poe, [k("div", hoe, [k("div", foe, [moe, k("span", goe, Ge(r.value), 1), voe]), qe(E, { class: "tab_pagination", background: "", "current-page": s.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"])])])) : Ee("", !0)]);
|
|
32932
32932
|
};
|
|
32933
|
-
} }), woe = dt(vt(xoe, [["__scopeId", "data-v-
|
|
32933
|
+
} }), woe = dt(vt(xoe, [["__scopeId", "data-v-2de4d814"]])), boe = { class: "tabs-box" }, _oe = R({ name: "OTabs" }), Soe = R({ ..._oe, props: { modelValue: { type: String }, options: { type: Array, default: () => [] }, label: { type: String, default: "label" }, value: { type: String, default: "value" }, subAttrs: { type: Object, default: () => {
|
|
32934
32934
|
} } }, emits: ["update:modelValue"], setup(n, { emit: t }) {
|
|
32935
32935
|
const e = n, o = t, a = ae({ get: () => {
|
|
32936
32936
|
var r;
|
|
@@ -34456,7 +34456,7 @@ const mae = R({ name: "OText" }), gae = R({ ...mae, props: { lineClamp: { type:
|
|
|
34456
34456
|
} }), Fae = dt(vt(Hae, [["__scopeId", "data-v-60d77113"]]));
|
|
34457
34457
|
Ye([vM, hM, aM, UI, YI, $g, JI, pv, KI, $I, iT, dT, Kl, fT, mT, vT, wT, bT, _T, MT, TT, Py, Hy, ET, Fy, Gy, VT, OT, zT]);
|
|
34458
34458
|
const Gae = { key: 1, class: "vChart-box" }, Wae = R({ name: "OCountBar" }), Zae = R({ ...Wae, props: { data: { type: Array, default: () => [] } }, setup(n) {
|
|
34459
|
-
const t = Nh(() => import("./index-
|
|
34459
|
+
const t = Nh(() => import("./index-a0m73K82.js")), e = n, o = fe(), a = fe(!1);
|
|
34460
34460
|
let r = { tooltip: { trigger: "axis", axisPointer: { type: "shadow" }, formatter: (i) => {
|
|
34461
34461
|
const s = i[0];
|
|
34462
34462
|
return `${s.name}: ${mn(s.value)}个 <br> 总大小: ${Xo(i[1].value)}`;
|
|
@@ -34475,7 +34475,7 @@ const Gae = { key: 1, class: "vChart-box" }, Wae = R({ name: "OCountBar" }), Zae
|
|
|
34475
34475
|
return a.value ? (L(), me(l, { key: 0, class: "h-100%" })) : (L(), B("div", Gae, [qe(U(t), { class: "calc-height", option: o.value, autoresize: "" }, null, 8, ["option"])]));
|
|
34476
34476
|
};
|
|
34477
34477
|
} }), jae = dt(vt(Zae, [["__scopeId", "data-v-5787c7b8"]])), Uae = { key: 1, class: "vChart-box" }, Xae = R({ name: "OCountBarOld" }), Yae = R({ ...Xae, props: { data: { type: Array, default: () => [] } }, setup(n) {
|
|
34478
|
-
const t = Nh(() => import("./index-
|
|
34478
|
+
const t = Nh(() => import("./index-a0m73K82.js")), e = n, o = fe(), a = fe(!1);
|
|
34479
34479
|
let r = { tooltip: { trigger: "axis", formatter: (i) => {
|
|
34480
34480
|
const s = i[0];
|
|
34481
34481
|
return `${s.name}: ${mn(s.value)}个 <br> 总大小: ${Xo(i[1].value)}`;
|
|
@@ -34582,7 +34582,7 @@ function a4(n, t) {
|
|
|
34582
34582
|
return n.dataIndex === 0 ? parseInt(t) > 100 ? Or("--red") : Or("--blue") : Or("--green");
|
|
34583
34583
|
}
|
|
34584
34584
|
const xre = R({ 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) {
|
|
34585
|
-
const t = Nh(() => import("./index-
|
|
34585
|
+
const t = Nh(() => import("./index-a0m73K82.js")), e = n, o = fe(null), a = fe({ width: 0, height: 0 }), r = fe(!1), i = fe();
|
|
34586
34586
|
fe([]);
|
|
34587
34587
|
const s = fe(0), l = fe(0), c = fe("0%");
|
|
34588
34588
|
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: ["75%", "95%"], 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) => a4(p, c.value) }, data: [] }], graphic: { type: "text", left: "center", top: "center", style: { text: ae(() => {
|
|
@@ -34624,7 +34624,7 @@ ${e.text}`;
|
|
|
34624
34624
|
};
|
|
34625
34625
|
} }), wre = dt(vt(xre, [["__scopeId", "data-v-1a72eedc"]])), vk = (n) => (kh("data-v-8e59e54b"), n = n(), Lh(), n), bre = { class: "vChart-box" }, _re = { class: "f w-100% list-container" }, Sre = { class: "list" }, Are = vk(() => k("div", null, "使用量", -1)), Cre = { class: "num" }, Mre = { class: "list" }, Ire = vk(() => k("div", null, "总量", -1)), Tre = { class: "num" }, Dre = R({ name: "OUsedPie" }), kre = R({ ...Dre, props: { used: { type: [Number, String], default: 0 }, total: { type: [Number, String], default: 0 }, options: { type: Object, default: () => {
|
|
34626
34626
|
} } }, setup(n) {
|
|
34627
|
-
const t = Nh(() => import("./index-
|
|
34627
|
+
const t = Nh(() => import("./index-a0m73K82.js")), e = n, o = fe(), a = fe("0%");
|
|
34628
34628
|
let r = { tooltip: { trigger: "item", show: !1 }, series: [{ type: "pie", center: ["50%", "50%"], radius: ["65%", "85%"], clockwise: !0, avoidLabelOverlap: !0, hoverOffset: 15, itemStyle: { color: (i) => a4(i, a.value) }, label: { show: !1, position: "outside", formatter: function(i) {
|
|
34629
34629
|
i.name, i.value;
|
|
34630
34630
|
let { value: s, name: l } = i.data, c = Xo(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-BHHguglL.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-BHHguglL.js";
|
|
2
2
|
export {
|
|
3
3
|
t as $toast,
|
|
4
4
|
e as OSvg,
|