oeos-components 0.2.22 → 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.
- package/dist/{index-BIcu2-wb.js → index-6I_N2Hxr.js} +1 -1
- package/dist/{index-eTdzKQSf.js → index-AFQMmv03.js} +1 -1
- package/dist/index-BDS5t5f9.js +22 -0
- package/dist/{index-CaSY-U7O.js → index-BDybZzPP.js} +3 -3
- package/dist/{index-DacfJzdq.js → index-BPw0UyO2.js} +1 -1
- package/dist/{index-CKmxF-4w.js → index-BXcvEPsH.js} +1 -1
- package/dist/{index-oKZkmdJE.js → index-Bc1JbUHT.js} +1577 -1586
- package/dist/{index-BuXcEqxo.js → index-BeuC7zs0.js} +2 -2
- package/dist/{index-BNvP4O6r.js → index-Bk9UpUAG.js} +1 -1
- package/dist/{index-Bmrnfgvu.js → index-BsIl7YEZ.js} +1 -1
- package/dist/{index-Br_coPdb.js → index-Bvx3NTB9.js} +1 -1
- package/dist/{index-amhN_7QJ.js → index-ByqWuoM-.js} +2 -2
- package/dist/{index-BlCncjns.js → index-C0C14Cyh.js} +1 -1
- package/dist/{index-CXzKuZP-.js → index-C59qBt31.js} +1 -1
- package/dist/{index-C5trOMLF.js → index-CBPTnB7I.js} +1 -1
- package/dist/{index-C2XEWjPc.js → index-CKt3KEsP.js} +1 -1
- package/dist/{index-DEfZXGVK.js → index-CYVvQwXf.js} +3 -3
- package/dist/{index-BBpNruQw.js → index-CZE57h1w.js} +1 -1
- package/dist/index-CeNW2Gb2.js +21 -0
- package/dist/{index-B2yUHtXe.js → index-CmqYy4Vs.js} +1 -1
- package/dist/{index-JmmAM1p4.js → index-CzA3GSDj.js} +1 -1
- package/dist/{index-BzJwoLIR.js → index-CzvtGSyF.js} +1 -1
- package/dist/{index-eagdaWyv.js → index-DA6a6Ugv.js} +1 -1
- package/dist/{index-CU4JzrVQ.js → index-DEuKeoEm.js} +1 -1
- package/dist/{index-CxCZc2Ww.js → index-Dcxwjd2e.js} +2 -2
- package/dist/{index-Bat-sdaw.js → index-DfiY9uUH.js} +2 -2
- package/dist/index-FqLNWrgU.js +68 -0
- package/dist/{index-DFpHH1sr.js → index-ZK1iPOPN.js} +3 -3
- package/dist/index.esm.min-CAtOnJMt.js +8962 -0
- package/dist/oeos-components-es.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -1
- package/dist/index-YVlUw8GC.js +0 -69
|
@@ -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-
|
|
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-
|
|
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-
|
|
3
|
-
import U from "./index-
|
|
4
|
-
import E from "./index-
|
|
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-
|
|
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-
|
|
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)");
|