@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.es.js +10 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +6 -6
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3723,7 +3723,7 @@ const tabsProps = __spreadProps(__spreadValues({}, props), {
|
|
|
3723
3723
|
});
|
|
3724
3724
|
const tabsComponentProps = transformToComponentProps(tabsProps);
|
|
3725
3725
|
const tabsEvents = ["tabChange"];
|
|
3726
|
-
var Tabs_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".ecan-tabs[data-v-
|
|
3726
|
+
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")();
|
|
3727
3727
|
const _sfc_main$b = defineComponent({
|
|
3728
3728
|
name: "EcanTabs",
|
|
3729
3729
|
props: __spreadValues({}, tabsComponentProps),
|
|
@@ -3736,7 +3736,13 @@ const _sfc_main$b = defineComponent({
|
|
|
3736
3736
|
}, {
|
|
3737
3737
|
immediate: true
|
|
3738
3738
|
});
|
|
3739
|
-
const myData = ref(
|
|
3739
|
+
const myData = ref([]);
|
|
3740
|
+
watch(() => props2.data, (data) => {
|
|
3741
|
+
myData.value = data;
|
|
3742
|
+
}, {
|
|
3743
|
+
immediate: true,
|
|
3744
|
+
deep: true
|
|
3745
|
+
});
|
|
3740
3746
|
const isActive = (index2) => activeKey.value === index2;
|
|
3741
3747
|
const myValue = ref(props2.value || unref(myData)[0] && ((_a2 = unref(myData)[0]) == null ? void 0 : _a2.value) || "");
|
|
3742
3748
|
const events = props2.events;
|
|
@@ -3771,7 +3777,7 @@ const _sfc_main$b = defineComponent({
|
|
|
3771
3777
|
};
|
|
3772
3778
|
}
|
|
3773
3779
|
});
|
|
3774
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
3780
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-55d33fb6"), n = n(), popScopeId(), n);
|
|
3775
3781
|
const _hoisted_1$3 = ["onClick"];
|
|
3776
3782
|
const _hoisted_2$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "tabs-content" }, null, -1));
|
|
3777
3783
|
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -3808,7 +3814,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3808
3814
|
_hoisted_2$1
|
|
3809
3815
|
], 4);
|
|
3810
3816
|
}
|
|
3811
|
-
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-
|
|
3817
|
+
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-55d33fb6"]]);
|
|
3812
3818
|
const EcanTabs = withInstall(Tabs);
|
|
3813
3819
|
const pieProps = __spreadProps(__spreadValues({}, props), {
|
|
3814
3820
|
id: "",
|