@ecan-bi/datav 1.2.61 → 1.2.63
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 +25 -33
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +14 -14
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/hooks/useTransformChartDataByAttrValue.d.ts +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.2.
|
|
1
|
+
/*! @ecan-bi/datav@1.2.63 */
|
|
2
2
|
import { watch as fe, inject as ee, computed as X, unref as z, watchEffect as Ro, defineComponent as ye, shallowRef as On, toRefs as hi, onMounted as Ht, onUnmounted as Tn, h as An, nextTick as kt, createVNode as te, resolveComponent as re, openBlock as $, createElementBlock as K, createBlock as Je, renderSlot as sn, withCtx as se, ref as G, normalizeStyle as ae, createCommentVNode as He, provide as gt, onBeforeUnmount as ko, useCssVars as pr, toDisplayString as Le, Fragment as Qe, renderList as rt, createElementVNode as ge, normalizeClass as Tt, pushScopeId as _n, popScopeId as En, createTextVNode as pt, resolveDynamicComponent as vi, mergeProps as Io, toHandlers as wr, withModifiers as Sr, reactive as gi, Teleport as xi, withDirectives as Ar, vModelText as mi, vShow as yi } from "vue";
|
|
3
3
|
import { throttle as bi, init as pi, use as Dt, registerMap as cn } from "echarts/core";
|
|
4
4
|
import { addListener as wi, removeListener as Si } from "resize-detector";
|
|
@@ -1210,31 +1210,29 @@ const hl = ((br = window == null ? void 0 : window.config) == null ? void 0 : br
|
|
|
1210
1210
|
}, qt = (e, n) => {
|
|
1211
1211
|
let { name: t = "name", value: o = "value", type: a = "type" } = n || {};
|
|
1212
1212
|
t = t == null ? void 0 : t.trim(), o = o == null ? void 0 : o.trim(), a = a == null ? void 0 : a.trim();
|
|
1213
|
-
const r = /* @__PURE__ */ new
|
|
1214
|
-
for (let
|
|
1215
|
-
const
|
|
1216
|
-
if (r.has(
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
h += " ";
|
|
1220
|
-
r.add(`${h}${d}${h}`);
|
|
1213
|
+
const r = /* @__PURE__ */ new Map(), s = e.length;
|
|
1214
|
+
for (let l = 0; l < s; l++) {
|
|
1215
|
+
const u = e[l], x = u[t] || "", d = u[o] || "", f = u[a] || "";
|
|
1216
|
+
if (r.has(f)) {
|
|
1217
|
+
const v = r.get(f);
|
|
1218
|
+
v.push({ name: x, value: d, ...u }), r.set(f, v);
|
|
1221
1219
|
} else
|
|
1222
|
-
r.
|
|
1223
|
-
if (s.has(v)) {
|
|
1224
|
-
const h = s.get(v);
|
|
1225
|
-
h.push({ name: d, value: f, ...x }), s.set(v, h);
|
|
1226
|
-
} else
|
|
1227
|
-
s.set(v, [{ name: d, value: f, ...x }]);
|
|
1220
|
+
r.set(f, [{ name: x, value: d, ...u }]);
|
|
1228
1221
|
}
|
|
1229
|
-
const
|
|
1230
|
-
for (const [
|
|
1231
|
-
|
|
1232
|
-
name:
|
|
1233
|
-
data:
|
|
1234
|
-
})
|
|
1222
|
+
const i = [], c = [];
|
|
1223
|
+
for (const [l, u] of r)
|
|
1224
|
+
if (c.push({
|
|
1225
|
+
name: l,
|
|
1226
|
+
data: u
|
|
1227
|
+
}), u != null && u.length)
|
|
1228
|
+
if (i.length)
|
|
1229
|
+
for (const x of u)
|
|
1230
|
+
i.includes(x.name) || i.push(x.name);
|
|
1231
|
+
else
|
|
1232
|
+
i.push(...u.map((x) => x.name));
|
|
1235
1233
|
return {
|
|
1236
|
-
dimensions:
|
|
1237
|
-
dataset:
|
|
1234
|
+
dimensions: i,
|
|
1235
|
+
dataset: c
|
|
1238
1236
|
};
|
|
1239
1237
|
};
|
|
1240
1238
|
var ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -7344,13 +7342,7 @@ const wc = (e) => e.replace(/\\n/g, `
|
|
|
7344
7342
|
const a = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), s = e.length, i = o.length;
|
|
7345
7343
|
for (let u = 0; u < s; u++) {
|
|
7346
7344
|
const x = e[u], d = x[t];
|
|
7347
|
-
|
|
7348
|
-
let f = "";
|
|
7349
|
-
for (let v = 0; v < u; v++)
|
|
7350
|
-
f += " ";
|
|
7351
|
-
a.add(`${f}${d}${f}`);
|
|
7352
|
-
} else
|
|
7353
|
-
a.add(d);
|
|
7345
|
+
a.add(d);
|
|
7354
7346
|
for (let f = 0; f < i; f++) {
|
|
7355
7347
|
const v = o[f], { label: h, value: w } = v, k = { ...x, value: x[w] };
|
|
7356
7348
|
if (r.has(h)) {
|
|
@@ -11222,7 +11214,7 @@ const yf = ye({
|
|
|
11222
11214
|
const B = O ? e.valueTypeDataFieldNames : null;
|
|
11223
11215
|
F = qt(E, B);
|
|
11224
11216
|
}
|
|
11225
|
-
c.value = F.dataset, d.value = F.dimensions
|
|
11217
|
+
c.value = F.dataset, d.value = F.dimensions;
|
|
11226
11218
|
}, g = (E = [], O, F = !1) => {
|
|
11227
11219
|
const L = wt(E, F ? O : null);
|
|
11228
11220
|
c.value = L.dataset, d.value = L.dimensions;
|
|
@@ -11345,7 +11337,7 @@ const yf = ye({
|
|
|
11345
11337
|
};
|
|
11346
11338
|
}
|
|
11347
11339
|
});
|
|
11348
|
-
const bf = (e) => (_n("data-v-
|
|
11340
|
+
const bf = (e) => (_n("data-v-ea70c6d0"), e = e(), En(), e), pf = { class: "location-wrap" }, wf = /* @__PURE__ */ bf(() => /* @__PURE__ */ ge("div", { class: "location-text" }, "选择分类:", -1));
|
|
11349
11341
|
function Sf(e, n, t, o, a, r) {
|
|
11350
11342
|
const s = re("echarts"), i = re("spin"), c = re("ecan-modal"), l = re("a-select-option"), u = re("a-select"), x = re("a-modal");
|
|
11351
11343
|
return $(), K("div", {
|
|
@@ -11423,7 +11415,7 @@ function Sf(e, n, t, o, a, r) {
|
|
|
11423
11415
|
}, 8, ["visible", "onOk"])
|
|
11424
11416
|
], 4);
|
|
11425
11417
|
}
|
|
11426
|
-
const Af = /* @__PURE__ */ be(yf, [["render", Sf], ["__scopeId", "data-v-
|
|
11418
|
+
const Af = /* @__PURE__ */ be(yf, [["render", Sf], ["__scopeId", "data-v-ea70c6d0"]]), Cf = pe(Af), F0 = {
|
|
11427
11419
|
...ke,
|
|
11428
11420
|
id: "",
|
|
11429
11421
|
name: "散点图",
|