@ecan-bi/datav 1.2.1 → 1.2.3
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 +32 -17
- 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.3 */
|
|
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";
|
|
@@ -2966,9 +2966,14 @@ const cs = /* @__PURE__ */ oe(ss, [["render", rs]]), ds = ae(cs), yn = {
|
|
|
2966
2966
|
u.value = !0;
|
|
2967
2967
|
try {
|
|
2968
2968
|
const S = await n();
|
|
2969
|
-
a.value = c(((v = (C = S == null ? void 0 : S.data) == null ? void 0 : C.data) == null ? void 0 : v.rows) || [])
|
|
2970
|
-
|
|
2971
|
-
|
|
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
|
+
let M = w(a)[0];
|
|
2971
|
+
if (i.options) {
|
|
2972
|
+
const x = M[i.options];
|
|
2973
|
+
x && x.length && (M = x[0]);
|
|
2974
|
+
}
|
|
2975
|
+
l.value = M[i.value];
|
|
2976
|
+
}
|
|
2972
2977
|
} catch (S) {
|
|
2973
2978
|
console.error(S);
|
|
2974
2979
|
} finally {
|
|
@@ -3043,7 +3048,7 @@ function ms(e, o, t, n, a, l) {
|
|
|
3043
3048
|
}, null, 8, ["value", "placeholder", "options", "mode", "getPopupContainer", "fieldNames", "maxTagCount", "filterOption", "loading", "autoClearSearchValue", "onChange"])
|
|
3044
3049
|
], 4);
|
|
3045
3050
|
}
|
|
3046
|
-
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 = {
|
|
3047
3052
|
...me,
|
|
3048
3053
|
name: "树形下拉框选择器",
|
|
3049
3054
|
keyName: "树形下拉框选择器",
|
|
@@ -3287,7 +3292,7 @@ const ps = /* @__PURE__ */ oe(bs, [["render", vs], ["__scopeId", "data-v-3723642
|
|
|
3287
3292
|
bottom: "bottom"
|
|
3288
3293
|
}[b]
|
|
3289
3294
|
};
|
|
3290
|
-
}), 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();
|
|
3291
3296
|
let v;
|
|
3292
3297
|
const S = () => {
|
|
3293
3298
|
g.value = parseFloat(a) / parseFloat(i);
|
|
@@ -3298,7 +3303,9 @@ const ps = /* @__PURE__ */ oe(bs, [["render", vs], ["__scopeId", "data-v-3723642
|
|
|
3298
3303
|
}, r.value = {
|
|
3299
3304
|
...w(d),
|
|
3300
3305
|
backgroundImage: Ve(e.backgroundImage, !0),
|
|
3301
|
-
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
|
|
3302
3309
|
};
|
|
3303
3310
|
}, M = Vt(() => {
|
|
3304
3311
|
S();
|
|
@@ -3335,7 +3342,7 @@ const ps = /* @__PURE__ */ oe(bs, [["render", vs], ["__scopeId", "data-v-3723642
|
|
|
3335
3342
|
const b = e.id;
|
|
3336
3343
|
let I = [];
|
|
3337
3344
|
const R = e.componentList;
|
|
3338
|
-
|
|
3345
|
+
Array.isArray(R) && (I = R.map((Y) => Y.id), B(b, [...new Set(I)]));
|
|
3339
3346
|
};
|
|
3340
3347
|
ee(() => f.value, async (b) => {
|
|
3341
3348
|
b ? (h.value = !1, L(e.id), N(), await At(() => {
|
|
@@ -3426,7 +3433,7 @@ function As(e, o, t, n, a, l) {
|
|
|
3426
3433
|
_: 3
|
|
3427
3434
|
}, 8, ["getContainer", "wrapClassName", "visible", "width", "destroyOnClose", "style", "onOk", "onCancel"]);
|
|
3428
3435
|
}
|
|
3429
|
-
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);
|
|
3430
3437
|
Ke([
|
|
3431
3438
|
Xe,
|
|
3432
3439
|
pa,
|
|
@@ -3771,6 +3778,7 @@ const Is = /* @__PURE__ */ oe(Ts, [["render", Ls]]), Ms = ae(Is), kn = {
|
|
|
3771
3778
|
yAxisSplitLineStyleColor: "#333",
|
|
3772
3779
|
yAxisLabelColor: "#333",
|
|
3773
3780
|
yAxisLineStyleColor: "#333",
|
|
3781
|
+
yAxisLineAlwaysDisplay: !0,
|
|
3774
3782
|
yAxisLabelFormatter: "{value}",
|
|
3775
3783
|
gridContainLabel: !0,
|
|
3776
3784
|
gridTop: "10%",
|
|
@@ -3930,7 +3938,7 @@ const Es = te({
|
|
|
3930
3938
|
},
|
|
3931
3939
|
axisLabel: {
|
|
3932
3940
|
color: e.xAxisLabelColor,
|
|
3933
|
-
interval: e.xAxisLabelInterval,
|
|
3941
|
+
interval: e.xAxisLabelInterval || 0,
|
|
3934
3942
|
rotate: e.xAxisLabelRotate,
|
|
3935
3943
|
width: e.xAxisLabelWidth,
|
|
3936
3944
|
overflow: e.xAxisLabelOverflow,
|
|
@@ -3964,6 +3972,7 @@ const Es = te({
|
|
|
3964
3972
|
}
|
|
3965
3973
|
},
|
|
3966
3974
|
axisLine: {
|
|
3975
|
+
show: e.yAxisLineAlwaysDisplay,
|
|
3967
3976
|
lineStyle: {
|
|
3968
3977
|
color: e.yAxisLineStyleColor
|
|
3969
3978
|
}
|
|
@@ -4184,6 +4193,7 @@ const Fs = /* @__PURE__ */ oe(Es, [["render", Ds]]), zs = ae(Fs), _n = {
|
|
|
4184
4193
|
rotate: "",
|
|
4185
4194
|
xAxisLabelFormatter: "{value}",
|
|
4186
4195
|
yAxisLabelFormatter: "{value}",
|
|
4196
|
+
yAxisLineAlwaysDisplay: !0,
|
|
4187
4197
|
data: [
|
|
4188
4198
|
{
|
|
4189
4199
|
name: "名称一",
|
|
@@ -4423,7 +4433,7 @@ const $s = te({
|
|
|
4423
4433
|
},
|
|
4424
4434
|
axisLabel: {
|
|
4425
4435
|
color: e.xAxisLabelColor,
|
|
4426
|
-
interval: e.xAxisLabelInterval,
|
|
4436
|
+
interval: e.xAxisLabelInterval || 0,
|
|
4427
4437
|
rotate: e.xAxisLabelRotate,
|
|
4428
4438
|
width: e.xAxisLabelWidth,
|
|
4429
4439
|
overflow: e.xAxisLabelOverflow,
|
|
@@ -4462,6 +4472,7 @@ const $s = te({
|
|
|
4462
4472
|
}
|
|
4463
4473
|
},
|
|
4464
4474
|
axisLine: {
|
|
4475
|
+
show: e.yAxisLineAlwaysDisplay,
|
|
4465
4476
|
lineStyle: {
|
|
4466
4477
|
color: e.yAxisLineStyleColor
|
|
4467
4478
|
}
|
|
@@ -4608,7 +4619,7 @@ const $s = te({
|
|
|
4608
4619
|
};
|
|
4609
4620
|
}
|
|
4610
4621
|
});
|
|
4611
|
-
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));
|
|
4612
4623
|
function Us(e, o, t, n, a, l) {
|
|
4613
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");
|
|
4614
4625
|
return O(), z("div", {
|
|
@@ -4686,7 +4697,7 @@ function Us(e, o, t, n, a, l) {
|
|
|
4686
4697
|
}, 8, ["visible", "onOk"])
|
|
4687
4698
|
], 4);
|
|
4688
4699
|
}
|
|
4689
|
-
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 = {
|
|
4690
4701
|
...me,
|
|
4691
4702
|
id: "",
|
|
4692
4703
|
name: "散点图",
|
|
@@ -4727,6 +4738,7 @@ const Gs = /* @__PURE__ */ oe($s, [["render", Us], ["__scopeId", "data-v-447bc52
|
|
|
4727
4738
|
yAxisSplitLineStyleColor: "#333",
|
|
4728
4739
|
yAxisLabelColor: "#333",
|
|
4729
4740
|
yAxisLineStyleColor: "#333",
|
|
4741
|
+
yAxisLineAlwaysDisplay: !0,
|
|
4730
4742
|
yAxisLabelFormatter: "{value}",
|
|
4731
4743
|
dataFieldNames: { name: "name", value: "value" },
|
|
4732
4744
|
gridContainLabel: !0,
|
|
@@ -4831,7 +4843,7 @@ const Vs = te({
|
|
|
4831
4843
|
axisLabel: {
|
|
4832
4844
|
fontSize: l.value,
|
|
4833
4845
|
color: e.xAxisLabelColor,
|
|
4834
|
-
interval: e.xAxisLabelInterval,
|
|
4846
|
+
interval: e.xAxisLabelInterval || 0,
|
|
4835
4847
|
rotate: e.xAxisLabelRotate,
|
|
4836
4848
|
width: e.xAxisLabelWidth,
|
|
4837
4849
|
overflow: e.xAxisLabelOverflow,
|
|
@@ -4863,6 +4875,7 @@ const Vs = te({
|
|
|
4863
4875
|
}
|
|
4864
4876
|
},
|
|
4865
4877
|
axisLine: {
|
|
4878
|
+
show: e.yAxisLineAlwaysDisplay,
|
|
4866
4879
|
lineStyle: {
|
|
4867
4880
|
color: e.yAxisLineStyleColor
|
|
4868
4881
|
}
|
|
@@ -5134,6 +5147,7 @@ const Qs = /* @__PURE__ */ oe(Js, [["render", Ys]]), Ks = ae(Qs), En = {
|
|
|
5134
5147
|
yAxisSplitLineStyleColor: "#333",
|
|
5135
5148
|
yAxisLabelColor: "#333",
|
|
5136
5149
|
yAxisLineStyleColor: "#333",
|
|
5150
|
+
yAxisLineAlwaysDisplay: !0,
|
|
5137
5151
|
valueTypeDataFieldNames: { name: "name", value: "value", type: "type" },
|
|
5138
5152
|
keyTypeDataFieldNames: { name: "name", types: [] },
|
|
5139
5153
|
dataFieldConfigType: "value",
|
|
@@ -5335,7 +5349,7 @@ const er = te({
|
|
|
5335
5349
|
},
|
|
5336
5350
|
axisLabel: {
|
|
5337
5351
|
color: e.xAxisLabelColor,
|
|
5338
|
-
interval: e.xAxisLabelInterval,
|
|
5352
|
+
interval: e.xAxisLabelInterval || 0,
|
|
5339
5353
|
rotate: e.xAxisLabelRotate,
|
|
5340
5354
|
width: e.xAxisLabelWidth,
|
|
5341
5355
|
overflow: e.xAxisLabelOverflow
|
|
@@ -5428,6 +5442,7 @@ const er = te({
|
|
|
5428
5442
|
}
|
|
5429
5443
|
},
|
|
5430
5444
|
axisLine: {
|
|
5445
|
+
show: e.yAxisLineAlwaysDisplay,
|
|
5431
5446
|
lineStyle: {
|
|
5432
5447
|
color: e.yAxisLineStyleColor
|
|
5433
5448
|
}
|
|
@@ -5535,7 +5550,7 @@ const er = te({
|
|
|
5535
5550
|
};
|
|
5536
5551
|
}
|
|
5537
5552
|
});
|
|
5538
|
-
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));
|
|
5539
5554
|
function ar(e, o, t, n, a, l) {
|
|
5540
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");
|
|
5541
5556
|
return O(), z("div", {
|
|
@@ -5613,7 +5628,7 @@ function ar(e, o, t, n, a, l) {
|
|
|
5613
5628
|
}, 8, ["visible", "onOk"])
|
|
5614
5629
|
], 4);
|
|
5615
5630
|
}
|
|
5616
|
-
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 = {
|
|
5617
5632
|
...me,
|
|
5618
5633
|
name: "边框",
|
|
5619
5634
|
keyName: "边框",
|