预算和指标填报

This commit is contained in:
2026-04-10 08:41:39 +08:00
parent 0c8bd440ae
commit bdd73b8868
18 changed files with 162 additions and 39 deletions

View File

@@ -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: [
{