@ecan-bi/datav 1.0.44 → 1.0.45
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 +7 -7
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +7 -7
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +5 -5
- package/package.json +1 -1
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++) {
|
|
@@ -2705,7 +2705,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
2705
2705
|
});
|
|
2706
2706
|
const textComponentProps = transformToComponentProps(textProps);
|
|
2707
2707
|
const textEvents = ["refreshData", "click"];
|
|
2708
|
-
var Text_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".skeleton-wrapper[data-v-
|
|
2708
|
+
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
2709
|
const _sfc_main$l = vue.defineComponent({
|
|
2710
2710
|
name: "EcanText",
|
|
2711
2711
|
components: { Skeleton },
|
|
@@ -2716,7 +2716,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
2716
2716
|
const myText = vue.computed(() => {
|
|
2717
2717
|
let text = props2.text;
|
|
2718
2718
|
const data = vue.unref(myData);
|
|
2719
|
-
const variables = text.match(/\{
|
|
2719
|
+
const variables = text.match(/\{\w*\}/g);
|
|
2720
2720
|
if (variables == null || variables.length === 0)
|
|
2721
2721
|
return text;
|
|
2722
2722
|
for (let i = 0; i < variables.length; i++) {
|
|
@@ -2791,7 +2791,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
2791
2791
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
2792
2792
|
}, null, 12, _hoisted_1$6));
|
|
2793
2793
|
}
|
|
2794
|
-
var Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-
|
|
2794
|
+
var Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-9526cadc"]]);
|
|
2795
2795
|
const EcanText = withInstall(Text);
|
|
2796
2796
|
var ScrollText_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".red[data-v-0bb717eb] {\n color: red;\n}\n")();
|
|
2797
2797
|
const _sfc_main$k = vue.defineComponent({
|
|
@@ -3217,7 +3217,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
3217
3217
|
});
|
|
3218
3218
|
const proportionComponentProps = transformToComponentProps(proportionProps);
|
|
3219
3219
|
const proportionEvents = ["refreshData", "click"];
|
|
3220
|
-
var Proportion_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".ecan-proportion[data-v-
|
|
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
3221
|
const _sfc_main$h = vue.defineComponent({
|
|
3222
3222
|
name: "EcanProportion",
|
|
3223
3223
|
components: {
|
|
@@ -3249,7 +3249,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
3249
3249
|
var _a2;
|
|
3250
3250
|
let text2 = props2.text;
|
|
3251
3251
|
const data = vue.unref(myData);
|
|
3252
|
-
const variables = text2.match(/\{
|
|
3252
|
+
const variables = text2.match(/\{\w*\}/g) || [];
|
|
3253
3253
|
if (text2 === "")
|
|
3254
3254
|
return vue.unref(value) + "%";
|
|
3255
3255
|
for (let i = 0; i < variables.length; i++) {
|
|
@@ -3350,7 +3350,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
3350
3350
|
}, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
|
|
3351
3351
|
], 4);
|
|
3352
3352
|
}
|
|
3353
|
-
var Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-
|
|
3353
|
+
var Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-206755e6"]]);
|
|
3354
3354
|
const EcanProportion = withInstall(Proportion);
|
|
3355
3355
|
const inputProps = __spreadProps(__spreadValues({}, props), {
|
|
3356
3356
|
width: "200px",
|