我的图表页面
This commit is contained in:
parent
521aca96d0
commit
936cad3d34
@ -99,21 +99,16 @@ const MyChartPage: React.FC = () => {
|
|||||||
}}
|
}}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
dataSource={chartList}
|
dataSource={chartList}
|
||||||
footer={
|
|
||||||
<div>
|
|
||||||
<b>ant design</b> footer part
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
renderItem={(item) => (
|
renderItem={(item) => (
|
||||||
<List.Item key={item.id}>
|
<List.Item key={item.id}>
|
||||||
<Card style={{ width: '100%' }}>
|
<Card style={{ width: '100%' }}>
|
||||||
<List.Item.Meta
|
<List.Item.Meta
|
||||||
avatar={<Avatar src={currentUser && currentUser.userAvatar} />}
|
avatar={<Avatar src={currentUser && currentUser.userAvatar} />}
|
||||||
title={item.chartName}
|
title={item.chartName}
|
||||||
description={item.chartType ? '图表类型' + item.chartType : undefined}
|
description={item.chartType ? '图表类型:' + item.chartType : undefined}
|
||||||
/>
|
/>
|
||||||
<div style={{ marginBottom: 16 }} />
|
<div style={{ marginBottom: 16 }} />
|
||||||
{'分析目标' + item.goal}
|
{'分析目标:' + item.goal}
|
||||||
<div style={{ marginBottom: 16 }} />
|
<div style={{ marginBottom: 16 }} />
|
||||||
<ReactECharts option={JSON.parse(item.genChart ?? '{}')}></ReactECharts>
|
<ReactECharts option={JSON.parse(item.genChart ?? '{}')}></ReactECharts>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user