This commit is contained in:
hucong 2021-10-14 10:20:36 +08:00
parent bb6fe08c54
commit f6b59e0a3a
2 changed files with 11 additions and 14 deletions

View File

@ -119,18 +119,19 @@ function Tags(props) {
return( return(
<div> <div>
<SubMenu tab={"tags"} projectsId={projectsId} owner={owner}/> <SubMenu tab={"tags"} projectsId={projectsId} owner={owner}/>
{
source && source.length > 0 ?
<div className="tagSpin">
<Spin spinning={isSpin}> <Spin spinning={isSpin}>
<div className="tagSpin">
{
source && source.length > 0 &&
<Table <Table
className="tagTable" className="tagTable"
dataSource={source} columns={columns} pagination={false}></Table> dataSource={source} columns={columns} pagination={false}></Table>
</Spin>
</div>
:
<Nonedata _html={'暂无数据~'}/>
} }
{
source && source.length === 0 && <Nonedata _html={'暂无数据~'}/>
}
</div>
</Spin>
</div> </div>
) )
} }

View File

@ -39,10 +39,6 @@
} }
.tagSpin{ .tagSpin{
min-height: 300px; min-height: 300px;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
} }
.tagBranch{ .tagBranch{
padding-right: 15px; padding-right: 15px;