@ecan-bi/datav 1.0.46 → 1.0.47

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
@@ -3733,7 +3733,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3733
3733
  });
3734
3734
  const tabsComponentProps = transformToComponentProps(tabsProps);
3735
3735
  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")();
3736
+ var Tabs_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".ecan-tabs[data-v-55d33fb6] {\n display: flex;\n flex-direction: column;\n}\n.tabs-header[data-v-55d33fb6] {\n color: #333333;\n display: flex;\n width: 100%;\n}\n.tab[data-v-55d33fb6] {\n background-size: 100% 100%;\n background-repeat: no-repeat;\n padding: 0 12px;\n cursor: default;\n}\n.tab-inner[data-v-55d33fb6] {\n padding: 12px 0;\n}\n.tab[data-v-55d33fb6]:last-child {\n margin-right: 0 !important;\n}\n.tabs-content[data-v-55d33fb6] {\n flex: 1;\n}\n")();
3737
3737
  const _sfc_main$b = vue.defineComponent({
3738
3738
  name: "EcanTabs",
3739
3739
  props: __spreadValues({}, tabsComponentProps),
@@ -3746,7 +3746,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3746
3746
  }, {
3747
3747
  immediate: true
3748
3748
  });
3749
- 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
+ });
3750
3756
  const isActive = (index2) => activeKey.value === index2;
3751
3757
  const myValue = vue.ref(props2.value || vue.unref(myData)[0] && ((_a2 = vue.unref(myData)[0]) == null ? void 0 : _a2.value) || "");
3752
3758
  const events = props2.events;
@@ -3781,7 +3787,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3781
3787
  };
3782
3788
  }
3783
3789
  });
3784
- const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-d53b6936"), n = n(), vue.popScopeId(), n);
3790
+ const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-55d33fb6"), n = n(), vue.popScopeId(), n);
3785
3791
  const _hoisted_1$3 = ["onClick"];
3786
3792
  const _hoisted_2$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "tabs-content" }, null, -1));
3787
3793
  function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
@@ -3818,7 +3824,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3818
3824
  _hoisted_2$1
3819
3825
  ], 4);
3820
3826
  }
3821
- var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-d53b6936"]]);
3827
+ var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-55d33fb6"]]);
3822
3828
  const EcanTabs = withInstall(Tabs);
3823
3829
  const pieProps = __spreadProps(__spreadValues({}, props), {
3824
3830
  id: "",