|
|
|
@ -258,8 +258,8 @@ export default { |
|
|
|
lineHeight: 20, |
|
|
|
lineHeight: 20, |
|
|
|
color: '#fff', |
|
|
|
color: '#fff', |
|
|
|
formatter: params => { |
|
|
|
formatter: params => { |
|
|
|
const childText = |
|
|
|
const childText =params.data.quota>=0?`${params.data.quota}个`:'' |
|
|
|
params.data.children?.length > 0 ? `${params.data.children.length}个子件` : ''; |
|
|
|
console.log(999999,params) |
|
|
|
// 去掉模板字符串缩进,用\n换行,避免多余空白 |
|
|
|
// 去掉模板字符串缩进,用\n换行,避免多余空白 |
|
|
|
return `${params.name}${childText ? '\n' + childText : ''}`; |
|
|
|
return `${params.name}${childText ? '\n' + childText : ''}`; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|