oeos-components 0.2.23 → 0.2.24

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.
Files changed (32) hide show
  1. package/dist/{index-C2Q04YaE.js → index-6I_N2Hxr.js} +1 -1
  2. package/dist/{index-CiU-dy8E.js → index-AFQMmv03.js} +1 -1
  3. package/dist/index-BDS5t5f9.js +22 -0
  4. package/dist/{index-B-ygmUzr.js → index-BDybZzPP.js} +3 -3
  5. package/dist/{index-CeFiQw-e.js → index-BPw0UyO2.js} +1 -1
  6. package/dist/{index-rU8G4dAk.js → index-BXcvEPsH.js} +1 -1
  7. package/dist/{index-Pgb7joEc.js → index-Bc1JbUHT.js} +22 -22
  8. package/dist/{index-BlSRGbTa.js → index-BeuC7zs0.js} +2 -2
  9. package/dist/{index-pLYGaLJF.js → index-Bk9UpUAG.js} +1 -1
  10. package/dist/{index-BhUjVpDn.js → index-BsIl7YEZ.js} +1 -1
  11. package/dist/{index-DJ_UAr-6.js → index-Bvx3NTB9.js} +1 -1
  12. package/dist/{index-Bx7LxMPA.js → index-ByqWuoM-.js} +2 -2
  13. package/dist/{index-C8CBmVdg.js → index-C0C14Cyh.js} +1 -1
  14. package/dist/{index-C4zebkH-.js → index-C59qBt31.js} +1 -1
  15. package/dist/{index-DmTxRLqL.js → index-CBPTnB7I.js} +1 -1
  16. package/dist/{index-dYBFnUgu.js → index-CKt3KEsP.js} +1 -1
  17. package/dist/{index-DUTNY_YA.js → index-CYVvQwXf.js} +3 -3
  18. package/dist/{index-l1_Vs-iC.js → index-CZE57h1w.js} +1 -1
  19. package/dist/index-CeNW2Gb2.js +21 -0
  20. package/dist/{index-Dj1Fc-fq.js → index-CmqYy4Vs.js} +1 -1
  21. package/dist/{index-Bb3fGUsu.js → index-CzA3GSDj.js} +1 -1
  22. package/dist/{index-DRsDXefI.js → index-CzvtGSyF.js} +1 -1
  23. package/dist/{index-NXvTgPcC.js → index-DA6a6Ugv.js} +1 -1
  24. package/dist/{index-CwWhE2XM.js → index-DEuKeoEm.js} +1 -1
  25. package/dist/{index-CI7M5JUV.js → index-Dcxwjd2e.js} +2 -2
  26. package/dist/{index-CzOkH60S.js → index-DfiY9uUH.js} +2 -2
  27. package/dist/{index-BdG9MfHW.js → index-FqLNWrgU.js} +1 -1
  28. package/dist/{index-D6ltpHL0.js → index-ZK1iPOPN.js} +3 -3
  29. package/dist/index.esm.min-CAtOnJMt.js +8962 -0
  30. package/dist/oeos-components-es.js +1 -1
  31. package/dist/style.css +1 -1
  32. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, ref as g, resolveComponent as p, createElementBlock as f, openBlock as m, createVNode as a, mergeProps as $, withCtx as n, renderSlot as i, createElementVNode as u, toDisplayString as x, createTextVNode as v, onMounted as N } from "vue";
