@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.es.js
CHANGED
|
@@ -1629,7 +1629,7 @@ const lowerCaseIncludes = (v1, v2) => {
|
|
|
1629
1629
|
const useVariablesInText = (text, data = {}) => {
|
|
1630
1630
|
const config2 = window.config || {};
|
|
1631
1631
|
data = __spreadValues(__spreadValues({}, config2), data);
|
|
1632
|
-
const variables = text.match(/\{
|
|
1632
|
+
const variables = text.match(/\{\w*\}/g);
|
|
1633
1633
|
if (variables == null || variables.length === 0)
|
|
1634
1634
|
return text;
|
|
1635
1635
|
for (let i = 0; i < variables.length; i++) {
|
|
@@ -2695,7 +2695,7 @@ const textProps = __spreadProps(__spreadValues({}, props), {
|
|
|
2695
2695
|
});
|
|
2696
2696
|
const textComponentProps = transformToComponentProps(textProps);
|
|
2697
2697
|
const textEvents = ["refreshData", "click"];
|
|
2698
|
-
var Text_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".skeleton-wrapper[data-v-
|
|
2698
|
+
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")();
|
|
2699
2699
|
const _sfc_main$l = defineComponent({
|
|
2700
2700
|
name: "EcanText",
|
|
2701
2701
|
components: { Skeleton },
|
|
@@ -2706,7 +2706,7 @@ const _sfc_main$l = defineComponent({
|
|
|
2706
2706
|
const myText = computed(() => {
|
|
2707
2707
|
let text = props2.text;
|
|
2708
2708
|
const data = unref(myData);
|
|
2709
|
-
const variables = text.match(/\{
|
|
2709
|
+
const variables = text.match(/\{\w*\}/g);
|
|
2710
2710
|
if (variables == null || variables.length === 0)
|
|
2711
2711
|
return text;
|
|
2712
2712
|
for (let i = 0; i < variables.length; i++) {
|
|
@@ -2781,7 +2781,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2781
2781
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
2782
2782
|
}, null, 12, _hoisted_1$6));
|
|
2783
2783
|
}
|
|
2784
|
-
var Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-
|
|
2784
|
+
var Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-9526cadc"]]);
|
|
2785
2785
|
const EcanText = withInstall(Text);
|
|
2786
2786
|
var ScrollText_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".red[data-v-0bb717eb] {\n color: red;\n}\n")();
|
|
2787
2787
|
const _sfc_main$k = defineComponent({
|
|
@@ -3207,7 +3207,7 @@ const proportionProps = __spreadProps(__spreadValues({}, props), {
|
|
|
3207
3207
|
});
|
|
3208
3208
|
const proportionComponentProps = transformToComponentProps(proportionProps);
|
|
3209
3209
|
const proportionEvents = ["refreshData", "click"];
|
|
3210
|
-
var Proportion_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".ecan-proportion[data-v-
|
|
3210
|
+
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")();
|
|
3211
3211
|
const _sfc_main$h = defineComponent({
|
|
3212
3212
|
name: "EcanProportion",
|
|
3213
3213
|
components: {
|
|
@@ -3239,7 +3239,7 @@ const _sfc_main$h = defineComponent({
|
|
|
3239
3239
|
var _a2;
|
|
3240
3240
|
let text2 = props2.text;
|
|
3241
3241
|
const data = unref(myData);
|
|
3242
|
-
const variables = text2.match(/\{
|
|
3242
|
+
const variables = text2.match(/\{\w*\}/g) || [];
|
|
3243
3243
|
if (text2 === "")
|
|
3244
3244
|
return unref(value) + "%";
|
|
3245
3245
|
for (let i = 0; i < variables.length; i++) {
|
|
@@ -3340,7 +3340,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3340
3340
|
}, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
|
|
3341
3341
|
], 4);
|
|
3342
3342
|
}
|
|
3343
|
-
var Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-
|
|
3343
|
+
var Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-206755e6"]]);
|
|
3344
3344
|
const EcanProportion = withInstall(Proportion);
|
|
3345
3345
|
const inputProps = __spreadProps(__spreadValues({}, props), {
|
|
3346
3346
|
width: "200px",
|