forked from Gitlink/forgeplus-react
styel
This commit is contained in:
parent
9600d52a80
commit
cd30082956
|
@ -11,7 +11,7 @@ import moment from 'moment';
|
|||
|
||||
function Tags(props) {
|
||||
|
||||
const [ source , setSource ] = useState([]);
|
||||
const [ source , setSource ] = useState(undefined);
|
||||
const [ isSpin , setIsSpin ] = useState(true);
|
||||
|
||||
const { projectsId , owner } = props.match.params;
|
||||
|
@ -99,18 +99,19 @@ function Tags(props) {
|
|||
return(
|
||||
<div>
|
||||
<SubMenu tab={"tags"} projectsId={projectsId} owner={owner}/>
|
||||
{
|
||||
source && source.length > 0 ?
|
||||
<div className="tagSpin">
|
||||
<Spin spinning={isSpin}>
|
||||
<Table
|
||||
className="tagTable"
|
||||
dataSource={source} columns={columns} pagination={false}></Table>
|
||||
</Spin>
|
||||
</div>
|
||||
:
|
||||
<Nonedata _html={'暂无数据~'}/>
|
||||
}
|
||||
<div className="tagSpin">
|
||||
<Spin spinning={isSpin}>
|
||||
{
|
||||
source && source.length > 0 &&
|
||||
<Table
|
||||
className="tagTable"
|
||||
dataSource={source} columns={columns} pagination={false}></Table>
|
||||
}
|
||||
{
|
||||
source && source.length === 0 && <Nonedata _html={'暂无数据~'}/>
|
||||
}
|
||||
</Spin>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue