@ecan-bi/datav 1.0.46 → 1.0.49

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
@@ -2280,12 +2280,6 @@ const useIndicatorData = (props2 = {}) => {
2280
2280
  idxLibMode,
2281
2281
  preview = false
2282
2282
  } = graphicConfig || {};
2283
- console.log("classificationList", classificationList);
2284
- console.log("seriesList", seriesList);
2285
- console.log("leftAxisList", leftAxisList);
2286
- console.log("rightAxisList", rightAxisList);
2287
- console.log("indicators", indicators);
2288
- console.log("controlList", controlList);
2289
2283
  let classification;
2290
2284
  if (Array.isArray(classificationList) && classificationList.length > 0) {
2291
2285
  const len = classificationList.length;
@@ -2396,9 +2390,10 @@ const useHrefParamsToGlobalVariables = () => {
2396
2390
  window.config[key] = value;
2397
2391
  }
2398
2392
  };
2399
- var PageConfig_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "#container[data-v-5d709a9a] {\n position: fixed;\n top: 0;\n left: 0;\n overflow: hidden;\n transform-origin: left top;\n z-index: 999;\n}\n.page-config[data-v-5d709a9a] {\n position: relative;\n overflow: hidden;\n background-size: cover;\n}\n")();
2393
+ var PageConfig_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "#container[data-v-c850087e] {\n position: fixed;\n top: 0;\n left: 0;\n overflow: hidden;\n transform-origin: left top;\n z-index: 999;\n}\n.page-config[data-v-c850087e] {\n position: relative;\n overflow: hidden;\n background-size: cover;\n}\n")();
2400
2394
  const _sfc_main$o = defineComponent({
2401
2395
  name: "EcanPageConfig",
2396
+ inheritAttrs: false,
2402
2397
  props: __spreadValues({}, pageConfigComponentProps),
2403
2398
  setup(props2) {
2404
2399
  const style2 = computed(() => ({
@@ -2506,7 +2501,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
2506
2501
  ], 4)) : createCommentVNode("", true)
2507
2502
  ], 512);
2508
2503
  }
2509
- var PageConfig = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-5d709a9a"]]);
2504
+ var PageConfig = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-c850087e"]]);
2510
2505
  const EcanPageConfig = withInstall(PageConfig);
