@ecan-bi/datav 1.1.47 → 1.1.48

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.1.47 */
1
+ /*! @ecan-bi/datav@1.1.48 */
2
2
  import { watch as ne, inject as N, computed as q, unref as k, watchEffect as sn, defineComponent as Q, shallowRef as bt, toRefs as Mo, onMounted as Ne, onUnmounted as ut, h as st, nextTick as ft, createVNode as j, resolveComponent as Z, openBlock as E, createElementBlock as R, createBlock as Fe, renderSlot as mt, withCtx as Y, ref as I, normalizeStyle as G, createCommentVNode as pe, provide as Oe, onBeforeUnmount as Tt, toDisplayString as ye, Fragment as Le, renderList as Me, createElementVNode as X, normalizeClass as _t, pushScopeId as cn, popScopeId as dn, createSlots as Eo, resolveDynamicComponent as Fo, mergeProps as Oo, withModifiers as Ro, reactive as Do, createTextVNode as un, withDirectives as zo, vShow as No } from "vue";
3
3
  import { throttle as $o, init as Po, use as Pe, registerMap as Bo } from "echarts/core";
4
4
  import { addListener as Go, removeListener as Uo } from "resize-detector";
@@ -1271,8 +1271,9 @@ const xl = (e) => e.replace(/\\n/g, `
1271
1271
  const d = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, c = l.match(d);
1272
1272
  for (let g = 0; g < c.length; g++) {
1273
1273
  const h = c[g], m = n[h];
1274
- m != null && (l = l.replace(h, m)), /\w+[+\-*/%]+\w+/g.test(l) && (l = ht(l)), e = e.replace(s, l);
1274
+ m != null && (l = l.replace(h, m));
1275
1275
  }
1276
+ /\(.*\)/g.test(l) && (l = ht(l)), e = e.replace(s, l);
1276
1277
  }
1277
1278
  return t && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), o && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, "&nbsp;&nbsp;")), e;
1278
1279
  }, Ae = (e, n = () => {
@@ -1600,7 +1601,7 @@ const xl = (e) => e.replace(/\\n/g, `
1600
1601
  s = s == null ? void 0 : s.replace(/value/g, n);
1601
1602
  try {
1602
1603
  let l = s;
1603
- s !== n.toString() && (l = ht(s)), e = e.replace(i, l);
1604
+ /\(.*\)/g.test(s) && (l = ht(s)), e = e.replace(i, l);
1604
1605
  } catch {
1605
1606
  e = e.replace(i, s);
1606
1607
  }
@@ -2481,7 +2482,7 @@ const fi = /* @__PURE__ */ K(ni, [["render", ui], ["__scopeId", "data-v-211785ca
2481
2482
  }
2482
2483
  let w = S;
2483
2484
  try {
2484
- /\w+[+\-*/%]+\w+/g.test(S) && (w = ht(S));
2485
+ /\(.*\)/g.test(S) && (w = ht(S));
2485
2486
  } catch (f) {
2486
2487
  console.error(f);
2487
2488
  }
@@ -2565,7 +2566,7 @@ function yi(e, n, t, o, a, r) {
2565
2566
  }, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
2566
2567
  ], 4);
2567
2568
  }
2568
- const bi = /* @__PURE__ */ K(hi, [["render", yi], ["__scopeId", "data-v-d8d2bd6a"]]), vi = oe(bi), Un = {
2569
+ const bi = /* @__PURE__ */ K(hi, [["render", yi], ["__scopeId", "data-v-49732adf"]]), vi = oe(bi), Un = {
2569
2570
  ...re,
2570
2571
  width: "200px",
2571
2572
  id: "",
@@ -5400,13 +5401,13 @@ const Jr = /* @__PURE__ */ K(Hr, [["render", Zr], ["__scopeId", "data-v-2db14456
5400
5401
  let a = null;
5401
5402
  const r = () => {
5402
5403
  const u = Array.isArray(k(i)) ? k(i).length - 1 : 0;
5403
- e.autoSwitch && k(o) !== "design" && u > 0 && (a = setInterval(() => {
5404
+ e.autoSwitch && u > 0 && (a = setInterval(() => {
5404
5405
  const y = k(t) + 1;
5405
5406
  y <= u ? t.value = y : t.value = 0, g();
5406
5407
  }, e.autoSwitchInterval * 1e3));
5407
5408
  };
5408
5409
  Ne(() => {
5409
- r();
5410
+ k(o) !== "design" && r();
5410
5411
  }), Tt(() => {
5411
5412
  clearInterval(a);
5412
5413
  });
@@ -5484,7 +5485,7 @@ function es(e, n, t, o, a, r) {
5484
5485
  ], 4)
5485
5486
  ], 4);
5486
5487
  }
5487
- const ts = /* @__PURE__ */ K(Kr, [["render", es], ["__scopeId", "data-v-5c59ddef"]]), ns = oe(ts), po = {
5488
+ const ts = /* @__PURE__ */ K(Kr, [["render", es], ["__scopeId", "data-v-4952c5cf"]]), ns = oe(ts), po = {
5488
5489
  ...re,
5489
5490
  name: "图片",
5490
5491
  keyName: "图片",