1
This commit is contained in:
parent
7286069b22
commit
f761c24893
@ -92,7 +92,7 @@ class HomeContent extends React.Component {
|
||||
label: {
|
||||
show: true,
|
||||
position: 'inside',
|
||||
formatter: '{a|{b}:{c}}{e|({d}%)}\n',
|
||||
formatter: '{a|{b}:{c}}\n\n\n{e|({d}%)}', // 添加 \n 换行符
|
||||
color: '#000',
|
||||
textBorderWidth: 0,
|
||||
rich: {
|
||||
|
||||
@ -404,7 +404,7 @@ class RiskControl extends React.Component {
|
||||
lowTotal: riskList.reduce((sum, item) => sum + (item.lowCount || 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 (
|
||||
<div style={{ height: '100%', display: 'flex', flexDirection: 'column' }}>
|
||||
<div
|
||||
@ -418,7 +418,7 @@ class RiskControl extends React.Component {
|
||||
>
|
||||
各家公司的风险统计情况
|
||||
</div>
|
||||
<div style={{ flex: 1, overflow: 'auto', padding: '10px' }}>
|
||||
<div style={{ flex: 1, padding: '10px' }}>
|
||||
<Table
|
||||
columns={columns}
|
||||
dataSource={tableData}
|
||||
|
||||
@ -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 (
|
||||
<div style={{ height: '100%', overflow: 'hidden', padding: '10px' }}>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user