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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oeos-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.24",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/oeos-components-es.js",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"vite-plugin-vue-setup-extend": "^0.4.0",
|
|
55
55
|
"vitepress": "1.0.0-rc.1",
|
|
56
56
|
"vue": "^3.4.15",
|
|
57
|
+
"vue-echarts": "^6.7.3",
|
|
57
58
|
"vue-router": "^4.2.5",
|
|
58
59
|
"vue-tippy": "^6.4.1"
|
|
59
60
|
},
|
package/dist/index-YVlUw8GC.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { getCurrentInstance as J, ref as W, watch as B, nextTick as M, computed as $, defineComponent as G, useAttrs as U, resolveComponent as j, createElementBlock as q, openBlock as w, mergeProps as b, createVNode as F, createBlock as C, createCommentVNode as P, unref as y, withCtx as u, createElementVNode as N, isRef as E, createSlots as L, normalizeStyle as T, toDisplayString as I, renderSlot as x } from "vue";
|
|
2
|
-
import { m as R, p as z, _ as H, w as K } from "./index-oKZkmdJE.js";
|
|
3
|
-
import D from "./index-eagdaWyv.js";
|
|
4
|
-
function Q(r, o, a, h = {}) {
|
|
5
|
-
var f, n, g;
|
|
6
|
-
const { clone: m = !1, passive: k = !1, eventName: A, deep: _ = !1, defaultValue: O, shouldEmit: S } = h, i = J(), V = (i == null ? void 0 : i.emit) || ((f = i == null ? void 0 : i.$emit) == null ? void 0 : f.bind(i)) || ((g = (n = i == null ? void 0 : i.proxy) == null ? void 0 : n.$emit) == null ? void 0 : g.bind(i == null ? void 0 : i.proxy));
|
|
7
|
-
let p = A;
|
|
8
|
-
o || (o = "modelValue"), p = p || `update:${o.toString()}`;
|
|
9
|
-
const e = (s) => {
|
|
10
|
-
return m ? typeof m == "function" ? m(s) : (d = s, JSON.parse(JSON.stringify(d))) : s;
|
|
11
|
-
var d;
|
|
12
|
-
}, t = () => r[o] !== void 0 ? e(r[o]) : O, v = (s) => {
|
|
13
|
-
S ? S(s) && V(p, s) : V(p, s);
|
|
14
|
-
};
|
|
15
|
-
if (k) {
|
|
16
|
-
const s = t(), d = W(s);
|
|
17
|
-
let l = !1;
|
|
18
|
-
return B(() => r[o], (c) => {
|
|
19
|
-
l || (l = !0, d.value = e(c), M(() => l = !1));
|
|
20
|
-
}), B(d, (c) => {
|
|
21
|
-
l || c === r[o] && !_ || v(c);
|
|
22
|
-
}, { deep: _ }), d;
|
|
23
|
-
}
|
|
24
|
-
return $({ get: () => t(), set(s) {
|
|
25
|
-
v(s);
|
|
26
|
-
} });
|
|
27
|
-
}
|
|
28
|
-
const X = G({ name: "OInput" }), te = K(H(G({ ...X, props: { modelValue: { required: !0 }, titleAttrs: { type: Object, default: () => {
|
|
29
|
-
} }, width: { type: [String, Number], default: "100%" }, showWordLimit: { type: [Boolean, String], default: "" }, block: { type: Boolean, default: !1 }, disPlaceholder: { type: String, default: "" }, subAttrs: { type: Object, default: () => ({}) }, tooltipAttrs: { type: Object, default: () => ({}) }, iconAttrs: { type: Object, default: () => ({}) }, hideTooltip: { type: Boolean, default: !1 }, options: { type: Array }, content: { type: String, default: "" } }, setup(r) {
|
|
30
|
-
const o = U(), a = r, h = W([]), f = W(!0), n = Q(a), g = $(() => o.type === "textarea" ? o.maxlength || 1e3 : o.maxlength || "");
|
|
31
|
-
B(() => a.options, (e) => {
|
|
32
|
-
e && (h.value = e.map((t) => R(t) === "object" ? t : { value: t }));
|
|
33
|
-
}, { deep: !0, immediate: !0 });
|
|
34
|
-
const m = $(() => {
|
|
35
|
-
var e;
|
|
36
|
-
if ((e = a.titleAttrs) != null && e.width) {
|
|
37
|
-
let t = parseInt(a.titleAttrs.width) - 8 + "px";
|
|
38
|
-
return { ...a.titleAttrs, width: z(t, !0) };
|
|
39
|
-
}
|
|
40
|
-
return a.titleAttrs;
|
|
41
|
-
});
|
|
42
|
-
function k() {
|
|
43
|
-
return o.disabled === "" || o.disabled ? a.disPlaceholder : o.placeholder || "请输入";
|
|
44
|
-
}
|
|
45
|
-
function A(e) {
|
|
46
|
-
const t = e.target;
|
|
47
|
-
t.offsetWidth + 4 < t.scrollWidth ? f.value = !1 : f.value = !0;
|
|
48
|
-
}
|
|
49
|
-
const _ = () => {
|
|
50
|
-
if (!a.width)
|
|
51
|
-
return {};
|
|
52
|
-
let e = z(a.width, !0);
|
|
53
|
-
return a.content && e && (e = `calc(${e} - 32px)`), { width: e };
|
|
54
|
-
}, O = () => {
|
|
55
|
-
n.value = "";
|
|
56
|
-
}, S = $(() => o.type === "password" && o.showPassword !== !1), i = (e, t) => {
|
|
57
|
-
t(e ? h.value.filter(V(e)) : h.value);
|
|
58
|
-
}, V = (e) => (t) => t.value.toLowerCase().indexOf(e.toLowerCase()) === 0, p = $(() => ({ resize: "none", rows: 2, clearable: !0, ...Object.entries(o).reduce((e, [t, v]) => (t !== "class" && t !== "style" && (e[t] = v), e), {}) }));
|
|
59
|
-
return (e, t) => {
|
|
60
|
-
const v = j("el-autocomplete"), s = j("el-input"), d = j("el-tooltip");
|
|
61
|
-
return w(), q("div", b({ class: "o-input" }, r.subAttrs, { style: { ..._() } }), [F(d, b({ content: "" + y(n), disabled: f.value || r.hideTooltip }, r.tooltipAttrs), { default: u(() => [N("div", null, [a.options ? (w(), C(v, b({ key: 0, modelValue: y(n), "onUpdate:modelValue": t[0] || (t[0] = (l) => E(n) ? n.value = l : null), "fetch-suggestions": i, placeholder: k(), clearable: e.$attrs.clearable !== !1, onMouseover: t[1] || (t[1] = (l) => A(l)) }, p.value), L({ _: 2 }, [e.$attrs.title ? { name: "prepend", fn: u(() => [N("div", { style: T({ ...m.value }), class: "o-input__title" }, I(e.$attrs.title), 5)]), key: "0" } : void 0]), 1040, ["modelValue", "placeholder", "clearable"])) : (w(), C(s, b({ key: 1, modelValue: y(n), "onUpdate:modelValue": t[2] || (t[2] = (l) => E(n) ? n.value = l : null), placeholder: k(), class: ["kd-ipt", { "kd-textarea": e.$attrs.type === "textarea" }], showPassword: S.value, maxlength: g.value }, p.value, { "show-word-limit": typeof a.showWordLimit == "boolean" ? a.showWordLimit : o.type === "textarea", onFocus: t[3] || (t[3] = (l) => {
|
|
62
|
-
return c = l, void (o.type === "password" && c.currentTarget.select());
|
|
63
|
-
var c;
|
|
64
|
-
}), onMouseover: t[4] || (t[4] = (l) => A(l)) }), L({ default: u(() => [x(e.$slots, "default", {}, void 0, !0)]), _: 2 }, [e.$attrs.title ? { name: "prepend", fn: u(() => [N("div", { style: T({ ...m.value }), class: "o-input__title" }, I(e.$attrs.title), 5)]), key: "0" } : void 0, e.$slots.prefix ? { name: "prefix", fn: u(() => [x(e.$slots, "prefix", {}, void 0, !0)]), key: "1" } : void 0, e.$slots.suffix ? { name: "suffix", fn: u(() => [x(e.$slots, "suffix", {}, void 0, !0)]), key: "2" } : void 0, e.$slots.append ? { name: "append", fn: u(() => [x(e.$slots, "append", {}, void 0, !0)]), key: "3" } : void 0, e.$slots.prepend ? { name: "prepend", fn: u(() => [x(e.$slots, "prepend", {}, void 0, !0)]), key: "4" } : void 0]), 1040, ["modelValue", "placeholder", "showPassword", "class", "maxlength", "show-word-limit"]))])]), _: 3 }, 16, ["content", "disabled"]), r.content ? (w(), C(y(D), b({ key: 0, class: "o-input__icon" }, { name: "warning", color: "#DCDEE0", size: "16px", ...a.iconAttrs }, { content: r.content }), null, 16, ["content"])) : P("", !0), e.$attrs.type === "textarea" && y(n) && e.$attrs.disabled !== !0 && e.$attrs.disabled !== "" ? (w(), C(y(D), { key: 1, name: "circle-close", class: "o-input__clear", onClick: O })) : P("", !0)], 16);
|
|
65
|
-
};
|
|
66
|
-
} }), [["__scopeId", "data-v-1cf0b7d9"]]));
|
|
67
|
-
export {
|
|
68
|
-
te as default
|
|
69
|
-
};
|