@ecan-bi/datav 1.0.44 → 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 +31 -17
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +31 -17
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +15 -15
- package/package.json +1 -1
- package/types/control/tabs/Tabs.vue.d.ts +0 -14
- package/types/control/tabs/index.d.ts +0 -14
- package/types/control/tabs/props.d.ts +0 -8
package/dist/index.umd.js
CHANGED
|
@@ -1639,7 +1639,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
1639
1639
|
const useVariablesInText = (text, data = {}) => {
|
|
1640
1640
|
const config2 = window.config || {};
|
|
1641
1641
|
data = __spreadValues(__spreadValues({}, config2), data);
|
|
1642
|
-
const variables = text.match(/\{
|
|
1642
|
+
const variables = text.match(/\{\w*\}/g);
|
|
1643
1643
|
if (variables == null || variables.length === 0)
|
|
1644
1644
|
return text;
|
|
1645
1645
|
for (let i = 0; i < variables.length; i++) {
|
|
@@ -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, {
|
|
@@ -2705,7 +2706,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
2705
2706
|
});
|
|
2706
2707
|
const textComponentProps = transformToComponentProps(textProps);
|
|
2707
2708
|
const textEvents = ["refreshData", "click"];
|
|
2708
|
-
var Text_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".skeleton-wrapper[data-v-
|
|
2709
|
+
var Text_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".skeleton-wrapper[data-v-9526cadc] {\n overflow: hidden;\n}\n.ecan-text[data-v-9526cadc] {\n overflow: hidden;\n display: flex;\n}\n")();
|
|
2709
2710
|
const _sfc_main$l = vue.defineComponent({
|
|
2710
2711
|
name: "EcanText",
|
|
2711
2712
|
components: { Skeleton },
|
|
@@ -2716,7 +2717,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
2716
2717
|
const myText = vue.computed(() => {
|
|
2717
2718
|
let text = props2.text;
|
|
2718
2719
|
const data = vue.unref(myData);
|
|
2719
|
-
const variables = text.match(/\{
|
|
2720
|
+
const variables = text.match(/\{\w*\}/g);
|
|
2720
2721
|
if (variables == null || variables.length === 0)
|
|
2721
2722
|
return text;
|
|
2722
2723
|
for (let i = 0; i < variables.length; i++) {
|
|
@@ -2791,7 +2792,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
2791
2792
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
2792
2793
|
}, null, 12, _hoisted_1$6));
|
|
2793
2794
|
}
|
|
2794
|
-
var Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-
|
|
2795
|
+
var Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-9526cadc"]]);
|
|
2795
2796
|
const EcanText = withInstall(Text);
|
|
2796
2797
|
var ScrollText_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".red[data-v-0bb717eb] {\n color: red;\n}\n")();
|
|
2797
2798
|
const _sfc_main$k = vue.defineComponent({
|
|
@@ -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-
|
|
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: {
|
|
@@ -3249,7 +3250,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
3249
3250
|
var _a2;
|
|
3250
3251
|
let text2 = props2.text;
|
|
3251
3252
|
const data = vue.unref(myData);
|
|
3252
|
-
const variables = text2.match(/\{
|
|
3253
|
+
const variables = text2.match(/\{\w*\}/g) || [];
|
|
3253
3254
|
if (text2 === "")
|
|
3254
3255
|
return vue.unref(value) + "%";
|
|
3255
3256
|
for (let i = 0; i < variables.length; i++) {
|
|
@@ -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-
|
|
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,6 +3708,7 @@ 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",
|
|
@@ -3713,7 +3716,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
3713
3716
|
activeTabBackgroundImage: "",
|
|
3714
3717
|
tabColor: "#333",
|
|
3715
3718
|
tabBarGutter: "0px",
|
|
3716
|
-
tabHeight: "30px",
|
|
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-
|
|
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")();
|
|
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(
|
|
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-
|
|
3790
|
+
const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-55d33fb6"), 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
|
-
},
|
|
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-
|
|
3827
|
+
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-55d33fb6"]]);
|
|
3814
3828
|
const EcanTabs = withInstall(Tabs);
|
|
3815
3829
|
const pieProps = __spreadProps(__spreadValues({}, props), {
|
|
3816
3830
|
id: "",
|