@ecan-bi/datav 1.2.2 → 1.2.4
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.es.js +24 -15
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/graph/bar/Bar.vue.d.ts +9 -0
- package/types/graph/bar/index.d.ts +9 -0
- package/types/graph/bar/props.d.ts +5 -0
- package/types/graph/combo-graph/ComboGraph.vue.d.ts +9 -0
- package/types/graph/combo-graph/index.d.ts +9 -0
- package/types/graph/combo-graph/props.d.ts +5 -0
- package/types/graph/line/Line.vue.d.ts +9 -0
- package/types/graph/line/index.d.ts +9 -0
- package/types/graph/line/props.d.ts +6 -0
- package/types/graph/scatter/Scatter.vue.d.ts +9 -0
- package/types/graph/scatter/index.d.ts +9 -0
- package/types/graph/scatter/props.d.ts +5 -0
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.2.
|
|
1
|
+
/*! @ecan-bi/datav@1.2.4 */
|
|
2
2
|
import { watch as ee, inject as V, computed as j, unref as w, watchEffect as ko, defineComponent as te, shallowRef as Ot, toRefs as Jn, onMounted as Je, onUnmounted as kt, h as St, nextTick as At, createVNode as U, resolveComponent as Z, openBlock as O, createElementBlock as z, createBlock as ze, renderSlot as rt, withCtx as K, ref as T, normalizeStyle as q, createCommentVNode as ke, provide as je, onBeforeUnmount as Bt, toDisplayString as Ce, Fragment as De, renderList as Fe, createElementVNode as X, normalizeClass as Ut, pushScopeId as _t, popScopeId as Tt, resolveDynamicComponent as Yn, mergeProps as Ao, toHandlers as Qn, createTextVNode as ct, withModifiers as _o, reactive as Kn, withDirectives as Xn, vShow as ea } from "vue";
|
|
3
3
|
import { throttle as ta, init as oa, use as Ke, registerMap as na } from "echarts/core";
|
|
4
4
|
import { addListener as aa, removeListener as la } from "resize-detector";
|
|
@@ -2967,7 +2967,6 @@ const cs = /* @__PURE__ */ oe(ss, [["render", rs]]), ds = ae(cs), yn = {
|
|
|
2967
2967
|
try {
|
|
2968
2968
|
const S = await n();
|
|
2969
2969
|
if (a.value = c(((v = (C = S == null ? void 0 : S.data) == null ? void 0 : C.data) == null ? void 0 : v.rows) || []), e.selectFirstOption) {
|
|
2970
|
-
console.log(w(a));
|
|
2971
2970
|
let M = w(a)[0];
|
|
2972
2971
|
if (i.options) {
|
|
2973
2972
|
const x = M[i.options];
|
|
@@ -3049,7 +3048,7 @@ function ms(e, o, t, n, a, l) {
|
|
|
3049
3048
|
}, null, 8, ["value", "placeholder", "options", "mode", "getPopupContainer", "fieldNames", "maxTagCount", "filterOption", "loading", "autoClearSearchValue", "onChange"])
|
|
3050
3049
|
], 4);
|
|
3051
3050
|
}
|
|
3052
|
-
const hs = /* @__PURE__ */ oe(fs, [["render", ms], ["__scopeId", "data-v-
|
|
3051
|
+
const hs = /* @__PURE__ */ oe(fs, [["render", ms], ["__scopeId", "data-v-7c425ecc"]]), gs = ae(hs), vn = {
|
|
3053
3052
|
...me,
|
|
3054
3053
|
name: "树形下拉框选择器",
|
|
3055
3054
|
keyName: "树形下拉框选择器",
|
|
@@ -3293,7 +3292,7 @@ const ps = /* @__PURE__ */ oe(bs, [["render", vs], ["__scopeId", "data-v-3723642
|
|
|
3293
3292
|
bottom: "bottom"
|
|
3294
3293
|
}[b]
|
|
3295
3294
|
};
|
|
3296
|
-
}), a = e.width, l = e.height, i = e.originalWidth, s = e.originalHeight, c = T("80%"), u = T(0), g = T(), m = T(0), p = T({}), d = ue(e), r = T({}), h = T(!1), C = T();
|
|
3295
|
+
}), a = e.fullModal ? "1920px" : e.width, l = e.fullModal ? "1080px" : e.height, i = e.originalWidth, s = e.originalHeight, c = T("80%"), u = T(0), g = T(), m = T(0), p = T({}), d = ue(e), r = T({}), h = T(!1), C = T();
|
|
3297
3296
|
let v;
|
|
3298
3297
|
const S = () => {
|
|
3299
3298
|
g.value = parseFloat(a) / parseFloat(i);
|
|
@@ -3304,7 +3303,9 @@ const ps = /* @__PURE__ */ oe(bs, [["render", vs], ["__scopeId", "data-v-3723642
|
|
|
3304
3303
|
}, r.value = {
|
|
3305
3304
|
...w(d),
|
|
3306
3305
|
backgroundImage: Ve(e.backgroundImage, !0),
|
|
3307
|
-
transform: `scale(${w(u) / parseFloat(a)},${w(m) / parseFloat(l)})
|
|
3306
|
+
transform: `scale(${w(u) / parseFloat(a)},${w(m) / parseFloat(l)})`,
|
|
3307
|
+
width: a,
|
|
3308
|
+
height: l
|
|
3308
3309
|
};
|
|
3309
3310
|
}, M = Vt(() => {
|
|
3310
3311
|
S();
|
|
@@ -3341,7 +3342,7 @@ const ps = /* @__PURE__ */ oe(bs, [["render", vs], ["__scopeId", "data-v-3723642
|
|
|
3341
3342
|
const b = e.id;
|
|
3342
3343
|
let I = [];
|
|
3343
3344
|
const R = e.componentList;
|
|
3344
|
-
|
|
3345
|
+
Array.isArray(R) && (I = R.map((Y) => Y.id), B(b, [...new Set(I)]));
|
|
3345
3346
|
};
|
|
3346
3347
|
ee(() => f.value, async (b) => {
|
|
3347
3348
|
b ? (h.value = !1, L(e.id), N(), await At(() => {
|
|
@@ -3432,7 +3433,7 @@ function As(e, o, t, n, a, l) {
|
|
|
3432
3433
|
_: 3
|
|
3433
3434
|
}, 8, ["getContainer", "wrapClassName", "visible", "width", "destroyOnClose", "style", "onOk", "onCancel"]);
|
|
3434
3435
|
}
|
|
3435
|
-
const _s = /* @__PURE__ */ oe(xs, [["render", As], ["__scopeId", "data-v-
|
|
3436
|
+
const _s = /* @__PURE__ */ oe(xs, [["render", As], ["__scopeId", "data-v-4234f235"]]), ot = ae(_s);
|
|
3436
3437
|
Ke([
|
|
3437
3438
|
Xe,
|
|
3438
3439
|
pa,
|
|
@@ -3777,6 +3778,7 @@ const Is = /* @__PURE__ */ oe(Ts, [["render", Ls]]), Ms = ae(Is), kn = {
|
|
|
3777
3778
|
yAxisSplitLineStyleColor: "#333",
|
|
3778
3779
|
yAxisLabelColor: "#333",
|
|
3779
3780
|
yAxisLineStyleColor: "#333",
|
|
3781
|
+
yAxisLineAlwaysDisplay: !1,
|
|
3780
3782
|
yAxisLabelFormatter: "{value}",
|
|
3781
3783
|
gridContainLabel: !0,
|
|
3782
3784
|
gridTop: "10%",
|
|
@@ -3936,7 +3938,7 @@ const Es = te({
|
|
|
3936
3938
|
},
|
|
3937
3939
|
axisLabel: {
|
|
3938
3940
|
color: e.xAxisLabelColor,
|
|
3939
|
-
interval: e.xAxisLabelInterval,
|
|
3941
|
+
interval: e.xAxisLabelInterval || 0,
|
|
3940
3942
|
rotate: e.xAxisLabelRotate,
|
|
3941
3943
|
width: e.xAxisLabelWidth,
|
|
3942
3944
|
overflow: e.xAxisLabelOverflow,
|
|
@@ -3970,6 +3972,7 @@ const Es = te({
|
|
|
3970
3972
|
}
|
|
3971
3973
|
},
|
|
3972
3974
|
axisLine: {
|
|
3975
|
+
show: e.yAxisLineAlwaysDisplay,
|
|
3973
3976
|
lineStyle: {
|
|
3974
3977
|
color: e.yAxisLineStyleColor
|
|
3975
3978
|
}
|
|
@@ -4190,6 +4193,7 @@ const Fs = /* @__PURE__ */ oe(Es, [["render", Ds]]), zs = ae(Fs), _n = {
|
|
|
4190
4193
|
rotate: "",
|
|
4191
4194
|
xAxisLabelFormatter: "{value}",
|
|
4192
4195
|
yAxisLabelFormatter: "{value}",
|
|
4196
|
+
yAxisLineAlwaysDisplay: !1,
|
|
4193
4197
|
data: [
|
|
4194
4198
|
{
|
|
4195
4199
|
name: "名称一",
|
|
@@ -4429,7 +4433,7 @@ const $s = te({
|
|
|
4429
4433
|
},
|
|
4430
4434
|
axisLabel: {
|
|
4431
4435
|
color: e.xAxisLabelColor,
|
|
4432
|
-
interval: e.xAxisLabelInterval,
|
|
4436
|
+
interval: e.xAxisLabelInterval || 0,
|
|
4433
4437
|
rotate: e.xAxisLabelRotate,
|
|
4434
4438
|
width: e.xAxisLabelWidth,
|
|
4435
4439
|
overflow: e.xAxisLabelOverflow,
|
|
@@ -4468,6 +4472,7 @@ const $s = te({
|
|
|
4468
4472
|
}
|
|
4469
4473
|
},
|
|
4470
4474
|
axisLine: {
|
|
4475
|
+
show: e.yAxisLineAlwaysDisplay,
|
|
4471
4476
|
lineStyle: {
|
|
4472
4477
|
color: e.yAxisLineStyleColor
|
|
4473
4478
|
}
|
|
@@ -4614,7 +4619,7 @@ const $s = te({
|
|
|
4614
4619
|
};
|
|
4615
4620
|
}
|
|
4616
4621
|
});
|
|
4617
|
-
const Ns = (e) => (_t("data-v-
|
|
4622
|
+
const Ns = (e) => (_t("data-v-39560f07"), e = e(), Tt(), e), Ps = { class: "location-wrap" }, Bs = /* @__PURE__ */ Ns(() => /* @__PURE__ */ X("div", { class: "location-text" }, "选择分类:", -1));
|
|
4618
4623
|
function Us(e, o, t, n, a, l) {
|
|
4619
4624
|
const i = Z("echarts"), s = Z("spin"), c = Z("ecan-modal"), u = Z("a-select-option"), g = Z("a-select"), m = Z("a-modal");
|
|
4620
4625
|
return O(), z("div", {
|
|
@@ -4692,7 +4697,7 @@ function Us(e, o, t, n, a, l) {
|
|
|
4692
4697
|
}, 8, ["visible", "onOk"])
|
|
4693
4698
|
], 4);
|
|
4694
4699
|
}
|
|
4695
|
-
const Gs = /* @__PURE__ */ oe($s, [["render", Us], ["__scopeId", "data-v-
|
|
4700
|
+
const Gs = /* @__PURE__ */ oe($s, [["render", Us], ["__scopeId", "data-v-39560f07"]]), qs = ae(Gs), Ln = {
|
|
4696
4701
|
...me,
|
|
4697
4702
|
id: "",
|
|
4698
4703
|
name: "散点图",
|
|
@@ -4733,6 +4738,7 @@ const Gs = /* @__PURE__ */ oe($s, [["render", Us], ["__scopeId", "data-v-447bc52
|
|
|
4733
4738
|
yAxisSplitLineStyleColor: "#333",
|
|
4734
4739
|
yAxisLabelColor: "#333",
|
|
4735
4740
|
yAxisLineStyleColor: "#333",
|
|
4741
|
+
yAxisLineAlwaysDisplay: !1,
|
|
4736
4742
|
yAxisLabelFormatter: "{value}",
|
|
4737
4743
|
dataFieldNames: { name: "name", value: "value" },
|
|
4738
4744
|
gridContainLabel: !0,
|
|
@@ -4837,7 +4843,7 @@ const Vs = te({
|
|
|
4837
4843
|
axisLabel: {
|
|
4838
4844
|
fontSize: l.value,
|
|
4839
4845
|
color: e.xAxisLabelColor,
|
|
4840
|
-
interval: e.xAxisLabelInterval,
|
|
4846
|
+
interval: e.xAxisLabelInterval || 0,
|
|
4841
4847
|
rotate: e.xAxisLabelRotate,
|
|
4842
4848
|
width: e.xAxisLabelWidth,
|
|
4843
4849
|
overflow: e.xAxisLabelOverflow,
|
|
@@ -4869,6 +4875,7 @@ const Vs = te({
|
|
|
4869
4875
|
}
|
|
4870
4876
|
},
|
|
4871
4877
|
axisLine: {
|
|
4878
|
+
show: e.yAxisLineAlwaysDisplay,
|
|
4872
4879
|
lineStyle: {
|
|
4873
4880
|
color: e.yAxisLineStyleColor
|
|
4874
4881
|
}
|
|
@@ -5140,6 +5147,7 @@ const Qs = /* @__PURE__ */ oe(Js, [["render", Ys]]), Ks = ae(Qs), En = {
|
|
|
5140
5147
|
yAxisSplitLineStyleColor: "#333",
|
|
5141
5148
|
yAxisLabelColor: "#333",
|
|
5142
5149
|
yAxisLineStyleColor: "#333",
|
|
5150
|
+
yAxisLineAlwaysDisplay: !1,
|
|
5143
5151
|
valueTypeDataFieldNames: { name: "name", value: "value", type: "type" },
|
|
5144
5152
|
keyTypeDataFieldNames: { name: "name", types: [] },
|
|
5145
5153
|
dataFieldConfigType: "value",
|
|
@@ -5341,7 +5349,7 @@ const er = te({
|
|
|
5341
5349
|
},
|
|
5342
5350
|
axisLabel: {
|
|
5343
5351
|
color: e.xAxisLabelColor,
|
|
5344
|
-
interval: e.xAxisLabelInterval,
|
|
5352
|
+
interval: e.xAxisLabelInterval || 0,
|
|
5345
5353
|
rotate: e.xAxisLabelRotate,
|
|
5346
5354
|
width: e.xAxisLabelWidth,
|
|
5347
5355
|
overflow: e.xAxisLabelOverflow
|
|
@@ -5434,6 +5442,7 @@ const er = te({
|
|
|
5434
5442
|
}
|
|
5435
5443
|
},
|
|
5436
5444
|
axisLine: {
|
|
5445
|
+
show: e.yAxisLineAlwaysDisplay,
|
|
5437
5446
|
lineStyle: {
|
|
5438
5447
|
color: e.yAxisLineStyleColor
|
|
5439
5448
|
}
|
|
@@ -5541,7 +5550,7 @@ const er = te({
|
|
|
5541
5550
|
};
|
|
5542
5551
|
}
|
|
5543
5552
|
});
|
|
5544
|
-
const tr = (e) => (_t("data-v-
|
|
5553
|
+
const tr = (e) => (_t("data-v-40e976bd"), e = e(), Tt(), e), or = { class: "location-wrap" }, nr = /* @__PURE__ */ tr(() => /* @__PURE__ */ X("div", { class: "location-text" }, "选择分类:", -1));
|
|
5545
5554
|
function ar(e, o, t, n, a, l) {
|
|
5546
5555
|
const i = Z("echarts"), s = Z("spin"), c = Z("ecan-modal"), u = Z("a-select-option"), g = Z("a-select"), m = Z("a-modal");
|
|
5547
5556
|
return O(), z("div", {
|
|
@@ -5619,7 +5628,7 @@ function ar(e, o, t, n, a, l) {
|
|
|
5619
5628
|
}, 8, ["visible", "onOk"])
|
|
5620
5629
|
], 4);
|
|
5621
5630
|
}
|
|
5622
|
-
const lr = /* @__PURE__ */ oe(er, [["render", ar], ["__scopeId", "data-v-
|
|
5631
|
+
const lr = /* @__PURE__ */ oe(er, [["render", ar], ["__scopeId", "data-v-40e976bd"]]), ir = ae(lr), Fn = {
|
|
5623
5632
|
...me,
|
|
5624
5633
|
name: "边框",
|
|
5625
5634
|
keyName: "边框",
|