oeos-components 0.2.88 → 0.2.89
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.
|
@@ -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-864UQKBE.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() {
|
|
@@ -32197,7 +32197,7 @@ const ate = Object.freeze(Object.defineProperty({ __proto__: null, $toast: Rn, a
|
|
|
32197
32197
|
e.component(o.name, o);
|
|
32198
32198
|
for (const [o, a] of Object.entries(zD))
|
|
32199
32199
|
e.component(`el-icon-${x1(o)}`, a);
|
|
32200
|
-
}, n))(gt(Qte, [["__scopeId", "data-v-
|
|
32200
|
+
}, n))(gt(Qte, [["__scopeId", "data-v-dc1b1e4d"]])), Kte = ["src"], Jte = P({ name: "OForm" }), $te = P({ ...Jte, props: { fieldList: { type: Object, required: !0 }, model: { type: Object, required: !0 } }, setup(n, { expose: t }) {
|
|
32201
32201
|
const e = (i) => {
|
|
32202
32202
|
if (i.comp && typeof i.comp == "string") {
|
|
32203
32203
|
if (i.comp.includes("input"))
|
|
@@ -32291,7 +32291,7 @@ const nne = P({ name: "OInput" }), one = P({ ...nne, props: { modelValue: { requ
|
|
|
32291
32291
|
var S;
|
|
32292
32292
|
}), onMouseover: v[4] || (v[4] = (_) => c(_)) }), Ap({ default: he(() => [be(g.$slots, "default", {}, void 0, !0)]), _: 2 }, [g.$attrs.title ? { name: "prepend", fn: he(() => [k("div", { style: Lt({ ...s.value }), class: "o-input__title" }, Ue(g.$attrs.title), 5)]), key: "0" } : void 0, g.$slots.prefix ? { name: "prefix", fn: he(() => [be(g.$slots, "prefix", {}, void 0, !0)]), key: "1" } : void 0, g.$slots.suffix ? { name: "suffix", fn: he(() => [be(g.$slots, "suffix", {}, void 0, !0)]), key: "2" } : void 0, g.$slots.append ? { name: "append", fn: he(() => [be(g.$slots, "append", {}, void 0, !0)]), key: "3" } : void 0, g.$slots.prepend ? { name: "prepend", fn: he(() => [be(g.$slots, "prepend", {}, void 0, !0)]), key: "4" } : void 0]), 1040, ["modelValue", "placeholder", "showPassword", "class", "maxlength", "show-word-limit"]))])]), _: 3 }, 16, ["content", "disabled"]), n.content ? (L(), me(b, Be({ key: 0, class: "o-input__icon" }, { name: "warning", color: "#DCDEE0", size: "16px", ...e.iconAttrs }, { content: n.content }), null, 16, ["content"])) : Oe("", !0), g.$attrs.type === "textarea" && Y(r) && g.$attrs.disabled !== !0 && g.$attrs.disabled !== "" ? (L(), me(b, { key: 1, name: "circle-close", class: "o-input__clear", onClick: d })) : Oe("", !0)], 16);
|
|
32293
32293
|
};
|
|
32294
|
-
} }), ok = pt(gt(one, [["__scopeId", "data-v-
|
|
32294
|
+
} }), ok = pt(gt(one, [["__scopeId", "data-v-ea9c5e76"]])), ane = { class: "o-input-box cl-blue" }, rne = { class: "o-input-box__content" }, ine = { key: 0, class: "spanclose", style: { cursor: "not-allowed" } }, sne = ["onClick"], lne = P({ name: "OInputLabel" }), cne = P({ ...lne, props: { modelValue: { type: Array, default: () => [] }, isComplex: { type: Boolean, default: !1 }, regexp: { tupe: RegExp, default: "" }, message: { tupe: String, default: "输入有误" }, inputAttrs: { type: Object, default: () => ({}) } }, emits: ["update:modelValue"], setup(n, { expose: t, emit: e }) {
|
|
32295
32295
|
const o = ye(""), a = ye([]), r = n, i = e;
|
|
32296
32296
|
function s() {
|
|
32297
32297
|
var u;
|
|
@@ -32446,7 +32446,7 @@ const nne = P({ name: "OInput" }), one = P({ ...nne, props: { modelValue: { requ
|
|
|
32446
32446
|
const s = ze("el-switch");
|
|
32447
32447
|
return L(), me(s, Be(r.$attrs, { "inline-prompt": "", class: "o-custom-switch", loading: o.value, "before-change": a }), null, 16, ["loading"]);
|
|
32448
32448
|
};
|
|
32449
|
-
} }), Nne = pt(gt(Ene, [["__scopeId", "data-v-d2c75b49"]])), u7 = 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) }), l3 = (n) => (Eh("data-v-
|
|
32449
|
+
} }), Nne = pt(gt(Ene, [["__scopeId", "data-v-d2c75b49"]])), u7 = 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) }), l3 = (n) => (Eh("data-v-80b12db7"), n = n(), Nh(), n), One = { class: "o-table" }, zne = l3(() => k("span", null, "序号", -1)), Vne = ["onClick"], Bne = { key: 2 }, Pne = { key: 3 }, Rne = { key: 0, style: { height: "64px" } }, Hne = { class: "page-wrap" }, Fne = { class: "page-left" }, Gne = l3(() => k("span", null, "共", -1)), Wne = { class: "m-lr-5" }, jne = l3(() => k("span", null, "项数据", -1)), Une = P({ name: "OTable" }), Yne = 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((_) => {
|
|
@@ -32475,7 +32475,7 @@ const nne = P({ name: "OInput" }), one = P({ ...nne, props: { modelValue: { requ
|
|
|
32475
32475
|
return (_, S) => {
|
|
32476
32476
|
const A = ze("el-table-column"), M = ze("el-button"), C = ze("el-dropdown-item"), I = ze("el-dropdown-menu"), T = ze("el-dropdown"), D = ze("el-table"), N = ze("el-pagination");
|
|
32477
32477
|
return L(), B("div", One, [$e(D, Be({ 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 ? (L(), me(A, { key: 0, type: "index", width: "60", align: "center", index: f }, { header: he(({ column: O }) => [zne]), _: 1 })) : Oe("", !0), (L(!0), B(ft, null, on(l.value, (O, z) => {
|
|
32478
|
-
return L(), B(ft, { key: z }, [h(O.isShowColumn, O, z) ? (L(), B(ft, { key: 0 }, [O.type ? (L(), me(A, Be({ key: O.type }, { align: "center", ...O }), null, 16)) : O.baseBtns && O.baseBtns.length > 0 ? (L(), me(A, ns(Be({ key: 1 }, { fixed: "right", width: (V = O.baseBtns, R = O.hideBtns,
|
|
32478
|
+
return L(), B(ft, { key: z }, [h(O.isShowColumn, O, z) ? (L(), B(ft, { key: 0 }, [O.type ? (L(), me(A, Be({ key: O.type }, { align: "center", ...O }), null, 16)) : O.baseBtns && O.baseBtns.length > 0 ? (L(), me(A, ns(Be({ key: 1 }, { fixed: "right", width: (V = O.baseBtns, R = O.hideBtns, 32 + 30 * (V.length + (R.length === 0 ? 0 : 1)) + "px"), ...O })), { default: he((H) => [d(O.isShow, H.row, H) ? (L(), B(ft, { key: 0 }, [(L(!0), B(ft, null, on(O.baseBtns, (F, G) => (L(), B(ft, { key: G }, [d(F.isShow, H.row, H) ? (L(), B(ft, { 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 ? (L(), me(u7, { 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) ? (L(), me(Y(ak), { 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);
|
|
32481
32481
|
}, class: "f-st-ct" }, { default: he(() => [F.comp ? (L(), me(Ht(F.comp), Be({ key: 0, class: "mlr cp" }, F.attrs, { disabled: u(F.disabled, H.row, H) }), null, 16, ["disabled"])) : (L(), me(M, Be({ key: 1 }, { ...F }, { link: "", class: "hide-btns-button", disabled: u(F.disabled, H.row, H) }), { default: he(() => [At(Ue(c(F.content, H.row, H)), 1)]), _: 2 }, 1040, ["disabled"]))]), _: 2 }, 1032, ["title", "onConfirm"])) : F.comp ? (L(), me(Ht(F.comp), Be({ key: 3, class: "mlr cp" }, F.attrs, { disabled: u(F.disabled, H.row, H), onClick: (X) => ((q, j, Z, J) => {
|
|
@@ -32483,7 +32483,7 @@ const nne = P({ name: "OInput" }), one = P({ ...nne, props: { modelValue: { requ
|
|
|
32483
32483
|
})(F.handler, H.row, H, X) }), null, 16, ["disabled", "onClick"])) : (L(), me(M, Be({ key: 4 }, { ...F }, { link: "", disabled: u(F.disabled, H.row, H), class: "hide-btns-button", onClick: xo((X) => {
|
|
32484
32484
|
var q;
|
|
32485
32485
|
return (q = F.handler) == null ? void 0 : q.call(F, H.row, H);
|
|
32486
|
-
}, ["stop"]) }), { default: he(() => [At(Ue(c(F.content, H.row, H)), 1)]), _: 2 }, 1040, ["disabled", "onClick"]))], 64)) : Oe("", !0)], 64))), 128)), O.hideBtns.length > 0 ? (L(), me(T, { key: 0, class: "", trigger: "click" }, { dropdown: he(() => [$e(I, { "hide-on-click": !1 }, { default: he(() => [(L(!0), B(ft, null, on(O.hideBtns, (F, G) => (L(), B(ft, { key: G }, [d(F.isShow, H.row, H) ? (L(), me(C, { key: 0, "hide-on-click": !1, onClick: (X) => {
|
|
32486
|
+
}, ["stop"]) }), { default: he(() => [At(Ue(c(F.content, H.row, H)), 1)]), _: 2 }, 1040, ["disabled", "onClick"]))], 64)) : Oe("", !0)], 64))), 128)), O.hideBtns.length > 0 ? (L(), me(T, { key: 0, class: "ml", trigger: "click" }, { dropdown: he(() => [$e(I, { "hide-on-click": !1 }, { default: he(() => [(L(!0), B(ft, null, on(O.hideBtns, (F, G) => (L(), B(ft, { key: G }, [d(F.isShow, H.row, H) ? (L(), me(C, { key: 0, "hide-on-click": !1, onClick: (X) => {
|
|
32487
32487
|
var q;
|
|
32488
32488
|
return (q = F.handler) == null ? void 0 : q.call(F, H.row, H);
|
|
32489
32489
|
} }, { default: he(() => [F.useSlot ? be(_.$slots, F.prop, { key: 0, row: H.row, scope: H, value: H.row[F.prop] }, void 0, !0) : F.render ? (L(), me(u7, { key: 1, render: F.render, row: H.row, scope: H, value: H.row[F.prop] }, null, 8, ["render", "row", "scope", "value"])) : (L(), B(ft, { key: 2 }, [F.comp ? (L(), me(Ht(F.comp), Be({ key: 0 }, F.attrs, { disabled: u(F.disabled, H.row, H) }), null, 16, ["disabled"])) : (L(), me(M, Be({ key: 1 }, { ...F }, { link: "", class: "hide-btns-button", disabled: u(F.disabled, H.row, H) }), { default: he(() => [At(Ue(c(F.content, H.row, H)), 1)]), _: 2 }, 1040, ["disabled"]))], 64))]), _: 2 }, 1032, ["onClick"])) : Oe("", !0)], 64))), 128))]), _: 2 }, 1024)]), default: he(() => [$e(Y(b0), { name: "more", onClick: S[0] || (S[0] = xo(() => {
|
|
@@ -32491,7 +32491,7 @@ const nne = P({ name: "OInput" }), one = P({ ...nne, props: { modelValue: { requ
|
|
|
32491
32491
|
var V, R;
|
|
32492
32492
|
}), 128))]), _: 3 }, 16, ["data", "header-cell-style", "empty-text"]), n.showPage ? (L(), B("div", Rne, [k("div", Hne, [k("div", Fne, [Gne, k("span", Wne, Ue(r.value), 1), jne]), $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
|
-
} }), Xne = pt(gt(Yne, [["__scopeId", "data-v-
|
|
32494
|
+
} }), Xne = pt(gt(Yne, [["__scopeId", "data-v-80b12db7"]])), Zne = { class: "tabs-box" }, qne = P({ name: "OTabs" }), Qne = P({ ...qne, 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 Poe = P({ name: "OText" }), Roe = P({ ...Poe, props: { lineClamp: { type:
|
|
|
33936
33936
|
} }), dae = pt(gt(uae, [["__scopeId", "data-v-f4696737"]]));
|
|
33937
33937
|
qe([MC, _C, pC, eT, nT, Qg, aT, cv, rT, sT, fT, xT, $l, bT, ST, MT, TT, DT, kT, OT, VT, Ny, Oy, FT, zy, Vy, GT, jT, WT]);
|
|
33938
33938
|
const pae = { key: 1, class: "vChart-box" }, hae = P({ name: "OCountBar" }), fae = P({ ...hae, props: { data: { type: Array, default: () => [] } }, setup(n) {
|
|
33939
|
-
const t = Oh(() => import("./index-
|
|
33939
|
+
const t = Oh(() => import("./index-0Voc9x-1.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)}`;
|
|
@@ -33956,7 +33956,7 @@ const pae = { key: 1, class: "vChart-box" }, hae = P({ name: "OCountBar" }), fae
|
|
|
33956
33956
|
return a.value ? (L(), me(l, { key: 0, class: "h-100%" })) : (L(), B("div", pae, [$e(Y(t), { class: "calc-height", option: o.value, autoresize: "" }, null, 8, ["option"])]));
|
|
33957
33957
|
};
|
|
33958
33958
|
} }), mae = pt(gt(fae, [["__scopeId", "data-v-33ccc6e4"]])), gae = { key: 1, class: "vChart-box" }, vae = P({ name: "OCountBarOld" }), yae = P({ ...vae, props: { data: { type: Array, default: () => [] } }, setup(n) {
|
|
33959
|
-
const t = Oh(() => import("./index-
|
|
33959
|
+
const t = Oh(() => import("./index-0Voc9x-1.js")), e = n, o = ye(), a = ye(!1);
|
|
33960
33960
|
let r = { tooltip: { trigger: "axis", formatter: (i) => {
|
|
33961
33961
|
const s = i[0];
|
|
33962
33962
|
return `${s.name}: ${Yt(s.value)}个 <br> 总大小: ${no(i[1].value)}`;
|
|
@@ -34036,7 +34036,7 @@ function Jv(n, t) {
|
|
|
34036
34036
|
return n.dataIndex === 0 ? parseInt(t) > 100 ? gl("--red") : gl("--blue") : gl("--green");
|
|
34037
34037
|
}
|
|
34038
34038
|
const Uae = { key: 1, class: "vChart-box" }, Yae = 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) {
|
|
34039
|
-
const t = Oh(() => import("./index-
|
|
34039
|
+
const t = Oh(() => import("./index-0Voc9x-1.js")), { proxy: e } = Et(), o = n, a = ye(!1), r = ye();
|
|
34040
34040
|
ye([]);
|
|
34041
34041
|
const i = ye(0), s = ye(0), l = ye("0%");
|
|
34042
34042
|
let c = { 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: (u) => Jv(u, l.value) }, data: [] }], graphic: { type: "text", left: "center", top: "center", style: { text: ie(() => {
|
|
@@ -34067,7 +34067,7 @@ ${o.text}`;
|
|
|
34067
34067
|
};
|
|
34068
34068
|
} }), Xae = pt(gt(Yae, [["__scopeId", "data-v-b7ea4efd"]])), Mk = (n) => (Eh("data-v-d886d366"), n = n(), Nh(), n), Zae = { class: "vChart-box" }, qae = { class: "f w-100% list-container" }, Qae = { class: "list" }, Kae = Mk(() => k("div", null, "使用量", -1)), Jae = { class: "num" }, $ae = { class: "list" }, ere = Mk(() => k("div", null, "总量", -1)), tre = { class: "num" }, nre = P({ name: "OUsedPie" }), ore = P({ ...nre, props: { used: { type: [Number, String], default: 0 }, total: { type: [Number, String], default: 0 }, options: { type: Object, default: () => {
|
|
34069
34069
|
} } }, setup(n) {
|
|
34070
|
-
const t = Oh(() => import("./index-
|
|
34070
|
+
const t = Oh(() => import("./index-0Voc9x-1.js")), e = n, o = ye(), a = ye("0%");
|
|
34071
34071
|
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) => Jv(i, a.value) }, label: { show: !1, position: "outside", formatter: function(i) {
|
|
34072
34072
|
i.name, i.value;
|
|
34073
34073
|
let { value: s, name: l } = i.data, c = no(s);
|
|
@@ -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-864UQKBE.js";
|
|
2
2
|
export {
|
|
3
3
|
e as $toast,
|
|
4
4
|
t as OSvg,
|