@ecan-bi/datav 1.1.10 → 1.1.12
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.1.
|
|
1
|
+
/*! @ecan-bi/datav@1.1.12 */
|
|
2
2
|
var _a, _b, _c, _d;
|
|
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, onBeforeUnmount, toDisplayString, Fragment, renderList, createElementVNode, normalizeClass, pushScopeId, popScopeId, createSlots, resolveDynamicComponent, mergeProps, withModifiers, reactive, createTextVNode, withDirectives, vShow } from "vue";
|
|
4
4
|
import { throttle, init, use, registerMap } from "echarts/core";
|
|
@@ -1699,7 +1699,7 @@ const useVariablesInText = (formatter = "", data = {}, { useNewline = false, use
|
|
|
1699
1699
|
const useRequestData = (props2, callBack = () => {
|
|
1700
1700
|
}) => {
|
|
1701
1701
|
const {
|
|
1702
|
-
requestUrl
|
|
1702
|
+
requestUrl,
|
|
1703
1703
|
requestMethod: method,
|
|
1704
1704
|
requestHeaders: headers,
|
|
1705
1705
|
requestParams,
|
|
@@ -1715,6 +1715,8 @@ const useRequestData = (props2, callBack = () => {
|
|
|
1715
1715
|
getGlobalModel: (key) => void 0
|
|
1716
1716
|
});
|
|
1717
1717
|
const requestData = async (params = {}) => {
|
|
1718
|
+
const url = useVariablesInText(requestUrl);
|
|
1719
|
+
console.log("url", url);
|
|
1718
1720
|
if (!url || !method || !headers || unref(pageMode) === "design")
|
|
1719
1721
|
return;
|
|
1720
1722
|
let _params = {};
|
|
@@ -2266,7 +2268,6 @@ const useValueFormatter = (formatter, value) => {
|
|
|
2266
2268
|
console.warn(e);
|
|
2267
2269
|
}
|
|
2268
2270
|
}
|
|
2269
|
-
console.log("\u7ED3\u679C-formatter", formatter);
|
|
2270
2271
|
return formatter;
|
|
2271
2272
|
};
|
|
2272
2273
|
const useIndicatorData = (props2 = {}) => {
|
|
@@ -2855,7 +2856,7 @@ const _sfc_main$n = defineComponent({
|
|
|
2855
2856
|
} else if (props2.format === "money") {
|
|
2856
2857
|
usedVariable = +usedVariable;
|
|
2857
2858
|
if (!isNaN(usedVariable)) {
|
|
2858
|
-
usedVariable = usedVariable
|
|
2859
|
+
usedVariable = formatMoney(usedVariable);
|
|
2859
2860
|
text = text.replace(variable, `<span style="color:${props2.variableColor};font-size:${props2.variableFontSize}">${usedVariable}</span>`);
|
|
2860
2861
|
}
|
|
2861
2862
|
} else {
|
|
@@ -2934,7 +2935,7 @@ const _sfc_main$n = defineComponent({
|
|
|
2934
2935
|
};
|
|
2935
2936
|
}
|
|
2936
2937
|
});
|
|
2937
|
-
const
|
|
2938
|
+
const Text_vue_vue_type_style_index_0_scoped_39de3ad6_lang = "";
|
|
2938
2939
|
const _hoisted_1$8 = ["innerHTML"];
|
|
2939
2940
|
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2940
2941
|
const _component_skeleton = resolveComponent("skeleton");
|
|
@@ -2952,7 +2953,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2952
2953
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
2953
2954
|
}, null, 12, _hoisted_1$8));
|
|
2954
2955
|
}
|
|
2955
|
-
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
2956
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-39de3ad6"]]);
|
|
2956
2957
|
const EcanText = withInstall(Text);
|
|
2957
2958
|
const _sfc_main$m = defineComponent({
|
|
2958
2959
|
name: "EcanScrollText",
|