oeos-components 0.2.44 → 0.2.45

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.
@@ -2810,7 +2810,7 @@ const PB = O({ name: "OInput" }), RB = O({ ...PB, props: { modelValue: { require
2810
2810
  const i = Ne("el-radio-group");
2811
2811
  return A(), te(i, ts(vu(a.$attrs)), { default: ee(() => [le(a.$slots, "default", {}, () => [(A(!0), E(nt, null, ln(o.value, (s, l) => (A(), te(Mt(t.value), be(s, { key: l, label: s[e.label], value: s[e.value], border: n.border, disabled: s[n.subAttrs.disabled] }), { default: ee(() => [le(a.$slots, s.slot, ts(vu(s)), () => [ht(De(s[e.label]), 1)])]), _: 2 }, 1040, ["label", "value", "border", "disabled"]))), 128))])]), _: 3 }, 16);
2812
2812
  };
2813
- } }), aN = st(oN), rN = { key: 0 }, iN = { key: 1 }, sN = { key: 0, class: "po-r" }, lN = ((n) => (md("data-v-67725d9a"), n = n(), fd(), n))(() => C("div", { class: "mt" }, "全选", -1)), cN = ["src"], uN = O({ name: "OSelect" }), dN = O({ ...uN, props: { modelValue: { type: [Array, String, Number] }, value: { type: String, default: "value" }, label: { type: [String, Array], default: "label" }, options: { type: Array, default: () => [] }, type: { type: String, default: "" }, multiple: { type: Boolean, default: !1 }, showAll: { type: Boolean, default: !0 }, showPrefix: { type: Boolean, default: !1 }, showQuick: { type: Boolean, default: !0 }, title: { type: String, default: "" }, connect: { type: String, default: "/" }, customLabel: { type: [Function, String], default: "" }, width: { type: [String, Number], default: "" }, disPlaceholder: { type: String, default: "" }, optionsDisabled: { type: Function, default: () => {
2813
+ } }), aN = st(oN), rN = { key: 0 }, iN = { key: 1 }, sN = { key: 0, class: "po-r" }, lN = ((n) => (md("data-v-0662b199"), n = n(), fd(), n))(() => C("div", { class: "mt" }, "全选", -1)), cN = ["src"], uN = O({ name: "OSelect" }), dN = O({ ...uN, props: { modelValue: { type: [Array, String, Number] }, value: { type: String, default: "value" }, label: { type: [String, Array], default: "label" }, options: { type: Array, default: () => [] }, type: { type: String, default: "" }, multiple: { type: Boolean, default: !1 }, showAll: { type: Boolean, default: !0 }, showPrefix: { type: Boolean, default: !1 }, showQuick: { type: Boolean, default: !0 }, title: { type: String, default: "" }, connect: { type: String, default: "/" }, customLabel: { type: [Function, String], default: "" }, width: { type: [String, Number], default: "" }, disPlaceholder: { type: String, default: "" }, optionsDisabled: { type: Function, default: () => {
2814
2814
  } }, url: { type: [String, Function], default: "" }, urlParams: { type: Object, default: () => {
2815
2815
  } }, optionsExpression: { type: String, default: "" }, emptyColor: { type: Boolean, default: !1 } }, emits: ["changeSelect", "update:modelValue", "change"], setup(n, { emit: e }) {
2816
2816
  const { proxy: t } = Et(), o = ba(), a = e, r = ws(), i = Y(() => {
@@ -2845,10 +2845,12 @@ const PB = O({ name: "OInput" }), RB = O({ ...PB, props: { modelValue: { require
2845
2845
  return S[s.label];
2846
2846
  }
2847
2847
  const y = () => {
2848
- if (l.value.length === 0 || o.disabled === "" || o.disabled)
2848
+ if (c.value.length === 0 || o.disabled === "" || o.disabled)
2849
2849
  return;
2850
2850
  let S = 0;
2851
- Rt(s.modelValue) || s.multiple === !0 && s.modelValue.length > 1 ? S = 0 : (S = l.value.findIndex((M) => s.type === "simple" ? M === s.modelValue : s.multiple === !0 ? M[s.value] === s.modelValue[0] : M[s.value] === s.modelValue) + 1, S === l.value.length && (S = 0)), s.type === "simple" ? u.value.$emit("change", l.value[S]) : s.multiple === !0 ? u.value.$emit("change", [l.value[S][s.value]]) : u.value.$emit("change", l.value[S][s.value]);
2851
+ Rt(s.modelValue) || s.multiple === !0 && s.modelValue.length > 1 ? S = 0 : (S = c.value.findIndex((T) => s.multiple === !0 ? p(T) === s.modelValue[0] : p(T) === s.modelValue) + 1, S === c.value.length && (S = 0));
2852
+ let M = s.type === "simple" ? c.value[S] : c.value[S][s.value];
2853
+ console.log("81 getValue", M), s.multiple === !0 ? u.value.$emit("change", [M]) : u.value.$emit("change", M);
2852
2854
  };
2853
2855
  function _(S) {
2854
2856
  let M = [];
@@ -2870,7 +2872,7 @@ const PB = O({ name: "OInput" }), RB = O({ ...PB, props: { modelValue: { require
2870
2872
  const T = Ne("el-checkbox"), I = Ne("el-button"), k = Ne("el-option"), L = Ne("el-select");
2871
2873
  return A(), E("div", { class: we(["o-select", { "has-title": s.title, "has-quick": s.showQuick && !h.value && l.value.length > 0 }]), style: kt({ ...W(Dt)(s.width) }) }, [We(W(qm), { title: s.title, size: W(o).size, titleAttrs: S.$attrs.titleAttrs ?? {} }, null, 8, ["title", "size", "titleAttrs"]), We(L, be({ ref_key: "selectRef", ref: u, class: ["o-select__select", W(Rt)(l.value) && n.emptyColor ? "o-select__empty" : ""], modelValue: d.value, "onUpdate:modelValue": M[1] || (M[1] = (z) => d.value = z), placeholder: o.disabled ? s.disPlaceholder : o.placeholder || "请选择", "popper-class": "o-select__multiple-checkbox", multiple: n.multiple, onChange: w }, { clearable: !0, filterable: !0, ...Object.entries(S.$attrs).reduce((z, [V, B]) => (V !== "class" && V !== "style" && (z[V] = B), z), {}) }), yu({ default: ee(() => [n.multiple && s.showAll ? (A(), E("div", sN, [We(T, { indeterminate: m.value, modelValue: g.value, "onUpdate:modelValue": M[0] || (M[0] = (z) => g.value = z), onChange: f, class: "o-select__all-select f-st-ct" }, { default: ee(() => [lN]), _: 1 }, 8, ["indeterminate", "modelValue"]), We(I, { type: "primary", onClick: uo(v, ["stop"]), size: "small", class: "reverse-select" }, { default: ee(() => [ht("反选")]), _: 1 })])) : ye("", !0), (A(!0), E(nt, null, ln(l.value, (z, V) => (A(), te(k, { key: n.type === "simple" ? z : z[s.value], label: n.type === "simple" ? z : x(z), value: n.type === "simple" ? z : z[s.value], disabled: n.optionsDisabled(z, V, l.value) }, { default: ee(() => [le(S.$slots, "default", { options: l.value, item: z }, void 0, !0)]), _: 2 }, 1032, ["label", "value", "disabled"]))), 128))]), _: 2 }, [s.showPrefix ? { name: "prefix", fn: ee(() => [le(S.$slots, "prefix", {}, () => [Array.isArray(d.value) ? (A(), E("span", rN, De(d.value.length) + "/" + De(l.value.length), 1)) : (A(), E("span", iN, De(l.value.length) + "个", 1))], !0)]), key: "0" } : void 0, ln(i.value, (z, V) => ({ name: V, fn: ee(() => [le(S.$slots, V, {}, void 0, !0)]) }))]), 1040, ["class", "modelValue", "placeholder", "multiple"]), n.showQuick && !h.value && l.value.length > 0 ? (A(), E("div", { key: 0, class: "o-select__select-box", onClick: y }, [C("img", { src: W("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA3tJREFUWEfFlzFo1GAUx/8vd4iCQ0eHigoOdetgwcFBQVC3ghVbcEhySSbFQYcWlLYotEMdRKckl3yD0IoVuqkg6OAg1MHNDoIVO3TsULDIXZ79ksslud6lufZssxyX+/K93/d/7/7vhXDIF+0lvmEY/bWArgA4ioA+CWGv7GUf+UxhAFU3VRCugjEcBk6uLeE5x3oCoJrmIOo0XFYC13XdNbmpahgXECjzAJ9OByGiTWZeA+iV8OypVgCtYj5kpvIOsBIvCcf5Ft/PKKDq1hTAkwBNCM+e1XRjjkH3m5sQFijgN77vLuadWKtYd5j5efs1NJ0GbgtARC6Y+xgYCTchWkAJ08IulmtVt8YBnmmekqgGQAD8q0QsYnV31ECsABHVmLkcfQaPhOfOdpPjGICAHyA6He4FLPqec7N1nw4pkIemGis8lM5XUYimAkTvoPAEBbQcQfBT33MfZGop/SWpgVCcdRDCYiFgrUTBdFq6PJg0gKja11XdGAdoRh6KGJc9z/7cqQgzucsEIYyJqrNQRAW1Yo6CMS9rya/apnxG083XjZpaEZ5zrj2AqvZR6chtZhzPBuJ14TmiSPB4jfSNssIfYtWkedVZ+SlTgdRhChtRN8E7rdUqlrPtHUZamQMFiFMDoOmeBwoQOqtusvwsK3xSpucwAP40eokm6yoEkD1A/lfBwbPW/2kvcp/eQ9OtZQafJ6K7ftV+EQLE3k2gr75nD/U6aBbAmAMp92KTixSQrRbw08XxPyF2OGFjwPgtfxCec6B10Qym6mZUHF04Xi9UagK0M4leBNhtj0SBxL9rJQrOpC1Uzn97sWKATmTyTdjk+t+XQoiNDs3I/A5gIN27Y2W6SU3K8doIEE1bbQF03brIhI9hwwBPyEFErVhvwXwtHtN2k1T+3mg8kwz0h+sZgwA31MgZyaK2Gc2B8UCCgGa6BUhDxiYXHUpeuwBEEFHvlhBgXmXgbDcKJC3ZGCdSHifjnYTIAYikIxWgU9KfEuqQPJO7vFSoljWAOibBPBo+CSyCaEO24lyA7EiWDRF7d15gTTNGWKEbYISBo+DRHJhMynljeePFpDUIEdf8qvOk9X4D+Nb2gNHPzC1TFK1CCcaE636JC7MWKAbyXkyKVHimwGL3TG5ugbAExvuivrEv31dVawAKX5JNLD3/dXOQfQF0E6jT2n+839ww67q/YQAAAABJRU5ErkJggg=="), alt: "", width: "12px" }, null, 8, cN)])) : ye("", !0)], 6);
2872
2874
  };
2873
- } }), pN = st(it(dN, [["__scopeId", "data-v-67725d9a"]])), hN = O({ name: "OSwitch" }), mN = O({ ...hN, setup(n) {
2875
+ } }), pN = st(it(dN, [["__scopeId", "data-v-0662b199"]])), hN = O({ name: "OSwitch" }), mN = O({ ...hN, setup(n) {
2874
2876
  const { proxy: e } = Et();
2875
2877
  return (t, o) => {
2876
2878
  const a = Ne("el-switch");
@@ -26308,7 +26310,7 @@ nn([function(n) {
26308
26310
  n.registerTransform(Sq), n.registerTransform(Mq);
26309
26311
  }]);
26310
26312
  const Tq = { key: 1, class: "vChart-box" }, Iq = O({ name: "OCountBar" }), kq = O({ ...Iq, props: { data: { type: Array, default: () => [] } }, setup(n) {
26311
- const e = ex(() => import("./index-Dptf7KfC.js")), t = n, o = se(), a = se(!1);
26313
+ const e = ex(() => import("./index-rbERNAxB.js")), t = n, o = se(), a = se(!1);
26312
26314
  let r = { tooltip: { trigger: "axis", formatter: (i) => {
26313
26315
  const s = i[0];
26314
26316
  return `${s.name}: ${ua(s.value)}个 <br> 总大小: ${Gr(i[1].value)}`;
@@ -26334,7 +26336,7 @@ const Tq = { key: 1, class: "vChart-box" }, Iq = O({ name: "OCountBar" }), kq =
26334
26336
  return (t, o) => (A(), E("div", Rq, [le(t.$slots, "default", {}, void 0, !0)]));
26335
26337
  } }), Wq = st(it(Fq, [["__scopeId", "data-v-2148646d"]])), rS = (n) => (md("data-v-0ed7c01a"), n = n(), fd(), n), Gq = { class: "vChart-box" }, jq = { class: "f w-100% list-container" }, Uq = { class: "list" }, Xq = rS(() => C("div", null, "使用量", -1)), qq = { class: "num" }, Zq = { class: "list" }, Yq = rS(() => C("div", null, "总量", -1)), Kq = { class: "num" }, $q = O({ name: "OUsedPie" }), Jq = O({ ...$q, props: { used: { type: [Number, String], default: 0 }, total: { type: [Number, String], default: 0 }, options: { type: Object, default: () => {
26336
26338
  } } }, setup(n) {
26337
- const e = ex(() => import("./index-Dptf7KfC.js")), t = n, o = se(), a = se("0%");
26339
+ const e = ex(() => import("./index-rbERNAxB.js")), t = n, o = se(), a = se("0%");
26338
26340
  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) {
26339
26341
  return i.name === "使用量" ? Ol("--blue") : Ol("--green");
26340
26342
  } }, 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-Dzxk3TWb.js";
2
+ import { i as ie, t as le } from "./index-BuwK972K.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 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-Dzxk3TWb.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-BuwK972K.js";
2
2
  export {
3
3
  e as $toast,
4
4
  t as OSvg,