@ecan-bi/datav 1.0.45 → 1.0.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.umd.js CHANGED
@@ -2628,9 +2628,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2628
2628
  const requestFnList = requestModelArr[i][1];
2629
2629
  await handleRequestFnList(requestFnList);
2630
2630
  }
2631
- requestModel.clear();
2632
2631
  } catch (e) {
2633
2632
  console.error(e);
2633
+ } finally {
2634
+ requestModel.clear();
2634
2635
  }
2635
2636
  };
2636
2637
  vue.provide(REQUEST_MODEL, {
@@ -3217,7 +3218,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3217
3218
  });
3218
3219
  const proportionComponentProps = transformToComponentProps(proportionProps);
3219
3220
  const proportionEvents = ["refreshData", "click"];
3220
- 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")();
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")();
3221
3222
  const _sfc_main$h = vue.defineComponent({
3222
3223
  name: "EcanProportion",
3223
3224
  components: {
@@ -3278,6 +3279,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3278
3279
  var _a2;
3279
3280
  if (props2.dataType !== "request" || vue.unref(pageMode) === "design")
3280
3281
  return;
3282
+ console.log("\u8BF7\u6C42");
3281
3283
  try {
3282
3284
  loading.value = true;
3283
3285
  const res = await requestData();
@@ -3350,7 +3352,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3350
3352
  }, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
3351
3353
  ], 4);
3352
3354
  }
3353
- var Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-206755e6"]]);
3355
+ var Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-8be86ed2"]]);
3354
3356
  const EcanProportion = withInstall(Proportion);
3355
3357
  const inputProps = __spreadProps(__spreadValues({}, props), {
3356
3358
  width: "200px",
@@ -3706,14 +3708,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3706
3708
  name: "\u6807\u7B7E\u9875",
3707
3709
  keyName: "\u6807\u7B7E\u9875",
3708
3710
  width: "200px",
3711
+ height: "400px",
3709
3712
  tabFontSize: "14px",
3710
3713
  backgroundColor: "",
3711
3714
  activeTabColor: "#1890ff",
3712
3715
  tabBackgroundImage: "",
3713
3716
  activeTabBackgroundImage: "",
3714
3717
  tabColor: "#333",
3715
- tabBarGutter: "0px",
3716
- tabHeight: "30px",
3718
+ tabBarGutter: "24px",
3717
3719
  value: "",
3718
3720
  activeKey: 0,
3719
3721
  contains: [],
@@ -3731,7 +3733,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3731
3733
  });
3732
3734
  const tabsComponentProps = transformToComponentProps(tabsProps);
3733
3735
  const tabsEvents = ["tabChange"];
3734
- var Tabs_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".ecan-tabs[data-v-27b19b45] {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n.tabs-header[data-v-27b19b45] {\n color: #333333;\n display: flex;\n width: 100%;\n}\n.tab[data-v-27b19b45] {\n display: flex;\n flex: 1;\n justify-content: center;\n align-items: center;\n background-size: 100% 100%;\n background-repeat: no-repeat;\n}\n.tab[data-v-27b19b45]:last-child {\n margin-right: 0 !important;\n}\n.tabs-content[data-v-27b19b45] {\n flex: 1;\n}\n")();
3736
+ 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")();
3735
3737
  const _sfc_main$b = vue.defineComponent({
3736
3738
  name: "EcanTabs",
3737
3739
  props: __spreadValues({}, tabsComponentProps),
@@ -3744,7 +3746,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3744
3746
  }, {
3745
3747
  immediate: true
3746
3748
  });
3747
- const myData = vue.ref(props2.data);
3749
+ const myData = vue.ref([]);
3750
+ vue.watch(() => props2.data, (data) => {
3751
+ myData.value = data;
3752
+ }, {
3753
+ immediate: true,
3754
+ deep: true
3755
+ });
3748
3756
  const isActive = (index2) => activeKey.value === index2;
3749
3757
  const myValue = vue.ref(props2.value || vue.unref(myData)[0] && ((_a2 = vue.unref(myData)[0]) == null ? void 0 : _a2.value) || "");
3750
3758
  const events = props2.events;
@@ -3779,7 +3787,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3779
3787
  };
3780
3788
  }
3781
3789
  });
3782
- const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-27b19b45"), n = n(), vue.popScopeId(), n);
3790
+ const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-42d546a2"), n = n(), vue.popScopeId(), n);
3783
3791
  const _hoisted_1$3 = ["onClick"];
3784
3792
  const _hoisted_2$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "tabs-content" }, null, -1));
3785
3793
  function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
@@ -3799,18 +3807,24 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3799
3807
  style: vue.normalizeStyle({
3800
3808
  color: _ctx.isActive(index2) ? _ctx.activeTabColor : _ctx.tabColor,
3801
3809
  backgroundImage: _ctx.isActive(index2) ? _ctx.useImagePath(_ctx.activeTabBackgroundImage, true) : _ctx.useImagePath(_ctx.tabBackgroundImage, true),
3802
- marginRight: _ctx.tabBarGutter,
3803
- height: _ctx.tabHeight
3810
+ marginRight: _ctx.tabBarGutter
3804
3811
  }),
3805
3812
  key: index2,
3806
- onClick: vue.withModifiers(($event) => _ctx.tabChange(tab, index2), ["stop"])
3807
- }, vue.toDisplayString(tab.title), 13, _hoisted_1$3);
3813
+ onClick: vue.withModifiers(($event) => _ctx.tabChange(tab, index2), ["prevent", "stop"])
3814
+ }, [
3815
+ vue.createElementVNode("div", {
3816
+ class: "tab-inner",
3817
+ style: vue.normalizeStyle({
3818
+ borderBottom: `1px solid ${_ctx.isActive(index2) ? _ctx.activeTabColor : "transparent"}`
3819
+ })
3820
+ }, vue.toDisplayString(tab.title), 5)
3821
+ ], 12, _hoisted_1$3);
3808
3822
  }), 128))
3809
3823
  ], 4),
3810
3824
  _hoisted_2$1
3811
3825
  ], 4);
3812
3826
  }
3813
- var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-27b19b45"]]);
3827
+ var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-42d546a2"]]);
3814
3828
  const EcanTabs = withInstall(Tabs);
3815
3829
  const pieProps = __spreadProps(__spreadValues({}, props), {
3816
3830
  id: "",