Commit 05399770 authored by chris.yang's avatar chris.yang

reactor:formatter数据无需处理

parent 35f11d3a
...@@ -51,10 +51,7 @@ ...@@ -51,10 +51,7 @@
}, },
tooltip: { tooltip: {
...that.elementInfo.option.tooltip, ...that.elementInfo.option.tooltip,
trigger: "axis", trigger: "axis"
formatter: val => {
return that.$u.common.converFunction(that.elementInfo.option.tooltip.formatter, val)
}
}, },
toolbox: { toolbox: {
...that.elementInfo.option.toolbox, ...that.elementInfo.option.toolbox,
......
...@@ -53,10 +53,7 @@ ...@@ -53,10 +53,7 @@
}, },
tooltip: { tooltip: {
...that.elementInfo.option.tooltip, ...that.elementInfo.option.tooltip,
trigger: "axis", trigger: "axis"
formatter: val => {
return that.$u.common.converFunction(that.elementInfo.option.tooltip.formatter, val)
}
}, },
toolbox: { toolbox: {
...that.elementInfo.option.toolbox, ...that.elementInfo.option.toolbox,
......
...@@ -46,10 +46,7 @@ export default { ...@@ -46,10 +46,7 @@ export default {
color: ['#1089E7', '#F57474', '#56D0E3', '#F8B448', '#8B78F6'], color: ['#1089E7', '#F57474', '#56D0E3', '#F8B448', '#8B78F6'],
tooltip: { tooltip: {
...this.elementInfo.option.tooltip, ...this.elementInfo.option.tooltip,
trigger: 'item', trigger: 'item'
formatter: val => {
return that.$u.common.converFunction(this.elementInfo.option.tooltip.formatter, val)
}
}, },
series: this.dealSeriesData(series) series: this.dealSeriesData(series)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment