oeos-components 0.2.32 → 0.2.34

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-BHzHgcAB.js";
2
+ import { i as ie, t as le } from "./index-Bgql0rXM.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() {
@@ -2549,9 +2549,9 @@ const UV = Object.freeze(Object.defineProperty({ __proto__: null, $toast: vn, as
2549
2549
  }
2550
2550
  return (d, p) => {
2551
2551
  const h = Ne("el-tooltip");
2552
- return A(), te(h, we({ class: "tooltip", disabled: s.value, effect: n.effect }, n.tooltipAttrs), { default: ee(() => [a.showSlot ? (A(), E("span", we({ key: 0, onClick: u, class: "tooltip__text", style: { maxWidth: W(Dt)(n.width, !0) }, onMouseover: l }, d.$attrs), [C("span", { ref_key: "contentRef", ref: r }, [le(d.$slots, "default", {}, () => [xt(De(d.$attrs.content), 1)], !0)], 512)], 16)) : _e("", !0), le(d.$slots, "content", {}, void 0, !0)]), _: 3 }, 16, ["disabled", "effect"]);
2552
+ return A(), te(h, we({ class: "tooltip-box", disabled: s.value, effect: n.effect }, n.tooltipAttrs), { default: ee(() => [a.showSlot ? (A(), E("span", we({ key: 0, onClick: u, class: "tooltip-box__text", style: { maxWidth: W(Dt)(n.width, !0) }, onMouseover: l }, d.$attrs), [C("span", { ref_key: "contentRef", ref: r, class: "tooltip-box__content" }, [le(d.$slots, "default", {}, () => [xt(De(d.$attrs.content), 1)], !0)], 512)], 16)) : _e("", !0), le(d.$slots, "content", {}, void 0, !0)]), _: 3 }, 16, ["disabled", "effect"]);
2553
2553
  };
2554
- } }), Su = st(it(iB, [["__scopeId", "data-v-6c854bb3"]])), sB = O({ name: "ODescription" }), lB = O({ ...sB, props: { options: { type: Array, required: !0 }, column: { type: Number, default: 3 }, labelWidth: { type: String, default: "" }, showAll: { type: Boolean, default: !1 } }, setup(n) {
2554
+ } }), Su = st(it(iB, [["__scopeId", "data-v-6d380a95"]])), sB = O({ name: "ODescription" }), lB = O({ ...sB, props: { options: { type: Array, required: !0 }, column: { type: Number, default: 3 }, labelWidth: { type: String, default: "" }, showAll: { type: Boolean, default: !1 } }, setup(n) {
2555
2555
  pd((a) => ({ f1d9efd0: t.value, "4e3d7188": o.value }));
2556
2556
  const e = n, t = Y(() => {
2557
2557
  let a = 1;
@@ -4306,13 +4306,13 @@ const xP = O({ name: "OText" }), _P = O({ ...xP, props: { lineClamp: { type: [St
4306
4306
  return {};
4307
4307
  });
4308
4308
  return (o, a) => (A(), E("div", we({ class: "o-title", style: { ...t.value } }, o.$attrs), [C("div", bP, [C("div", { class: be(n.type === "simple" || n.type === "icon" ? "o-title__top-simple-left" : "o-title__top-left"), style: kt({ marginLeft: e.inner ? "8px" : 0 }) }, [le(o.$slots, "icon", {}, () => [e.type === "icon" ? (A(), E("img", SP)) : _e("", !0)], !0), C("span", MP, De(n.title), 1), le(o.$slots, "default", {}, void 0, !0)], 6), le(o.$slots, "right", {}, void 0, !0)]), n.subTitle ? (A(), E("div", we({ key: 0, class: "o-title__subTitle" }, n.subAttrs), De(n.subTitle), 17)) : _e("", !0)], 16));
4309
- } }), TP = st(it(AP, [["__scopeId", "data-v-eae10c67"]])), IP = { key: 0, src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAqJJREFUWEftl0tPE2EUht/TGW90oKWlJhqXeI0ujIQF0b9gXIhJt0oKM1VD2Lhi5cqNIQpTWi9bEnFh/AsaFo3GhXdhqya0UyhM8UJnjk5bDHTaudQqG77dZM457zPvOedLhrDNh7ZZHzsAOw607MCi0tUrsnEPBBYgJELqykIrA90ygCZLN0G4URFl3Iqm9PH/BqANSycg4CWAvTXR7zBwJprW3/mF8O3AlwQ69ojBOwBd2SrGD36US9cPZrDmB8I3QEEJxhmUAhCqEyoSWI6opZl/BsCDEAr7g3Ng6m8oQpyNLJYGaBaGVwjPDlTEY8GrAE04F+fRSK406RXCM0BO7jxKxDMEnLYACFgA8/0KDNEQA73VhcArZorHUqsfvbjgGUBLSmkwEpuKPjfL5iXrOSAGHgE4++cdIROd0ofbBpBXpOMEZAFIngAAnYH+HlV/7wbh6sCyHOo2yXjIwIW6Ys0dqLboSYCFy+FUcckJwhVAU6SLAKxe16+dIwCAIoChqKo/bhlAuxbpgvHzBYDDtiLEWRMsV2bAuhcar+Y8hN190buFlWYQjg7kZSlJhMkmyasAPtXeHQHQ2SiOgGRE1VXfALnhUJ8gGDMb6+U2TA4CC4YhxGPpouWk3chmiXmla4pgjlQcbnzmwTxduwesOHubqnkmIzDdo64kPQNoSucAwM8cxK1abkO4Wc8E6FxUXZ2rh7DNwNJoOGyulzNgDLrY/gGg29UYHgNwzDGeMBvYJSa6J5aXN8fZAAqyNMIEq/C+VvveJO8bMcYiKb3attqxAWiK9BrAyTaLb5R7+/te2FLbBpBXgk8JOAUEXC8pf5CmycCbHrV03tGBXKLjAIniIZjt/WkRmcx1Xv8cy6x9dQTw91V/H91mm/0D7QD8AkUR3SFsA4XSAAAAAElFTkSuQmCC", class: "icon" }, kP = O({ name: "OWarning" }), DP = O({ ...kP, props: { content: { type: String, required: !0 }, type: { type: String, default: "" }, width: { type: [String, Number], default: "100%" }, dangerouslyUseHTMLString: { type: Boolean, default: !1 } }, setup(n) {
4309
+ } }), TP = st(it(AP, [["__scopeId", "data-v-eae10c67"]])), IP = { key: 0, src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAqJJREFUWEftl0tPE2EUht/TGW90oKWlJhqXeI0ujIQF0b9gXIhJt0oKM1VD2Lhi5cqNIQpTWi9bEnFh/AsaFo3GhXdhqya0UyhM8UJnjk5bDHTaudQqG77dZM457zPvOedLhrDNh7ZZHzsAOw607MCi0tUrsnEPBBYgJELqykIrA90ygCZLN0G4URFl3Iqm9PH/BqANSycg4CWAvTXR7zBwJprW3/mF8O3AlwQ69ojBOwBd2SrGD36US9cPZrDmB8I3QEEJxhmUAhCqEyoSWI6opZl/BsCDEAr7g3Ng6m8oQpyNLJYGaBaGVwjPDlTEY8GrAE04F+fRSK406RXCM0BO7jxKxDMEnLYACFgA8/0KDNEQA73VhcArZorHUqsfvbjgGUBLSmkwEpuKPjfL5iXrOSAGHgE4++cdIROd0ofbBpBXpOMEZAFIngAAnYH+HlV/7wbh6sCyHOo2yXjIwIW6Ys0dqLboSYCFy+FUcckJwhVAU6SLAKxe16+dIwCAIoChqKo/bhlAuxbpgvHzBYDDtiLEWRMsV2bAuhcar+Y8hN190buFlWYQjg7kZSlJhMkmyasAPtXeHQHQ2SiOgGRE1VXfALnhUJ8gGDMb6+U2TA4CC4YhxGPpouWk3chmiXmla4pgjlQcbnzmwTxduwesOHubqnkmIzDdo64kPQNoSucAwM8cxK1abkO4Wc8E6FxUXZ2rh7DNwNJoOGyulzNgDLrY/gGg29UYHgNwzDGeMBvYJSa6J5aXN8fZAAqyNMIEq/C+VvveJO8bMcYiKb3attqxAWiK9BrAyTaLb5R7+/te2FLbBpBXgk8JOAUEXC8pf5CmycCbHrV03tGBXKLjAIniIZjt/WkRmcx1Xv8cy6x9dQTw91V/H91mm/0D7QD8AkUR3SFsA4XSAAAAAElFTkSuQmCC", class: "icon" }, kP = O({ name: "OWarning" }), DP = O({ ...kP, props: { content: { type: String, required: !0 }, type: { type: String, default: "" }, width: { type: [String, Number], default: "100%" }, dangerouslyUseHTMLString: { type: Boolean, default: !0 } }, setup(n) {
4310
4310
  const e = n, t = Y(() => e.dangerouslyUseHTMLString ? { innerHTML: e.content } : { textContent: e.content });
4311
4311
  return (o, a) => (A(), E("div", we({ class: [n.type === "icon" ? "icon-box" : n.type === "info" ? "info-box" : "warning-box", "base-box"], style: { ...W(Dt)(e.width) } }, o.$attrs), [n.type === "" ? (A(), E("img", IP)) : (A(), te(W(y0), we({ key: 1, name: "warning", color: "var(--45)" }, o.$attrs, { class: "icon", size: "16" }), null, 16, ["color"])), le(o.$slots, "content", {}, () => [C("span", we({ class: ["warning-box__content", n.type === "icon" && "cl-45 fs-14"] }, t.value), null, 16)], !0)], 16));
4312
- } }), EP = st(it(DP, [["__scopeId", "data-v-5146fae0"]])), LP = O({ name: "OBasicLayout" }), OP = O({ ...LP, props: { title: { type: String, default: "" }, titleAttrs: { type: Object, default: () => ({}) }, headerStyle: { type: Object, default: () => ({}) }, bodyStyle: { type: Object, default: () => ({}) }, footerStyle: { type: Object, default: () => ({}) }, border: { type: Boolean, default: !0 }, clearBrBottom: { type: Boolean, default: !1 }, clearBrTop: { type: Boolean, default: !1 } }, setup(n) {
4312
+ } }), EP = st(it(DP, [["__scopeId", "data-v-898aa833"]])), LP = O({ name: "OBasicLayout" }), OP = O({ ...LP, props: { title: { type: String, default: "" }, titleAttrs: { type: Object, default: () => ({}) }, headerStyle: { type: Object, default: () => ({}) }, bodyStyle: { type: Object, default: () => ({}) }, footerStyle: { type: Object, default: () => ({}) }, border: { type: Boolean, default: !0 }, clearBrBottom: { type: Boolean, default: !1 }, clearBrTop: { type: Boolean, default: !1 }, clearBr: { type: Boolean, default: !1 } }, setup(n) {
4313
4313
  const { proxy: e } = Et(), t = n, o = Y(() => {
4314
4314
  let r = {};
4315
- return t.clearBrBottom && (r["border-bottom-right-radius"] = 0, r["border-bottom-left-radius"] = 0), t.clearBrTop && (r["border-top-right-radius"] = 0, r["border-top-left-radius"] = 0), { ...r };
4315
+ return t.clearBrBottom && (r["border-bottom-right-radius"] = 0, r["border-bottom-left-radius"] = 0), t.clearBrTop && (r["border-top-right-radius"] = 0, r["border-top-left-radius"] = 0), t.clearBr && (r["border-bottom-right-radius"] = 0, r["border-bottom-left-radius"] = 0, r["border-top-right-radius"] = 0, r["border-top-left-radius"] = 0), { ...r };
4316
4316
  }), a = Y(() => {
4317
4317
  let r = {};
4318
4318
  return t.border || (r = { borderBottom: "none", paddingBottom: 0 }), { ...r, ...t.headerStyle };
@@ -4321,7 +4321,7 @@ const xP = O({ name: "OText" }), _P = O({ ...xP, props: { lineClamp: { type: [St
4321
4321
  const s = Ne("o-title");
4322
4322
  return A(), E("div", { class: "basic-layout-box", style: kt(o.value) }, [r.$slots.header || t.title ? (A(), E("div", { key: 0, class: "basic-layout-box__header", style: kt(a.value) }, [le(r.$slots, "header", {}, () => [We(s, { title: t.title, style: kt({ ...n.titleAttrs }) }, null, 8, ["title", "style"])], !0)], 4)) : _e("", !0), C("div", { class: "basic-layout-box__body", style: kt(n.bodyStyle) }, [le(r.$slots, "default", {}, void 0, !0)], 4), r.$slots.footer ? (A(), E("div", { key: 1, class: "basic-layout-box__footer", style: kt(n.footerStyle) }, [le(r.$slots, "footer", {}, void 0, !0)], 4)) : _e("", !0)], 4);
4323
4323
  };
4324
- } }), zP = st(it(OP, [["__scopeId", "data-v-5ef260e6"]])), VP = { class: "f-st-ct w-100%" }, BP = { class: "percentage-value" }, NP = { class: "" }, PP = O({ name: "OCapacityProgress" }), RP = O({ ...PP, props: { total: { type: [String, Number], required: !0 }, used: { type: [String, Number], required: !0 }, iconAttrs: { type: Object, default: () => {
4324
+ } }), zP = st(it(OP, [["__scopeId", "data-v-12337f30"]])), VP = { class: "f-st-ct w-100%" }, BP = { class: "percentage-value" }, NP = { class: "" }, PP = O({ name: "OCapacityProgress" }), RP = O({ ...PP, props: { total: { type: [String, Number], required: !0 }, used: { type: [String, Number], required: !0 }, iconAttrs: { type: Object, default: () => {
4325
4325
  } } }, setup(n) {
4326
4326
  const e = se(null), t = se(null), o = n;
4327
4327
  function a() {
@@ -26303,7 +26303,7 @@ nn([function(n) {
26303
26303
  n.registerTransform(bq), n.registerTransform(Sq);
26304
26304
  }]);
26305
26305
  const Aq = { key: 1, class: "vChart-box" }, Tq = O({ name: "OCountBar" }), Iq = O({ ...Tq, props: { data: { type: Array, default: () => [] } }, setup(n) {
26306
- const e = ex(() => import("./index-D6J2bT4T.js")), t = n, o = se(), a = se(!1);
26306
+ const e = ex(() => import("./index-BO32NOh3.js")), t = n, o = se(), a = se(!1);
26307
26307
  let r = { tooltip: { trigger: "axis", formatter: (i) => {
26308
26308
  const s = i[0];
26309
26309
  return `${s.name}: ${s.value}个 <br> 总大小: ${Wr(i[1].value)}`;
@@ -26317,16 +26317,16 @@ const Aq = { key: 1, class: "vChart-box" }, Tq = O({ name: "OCountBar" }), Iq =
26317
26317
  return a.value ? (A(), te(l, { key: 0, class: "h-100%" })) : (A(), E("div", Aq, [We(W(e), { class: "calc-height", option: o.value, autoresize: "" }, null, 8, ["option"])]));
26318
26318
  };
26319
26319
  } }), kq = st(it(Iq, [["__scopeId", "data-v-6d3ae1ba"]])), Dq = { class: "item-box__img" }, Eq = ["src"], Lq = { class: "item-box__right" }, Oq = { class: "item_box__label" }, zq = { class: "item_box__value" }, Vq = O({ name: "OItem" }), Bq = O({ ...Vq, props: { src: { type: String, default: "" }, label: { type: [String, Number], required: !0 }, value: { type: [String, Number], required: !0 }, width: { type: [String, Number], default: "" } }, setup(n) {
26320
- pd((o) => ({ "7d45daec": t.src ? "space-between" : "center" }));
26320
+ pd((o) => ({ b5365978: t.src ? "space-between" : "center" }));
26321
26321
  const { proxy: e } = Et(), t = n;
26322
26322
  return (o, a) => (A(), E("div", { class: "item-box", style: kt({ ...W(Dt)(t.width) }) }, [C("div", Dq, [le(o.$slots, "img", {}, () => [C("img", { src: t.src, alt: "" }, null, 8, Eq)], !0)]), C("div", Lq, [le(o.$slots, "label", {}, () => [C("div", Oq, De(t.label), 1)], !0), le(o.$slots, "value", {}, () => [C("div", zq, De(t.value), 1)], !0)])], 4));
26323
- } }), Nq = st(it(Bq, [["__scopeId", "data-v-946401c4"]])), Pq = { class: "item-wrapper-box" }, Rq = O({ name: "OItemWrapper" }), Hq = O({ ...Rq, props: { gap: { type: [String, Number], default: "16px" } }, setup(n) {
26323
+ } }), Nq = st(it(Bq, [["__scopeId", "data-v-e719e363"]])), Pq = { class: "item-wrapper-box" }, Rq = O({ name: "OItemWrapper" }), Hq = O({ ...Rq, props: { gap: { type: [String, Number], default: "16px" } }, setup(n) {
26324
26324
  pd((t) => ({ ff0cf15a: e.gap }));
26325
26325
  const e = n;
26326
26326
  return (t, o) => (A(), E("div", Pq, [le(t.$slots, "default", {}, void 0, !0)]));
26327
26327
  } }), Fq = st(it(Hq, [["__scopeId", "data-v-2148646d"]])), rS = (n) => (hd("data-v-d25c5235"), n = n(), md(), n), Wq = { class: "vChart-box" }, Gq = { class: "f w-100% list-container" }, jq = { class: "list" }, Uq = rS(() => C("div", null, "使用量", -1)), Xq = { class: "num" }, qq = { class: "list" }, Zq = rS(() => C("div", null, "总量", -1)), Yq = { class: "num" }, Kq = O({ name: "OUsedPie" }), $q = O({ ...Kq, props: { used: { type: [Number, String], default: 0 }, total: { type: [Number, String], default: 0 }, options: { type: Object, default: () => {
26328
26328
  } } }, setup(n) {
26329
- const e = ex(() => import("./index-D6J2bT4T.js")), t = n, o = se(), a = se("0%");
26329
+ const e = ex(() => import("./index-BO32NOh3.js")), t = n, o = se(), a = se("0%");
26330
26330
  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) {
26331
26331
  return i.name === "使用量" ? Ll("--blue") : Ll("--green");
26332
26332
  } }, label: { show: !1, position: "outside", formatter: function(i) {
@@ -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 p, G as f, b as l, D as c, E as d, j as u, r as y, I as v, x as S, h, g as x, l as E, J as T, e as b, y as B, 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-BHzHgcAB.js";
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 p, G as f, b as l, D as c, E as d, j as u, r as y, I as v, x as S, h, g as x, l as E, J as T, e as b, y as B, 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-Bgql0rXM.js";
2
2
  export {
3
3
  e as $toast,
4
4
  t as OSvg,