Commit 0f4a09e3 authored by 张烨's avatar 张烨

style: 优化站点管理样式

parent d7dbb073
......@@ -181,19 +181,9 @@ const SiteManage = () => {
console.log(err);
});
};
return (
<PageContainer>
<GridContent>
<Row gutter={12}>
<Col lg={6} sm={6}>
<Card className={styles.cardBox}>
<Spin
tip="loading...."
spinning={spinLoading}
style={{ marginTop: '20px' }}
>
<List>
{treeData.map(t => (
const renderListItem = items =>
items.map(t => (
<List.Item
onClick={() => {
setCurrentStation(t);
......@@ -206,8 +196,20 @@ const SiteManage = () => {
>
{t.text}
</List.Item>
))}
</List>
));
return (
<PageContainer>
<GridContent>
<Row gutter={12}>
<Col lg={6} sm={6}>
<Card className={styles.cardBox}>
<Spin
tip="loading...."
spinning={spinLoading}
style={{ marginTop: '20px' }}
>
<List>{renderListItem(treeData)}</List>
</Spin>
<AddModal
visible={modalVisible}
......
.cardBox{
min-height: calc(100vh - 200px);
height: calc(100vh - 200px);
overflow: auto;
}
.cardBoxR{
min-height: calc(100vh - 292px);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment