预算和指标填报
This commit is contained in:
@@ -124,7 +124,7 @@ export default {
|
||||
}
|
||||
const nameWrapped = wrapMixedText(params.name, 6, 1)
|
||||
return [
|
||||
`{b|${Number(params.value || 0).toLocaleString()}}`,
|
||||
`{b|${Number(params.value || 0).toLocaleString()}(${item.rate}%)}`,
|
||||
// 第2行放色块 + 名称第1行;如果名称有第2行,会自然变成第3行
|
||||
`{hr|■}{c|${nameWrapped}}`
|
||||
].join('\n')
|
||||
@@ -137,7 +137,7 @@ export default {
|
||||
},
|
||||
b: {
|
||||
color: 'rgba(0, 0, 0, 0.75)',
|
||||
fontSize: 18,
|
||||
fontSize: 13,
|
||||
padding: [0, 0, 0, 0]
|
||||
},
|
||||
c: {
|
||||
@@ -161,6 +161,13 @@ export default {
|
||||
|
||||
// 图表配置项
|
||||
const option = {
|
||||
tooltip:{
|
||||
confine:true,
|
||||
formatter:params => {
|
||||
const {name,value,percent} = params;
|
||||
return `${name}:${value} (${percent}%)`;
|
||||
}
|
||||
},
|
||||
// 动态标题(支持父组件传递)
|
||||
title: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user