@ecan-bi/datav 1.5.72 → 1.5.74

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.72 */
1
+ /*! @ecan-bi/datav@1.5.74 */
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";
@@ -1642,7 +1642,7 @@ const withInstall$1 = (c, u) => {
1642
1642
  for (const f in c) {
1643
1643
  const d = c[f];
1644
1644
  let p = d == null ? void 0 : d.constructor;
1645
- ["width", "height", "requestHeaders"].includes(f) ? p = [d == null ? void 0 : d.constructor, Object] : ["left", "top"].includes(f) && (p = [d == null ? void 0 : d.constructor, Number]), u[f] = {
1645
+ ["width", "height", "requestHeaders"].includes(f) ? p = [d == null ? void 0 : d.constructor, Object] : ["left", "top", "lineHeight"].includes(f) && (p = [d == null ? void 0 : d.constructor, Number, Object]), u[f] = {
1646
1646
  type: p,
1647
1647
  default: d
1648
1648
  };
@@ -2682,7 +2682,7 @@ const An = ["keyValue", "conditionKey", "conditionLabel", "conditionName", "cond
2682
2682
  let g = c.modelKey;
2683
2683
  g && c.prop && (g += `-${c.prop}`), c.fieldValue = "${" + g + "}";
2684
2684
  } else
2685
- c.fieldValue = "${" + c.fieldValue + "}";
2685
+ c.fieldValue = "${" + Ln(c.componentId, c.fieldValue) + "}";
2686
2686
  delete c.dataType;
2687
2687
  }
2688
2688
  mn(c, "activeKey") && delete c.activeKey, mn(c, "radioValue") && delete c.radioValue, mn(c, "indexCode") && (c.hrpIndexCode = c.indexCode, delete c.indexCode), mn(c, "indexCodeNum") && (c.hrpIndexCodeNum = c.indexCodeNum, delete c.indexCodeNum), c.dataType !== "component" && c.useCurrentTime && (c.fieldValue = ce().format(c.dateFormat)), mn(c, "modelKey") && delete c.modelKey, mn(c, "prop") && delete c.prop, delete c.useCurrentTime;
@@ -2749,7 +2749,7 @@ const An = ["keyValue", "conditionKey", "conditionLabel", "conditionName", "cond
2749
2749
  });
2750
2750
  if (Rn != null && Rn.length)
2751
2751
  for (const j of Rn)
2752
- w.find((vn) => vn.id === j.id) || w.push(j);
2752
+ w.find((vn) => vn.keyName === j.keyName) || w.push(j);
2753
2753
  }
2754
2754
  }
2755
2755
  const Pn = w.length, re = u;
@@ -10778,7 +10778,7 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["render", _sfc_rende
10778
10778
  requestLoaded: yr
10779
10779
  };
10780
10780
  }
10781
- }), Modal_vue_vue_type_style_index_0_scoped_cb5d6923_lang = "", Modal_vue_vue_type_style_index_1_lang = "";
10781
+ }), Modal_vue_vue_type_style_index_0_scoped_e8d3acb6_lang = "", Modal_vue_vue_type_style_index_1_lang = "";
10782
10782
  function _sfc_render$D(c, u, f, d, p, m) {
10783
10783
  const g = resolveComponent("close-outlined"), v = resolveComponent("render"), y = resolveComponent("a-modal");
10784
10784
  return openBlock(), createBlock(y, {
@@ -10843,7 +10843,9 @@ function _sfc_render$D(c, u, f, d, p, m) {
10843
10843
  component: b,
10844
10844
  onReady: c.onComponentReady
10845
10845
  }, null, 8, ["component", "onReady"])) : createCommentVNode("", !0)
10846
- ], 64)) : (openBlock(), createBlock(resolveDynamicComponent(b.type), normalizeProps(mergeProps({ key: 1 }, b)), null, 16))
10846
+ ], 64)) : (openBlock(), createBlock(resolveDynamicComponent(b.type), mergeProps({ key: 1 }, b, {
10847
+ cpntid: b.id
10848
+ }), null, 16, ["cpntid"]))
10847
10849
  ], 64))), 128))
