@ecan-bi/datav 1.2.52 → 1.2.53

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 CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.2.52 */
1
+ /*! @ecan-bi/datav@1.2.53 */
2
2
  import { watch as ue, inject as Q, computed as K, unref as N, watchEffect as b0, defineComponent as ge, shallowRef as On, toRefs as hi, onMounted as Nt, onUnmounted as Tn, h as An, nextTick as an, createVNode as ee, resolveComponent as ae, openBlock as U, createElementBlock as Y, createBlock as Ke, renderSlot as rn, withCtx as ie, ref as j, normalizeStyle as oe, createCommentVNode as Pe, provide as St, onBeforeUnmount as ko, useCssVars as p0, toDisplayString as Oe, Fragment as Ye, renderList as nt, createElementVNode as he, normalizeClass as Ct, pushScopeId as _n, popScopeId as En, createTextVNode as mt, resolveDynamicComponent as vi, mergeProps as Ro, toHandlers as w0, withModifiers as S0, reactive as gi, Teleport as xi, withDirectives as A0, vModelText as mi, vShow as yi } from "vue";
3
3
  import { throttle as bi, init as pi, use as _t, registerMap as cn } from "echarts/core";
4
4
  import { addListener as wi, removeListener as Si } from "resize-detector";
@@ -1210,16 +1210,16 @@ const hl = ((y0 = window == null ? void 0 : window.config) == null ? void 0 : y0
1210
1210
  }, Pt = (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 = [], s = /* @__PURE__ */ new Map(), i = e.length;
1213
+ const r = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map(), i = e.length;
1214
1214
  for (let u = 0; u < i; u++) {
1215
1215
  const x = e[u], d = x[t] || "", f = x[o] || "", h = x[a] || "";
1216
- if (r.push(d), s.has(h)) {
1216
+ if (r.add(d), s.has(h)) {
1217
1217
  const v = s.get(h);
1218
1218
  v.push({ name: d, value: f, ...x }), s.set(h, v);
1219
1219
  } else
1220
1220
  s.set(h, [{ name: d, value: f, ...x }]);
1221
1221
  }
1222
- const c = r, l = [];
1222
+ const c = Array.from(r), l = [];
1223
1223
  for (const [u, x] of s)
1224
1224
  l.push({
1225
1225
  name: u,
@@ -7330,10 +7330,10 @@ const wc = (e) => e.replace(/\\n/g, `
7330
7330
  }, yt = (e = [], n) => {
7331
7331
  let { name: t = "name", types: o = [] } = n || {};
7332
7332
  t = (t == null ? void 0 : t.trim()) || t;
7333
- const a = [], r = /* @__PURE__ */ new Map(), s = e.length, i = o.length;
7333
+ const a = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), s = e.length, i = o.length;
7334
7334
  for (let u = 0; u < s; u++) {
7335
7335
  const x = e[u], d = x[t];
7336
- a.push(d);
7336
+ a.add(d);
7337
7337
  for (let f = 0; f < i; f++) {
7338
7338
  const h = o[f], { label: v, value: S } = h, k = { ...x, value: x[S] };
7339
7339
  if (r.has(v)) {
@@ -7343,7 +7343,7 @@ const wc = (e) => e.replace(/\\n/g, `
7343
7343
  r.set(v, [k]);
7344
7344
  }
7345
7345
  }
7346
- const c = a, l = [];
7346
+ const c = Array.from(a), l = [];
7347
7347
  for (const [u, x] of r)
7348
7348
  l.push({
7349
7349
  name: u,
@@ -7783,7 +7783,7 @@ const _c = /* @__PURE__ */ xe(Cc, [["render", Tc], ["__scopeId", "data-v-7b4629f
7783
7783
  const u = K(() => ({
7784
7784
  position: "absolute",
7785
7785
  width: "100%",
7786
- height: "100%",
7786
+ height: i.value !== "1920px" || c.value !== "1080px" ? document.body.clientHeight + "px" : "1080px",
7787
7787
  overflow: e.pageMode === "design" ? "" : "hidden auto"
7788
7788
  })), x = /* @__PURE__ */ new Map();
7789
7789
  console.log("globalModel", x);