@ecan-bi/datav 1.0.74 → 1.0.76
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 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +7 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.0.
|
|
1
|
+
/*! @ecan-bi/datav@1.0.76 */
|
|
2
2
|
var _a, _b, _c;
|
|
3
3
|
import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, normalizeStyle, createCommentVNode, provide, toDisplayString, Fragment, renderList, createElementVNode, normalizeClass, pushScopeId, popScopeId, createSlots, resolveDynamicComponent, mergeProps, withModifiers, withDirectives, vShow } from "vue";
|
|
4
4
|
import { throttle, init, use, registerMap } from "echarts/core";
|
|
@@ -1724,7 +1724,7 @@ const useRequestData = (props2, callBack = () => {
|
|
|
1724
1724
|
_params[key] = useVariablesInText(value);
|
|
1725
1725
|
}
|
|
1726
1726
|
});
|
|
1727
|
-
_params = { ..._params, ...params };
|
|
1727
|
+
_params = { ...window.requestParams, ..._params, ...params };
|
|
1728
1728
|
let urlParams = "";
|
|
1729
1729
|
const keys = Object.keys(_params);
|
|
1730
1730
|
const last = keys.length - 1;
|
|
@@ -2778,7 +2778,8 @@ const _sfc_main$l = defineComponent({
|
|
|
2778
2778
|
var _a2;
|
|
2779
2779
|
const data = unref(myData);
|
|
2780
2780
|
let text = props2.text;
|
|
2781
|
-
text = text == null ? void 0 : text.replace(/\n|\\n/g, "<br
|
|
2781
|
+
text = text == null ? void 0 : text.replace(/\n|\\n/g, "<br/>");
|
|
2782
|
+
text = text == null ? void 0 : text.replace(/\s/g, " ");
|
|
2782
2783
|
const variables = text.match(/\{\s*[\w\u4e00-\u9fa5]*\s*\}/g);
|
|
2783
2784
|
if (variables == null || variables.length === 0)
|
|
2784
2785
|
return text;
|
|
@@ -2794,7 +2795,7 @@ const _sfc_main$l = defineComponent({
|
|
|
2794
2795
|
if (usedVariable >= 0) {
|
|
2795
2796
|
text = text.replace(variable, `<span style="color:#ED6643;font-size:${props2.variableFontSize}"><img style="width: ${props2.variableFontSize}" src="${goUp}"/>${usedVariable}%</span>`);
|
|
2796
2797
|
} else {
|
|
2797
|
-
text = text.replace(variable, `<span style="color: #6ACB97;font-size:${props2.variableFontSize}"><img style="width: ${props2.variableFontSize}" src="${goDown}"/>${usedVariable}%</span>`);
|
|
2798
|
+
text = text.replace(variable, `<span style="color: #6ACB97;font-size:${props2.variableFontSize}"><img style="width: ${props2.variableFontSize}" src="${goDown}"/>${Math.abs(usedVariable)}%</span>`);
|
|
2798
2799
|
}
|
|
2799
2800
|
} else {
|
|
2800
2801
|
text = text.replace(variable, `<span style="color:${props2.variableColor};font-size:${props2.variableFontSize}">${0}%</span>`);
|
|
@@ -2876,7 +2877,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2876
2877
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
2877
2878
|
}, null, 12, _hoisted_1$7));
|
|
2878
2879
|
}
|
|
2879
|
-
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-
|
|
2880
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-04fdee06"]]);
|
|
2880
2881
|
const EcanText = withInstall(Text);
|
|
2881
2882
|
const ScrollText_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2882
2883
|
const _sfc_main$k = defineComponent({
|
|
@@ -3194,7 +3195,7 @@ const proportionProps = {
|
|
|
3194
3195
|
data: {
|
|
3195
3196
|
percent: 0.3
|
|
3196
3197
|
},
|
|
3197
|
-
text: "",
|
|
3198
|
+
text: "{percent}%",
|
|
3198
3199
|
fontSize: "26px",
|
|
3199
3200
|
color: "#4091f7",
|
|
3200
3201
|
strokeWidth: 6,
|