10848
10850
  ], 2)) : renderSlot(c.$slots, "default", { key: 1 }, void 0, !0)
10849
10851
  ], 4)) : createCommentVNode("", !0)
@@ -10852,7 +10854,7 @@ function _sfc_render$D(c, u, f, d, p, m) {
10852
10854
  _: 3
10853
10855
  }, 8, ["getContainer", "wrapClassName", "visible", "width", "destroyOnClose", "style", "onOk", "onCancel", "id"]);
10854
10856
  }
10855
- const Modal = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["render", _sfc_render$D], ["__scopeId", "data-v-cb5d6923"]]), EcanModal = withInstall$1(Modal);
10857
+ const Modal = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["render", _sfc_render$D], ["__scopeId", "data-v-e8d3acb6"]]), EcanModal = withInstall$1(Modal);
10856
10858
  use([
10857
10859
  CanvasRenderer,
10858
10860
  LineChart,
@@ -12915,7 +12917,7 @@ const DrillModal = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_r
12915
12917
  };
12916
12918
  window.addEventListener("message", async (Ir) => {
12917
12919
  var Rr, Lr;
12918
- if (c.customId === "ProviderConfig") {
12920
+ if (Ir.source !== window && c.customId === "ProviderConfig") {
12919
12921
  const jr = Ir.data || {};
12920
12922
  let Hr = {
12921
12923
  data: {}
@@ -13034,7 +13036,7 @@ const DrillModal = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_r
13034
13036
  isMobile: Rn
13035
13037
  };
13036
13038
  }
13037
- }), ProviderConfig_vue_vue_type_style_index_0_scoped_7b95fe71_lang = "", ProviderConfig_vue_vue_type_style_index_1_lang = "", _hoisted_1$k = ["id"];
13039
+ }), ProviderConfig_vue_vue_type_style_index_0_scoped_c845972b_lang = "", ProviderConfig_vue_vue_type_style_index_1_lang = "", _hoisted_1$k = ["id"];
13038
13040
  function _sfc_render$y(c, u, f, d, p, m) {
13039
13041
  const g = resolveComponent("drill-modal"), v = resolveComponent("indicator-detail-modal"), y = resolveComponent("trend-modal");
13040
13042
  return openBlock(), createElementBlock(Fragment, null, [
@@ -13066,7 +13068,7 @@ function _sfc_render$y(c, u, f, d, p, m) {
13066
13068
  }, null, 8, ["theme"])
13067
13069
  ], 64);
13068
13070
  }
13069
- const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$y], ["__scopeId", "data-v-7b95fe71"]]), EcanProviderConfig = withInstall$1(ProviderConfig), textProps = {
13071
+ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$y], ["__scopeId", "data-v-c845972b"]]), EcanProviderConfig = withInstall$1(ProviderConfig), textProps = {
13070
13072
  ...props$1,
13071
13073
  name: "文本",
13072
13074
  keyName: "文本",
@@ -30771,40 +30773,37 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), __default
30771
30773
  }
30772
30774
  }), __injectCSSVars__$1 = () => {
30773
30775
  useCssVars((c) => ({
30774
- "8d74eefa": c.isHoverStyle ? "pointer" : "auto",
30775
- "7ff7bf46": c.isHoverStyle ? "0.6" : "1"
30776
+ "118bc1b5": c.isHoverStyle ? "pointer" : "auto",
30777
+ b274cb58: c.isHoverStyle ? "0.6" : "1"
30776
30778
  }));
30777
30779
  }, __setup__$1 = __default__$1.setup;
30778
30780
  __default__$1.setup = __setup__$1 ? (c, u) => (__injectCSSVars__$1(), __setup__$1(c, u)) : __injectCSSVars__$1;
