发行版 -loading

This commit is contained in:
caishi 2021-02-23 14:45:18 +08:00
parent ad3c9f837f
commit 67b510923b
1 changed files with 32 additions and 37 deletions

View File

@ -58,11 +58,8 @@ class version extends Component {
renderList = (releases) => {
const { projectsId , owner } = this.props.match.params;
const { isSpin } = this.state;
if (releases && releases.length > 0) {
return (
<Spin spinning={isSpin}>
{
releases.map((item, key) => {
return (
<div className="versionInfo" key={key}>
@ -95,8 +92,6 @@ class version extends Component {
</div>
)
})
}
</Spin>
)
} else if (releases && releases.length === 0) {
return ( <NoneData _html="暂时还没有相关数据!" /> )
@ -105,7 +100,7 @@ class version extends Component {
render() {
const { projectsId ,owner } = this.props.match.params;
const { data , releases } = this.state
const { data , releases , isSpin } = this.state
return (
<div className="main" style={{paddingTop:"0px"}}>
@ -118,7 +113,7 @@ class version extends Component {
}
</div>
<div className="releasesVersion">
{this.renderList(releases)}
<Spin spinning={isSpin}><div style={{minHeight:"300px"}}>{this.renderList(releases)}</div></Spin>
</div>
</div>
)