oeos-components 0.4.3 → 0.4.5
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-BJ5ye2uN.js +6790 -0
- package/dist/index-BlFYCYJS.js +1105 -0
- package/dist/oeos-components-es.js +1 -1
- package/dist/oeos-components-umd.js +21 -74
- package/dist/style.css +1 -1
- package/package.json +11 -6
- package/dist/index-BQgLXMja.js +0 -139
- package/dist/index-CLBshmOV.js +0 -1121
- package/dist/index-Cn7y4H5V.js +0 -36311
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oeos-components",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Vue3 中基于Element-plus二次封装基础组件文档",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
"chalk": "^5.3.0",
|
|
45
45
|
"consola": "^3.2.3",
|
|
46
46
|
"dayjs": "^1.11.19",
|
|
47
|
-
"echarts": "^5.5.0",
|
|
48
47
|
"element-plus": "^2.11.5",
|
|
49
48
|
"escape-html": "^1.0.3",
|
|
50
49
|
"fast-glob": "^3.3.3",
|
|
@@ -64,8 +63,6 @@
|
|
|
64
63
|
"vite-plugin-vue-setup-extend": "^0.4.0",
|
|
65
64
|
"vite-svg-loader": "^5.1.0",
|
|
66
65
|
"vitepress": "1.0.0-rc.1",
|
|
67
|
-
"vue": "^3.4.15",
|
|
68
|
-
"vue-echarts": "^7.0.3",
|
|
69
66
|
"vue-router": "^4.2.5",
|
|
70
67
|
"vue-tippy": "^6.4.1",
|
|
71
68
|
"vue-tsc": "^3.1.5"
|
|
@@ -80,7 +77,10 @@
|
|
|
80
77
|
"prettier": "^3.0.3",
|
|
81
78
|
"terser": "^5.31.1",
|
|
82
79
|
"vite": "^5.2.11",
|
|
83
|
-
"vite-plugin-md": "^0.21.5"
|
|
80
|
+
"vite-plugin-md": "^0.21.5",
|
|
81
|
+
"echarts": "^5.5.0",
|
|
82
|
+
"vue-echarts": "^7.0.3",
|
|
83
|
+
"vue": "^3.4.15"
|
|
84
84
|
},
|
|
85
85
|
"repository": {
|
|
86
86
|
"type": "git",
|
|
@@ -95,5 +95,10 @@
|
|
|
95
95
|
"cyrd",
|
|
96
96
|
"创云融达",
|
|
97
97
|
"llh"
|
|
98
|
-
]
|
|
98
|
+
],
|
|
99
|
+
"peerDependencies": {
|
|
100
|
+
"echarts": ">=5.5.0 <6",
|
|
101
|
+
"vue-echarts": ">=6.7.3 <8",
|
|
102
|
+
"vue": ">=3.4.0 <4"
|
|
103
|
+
}
|
|
99
104
|
}
|
package/dist/index-BQgLXMja.js
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
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 { a4 as ie, a5 as le } from "./index-Cn7y4H5V.js";
|
|
3
|
-
const re = ["getWidth", "getHeight", "getDom", "getOption", "resize", "dispatchAction", "convertToPixel", "convertFromPixel", "containPixel", "getDataURL", "getConnectedDataURL", "appendData", "clear", "isDisposed", "dispose"];
|
|
4
|
-
function ue(t) {
|
|
5
|
-
return function() {
|
|
6
|
-
const u = /* @__PURE__ */ Object.create(null);
|
|
7
|
-
return re.forEach((i) => {
|
|
8
|
-
u[i] = /* @__PURE__ */ function(o) {
|
|
9
|
-
return (...f) => {
|
|
10
|
-
if (!t.value)
|
|
11
|
-
throw new Error("ECharts is not initialized yet.");
|
|
12
|
-
return t.value[o].apply(t.value, f);
|
|
13
|
-
};
|
|
14
|
-
}(i);
|
|
15
|
-
}), u;
|
|
16
|
-
}();
|
|
17
|
-
}
|
|
18
|
-
const ce = { autoresize: [Boolean, Object] }, pe = /^on[^a-z]/, R = (t) => pe.test(t);
|
|
19
|
-
function b(t, u) {
|
|
20
|
-
const i = oe(t) ? se(t) : t;
|
|
21
|
-
return i && typeof i == "object" && "value" in i ? i.value || u : i || u;
|
|
22
|
-
}
|
|
23
|
-
const de = "ecLoadingOptions", fe = { loading: Boolean, loadingOptions: Object };
|
|
24
|
-
let d = null;
|
|
25
|
-
const H = "x-vue-echarts";
|
|
26
|
-
document.head.appendChild(document.createElement("style")).textContent = `x-vue-echarts{display:block;width:100%;height:100%;min-width:0}
|
|
27
|
-
`;
|
|
28
|
-
const he = function() {
|
|
29
|
-
if (d != null)
|
|
30
|
-
return d;
|
|
31
|
-
if (typeof HTMLElement > "u" || typeof customElements > "u")
|
|
32
|
-
return d = !1;
|
|
33
|
-
try {
|
|
34
|
-
new Function("tag", "class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);")(H);
|
|
35
|
-
} catch {
|
|
36
|
-
return d = !1;
|
|
37
|
-
}
|
|
38
|
-
return d = !0;
|
|
39
|
-
}(), ve = "ecTheme", ge = "ecInitOptions", Oe = "ecUpdateOptions", k = /(^&?~?!?)native:/;
|
|
40
|
-
var Ee = Q({ name: "echarts", props: { option: Object, theme: { type: [Object, String] }, initOptions: Object, updateOptions: Object, group: String, manualUpdate: Boolean, ...ce, ...fe }, emits: {}, inheritAttrs: !1, setup(t, { attrs: u }) {
|
|
41
|
-
const i = w(), o = w(), f = w(), M = _(ve, null), S = _(ge, null), $ = _(Oe, null), { autoresize: C, manualUpdate: B, loading: N, loadingOptions: K } = X(t), W = p(() => f.value || t.option || null), T = p(() => t.theme || b(M, {})), z = p(() => t.initOptions || b(S, {})), A = p(() => t.updateOptions || b($, {})), Y = p(() => function(n) {
|
|
42
|
-
const e = {};
|
|
43
|
-
for (const s in n)
|
|
44
|
-
R(s) || (e[s] = n[s]);
|
|
45
|
-
return e;
|
|
46
|
-
}(u)), y = {}, h = ee().proxy.$listeners, v = {};
|
|
47
|
-
function g(n) {
|
|
48
|
-
if (!i.value)
|
|
49
|
-
return;
|
|
50
|
-
const e = o.value = ie(i.value, T.value, z.value);
|
|
51
|
-
function s() {
|
|
52
|
-
const l = n || W.value;
|
|
53
|
-
l && e.setOption(l, A.value);
|
|
54
|
-
}
|
|
55
|
-
t.group && (e.group = t.group), Object.keys(v).forEach((l) => {
|
|
56
|
-
let r = v[l];
|
|
57
|
-
if (!r)
|
|
58
|
-
return;
|
|
59
|
-
let a = l.toLowerCase();
|
|
60
|
-
a.charAt(0) === "~" && (a = a.substring(1), r.__once__ = !0);
|
|
61
|
-
let m = e;
|
|
62
|
-
if (a.indexOf("zr:") === 0 && (m = e.getZr(), a = a.substring(3)), r.__once__) {
|
|
63
|
-
delete r.__once__;
|
|
64
|
-
const x = r;
|
|
65
|
-
r = (...c) => {
|
|
66
|
-
x(...c), m.off(a, r);
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
m.on(a, r);
|
|
70
|
-
}), C.value ? ae(() => {
|
|
71
|
-
e && !e.isDisposed() && e.resize(), s();
|
|
72
|
-
}) : s();
|
|
73
|
-
}
|
|
74
|
-
function j() {
|
|
75
|
-
o.value && (o.value.dispose(), o.value = void 0);
|
|
76
|
-
}
|
|
77
|
-
h ? Object.keys(h).forEach((n) => {
|
|
78
|
-
k.test(n) ? y[n.replace(k, "$1")] = h[n] : v[n] = h[n];
|
|
79
|
-
}) : Object.keys(u).filter((n) => R(n)).forEach((n) => {
|
|
80
|
-
let e = n.charAt(2).toLowerCase() + n.slice(3);
|
|
81
|
-
if (e.indexOf("native:") !== 0)
|
|
82
|
-
e.substring(e.length - 4) === "Once" && (e = `~${e.substring(0, e.length - 4)}`), v[e] = u[n];
|
|
83
|
-
else {
|
|
84
|
-
const s = `on${e.charAt(7).toUpperCase()}${e.slice(8)}`;
|
|
85
|
-
y[s] = u[n];
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
let O = null;
|
|
89
|
-
E(B, (n) => {
|
|
90
|
-
typeof O == "function" && (O(), O = null), n || (O = E(() => t.option, (e, s) => {
|
|
91
|
-
e && (o.value ? o.value.setOption(e, { notMerge: e !== s, ...A.value }) : g());
|
|
92
|
-
}, { deep: !0 }));
|
|
93
|
-
}, { immediate: !0 }), E([T, z], () => {
|
|
94
|
-
j(), g();
|
|
95
|
-
}, { deep: !0 }), P(() => {
|
|
96
|
-
t.group && o.value && (o.value.group = t.group);
|
|
97
|
-
});
|
|
98
|
-
const F = ue(o);
|
|
99
|
-
return function(n, e, s) {
|
|
100
|
-
const l = _(de, {}), r = p(() => ({ ...b(l, {}), ...s == null ? void 0 : s.value }));
|
|
101
|
-
P(() => {
|
|
102
|
-
const a = n.value;
|
|
103
|
-
a && (e.value ? a.showLoading(r.value) : a.hideLoading());
|
|
104
|
-
});
|
|
105
|
-
}(o, N, K), function(n, e, s) {
|
|
106
|
-
E([s, n, e], ([l, r, a], m, x) => {
|
|
107
|
-
let c = null;
|
|
108
|
-
if (l && r && a) {
|
|
109
|
-
const { offsetWidth: Z, offsetHeight: G } = l, q = a === !0 ? {} : a, { throttle: D = 100, onResize: L } = q;
|
|
110
|
-
let U = !1;
|
|
111
|
-
const I = () => {
|
|
112
|
-
r.resize(), L == null || L();
|
|
113
|
-
}, J = D ? le(I, D) : I;
|
|
114
|
-
c = new ResizeObserver(() => {
|
|
115
|
-
(U || (U = !0, l.offsetWidth !== Z || l.offsetHeight !== G)) && J();
|
|
116
|
-
}), c.observe(l);
|
|
117
|
-
}
|
|
118
|
-
x(() => {
|
|
119
|
-
c && (c.disconnect(), c = null);
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
}(o, C, i), te(() => {
|
|
123
|
-
g();
|
|
124
|
-
}), ne(() => {
|
|
125
|
-
he && i.value ? i.value.__dispose = j : j();
|
|
126
|
-
}), { chart: o, root: i, setOption: function(n, e) {
|
|
127
|
-
t.manualUpdate && (f.value = n), o.value ? o.value.setOption(n, e || {}) : g(n);
|
|
128
|
-
}, nonEventAttrs: Y, nativeListeners: y, ...F };
|
|
129
|
-
}, render() {
|
|
130
|
-
const t = { ...this.nonEventAttrs, ...this.nativeListeners };
|
|
131
|
-
return t.ref = "root", t.class = t.class ? ["echarts"].concat(t.class) : "echarts", V(H, t);
|
|
132
|
-
} });
|
|
133
|
-
export {
|
|
134
|
-
ge as INIT_OPTIONS_KEY,
|
|
135
|
-
de as LOADING_OPTIONS_KEY,
|
|
136
|
-
ve as THEME_KEY,
|
|
137
|
-
Oe as UPDATE_OPTIONS_KEY,
|
|
138
|
-
Ee as default
|
|
139
|
-
};
|