@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.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.0.
|
|
1
|
+
/*! @ecan-bi/datav@1.0.76 */
|
|
2
2
|
(function(global, factory) {
|
|
3
3
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("echarts/core"), require("resize-detector"), require("ant-design-vue"), require("ant-design-vue/es/spin/style"), require("ant-design-vue/es/skeleton/style"), require("lodash-es"), require("axios"), require("mitt"), require("dayjs"), require("ant-design-vue/es/progress/style"), require("ant-design-vue/es/input/style"), require("ant-design-vue/es/date-picker/style"), require("ant-design-vue/es/date-picker/locale/zh_CN"), require("ant-design-vue/es/select/style"), require("ant-design-vue/es/button/style"), require("echarts/renderers"), require("echarts/charts"), require("echarts/components"), require("echarts"), require("ant-design-vue/es/modal/style"), require("ant-design-vue/es/table/style")) : typeof define === "function" && define.amd ? define(["exports", "vue", "echarts/core", "resize-detector", "ant-design-vue", "ant-design-vue/es/spin/style", "ant-design-vue/es/skeleton/style", "lodash-es", "axios", "mitt", "dayjs", "ant-design-vue/es/progress/style", "ant-design-vue/es/input/style", "ant-design-vue/es/date-picker/style", "ant-design-vue/es/date-picker/locale/zh_CN", "ant-design-vue/es/select/style", "ant-design-vue/es/button/style", "echarts/renderers", "echarts/charts", "echarts/components", "echarts", "ant-design-vue/es/modal/style", "ant-design-vue/es/table/style"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["@ecan/bi-datav"] = {}, global.vue, global["echarts/core"], global["resize-detector"], global["ant-design-vue"], null, null, global["lodash-es"], global.axios, global.mitt, global.dayjs, null, null, null, global["ant-design-vue/es/date-picker/locale/zh_CN"], null, null, global["echarts/renderers"], global["echarts/charts"], global["echarts/components"], global.echarts));
|
|
4
4
|
})(this, function(exports2, vue, core, resizeDetector, antDesignVue, style$1, style$2, lodashEs, axios, mitt, dayjs, style$3, style$4, style$5, locale, style$6, style$7, renderers, charts, components$1, echarts) {
|
|
@@ -1730,7 +1730,7 @@
|
|
|
1730
1730
|
_params[key] = useVariablesInText(value);
|
|
1731
1731
|
}
|
|
1732
1732
|
});
|
|
1733
|
-
_params = { ..._params, ...params };
|
|
1733
|
+
_params = { ...window.requestParams, ..._params, ...params };
|
|
1734
1734
|
let urlParams = "";
|
|
1735
1735
|
const keys = Object.keys(_params);
|
|
1736
1736
|
const last = keys.length - 1;
|
|
@@ -2784,7 +2784,8 @@
|
|
|
2784
2784
|
var _a2;
|
|
2785
2785
|
const data = vue.unref(myData);
|
|
2786
2786
|
let text = props2.text;
|
|
2787
|
-
text = text == null ? void 0 : text.replace(/\n|\\n/g, "<br
|
|
2787
|
+
text = text == null ? void 0 : text.replace(/\n|\\n/g, "<br/>");
|
|
2788
|
+
text = text == null ? void 0 : text.replace(/\s/g, " ");
|
|
2788
2789
|
const variables = text.match(/\{\s*[\w\u4e00-\u9fa5]*\s*\}/g);
|
|
2789
2790
|
if (variables == null || variables.length === 0)
|
|
2790
2791
|
return text;
|
|
@@ -2800,7 +2801,7 @@
|
|
|
2800
2801
|
if (usedVariable >= 0) {
|
|
2801
2802
|
text = text.replace(variable, `<span style="color:#ED6643;font-size:${props2.variableFontSize}"><img style="width: ${props2.variableFontSize}" src="${goUp}"/>${usedVariable}%</span>`);
|
|
2802
2803
|
} else {
|
|
2803
|
-
text = text.replace(variable, `<span style="color: #6ACB97;font-size:${props2.variableFontSize}"><img style="width: ${props2.variableFontSize}" src="${goDown}"/>${usedVariable}%</span>`);
|
|
2804
|
+
text = text.replace(variable, `<span style="color: #6ACB97;font-size:${props2.variableFontSize}"><img style="width: ${props2.variableFontSize}" src="${goDown}"/>${Math.abs(usedVariable)}%</span>`);
|
|
2804
2805
|
}
|
|
2805
2806
|
} else {
|
|
2806
2807
|
text = text.replace(variable, `<span style="color:${props2.variableColor};font-size:${props2.variableFontSize}">${0}%</span>`);
|
|
@@ -2882,7 +2883,7 @@
|
|
|
2882
2883
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
2883
2884
|
}, null, 12, _hoisted_1$7));
|
|
2884
2885
|
}
|
|
2885
|
-
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-
|
|
2886
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-04fdee06"]]);
|
|
2886
2887
|
const EcanText = withInstall(Text);
|
|
2887
2888
|
const ScrollText_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2888
2889
|
const _sfc_main$k = vue.defineComponent({
|
|
@@ -3200,7 +3201,7 @@
|
|
|
3200
3201
|
data: {
|
|
3201
3202
|
percent: 0.3
|
|
3202
3203
|
},
|
|
3203
|
-
text: "",
|
|
3204
|
+
text: "{percent}%",
|
|
3204
3205
|
fontSize: "26px",
|
|
3205
3206
|
color: "#4091f7",
|
|
3206
3207
|
strokeWidth: 6,
|