@ecan-bi/datav 1.5.65 → 1.5.67

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.5.65 */
1
+ /*! @ecan-bi/datav@1.5.67 */
2
2
  import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, onBeforeUnmount, normalizeClass as normalizeClass$1, normalizeStyle as normalizeStyle$1, createElementVNode, createCommentVNode, Fragment, renderList, provide, withModifiers, toDisplayString, pushScopeId, popScopeId, Teleport, resolveDynamicComponent, mergeProps, normalizeProps, toHandlers, toRaw, reactive, useCssVars, createSlots, resolveDirective, withDirectives, vShow, createTextVNode, vModelText, getCurrentInstance, onActivated, onDeactivated, isRef, isVNode, Transition, onBeforeUpdate, Comment } from "vue";
3
3
  import { throttle as throttle$1, init, use, registerMap } from "echarts/core";
4
4
  import { addListener, removeListener } from "resize-detector";
@@ -2728,8 +2728,12 @@ const An = ["keyValue", "conditionKey", "conditionLabel", "conditionName", "cond
2728
2728
  }
2729
2729
  }
2730
2730
  }, Ln = (c, u) => {
2731
- const f = Sn.find((d) => d.id === c);
2732
- return (f == null ? void 0 : f.keyName) || u || "";
2731
+ const f = Sn.find((p) => p.id === c), { keyName: d } = f;
2732
+ if (d) {
2733
+ const p = /-(startTime|endTime)/g, m = u.match(p);
2734
+ return m != null && m.length ? `${d}${m[0]}` : d;
2735
+ }
2736
+ return u || "";
2733
2737
  }, Tn = (c) => {
2734
2738
  if (!c)
2735
2739
  return [];
@@ -12912,7 +12916,7 @@ const DrillModal = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_r
12912
12916
  window.addEventListener("message", async (Mr) => {
12913
12917
  var Dr, Lr;
12914
12918
  if (c.customId === "ProviderConfig") {
12915
- const Vr = Mr.data;
12919
+ const Vr = Mr.data || {};
12916
12920
  let zr;
12917
12921
  try {
12918
12922
  const Gr = (Dr = unref(Kn)) == null ? void 0 : Dr.filter((ei) => ei.type === "ecanIndexPanel");
@@ -12955,6 +12959,7 @@ const DrillModal = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_r
12955
12959
  } catch (Gr) {
12956
12960
  zr = { error: Gr.message };
12957
12961
  }
12962
+ debugger;
12958
12963
  Mr.source.postMessage(zr, Mr.origin);
12959
12964
  }
12960
12965
  });
@@ -13027,7 +13032,7 @@ const DrillModal = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_r
13027
13032
  isMobile: Rn
13028
13033
  };
13029
13034
  }
13030
- }), ProviderConfig_vue_vue_type_style_index_0_scoped_6bbd7026_lang = "", ProviderConfig_vue_vue_type_style_index_1_lang = "", _hoisted_1$k = ["id"];
13035
+ }), ProviderConfig_vue_vue_type_style_index_0_scoped_ef36476e_lang = "", ProviderConfig_vue_vue_type_style_index_1_lang = "", _hoisted_1$k = ["id"];
13031
13036
  function _sfc_render$y(c, u, f, d, p, m) {
13032
13037
  const g = resolveComponent("drill-modal"), v = resolveComponent("indicator-detail-modal"), y = resolveComponent("trend-modal");
13033
13038
  return openBlock(), createElementBlock(Fragment, null, [
@@ -13059,7 +13064,7 @@ function _sfc_render$y(c, u, f, d, p, m) {
13059
13064
  }, null, 8, ["theme"])
13060
13065
  ], 64);
13061
13066
  }
13062
- const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$y], ["__scopeId", "data-v-6bbd7026"]]), EcanProviderConfig = withInstall$1(ProviderConfig), textProps = {
13067
+ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$y], ["__scopeId", "data-v-ef36476e"]]), EcanProviderConfig = withInstall$1(ProviderConfig), textProps = {
13063
13068
  ...props$1,
13064
13069
  name: "文本",
13065
13070
  keyName: "文本",