@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.umd.js CHANGED
@@ -2290,12 +2290,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2290
2290
  idxLibMode,
2291
2291
  preview = false
2292
2292
  } = graphicConfig || {};
2293
- console.log("classificationList", classificationList);
2294
- console.log("seriesList", seriesList);
2295
- console.log("leftAxisList", leftAxisList);
2296
- console.log("rightAxisList", rightAxisList);
2297
- console.log("indicators", indicators);
2298
- console.log("controlList", controlList);
2299
2293
  let classification;
2300
2294
  if (Array.isArray(classificationList) && classificationList.length > 0) {
2301
2295
  const len = classificationList.length;
@@ -2406,9 +2400,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2406
2400
  window.config[key] = value;
2407
2401
  }
2408
2402
  };
2409
- 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")();
2403
+ 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")();
2410
2404
  const _sfc_main$o = vue.defineComponent({
2411
2405
  name: "EcanPageConfig",
2406
+ inheritAttrs: false,
2412
2407
  props: __spreadValues({}, pageConfigComponentProps),
2413
2408
  setup(props2) {
2414
2409
  const style2 = vue.computed(() => ({
@@ -2516,7 +2511,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2516
2511
  ], 4)) : vue.createCommentVNode("", true)
2517
2512
  ], 512);
2518
2513
  }
2519
- var PageConfig = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-5d709a9a"]]);
2514
+ var PageConfig = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-c850087e"]]);
2520
2515
  const EcanPageConfig = withInstall(PageConfig);
2521
2516
  const providerConfig = {
2522
2517
  contextRequestUrl: "",
@@ -2527,6 +2522,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2527
2522
  const providerConfigComponentProps = transformToComponentProps(providerConfig);
2528
2523
  const _sfc_main$n = vue.defineComponent({
2529
2524
  name: "EcanProviderConfig",
2525
+ inheritAttrs: false,
2530
2526
  props: __spreadValues({}, providerConfigComponentProps),
2531
2527
  setup(props2, { expose }) {
2532
2528
  useHrefParamsToGlobalVariables();
@@ -3218,7 +3214,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3218
3214
  });
3219
3215
  const proportionComponentProps = transformToComponentProps(proportionProps);
3220
3216
  const proportionEvents = ["refreshData", "click"];
3221
- 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")();
3217
+ 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")();
3222
3218
  const _sfc_main$h = vue.defineComponent({
3223
3219
  name: "EcanProportion",
3224
3220
  components: {
@@ -3279,7 +3275,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3279
3275
  var _a2;
3280
3276
  if (props2.dataType !== "request" || vue.unref(pageMode) === "design")
3281
3277
  return;
3282
- console.log("\u8BF7\u6C42");
3283
3278
  try {
3284
3279
  loading.value = true;
3285
3280
  const res = await requestData();
@@ -3352,7 +3347,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3352
3347
  }, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
3353
3348
  ], 4);
3354
3349
  }
3355
- var Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-8be86ed2"]]);
3350
+ var Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-206755e6"]]);
3356
3351
  const EcanProportion = withInstall(Proportion);
3357
3352
  const inputProps = __spreadProps(__spreadValues({}, props), {
3358
3353
  width: "200px",
@@ -3715,7 +3710,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3715
3710
  tabBackgroundImage: "",
3716
3711
  activeTabBackgroundImage: "",
3717
3712
  tabColor: "#333",
3718
- tabBarGutter: "0px",
3713
+ tabBarGutter: "24px",
3719
3714
  value: "",
3720
3715
  activeKey: 0,
3721
3716
  contains: [],
@@ -3733,7 +3728,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3733
3728
  });
3734
3729
  const tabsComponentProps = transformToComponentProps(tabsProps);
3735
3730
  const tabsEvents = ["tabChange"];
3736
- 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")();
3731
+ 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")();
3737
3732
  const _sfc_main$b = vue.defineComponent({
3738
3733
  name: "EcanTabs",
3739
3734
  props: __spreadValues({}, tabsComponentProps),
@@ -3746,7 +3741,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3746
3741
  }, {
3747
3742
  immediate: true
3748
3743
  });
3749
- const myData = vue.ref(props2.data);
3744
+ const myData = vue.ref([]);
3745
+ vue.watch(() => props2.data, (data) => {
3746
+ myData.value = data;
3747
+ }, {
3748
+ immediate: true,
3749
+ deep: true
3750
+ });
3750
3751
  const isActive = (index2) => activeKey.value === index2;
3751
3752
  const myValue = vue.ref(props2.value || vue.unref(myData)[0] && ((_a2 = vue.unref(myData)[0]) == null ? void 0 : _a2.value) || "");
3752
3753
  const events = props2.events;
@@ -3781,7 +3782,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3781
3782
  };
3782
3783
  }
3783
3784
  });
3784
- const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-d53b6936"), n = n(), vue.popScopeId(), n);
3785
+ const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-42d546a2"), n = n(), vue.popScopeId(), n);
3785
3786
  const _hoisted_1$3 = ["onClick"];
3786
3787
  const _hoisted_2$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "tabs-content" }, null, -1));
3787
3788
  function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
@@ -3818,7 +3819,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3818
3819
  _hoisted_2$1
3819
3820
  ], 4);
3820
3821
  }
3821
- var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-d53b6936"]]);
3822
+ var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-42d546a2"]]);
3822
3823
  const EcanTabs = withInstall(Tabs);
3823
3824
  const pieProps = __spreadProps(__spreadValues({}, props), {
3824
3825
  id: "",