This commit is contained in:
yunkexin 2026-05-07 16:37:24 +08:00
parent 7286069b22
commit f761c24893
3 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ class HomeContent extends React.Component {
label: { label: {
show: true, show: true,
position: 'inside', position: 'inside',
formatter: '{a|{b}{c}}{e|({d}%)}\n', formatter: '{a|{b}{c}}\n\n\n{e|({d}%)}', // 添加 \n 换行符
color: '#000', color: '#000',
textBorderWidth: 0, textBorderWidth: 0,
rich: { rich: {

View File

@ -404,7 +404,7 @@ class RiskControl extends React.Component {
lowTotal: riskList.reduce((sum, item) => sum + (item.lowCount || 0), 0), lowTotal: riskList.reduce((sum, item) => sum + (item.lowCount || 0), 0),
totalAll: riskList.reduce((sum, item) => sum + (item.totalCount || 0), 0), totalAll: riskList.reduce((sum, item) => sum + (item.totalCount || 0), 0),
}; };
const scrollConfig = columns.length > 10 ? { x: columns.length * 100, y: 380 } : {}; const scrollConfig = columns.length > 10 ? { x: columns.length * 100, y: 360 } : { y: 360 };
return ( return (
<div style={{ height: '100%', display: 'flex', flexDirection: 'column' }}> <div style={{ height: '100%', display: 'flex', flexDirection: 'column' }}>
<div <div
@ -418,7 +418,7 @@ class RiskControl extends React.Component {
> >
各家公司的风险统计情况 各家公司的风险统计情况
</div> </div>
<div style={{ flex: 1, overflow: 'auto', padding: '10px' }}> <div style={{ flex: 1, padding: '10px' }}>
<Table <Table
columns={columns} columns={columns}
dataSource={tableData} dataSource={tableData}

View File

@ -553,7 +553,7 @@ class TrainingContent extends React.Component {
}); });
// 横向滚动配置(当列数过多时) // 横向滚动配置(当列数过多时)
const scrollConfig = columns.length > 10 ? { x: columns.length * 100, y: 380 } : {}; const scrollConfig = columns.length > 10 ? { x: columns.length * 100, y: 380 } : { y: 380 };
return ( return (
<div style={{ height: '100%', overflow: 'hidden', padding: '10px' }}> <div style={{ height: '100%', overflow: 'hidden', padding: '10px' }}>