2511
2506
  const providerConfig = {
2512
2507
  contextRequestUrl: "",
@@ -2517,6 +2512,7 @@ const providerConfig = {
2517
2512
  const providerConfigComponentProps = transformToComponentProps(providerConfig);
2518
2513
  const _sfc_main$n = defineComponent({
2519
2514
  name: "EcanProviderConfig",
2515
+ inheritAttrs: false,
2520
2516
  props: __spreadValues({}, providerConfigComponentProps),
2521
2517
  setup(props2, { expose }) {
2522
2518
  useHrefParamsToGlobalVariables();
@@ -3208,7 +3204,7 @@ const proportionProps = __spreadProps(__spreadValues({}, props), {
3208
3204
  });
3209
3205
  const proportionComponentProps = transformToComponentProps(proportionProps);
3210
3206
  const proportionEvents = ["refreshData", "click"];
3211
- var Proportion_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".ecan-proportion[data-v-8be86ed2] {\n overflow: hidden;\n}\n.progress[data-v-8be86ed2] {\n width: 100%;\n height: 100%;\n}\n.format[data-v-8be86ed2] {\n margin: 0 auto;\n}\n")();
3207
+ var Proportion_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".ecan-proportion[data-v-206755e6] {\n overflow: hidden;\n}\n.progress[data-v-206755e6] {\n width: 100%;\n height: 100%;\n}\n.format[data-v-206755e6] {\n margin: 0 auto;\n}\n")();
3212
3208
  const _sfc_main$h = defineComponent({
3213
3209
  name: "EcanProportion",
3214
3210
  components: {
@@ -3269,7 +3265,6 @@ const _sfc_main$h = defineComponent({
3269
3265
  var _a2;
3270
3266
  if (props2.dataType !== "request" || unref(pageMode) === "design")
3271
3267
  return;
3272
- console.log("\u8BF7\u6C42");
3273
3268
  try {
3274
3269
  loading.value = true;
3275
3270
  const res = await requestData();
@@ -3342,7 +3337,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3342
3337
  }, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
3343
3338
  ], 4);
3344
3339
  }
3345
- var Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-8be86ed2"]]);
3340
+ var Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-206755e6"]]);
3346
3341
  const EcanProportion = withInstall(Proportion);
3347
3342
  const inputProps = __spreadProps(__spreadValues({}, props), {
3348
3343
  width: "200px",
@@ -3705,7 +3700,7 @@ const tabsProps = __spreadProps(__spreadValues({}, props), {
3705
3700
  tabBackgroundImage: "",
3706
3701
  activeTabBackgroundImage: "",
3707
3702
  tabColor: "#333",
3708
- tabBarGutter: "0px",
3703
+ tabBarGutter: "24px",
3709
3704
  value: "",
3710
3705
  activeKey: 0,
3711
3706
  contains: [],
@@ -3723,7 +3718,7 @@ const tabsProps = __spreadProps(__spreadValues({}, props), {
3723
3718
  });
3724
3719
  const tabsComponentProps = transformToComponentProps(tabsProps);
3725
3720
  const tabsEvents = ["tabChange"];
3726
- var Tabs_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".ecan-tabs[data-v-d53b6936] {\n display: flex;\n flex-direction: column;\n}\n.tabs-header[data-v-d53b6936] {\n color: #333333;\n display: flex;\n width: 100%;\n}\n.tab[data-v-d53b6936] {\n background-size: 100% 100%;\n background-repeat: no-repeat;\n padding: 0 12px;\n cursor: default;\n}\n.tab-inner[data-v-d53b6936] {\n padding: 12px 0;\n}\n.tab[data-v-d53b6936]:last-child {\n margin-right: 0 !important;\n}\n.tabs-content[data-v-d53b6936] {\n flex: 1;\n}\n")();
3721
+ var Tabs_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".ecan-tabs[data-v-42d546a2] {\n display: flex;\n flex-direction: column;\n}\n.tabs-header[data-v-42d546a2] {\n color: #333333;\n display: flex;\n width: 100%;\n padding: 0 12px;\n}\n.tab[data-v-42d546a2] {\n background-size: 100% 100%;\n background-repeat: no-repeat;\n cursor: default;\n}\n.tab-inner[data-v-42d546a2] {\n padding: 12px 0;\n}\n.tab[data-v-42d546a2]:last-child {\n margin-right: 0 !important;\n}\n.tabs-content[data-v-42d546a2] {\n flex: 1;\n}\n")();
3727
3722
  const _sfc_main$b = defineComponent({
3728
3723
  name: "EcanTabs",
3729
3724
  props: __spreadValues({}, tabsComponentProps),
@@ -3736,7 +3731,13 @@ const _sfc_main$b = defineComponent({
3736
3731
  }, {
3737
3732
  immediate: true
3738
3733
  });
3739
- const myData = ref(props2.data);
3734
+ const myData = ref([]);
3735
+ watch(() => props2.data, (data) => {
3736
+ myData.value = data;
3737
+ }, {
3738
+ immediate: true,
3739
+ deep: true
3740
+ });
3740
3741
  const isActive = (index2) => activeKey.value === index2;
3741
3742
  const myValue = ref(props2.value || unref(myData)[0] && ((_a2 = unref(myData)[0]) == null ? void 0 : _a2.value) || "");
3742
3743
  const events = props2.events;
@@ -3771,7 +3772,7 @@ const _sfc_main$b = defineComponent({
3771
3772
  };
3772
3773
  }
3773
3774
  });
3774
- const _withScopeId$1 = (n) => (pushScopeId("data-v-d53b6936"), n = n(), popScopeId(), n);
3775
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-42d546a2"), n = n(), popScopeId(), n);
3775
3776
  const _hoisted_1$3 = ["onClick"];
3776
3777
  const _hoisted_2$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "tabs-content" }, null, -1));
3777
3778
  function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
@@ -3808,7 +3809,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
3808
3809
  _hoisted_2$1
3809
3810
  ], 4);
3810
3811
  }
3811
- var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-d53b6936"]]);
3812
+ var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-42d546a2"]]);
3812
3813
  const EcanTabs = withInstall(Tabs);
3813
3814
  const pieProps = __spreadProps(__spreadValues({}, props), {
3814
3815
  id: "",