oeos-components 0.2.25 → 0.2.26
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/oeos-components-es.js +26628 -36
- package/dist/oeos-components-umd.js +70 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index-1XV9-2Cy.js +0 -10
- package/dist/index-B3BmevVf.js +0 -16
- package/dist/index-B8VlvnHB.js +0 -19
- package/dist/index-BIWsXDlG.js +0 -50
- package/dist/index-BVxV3IZX.js +0 -68
- package/dist/index-BWZjiW7O.js +0 -37
- package/dist/index-Bhz66Ovv.js +0 -12
- package/dist/index-Bik1duy_.js +0 -33
- package/dist/index-Bv1Ot1gj.js +0 -12
- package/dist/index-BxifZp2d.js +0 -18
- package/dist/index-CJJD45Js.js +0 -35
- package/dist/index-CR5-Nhky.js +0 -12
- package/dist/index-CWX1jLTC.js +0 -13
- package/dist/index-C_pRXtFA.js +0 -45
- package/dist/index-Cc6aWwg0.js +0 -22
- package/dist/index-CysXv5xt.js +0 -67
- package/dist/index-D2YE_CK1.js +0 -77
- package/dist/index-D6RBq1jJ.js +0 -9
- package/dist/index-DFjeMO-s.js +0 -52
- package/dist/index-Dd0ypMV4.js +0 -39
- package/dist/index-DkSTvVGB.js +0 -3951
- package/dist/index-DlR59eWY.js +0 -15
- package/dist/index-DqMKoDe8.js +0 -25
- package/dist/index-E4jh-RZ6.js +0 -22
- package/dist/index-GwF1VsWt.js +0 -21
- package/dist/index-IcBLFNZx.js +0 -27
- package/dist/index-dvFIaMgS.js +0 -25
- package/dist/index-rS9AldtC.js +0 -18
- package/dist/useEcharts-BuT3eL3E.js +0 -22077
package/dist/index-IcBLFNZx.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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-DkSTvVGB.js";
|
|
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
|
-
const s = g(!1), C = () => {
|
|
5
|
-
N(() => {
|
|
6
|
-
document.addEventListener("click", b);
|
|
7
|
-
});
|
|
8
|
-
}, b = (e) => {
|
|
9
|
-
document.querySelector(".el-popover").contains(e.target) || o();
|
|
10
|
-
}, r = k;
|
|
11
|
-
function l() {
|
|
12
|
-
o(), r("confirm");
|
|
13
|
-
}
|
|
14
|
-
function o() {
|
|
15
|
-
s.value = !1;
|
|
16
|
-
}
|
|
17
|
-
function w() {
|
|
18
|
-
o(), r("cancel");
|
|
19
|
-
}
|
|
20
|
-
return _({ close: o }), (e, c) => {
|
|
21
|
-
const d = p("el-button"), S = p("el-popover");
|
|
22
|
-
return t.reConfirm ? (m(), f("div", V, [a(S, $({ class: "o-popconfirm", title: t.title, width: t.width }, e.$attrs, { onShow: C, visible: s.value, "onUpdate:visible": c[0] || (c[0] = (h) => s.value = h) }), { reference: n(() => [i(e.$slots, "default", {}, void 0, !0)]), default: n(() => [i(e.$slots, "content", {}, () => [u("div", q, x(t.content), 1)], !0), u("div", z, [i(e.$slots, "footer", {}, () => [a(d, { size: "small", type: "info", onClick: w }, { default: n(() => [v("取消")]), _: 1 }), a(d, { size: "small", type: "primary", onClick: l }, { default: n(() => [v("确定")]), _: 1 })], !0)])]), _: 3 }, 16, ["title", "width", "visible"])])) : (m(), f("div", { key: 1, onClick: l }, [i(e.$slots, "default", {}, void 0, !0)]));
|
|
23
|
-
};
|
|
24
|
-
} }), [["__scopeId", "data-v-10b276e7"]]));
|
|
25
|
-
export {
|
|
26
|
-
L as default
|
|
27
|
-
};
|
package/dist/index-dvFIaMgS.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, useAttrs as O, computed as _, resolveComponent as c, createElementBlock as C, openBlock as l, createVNode as w, mergeProps as d, withCtx as s, createElementVNode as y, createCommentVNode as i, renderSlot as p, createBlock as b, createTextVNode as f, toDisplayString as u, unref as z } from "vue";
|
|
2
|
-
import { _ as g, w as V } from "./index-DkSTvVGB.js";
|
|
3
|
-
const S = { class: "o-drawer" }, j = { class: "drawer-main" }, N = { class: "content" }, $ = { key: 0, class: "kd-drawer-footer" }, D = h({ name: "ODrawer" }), P = V(g(h({ ...D, props: { confirmText: { type: String, default: "提交" }, cancelText: { type: String, default: "取消" }, showFooter: { type: Boolean, default: !0 }, showConfirm: { type: Boolean, default: !0 }, showCancel: { type: Boolean, default: !0 }, wrapperClosable: { type: Boolean, default: !0 }, confirmAttrs: { type: Object, default: () => ({}) }, cancelAttrs: { type: Object, default: () => ({}) }, detailAttrs: { type: Object, default: () => {
|
|
4
|
-
} }, type: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e, { emit: v }) {
|
|
5
|
-
const k = v, o = e, a = O(), r = _(() => {
|
|
6
|
-
let t = { size: a.size || 640, confirmText: o.confirmText, showCancel: o.showCancel, wrapperClosable: o.wrapperClosable, destroyOnClose: !0 };
|
|
7
|
-
return o.type === "detail" && (t = Object.assign({ size: 400, confirmText: "关闭", showCancel: !1, wrapperClosable: !0, destroyOnClose: !0 }, o.detailAttrs)), t;
|
|
8
|
-
});
|
|
9
|
-
function A() {
|
|
10
|
-
a.onConfirm ? a.onConfirm() : n();
|
|
11
|
-
}
|
|
12
|
-
function x() {
|
|
13
|
-
a.onCancel ? a.onCancel() : n();
|
|
14
|
-
}
|
|
15
|
-
function n() {
|
|
16
|
-
k("update:modelValue", !1);
|
|
17
|
-
}
|
|
18
|
-
return (t, E) => {
|
|
19
|
-
const T = c("el-scrollbar"), m = c("el-button"), B = c("el-drawer");
|
|
20
|
-
return l(), C("div", S, [w(B, d({ "wrapper-closable": r.value.wrapperClosable, "destroy-on-close": r.value.wrapperClosable !== !1, "with-header": !0, size: r.value.size }, t.$attrs, { onClose: n }), { header: s(() => [p(t.$slots, "header", {}, () => [f(u(z(a).title), 1)], !0)]), default: s(() => [y("div", j, [w(T, { class: "drawer-scrollbar" }, { default: s(() => [y("div", N, [p(t.$slots, "default", {}, void 0, !0)])]), _: 3 })]), e.showFooter ? (l(), C("div", $, [p(t.$slots, "footer", {}, () => [e.showConfirm ? (l(), b(m, d({ key: 0, id: "kdDrawerConfirmBtn", type: e.confirmAttrs.type || "primary" }, e.confirmAttrs, { class: "mr", onClick: A }), { default: s(() => [f(u(r.value.confirmText), 1)]), _: 1 }, 16, ["type"])) : i("", !0), r.value.showCancel ? (l(), b(m, d({ key: 1, type: e.cancelAttrs.type || "info" }, e.cancelAttrs, { onClick: x }), { default: s(() => [f(u(e.cancelText), 1)]), _: 1 }, 16, ["type"])) : i("", !0)], !0)])) : i("", !0)]), _: 3 }, 16, ["wrapper-closable", "destroy-on-close", "size"])]);
|
|
21
|
-
};
|
|
22
|
-
} }), [["__scopeId", "data-v-d9b92024"]]));
|
|
23
|
-
export {
|
|
24
|
-
P as default
|
|
25
|
-
};
|
package/dist/index-rS9AldtC.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, ref as p, watch as i, resolveComponent as m, createElementBlock as u, openBlock as d, createVNode as v, mergeProps as g, withCtx as f, renderSlot as h } from "vue";
|
|
2
|
-
import { _ as w, w as N } from "./index-DkSTvVGB.js";
|
|
3
|
-
const _ = { class: "o-progress" }, b = s({ name: "OProgress" }), B = N(w(s({ ...b, props: { percentage: { type: Number, required: !0 }, animationTime: { type: Number, default: 500 }, isAnimation: { type: Boolean, default: !0 } }, setup(n) {
|
|
4
|
-
const e = n, l = { "stroke-width": 16 }, t = p(0), c = (a) => a < 30 ? "#909399" : a < 70 ? "#e6a23c" : "#67c23a";
|
|
5
|
-
return i(() => e.percentage, (a) => {
|
|
6
|
-
e.isAnimation && (() => {
|
|
7
|
-
let o = Math.ceil(e.animationTime / e.percentage), r = setInterval(() => {
|
|
8
|
-
t.value = Number(t.value) + 1, (t.value >= e.percentage || t.value >= 100) && (t.value = e.percentage >= 100 ? 100 : e.percentage, clearInterval(r));
|
|
9
|
-
}, o);
|
|
10
|
-
})();
|
|
11
|
-
}, { immediate: !0 }), (a, o) => {
|
|
12
|
-
const r = m("el-progress");
|
|
13
|
-
return d(), u("div", _, [v(r, g({ percentage: t.value }, { ...l, ...a.$attrs }, { color: a.$attrs.color || c }), { default: f(() => [h(a.$slots, "default", {}, void 0, !0)]), _: 3 }, 16, ["percentage", "color"])]);
|
|
14
|
-
};
|
|
15
|
-
} }), [["__scopeId", "data-v-8e18af94"]]));
|
|
16
|
-
export {
|
|
17
|
-
B as default
|
|
18
|
-
};
|