@ecan-bi/datav 1.1.8 → 1.1.10
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 +17 -19
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +17 -19
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +12 -1
- package/package.json +1 -1
- package/types/graph/bar/Bar.vue.d.ts +56 -0
- package/types/graph/bar/index.d.ts +56 -0
- package/types/graph/bar/props.d.ts +30 -0
- package/types/graph/combo-graph/ComboGraph.vue.d.ts +0 -1
- package/types/graph/combo-graph/index.d.ts +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
1
|
+
/*! @ecan-bi/datav@1.1.10 */
|
|
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";
|
|
@@ -2254,22 +2254,19 @@ const useValueFormatter = (formatter, value) => {
|
|
|
2254
2254
|
break;
|
|
2255
2255
|
let statement = variable.slice(1, -1);
|
|
2256
2256
|
statement = statement == null ? void 0 : statement.replace(/value/g, value);
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
if (/[+\-*/%]+/g.test(statement)) {
|
|
2263
|
-
const eval2 = eval;
|
|
2264
|
-
result = eval2(statement);
|
|
2265
|
-
}
|
|
2266
|
-
formatter = formatter.replace(variable, result);
|
|
2267
|
-
} catch (e) {
|
|
2268
|
-
console.error(e);
|
|
2269
|
-
return value;
|
|
2257
|
+
try {
|
|
2258
|
+
let result = statement;
|
|
2259
|
+
if (/[+\-*/%]+/g.test(statement)) {
|
|
2260
|
+
const eval2 = eval;
|
|
2261
|
+
result = eval2(statement);
|
|
2270
2262
|
}
|
|
2263
|
+
formatter = formatter.replace(variable, result);
|
|
2264
|
+
} catch (e) {
|
|
2265
|
+
formatter = formatter.replace(variable, statement);
|
|
2266
|
+
console.warn(e);
|
|
2271
2267
|
}
|
|
2272
2268
|
}
|
|
2269
|
+
console.log("\u7ED3\u679C-formatter", formatter);
|
|
2273
2270
|
return formatter;
|
|
2274
2271
|
};
|
|
2275
2272
|
const useIndicatorData = (props2 = {}) => {
|
|
@@ -4928,7 +4925,9 @@ const barProps = {
|
|
|
4928
4925
|
yAxisInverse: false,
|
|
4929
4926
|
isStack: false,
|
|
4930
4927
|
labelShow: false,
|
|
4931
|
-
labelFontSize: "12px"
|
|
4928
|
+
labelFontSize: "12px",
|
|
4929
|
+
labelPosition: "inside",
|
|
4930
|
+
labelColor: ""
|
|
4932
4931
|
};
|
|
4933
4932
|
const barComponentProps = transformToComponentProps(barProps);
|
|
4934
4933
|
const barEvents = ["refreshData", "click"];
|
|
@@ -4972,7 +4971,9 @@ const _sfc_main$a = defineComponent({
|
|
|
4972
4971
|
}
|
|
4973
4972
|
item.label = {
|
|
4974
4973
|
show: props2.labelShow,
|
|
4975
|
-
fontSize: props2.labelFontSize
|
|
4974
|
+
fontSize: props2.labelFontSize,
|
|
4975
|
+
position: props2.labelPosition,
|
|
4976
|
+
color: props2.labelColor
|
|
4976
4977
|
};
|
|
4977
4978
|
series2.push(item);
|
|
4978
4979
|
}
|
|
@@ -5904,9 +5905,6 @@ const _sfc_main$7 = defineComponent({
|
|
|
5904
5905
|
}
|
|
5905
5906
|
return formatter;
|
|
5906
5907
|
},
|
|
5907
|
-
valueFormatter(value) {
|
|
5908
|
-
return useValueFormatter(props2 == null ? void 0 : props2.tooltipFormatter, value);
|
|
5909
|
-
},
|
|
5910
5908
|
textStyle: {
|
|
5911
5909
|
color: props2.tooltipTextStyleColor
|
|
5912
5910
|
}
|