@ecan-bi/datav 1.1.12 → 1.1.13
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 +6 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
1
|
+
/*! @ecan-bi/datav@1.1.13 */
|
|
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("ant-design-vue/es/checkbox/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", "ant-design-vue/es/checkbox/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, 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, style$8, renderers, charts, components$1, echarts) {
|
|
@@ -1674,7 +1674,7 @@
|
|
|
1674
1674
|
for (let i = 0; i < variables.length; i++) {
|
|
1675
1675
|
const variable = variables[i];
|
|
1676
1676
|
let statement = variable.slice(1, -1);
|
|
1677
|
-
const reg = /[\u4e00-\
|
|
1677
|
+
const reg = /[\u4e00-\u9fa5a-z-_A-Z]+[0-9]*/g;
|
|
1678
1678
|
const textVariables = statement.match(reg);
|
|
1679
1679
|
for (let j = 0; j < textVariables.length; j++) {
|
|
1680
1680
|
const textVariable = textVariables[j];
|
|
@@ -1684,7 +1684,7 @@
|
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
1686
1686
|
try {
|
|
1687
|
-
if (/[0-9]+(.*)[
|
|
1687
|
+
if (/[0-9]+(.*)[+|-|*|/](.*)[0-9]+/g.test(statement)) {
|
|
1688
1688
|
const eval2 = eval;
|
|
1689
1689
|
statement = eval2(statement);
|
|
1690
1690
|
}
|
|
@@ -1719,9 +1719,10 @@
|
|
|
1719
1719
|
const { getGlobalModel } = vue.inject(GLOBAL_MODEL, {
|
|
1720
1720
|
getGlobalModel: (key) => void 0
|
|
1721
1721
|
});
|
|
1722
|
+
console.log("requestUrl", requestUrl);
|
|
1723
|
+
const url = useVariablesInText(requestUrl);
|
|
1724
|
+
console.log("url", url);
|
|
1722
1725
|
const requestData = async (params = {}) => {
|
|
1723
|
-
const url = useVariablesInText(requestUrl);
|
|
1724
|
-
console.log("url", url);
|
|
1725
1726
|
if (!url || !method || !headers || vue.unref(pageMode) === "design")
|
|
1726
1727
|
return;
|
|
1727
1728
|
let _params = {};
|