oeos-components 0.3.26 → 0.3.27

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.
@@ -33236,7 +33236,7 @@ const Uae = R({ name: "OInput" }), Xae = R({ ...Uae, props: { modelValue: { requ
33236
33236
  const s = Oe("el-switch");
33237
33237
  return L(), me(s, ze(a.$attrs, { "inline-prompt": "", class: "o-custom-switch", loading: o.value, "before-change": r }), null, 16, ["loading"]);
33238
33238
  };
33239
- } }), Cie = pt(vt(Aie, [["__scopeId", "data-v-d2c75b49"]])), DA = 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) }), t6 = (n) => (i2("data-v-b1d3ad3e"), n = n(), s2(), n), Mie = { class: "o-table" }, Iie = t6(() => k("span", null, "序号", -1)), Tie = ["onClick"], Die = { key: 2 }, kie = { key: 3 }, Lie = { key: 0, style: { height: "64px" } }, Eie = { class: "page-wrap" }, Vie = { class: "page-left" }, Nie = t6(() => k("span", null, "共", -1)), Oie = { class: "m-lr-5" }, zie = t6(() => k("span", null, "项数据", -1)), Bie = R({ name: "OTable" }), Rie = R({ ...Bie, 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: () => {
33239
+ } }), Cie = pt(vt(Aie, [["__scopeId", "data-v-d2c75b49"]])), DA = 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) }), t6 = (n) => (i2("data-v-9b7dcd8b"), n = n(), s2(), n), Mie = { class: "o-table" }, Iie = t6(() => k("span", null, "序号", -1)), Tie = ["onClick"], Die = { key: 2 }, kie = { key: 3 }, Lie = { key: 0, style: { height: "64px" } }, Eie = { class: "page-wrap" }, Vie = { class: "page-left" }, Nie = t6(() => k("span", null, "共", -1)), Oie = { class: "m-lr-5" }, zie = t6(() => k("span", null, "项数据", -1)), Bie = R({ name: "OTable" }), Rie = R({ ...Bie, 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: () => {
33240
33240
  } }, asyncUpdate: { type: Boolean, default: !1 } }, emits: ["update"], setup(n, { emit: t }) {
33241
33241
  const e = Er(), o = n, r = fe(null), a = ae(() => o.total || o.data.length), i = fe(o.pageSize), s = fe(o.pageNumber), l = t, c = fe([]);
33242
33242
  ut(() => o.columns, () => {
@@ -33268,15 +33268,15 @@ const Uae = R({ name: "OInput" }), Xae = R({ ...Uae, props: { modelValue: { requ
33268
33268
  return (b, S) => {
33269
33269
  const A = Oe("el-table-column"), C = Oe("el-button"), M = Oe("el-dropdown-item"), I = Oe("el-dropdown-menu"), T = Oe("el-dropdown"), D = Oe("el-table"), V = Oe("el-pagination");
33270
33270
  return L(), B("div", Mie, [Qe(D, ze({ ref_key: "tableRef", ref: r, data: o.data, "header-cell-style": { background: "#f7f8fa", color: "rgba(39,48,75,0.85)", height: "50px", textAlign: "center", ...b.$attrs["custom-header-cell-style"] || {} }, "empty-text": _.value }, { stripe: !0, border: !0, ...b.$attrs }), { default: he(() => [be(b.$slots, "default", {}, void 0, !0), n.showIndex ? (L(), me(A, ze({ key: 0, type: "index", width: o.total >= 1e4 ? 70 : 60, align: "center", index: m }, n.indexAttrs), { header: he(({ column: N }) => [Iie]), _: 1 }, 16, ["width"])) : Ve("", !0), (L(!0), B(ht, null, tn(c.value, (N, O) => {
33271
- return L(), B(ht, { key: O }, [f(N.isShowColumn, N, O) ? (L(), B(ht, { key: 0 }, [N.type ? (L(), me(A, ze({ key: N.type }, { align: "center", ...N }), null, 16)) : N.baseBtns && N.baseBtns.length > 0 ? (L(), me(A, ps(ze({ key: 1 }, { fixed: "right", width: (z = N.baseBtns, P = N.hideBtns, 34 + 30 * (z.length + (P.length === 0 ? 0 : 1)) + "px"), ...N })), { default: he((H) => [p(N.isShow, H.row, H) ? (L(), B(ht, { key: 0 }, [(L(!0), B(ht, null, tn(N.baseBtns, (F, W) => (L(), B(ht, { key: W }, [p(F.isShow, H.row, H) ? (L(), B(ht, { key: 0 }, [F.useSlot ? be(b.$slots, F.prop, { key: 0, row: H.row, scope: H, value: H.row[F.prop] }, void 0, !0) : F.render ? (L(), me(DA, { key: 1, render: F.render, row: H.row, scope: H, value: H.row[F.prop] }, null, 8, ["render", "row", "scope", "value"])) : h(F.reConfirm, H.row, H) ? (L(), me(U(QL), { key: 2, trigger: "click", title: F.title ?? "确定删除吗?", class: "f-st-ct", onConfirm: (X) => {
33271
+ return L(), B(ht, { key: O }, [f(N.isShowColumn, N, O) ? (L(), B(ht, { key: 0 }, [N.type ? (L(), me(A, ze({ key: N.type }, { align: "center", ...N }), null, 16)) : N.baseBtns && N.baseBtns.length > 0 ? (L(), me(A, ps(ze({ key: 1 }, { fixed: "right", width: (z = N.baseBtns, P = N.hideBtns, 32 + 30 * (z.length + (P.length === 0 ? 0 : 1)) + "px"), ...N })), { default: he((H) => [p(N.isShow, H.row, H) ? (L(), B(ht, { key: 0 }, [(L(!0), B(ht, null, tn(N.baseBtns, (F, W) => (L(), B(ht, { key: W }, [p(F.isShow, H.row, H) ? (L(), B(ht, { key: 0 }, [F.useSlot ? be(b.$slots, F.prop, { key: 0, row: H.row, scope: H, value: H.row[F.prop] }, void 0, !0) : F.render ? (L(), me(DA, { key: 1, render: F.render, row: H.row, scope: H, value: H.row[F.prop] }, null, 8, ["render", "row", "scope", "value"])) : h(F.reConfirm, H.row, H) ? (L(), me(U(QL), { key: 2, trigger: "click", title: F.title ?? "确定删除吗?", class: "f-st-ct", onConfirm: (X) => {
33272
33272
  var Q;
33273
33273
  return (Q = F.handler) == null ? void 0 : Q.call(F, H.row, H);
33274
- } }, { default: he(() => [F.comp ? (L(), me(Rt(F.comp), ze({ key: 0, class: "mlr cp" }, F.attrs, { disabled: d(F.disabled, H.row, H) }), null, 16, ["disabled"])) : (L(), me(C, ze({ key: 1 }, { ...F }, { link: "", class: "hide-btns-button", disabled: d(F.disabled, H.row, H) }), { default: he(() => [St(We(u(F.content, H.row, H)), 1)]), _: 2 }, 1040, ["disabled"]))]), _: 2 }, 1032, ["title", "onConfirm"])) : F.comp ? (L(), me(Rt(F.comp), ze({ key: 3, class: "mlr cp" }, F.attrs, { disabled: d(F.disabled, H.row, H), onClick: (X) => ((Q, j, Y, q) => {
33274
+ } }, { default: he(() => [F.comp ? (L(), me(Rt(F.comp), ze({ key: 0, class: "cp" }, F.attrs, { disabled: d(F.disabled, H.row, H) }), null, 16, ["disabled"])) : (L(), me(C, ze({ key: 1 }, { ...F }, { link: "", class: "hide-btns-button", disabled: d(F.disabled, H.row, H) }), { default: he(() => [St(We(u(F.content, H.row, H)), 1)]), _: 2 }, 1040, ["disabled"]))]), _: 2 }, 1032, ["title", "onConfirm"])) : F.comp ? (L(), me(Rt(F.comp), ze({ key: 3, class: "cp" }, F.attrs, { disabled: d(F.disabled, H.row, H), onClick: (X) => ((Q, j, Y, q) => {
33275
33275
  Q && (q.stopPropagation(), Q(j, Y, q));
33276
33276
  })(F.handler, H.row, H, X) }), null, 16, ["disabled", "onClick"])) : (L(), me(C, ze({ key: 4 }, { ...F }, { link: "", disabled: d(F.disabled, H.row, H), class: "hide-btns-button", onClick: Ao((X) => {
33277
33277
  var Q;
33278
33278
  return (Q = F.handler) == null ? void 0 : Q.call(F, H.row, H);
33279
- }, ["stop"]) }), { default: he(() => [St(We(u(F.content, H.row, H)), 1)]), _: 2 }, 1040, ["disabled", "onClick"]))], 64)) : Ve("", !0)], 64))), 128)), N.hideBtns.length > 0 ? (L(), me(T, { key: 0, class: "ml", trigger: "click" }, { dropdown: he(() => [Qe(I, { "hide-on-click": !1 }, { default: he(() => [(L(!0), B(ht, null, tn(N.hideBtns, (F, W) => (L(), B(ht, { key: W }, [p(F.isShow, H.row, H) ? (L(), me(M, { key: 0, "hide-on-click": !1, onClick: (X) => {
33279
+ }, ["stop"]) }), { default: he(() => [St(We(u(F.content, H.row, H)), 1)]), _: 2 }, 1040, ["disabled", "onClick"]))], 64)) : Ve("", !0)], 64))), 128)), N.hideBtns.length > 0 ? (L(), me(T, { key: 0, class: "", trigger: "click" }, { dropdown: he(() => [Qe(I, { "hide-on-click": !1 }, { default: he(() => [(L(!0), B(ht, null, tn(N.hideBtns, (F, W) => (L(), B(ht, { key: W }, [p(F.isShow, H.row, H) ? (L(), me(M, { key: 0, "hide-on-click": !1, onClick: (X) => {
33280
33280
  var Q;
33281
33281
  return (Q = F.handler) == null ? void 0 : Q.call(F, H.row, H);
33282
33282
  } }, { default: he(() => [F.useSlot ? be(b.$slots, F.prop, { key: 0, row: H.row, scope: H, value: H.row[F.prop] }, void 0, !0) : F.render ? (L(), me(DA, { key: 1, render: F.render, row: H.row, scope: H, value: H.row[F.prop] }, null, 8, ["render", "row", "scope", "value"])) : (L(), B(ht, { key: 2 }, [F.comp ? (L(), me(Rt(F.comp), ze({ key: 0 }, F.attrs, { disabled: d(F.disabled, H.row, H) }), null, 16, ["disabled"])) : (L(), me(C, ze({ key: 1 }, { ...F }, { link: "", class: "hide-btns-button", disabled: d(F.disabled, H.row, H) }), { default: he(() => [St(We(u(F.content, H.row, H)), 1)]), _: 2 }, 1040, ["disabled"]))], 64))]), _: 2 }, 1032, ["onClick"])) : Ve("", !0)], 64))), 128))]), _: 2 }, 1024)]), default: he(() => [Qe(U(_s), { name: "more", onClick: S[0] || (S[0] = Ao(() => {
@@ -33284,7 +33284,7 @@ const Uae = R({ name: "OInput" }), Xae = R({ ...Uae, props: { modelValue: { requ
33284
33284
  var z, P;
33285
33285
  }), 128))]), _: 3 }, 16, ["data", "header-cell-style", "empty-text"]), n.showPage ? (L(), B("div", Lie, [k("div", Eie, [k("div", Vie, [Nie, k("span", Oie, We(a.value), 1), zie]), Qe(V, { class: "tab_pagination", background: "", "current-page": s.value, "page-size": i.value, "page-sizes": n.pageSizes, layout: "prev, pager, next, sizes, jumper", total: a.value, onSizeChange: v, onCurrentChange: y }, null, 8, ["current-page", "page-size", "page-sizes", "total"])])])) : Ve("", !0)]);
33286
33286
  };
33287
- } }), Pie = pt(vt(Rie, [["__scopeId", "data-v-b1d3ad3e"]])), Hie = { class: "tabs-box" }, Fie = R({ name: "OTabs" }), Wie = R({ ...Fie, props: { modelValue: { type: String }, options: { type: Array, default: () => [] }, label: { type: String, default: "label" }, value: { type: String, default: "value" }, subAttrs: { type: Object, default: () => {
33287
+ } }), Pie = pt(vt(Rie, [["__scopeId", "data-v-9b7dcd8b"]])), Hie = { class: "tabs-box" }, Fie = R({ name: "OTabs" }), Wie = R({ ...Fie, props: { modelValue: { type: String }, options: { type: Array, default: () => [] }, label: { type: String, default: "label" }, value: { type: String, default: "value" }, subAttrs: { type: Object, default: () => {
33288
33288
  } } }, emits: ["update:modelValue"], setup(n, { emit: t }) {
33289
33289
  const e = n, o = t, r = ae({ get: () => {
33290
33290
  var a;
@@ -34767,7 +34767,7 @@ const Ese = R({ name: "OText" }), Vse = R({ ...Ese, props: { lineClamp: { type:
34767
34767
  } }), ale = pt(vt(rle, [["__scopeId", "data-v-bc424bd4"]]));
34768
34768
  Ye([ZI, FI, EI, wD, _D, Nv, AD, Xv, CD, ID, ND, PD, gc, WD, GD, ZD, YD, QD, JD, ek, nk, T3, D3, sk, k3, L3, lk, uk, ck]);
34769
34769
  const ile = { key: 1, class: "vChart-box" }, sle = R({ name: "OCountBar" }), lle = R({ ...sle, props: { data: { type: Array, default: () => [] } }, setup(n) {
34770
- const t = l2(() => import("./index-BhRnxjfh.js")), e = n, o = fe(), r = fe(!1);
34770
+ const t = l2(() => import("./index-ChWSpPAQ.js")), e = n, o = fe(), r = fe(!1);
34771
34771
  let a = { tooltip: { trigger: "axis", axisPointer: { type: "shadow" }, formatter: (i) => {
34772
34772
  const s = i[0];
34773
34773
  return `${s.name}: ${jt(s.value)}个 <br> 总大小: ${Xn(i[1].value)}`;
@@ -34786,7 +34786,7 @@ const ile = { key: 1, class: "vChart-box" }, sle = R({ name: "OCountBar" }), lle
34786
34786
  return r.value ? (L(), me(l, { key: 0, class: "h-100%" })) : (L(), B("div", ile, [Qe(U(t), { class: "calc-height", option: o.value, autoresize: "" }, null, 8, ["option"])]));
34787
34787
  };
34788
34788
  } }), cle = pt(vt(lle, [["__scopeId", "data-v-5787c7b8"]])), ule = { key: 1, class: "vChart-box" }, dle = R({ name: "OCountBarOld" }), ple = R({ ...dle, props: { data: { type: Array, default: () => [] } }, setup(n) {
34789
- const t = l2(() => import("./index-BhRnxjfh.js")), e = n, o = fe(), r = fe(!1);
34789
+ const t = l2(() => import("./index-ChWSpPAQ.js")), e = n, o = fe(), r = fe(!1);
34790
34790
  let a = { tooltip: { trigger: "axis", formatter: (i) => {
34791
34791
  const s = i[0];
34792
34792
  return `${s.name}: ${jt(s.value)}个 <br> 总大小: ${Xn(i[1].value)}`;
@@ -34893,7 +34893,7 @@ function X4(n, t) {
34893
34893
  return n.dataIndex === 0 ? parseInt(t) > 100 ? kl("--red") : kl("--blue") : kl("--green");
34894
34894
  }
34895
34895
  const Ble = 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) {
34896
- const t = l2(() => import("./index-BhRnxjfh.js")), e = n, o = fe(null), r = fe({ width: 0, height: 0 }), a = fe(!1), i = fe();
34896
+ const t = l2(() => import("./index-ChWSpPAQ.js")), e = n, o = fe(null), r = fe({ width: 0, height: 0 }), a = fe(!1), i = fe();
34897
34897
  fe([]);
34898
34898
  const s = fe(0), l = fe(0), c = fe("0%");
34899
34899
  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) => X4(p, c.value) }, data: [] }], graphic: { type: "text", left: "center", top: "center", style: { text: ae(() => {
@@ -34935,7 +34935,7 @@ ${e.text}`;
34935
34935
  };
34936
34936
  } }), Rle = pt(vt(Ble, [["__scopeId", "data-v-1a72eedc"]])), vE = (n) => (i2("data-v-8e59e54b"), n = n(), s2(), n), Ple = { class: "vChart-box" }, Hle = { class: "f w-100% list-container" }, Fle = { class: "list" }, Wle = vE(() => k("div", null, "使用量", -1)), Gle = { class: "num" }, jle = { class: "list" }, Zle = vE(() => k("div", null, "总量", -1)), Ule = { class: "num" }, Xle = R({ name: "OUsedPie" }), Yle = R({ ...Xle, props: { used: { type: [Number, String], default: 0 }, total: { type: [Number, String], default: 0 }, options: { type: Object, default: () => {
34937
34937
  } } }, setup(n) {
34938
- const t = l2(() => import("./index-BhRnxjfh.js")), e = n, o = fe(), r = fe("0%");
34938
+ const t = l2(() => import("./index-ChWSpPAQ.js")), e = n, o = fe(), r = fe("0%");
34939
34939
  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) => X4(i, r.value) }, label: { show: !1, position: "outside", formatter: function(i) {
34940
34940
  i.name, i.value;
34941
34941
  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-CdD_HiU4.js";
2
+ import { i as ie, t as le } from "./index-CI_as5SW.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-CdD_HiU4.js";
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-CI_as5SW.js";
2
2
  export {
3
3
  t as $toast,
4
4
  e as OSvg,