30779
- const Image_vue_vue_type_style_index_0_scoped_8b128e89_lang = "", _hoisted_1$3 = ["src"];
30781
+ const Image_vue_vue_type_style_index_0_scoped_7bf7ebf4_lang = "", _hoisted_1$3 = ["src"];
30780
30782
  function _sfc_render$7(c, u, f, d, p, m) {
30781
30783
  var g;
30782
- return openBlock(), createElementBlock(Fragment, null, [
30783
- c.isAnimation ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
30784
- c.animationSource.directory ? (openBlock(), createElementBlock("div", {
30785
- key: 0,
30786
- class: normalizeClass$1(["ecan-image", c.pageMode === "design" ? "component" : ""]),
30787
- ref: "animation",
30788
- style: normalizeStyle$1(c.customStyle),
30789
- onClick: u[0] || (u[0] = (...v) => c.onClick && c.onClick(...v))
30790
- }, null, 6)) : createCommentVNode("", !0)
30791
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
30792
- c.myImgUrl !== "" ? (openBlock(), createElementBlock("img", {
30793
- key: 0,
30794
- class: normalizeClass$1(["ecan-image", c.pageMode === "design" ? "component" : ""]),
30795
- style: normalizeStyle$1(c.customStyle),
30796
- src: c.myImgUrl,
30797
- onClick: u[1] || (u[1] = (...v) => c.onClick && c.onClick(...v))
30798
- }, null, 14, _hoisted_1$3)) : createCommentVNode("", !0)
30799
- ], 64)),
30784
+ return openBlock(), createElementBlock("div", {
30785
+ class: normalizeClass$1(["ecan-image", c.pageMode === "design" ? "component" : ""]),
30786
+ style: normalizeStyle$1(c.customStyle)
30787
+ }, [
30788
+ c.isAnimation && c.animationSource.directory ? (openBlock(), createElementBlock("div", {
30789
+ key: 0,
30790
+ class: "full",
30791
+ ref: "animation",
30792
+ onClick: u[0] || (u[0] = (...v) => c.onClick && c.onClick(...v))
30793
+ }, null, 512)) : !c.isAnimation && c.myImgUrl ? (openBlock(), createElementBlock("img", {
30794
+ key: 1,
30795
+ class: "full",
30796
+ src: c.myImgUrl,
30797
+ style: { width: "100%", height: "100%" },
30798
+ onClick: u[1] || (u[1] = (...v) => c.onClick && c.onClick(...v))
30799
+ }, null, 8, _hoisted_1$3)) : createCommentVNode("", !0),
30800
30800
  (c.isAnimation ? !((g = c.animationSource) != null && g.directory) : !c.myImgUrl) ? (openBlock(), createElementBlock("div", {
30801
30801
  key: 2,
30802
- class: normalizeClass$1(["image-placeholder", c.pageMode === "design" ? "component" : ""]),
30803
- style: normalizeStyle$1(c.customStyle)
30804
- }, " 请上传图片 ", 6)) : createCommentVNode("", !0)
30805
- ], 64);
30802
+ class: normalizeClass$1(["image-placeholder full", c.pageMode === "design" ? "component" : ""])
30803
+ }, " 请上传图片 ", 2)) : createCommentVNode("", !0)
30804
+ ], 6);
30806
30805
  }
30807
- const Image$1 = /* @__PURE__ */ _export_sfc$1(__default__$1, [["render", _sfc_render$7], ["__scopeId", "data-v-8b128e89"]]), EcanImage = withInstall$1(Image$1), iframeProps = {
30806
+ const Image$1 = /* @__PURE__ */ _export_sfc$1(__default__$1, [["render", _sfc_render$7], ["__scopeId", "data-v-7bf7ebf4"]]), EcanImage = withInstall$1(Image$1), iframeProps = {
30808
30807
  ...props$1,
30809
30808
  name: "网页",
30810
30809
  keyName: "网页",