2
- import { _ as B, w as E } from "./index-Pgb7joEc.js";
2
+ import { _ as B, w as E } from "./index-Bc1JbUHT.js";
3
3
  const V = { key: 0 }, q = { class: "o-popconfirm__content" }, z = { class: "o-popconfirm__footer" }, P = y({ name: "OPopconfirm" }), L = E(B(y({ ...P, props: { title: { type: String, default: "删除" }, width: { type: [String, Number], default: 200 }, content: { type: String, required: !0 }, reConfirm: { type: Boolean, default: !0 } }, emits: ["confirm", "cancel"], setup(t, { expose: _, emit: k }) {
4
4
  const s = g(!1), C = () => {
5
5
  N(() => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as x, ref as i, watch as $, computed as j, resolveComponent as b, createElementBlock as y, openBlock as c, createBlock as h, createCommentVNode as A, createVNode as B, mergeProps as r, withCtx as m, createTextVNode as k, renderSlot as V, Fragment as O, renderList as F, resolveDynamicComponent as N, normalizeProps as P, guardReactiveProps as T, toDisplayString as U } from "vue";
2
- import { i as g, _ as z, w as E } from "./index-Pgb7joEc.js";
2
+ import { i as g, _ as z, w as E } from "./index-Bc1JbUHT.js";
3
3
  const I = { class: "checkbox" }, R = x({ name: "OCheckbox" }), H = E(z(x({ ...R, props: { type: { type: String, default: "" }, options: { type: Object, default: () => [] }, showType: { type: String, validator: (u) => ["check", "button"].includes(u), default: "check" }, modelValue: { type: Array, defalut: () => [] }, label: { type: String, default: "label" }, value: { type: String, default: "value" }, showAll: { type: Boolean, default: !0 }, attrs: { type: Object, default: () => {
4
4
  } }, customDisabled: { type: Function, default: () => {
5
5
  } }, customLabel: { type: [Function, String], default: "" } }, emits: ["update:modelValue"], setup(u, { emit: w }) {
@@ -0,0 +1,22 @@
1
+ import { defineComponent as h, ref as p, watch as b, createElementBlock as y, openBlock as w, createVNode as x, createElementVNode as a, unref as n, toDisplayString as m, pushScopeId as S, popScopeId as k } from "vue";
2
+ import { H as O } from "./index.esm.min-CAtOnJMt.js";
3
+ import { y as v, x as z, z as r, r as f, _ as N, w as _ } from "./index-Bc1JbUHT.js";
4
+ const g = (t) => (S("data-v-3322ecdb"), t = t(), k(), t), $ = { class: "box" }, I = { class: "f w-100% list-container" }, j = { class: "list" }, B = g(() => a("div", null, "使用量", -1)), C = { class: "num" }, E = { class: "list" }, L = g(() => a("div", null, "总量", -1)), V = { class: "num" }, A = h({ name: "OUsedPie" }), P = _(N(h({ ...A, props: { used: { type: [Number, String], default: 0 }, total: { type: [Number, String], default: 0 }, options: { type: Object, default: () => {
5
+ } } }, setup(t) {
6
+ const d = t, c = p(), u = p("0%");
7
+ let o = { tooltip: { trigger: "item", show: !1 }, series: [{ type: "pie", center: ["50%", "50%"], radius: ["65%", "85%"], clockwise: !0, avoidLabelOverlap: !0, hoverOffset: 15, itemStyle: { color: function(e) {
8
+ return e.name === "使用量" ? f("--blue") : f("--green");
9
+ } }, label: { show: !1, position: "outside", formatter: function(e) {
10
+ e.name, e.value;
11
+ let { value: i, name: l } = e.data, s = r(i);
12
+ return `${l}: ${s}
13
+ 占比: (${e.percent}%)`;
14
+ }, rich: { hr: { backgroundColor: "t", borderRadius: 3, width: 3, height: 3, padding: [3, 3, 0, -12] }, a: { padding: [-30, 15, -20, 15] } } }, labelLine: { normal: { length: 20, length2: 30, lineStyle: { width: 1 } } }, data: [] }], graphic: [{ type: "text", left: "center", top: "center", style: { text: "", textAlign: "center", fontSize: 34, fontWeight: "bold", fill: "#333" } }] };
15
+ return b(() => [d.used, d.total], ([e, i]) => {
16
+ let l = v(e), s = v(i);
17
+ s != 0 && (u.value = (l / s * 100).toFixed(2) + "%"), o.series[0].data = [{ name: "使用量", value: l }, { name: "剩余量", value: s - l }], o.graphic[0].style.text = u.value, c.value = z(o);
18
+ }, { deep: !0, immediate: !0 }), (e, i) => (w(), y("div", $, [x(n(O), { class: "calc-height", option: c.value, autoresize: "" }, null, 8, ["option"]), a("div", I, [a("div", j, [B, a("div", C, m(n(r)(t.used)), 1)]), a("div", E, [L, a("div", V, m(n(r)(t.total)), 1)])])]));
19
+ } }), [["__scopeId", "data-v-3322ecdb"]]));
20
+ export {
21
+ P as default
22
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as u, ref as j, resolveComponent as y, resolveDirective as w, createElementBlock as c, openBlock as r, createVNode as k, mergeProps as a, withCtx as p, Fragment as R, renderList as x, createBlock as i, renderSlot as h, withDirectives as B, resolveDynamicComponent as D, createCommentVNode as L, unref as A } from "vue";
2
- import { v as $, i as q, _ as N, w as S } from "./index-Pgb7joEc.js";
3
- import U from "./index-NXvTgPcC.js";
4
- import E from "./index-DmTxRLqL.js";
2
+ import { v as $, i as q, _ as N, w as S } from "./index-Bc1JbUHT.js";
3
+ import U from "./index-DA6a6Ugv.js";
4
+ import E from "./index-CBPTnB7I.js";
5
5
  const I = u({ name: "RenderComp", props: { render: Function, item: Object }, render: (t) => t.render(t == null ? void 0 : t.item) }), P = ["src"], z = u({ name: "OForm" }), M = S(N(u({ ...z, props: { fieldList: { type: Object, required: !0 }, model: { type: Object, required: !0 } }, setup(t, { expose: F }) {
6
6
  const O = (l) => {
7
7
  if (l.comp && typeof l.comp == "string") {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, getCurrentInstance as y, createElementBlock as o, openBlock as a, createCommentVNode as r, createElementVNode as c, normalizeStyle as s, renderSlot as l } from "vue";
2
- import { _ as n, w as i } from "./index-Pgb7joEc.js";
2
+ import { _ as n, w as i } from "./index-Bc1JbUHT.js";
3
3
  const f = { class: "basic-layout-box" }, m = d({ name: "OBasicLayout" }), b = i(n(d({ ...m, props: { headerStyle: { type: Object, default: () => ({}) }, mainStyle: { type: Object, default: () => ({}) }, footerStyle: { type: Object, default: () => ({}) } }, setup(t) {
4
4
  const { proxy: p } = y();
5
5
  return (e, u) => (a(), o("div", f, [e.$slots.header ? (a(), o("div", { key: 0, class: "header", style: s(t.headerStyle) }, [l(e.$slots, "header", {}, void 0, !0)], 4)) : r("", !0), c("div", { class: "main", style: s(t.mainStyle) }, [l(e.$slots, "default", {}, void 0, !0)], 4), e.$slots.footer ? (a(), o("div", { key: 1, class: "footer", style: s(t.footerStyle) }, [l(e.$slots, "footer", {}, void 0, !0)], 4)) : r("", !0)]));
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, useCssVars as _, ref as v, useAttrs as F, computed as h, watch as $, onMounted as E, onBeforeUnmount as O, resolveComponent as T, createElementBlock as D, openBlock as l, createBlock as i, resolveDynamicComponent as j, mergeProps as d, createSlots as N, withCtx as n, createElementVNode as k, normalizeClass as L, renderSlot as m, toDisplayString as u, createCommentVNode as w, createTextVNode as x } from "vue";
2
- import { m as M, _ as z, w as I } from "./index-Pgb7joEc.js";
2
+ import { m as M, _ as z, w as I } from "./index-Bc1JbUHT.js";
3
3
  const P = { class: "o-dialog" }, U = S({ name: "ODialog" }), H = I(z(S({ ...U, props: { type: { type: String, default: "" }, title: { type: String, default: "提示" }, theme: { type: String, default: "" }, cancel: { type: [Function, String], default: "" }, cancelText: { type: String, default: "取消" }, confirmText: { type: String, default: "确认" }, showFooter: { type: Boolean, default: !0 }, showCancel: { type: Boolean, default: !0 }, showConfirm: { type: Boolean, default: !0 }, confirmAttrs: { type: Object, default: () => ({}) }, cancelAttrs: { type: Object, default: () => ({}) }, enableConfirm: { type: Boolean, default: !0 }, confirm: { type: Function } }, emits: ["update:modelValue"], setup(t, { emit: b }) {
4
4
  _((o) => ({ "9b0d9700": s.value }));
5
5
  const a = F(), f = b, e = t, B = h(() => e.theme === "norm" ? "kd-norm-dialog" : e.theme === "norm16" ? "kd-norm16-dialog" : e.theme === "simple" ? "kd-simple-dialog" : ""), s = v("calc(100vh - 124px)");
@@ -3791,7 +3791,7 @@ const Ed = ["href", "fill"], Id = p({ name: "OSvg" }), Od = p({ ...Id, props: {
3791
3791
  } }), Td = (e, t) => (e.install = (o) => {
3792
3792
  for (const n of [e, ...Object.values({})])
3793
3793
  o.component(n.name, n);
3794
- }, e), Xn = Td(I1(Od, [["__scopeId", "data-v-0cd51f8b"]])), jd = Object.freeze(Object.defineProperty({ __proto__: null, default: Xn }, Symbol.toStringTag, { value: "Module" })), n1 = Object.assign({ "./components/checkbox/index.ts": () => import("./index-CiU-dy8E.js"), "./components/chooseArea/index.ts": () => import("./index-DJ_UAr-6.js"), "./components/compTitle/index.ts": () => import("./index-l1_Vs-iC.js"), "./components/dateRange/index.ts": () => import("./index-BlSRGbTa.js"), "./components/description/index.ts": () => import("./index-Bx7LxMPA.js"), "./components/dialog/index.ts": () => import("./index-rU8G4dAk.js"), "./components/drawer/index.ts": () => import("./index-C8CBmVdg.js"), "./components/empty/index.ts": () => import("./index-dYBFnUgu.js"), "./components/form/index.ts": () => import("./index-B-ygmUzr.js"), "./components/icon/index.ts": () => import("./index-NXvTgPcC.js"), "./components/input/index.ts": () => import("./index-BdG9MfHW.js"), "./components/inputLabel/index.ts": () => import("./index-D6ltpHL0.js"), "./components/popconfirm/index.ts": () => import("./index-C2Q04YaE.js"), "./components/progress/index.ts": () => import("./index-DRsDXefI.js"), "./components/radio/index.ts": () => import("./index-Bb3fGUsu.js"), "./components/select/index.ts": () => import("./index-CI7M5JUV.js"), "./components/svg/index.ts": () => Promise.resolve().then(() => jd), "./components/switch/index.ts": () => import("./index-CwWhE2XM.js"), "./components/table/index.ts": () => import("./index-DUTNY_YA.js"), "./components/tabs/index.ts": () => import("./index-C4zebkH-.js"), "./components/text/index.ts": () => import("./index-BhUjVpDn.js"), "./components/title/index.ts": () => import("./index-Dj1Fc-fq.js"), "./components/tooltip/index.ts": () => import("./index-DmTxRLqL.js"), "./components/warning/index.ts": () => import("./index-CzOkH60S.js") }), Rd = Object.assign({ "./components/company/basicLayout/index.ts": () => import("./index-CeFiQw-e.js"), "./components/company/capacityProgress/index.ts": () => import("./index-pLYGaLJF.js") });
3794
+ }, e), Xn = Td(I1(Od, [["__scopeId", "data-v-0cd51f8b"]])), jd = Object.freeze(Object.defineProperty({ __proto__: null, default: Xn }, Symbol.toStringTag, { value: "Module" })), n1 = Object.assign({ "./components/checkbox/index.ts": () => import("./index-AFQMmv03.js"), "./components/chooseArea/index.ts": () => import("./index-Bvx3NTB9.js"), "./components/compTitle/index.ts": () => import("./index-CZE57h1w.js"), "./components/dateRange/index.ts": () => import("./index-BeuC7zs0.js"), "./components/description/index.ts": () => import("./index-ByqWuoM-.js"), "./components/dialog/index.ts": () => import("./index-BXcvEPsH.js"), "./components/drawer/index.ts": () => import("./index-C0C14Cyh.js"), "./components/empty/index.ts": () => import("./index-CKt3KEsP.js"), "./components/form/index.ts": () => import("./index-BDybZzPP.js"), "./components/icon/index.ts": () => import("./index-DA6a6Ugv.js"), "./components/input/index.ts": () => import("./index-FqLNWrgU.js"), "./components/inputLabel/index.ts": () => import("./index-ZK1iPOPN.js"), "./components/popconfirm/index.ts": () => import("./index-6I_N2Hxr.js"), "./components/progress/index.ts": () => import("./index-CzvtGSyF.js"), "./components/radio/index.ts": () => import("./index-CzA3GSDj.js"), "./components/select/index.ts": () => import("./index-Dcxwjd2e.js"), "./components/svg/index.ts": () => Promise.resolve().then(() => jd), "./components/switch/index.ts": () => import("./index-DEuKeoEm.js"), "./components/table/index.ts": () => import("./index-CYVvQwXf.js"), "./components/tabs/index.ts": () => import("./index-C59qBt31.js"), "./components/text/index.ts": () => import("./index-BsIl7YEZ.js"), "./components/title/index.ts": () => import("./index-CmqYy4Vs.js"), "./components/tooltip/index.ts": () => import("./index-CBPTnB7I.js"), "./components/warning/index.ts": () => import("./index-DfiY9uUH.js") }), Rd = Object.assign({ "./components/company/basicLayout/index.ts": () => import("./index-BPw0UyO2.js"), "./components/company/capacityProgress/index.ts": () => import("./index-Bk9UpUAG.js"), "./components/company/countBar/index.ts": () => import("./index-CeNW2Gb2.js"), "./components/company/usedPie/index.ts": () => import("./index-BDS5t5f9.js") });
3795
3795
  for (const e in n1)
3796
3796
  n1[e]().then((t) => {
3797
3797
  });
@@ -3897,26 +3897,26 @@ typeof window < "u" && window.Vue && $n(window.Vue);
3897
3897
  const qd = { install: $n, utils: Op };
3898
3898
  export {
3899
3899
  E2 as $,
3900
- Zt as A,
3901
- he as B,
3902
- wp as C,
3903
- yp as D,
3900
+ Dd as A,
3901
+ Op as B,
3902
+ qd as C,
3903
+ Zt as D,
3904
3904
  b9 as E,
3905
- xp as F,
3906
- An as G,
3907
- Cp as H,
3908
- Kt as I,
3909
- zp as J,
3910
- _p as K,
3911
- Ap as L,
3912
- Bp as M,
3913
- B1 as N,
3905
+ he as F,
3906
+ wp as G,
3907
+ yp as H,
3908
+ An as I,
3909
+ Cp as J,
3910
+ Kt as K,
3911
+ zp as L,
3912
+ _p as M,
3913
+ Ap as N,
3914
3914
  Xn as O,
3915
- Hp as P,
3916
- et as Q,
3917
- Vp as R,
3918
- Sp as S,
3919
- Lp as T,
3915
+ Bp as P,
3916
+ B1 as Q,
3917
+ Hp as R,
3918
+ et as S,
3919
+ Vp as T,
3920
3920
  Hn as U,
3921
3921
  Vn as V,
3922
3922
  kp as W,
@@ -3945,7 +3945,7 @@ export {
3945
3945
  n0 as u,
3946
3946
  bp as v,
3947
3947
  Td as w,
3948
- Dd as x,
3949
- Op as y,
3950
- qd as z
3948
+ xp as x,
3949
+ Lp as y,
3950
+ Sp as z
3951
3951
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as m, useAttrs as p, computed as l, resolveComponent as d, createElementBlock as T, openBlock as v, normalizeStyle as x, createVNode as D, unref as i, mergeProps as h } from "vue";
2
- import { p as f, _ as Y, w as y } from "./index-Pgb7joEc.js";
3
- import M from "./index-l1_Vs-iC.js";
2
+ import { p as f, _ as Y, w as y } from "./index-Bc1JbUHT.js";
3
+ import M from "./index-CZE57h1w.js";
4
4
  const S = m({ name: "ODateRange" }), z = y(Y(m({ ...S, props: { title: { type: String, default: "" }, width: { type: [String, Number], default: "300px" } }, setup(u) {
5
5
  const r = p(), s = u, n = 864e5, w = l(() => o.value.type === "daterange" || o.value.type === "datetimerange" ? [{ text: "今天", value: () => {
6
6
  const e = new Date((/* @__PURE__ */ new Date()).toLocaleDateString()).getTime();
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as u, computed as y, onMounted as b, onUnmounted as x, resolveComponent as p, createElementBlock as N, openBlock as f, createVNode as k, createBlock as h, createCommentVNode as _, mergeProps as m, withCtx as $, createElementVNode as o, normalizeStyle as C, toDisplayString as S, renderSlot as z } from "vue";
2
- import { r as B, s as E, _ as q, w as V } from "./index-Pgb7joEc.js";
2
+ import { r as B, s as E, _ as q, w as V } from "./index-Bc1JbUHT.js";
3
3
  const j = { class: "f-st-ct w-100%" }, A = { class: "percentage-value" }, L = { class: "" }, O = v({ name: "OCapacityProgress" }), D = V(q(v({ ...O, props: { total: { type: [String, Number], required: !0 }, used: { type: [String, Number], required: !0 }, iconAttrs: { type: Object, default: () => {
4
4
  } } }, setup(l) {
5
5
  const t = u(null), i = u(null), c = l;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, useSlots as m, ref as p, onMounted as d, h as v, resolveComponent as C, createBlock as g, openBlock as h, mergeProps as y, withModifiers as x, withCtx as b, renderSlot as P } from "vue";
2
- import { q as i, w as k } from "./index-Pgb7joEc.js";
2
+ import { q as i, w as k } from "./index-Bc1JbUHT.js";
3
3
  const w = u({ name: "OText" }), $ = k(u({ ...w, props: { lineClamp: { type: [String, Number] }, tippyProps: { type: Object, default: () => ({}) } }, setup(a) {
4
4
  const s = a, o = m(), n = p(), l = p(), r = () => ({ content: v(o.content || o.default), ...s.tippyProps });
5
5
  function c(e) {