update 优化首屏加载提示

This commit is contained in:
2021-06-22 11:25:09 +08:00
parent f05f476789
commit af002cffcf
2 changed files with 69 additions and 7 deletions

View File

@@ -232,21 +232,24 @@ export default class index extends Component {
}
render() {
const antIcon = <LoadingOutlined style={{ fontSize: 24 }} spin />
const { loading, panes, actived } = this.state
return (
<section className="yo-layout--spin">
<Spin spinning={this.state.loading} indicator={antIcon}>
<Spin
spinning={loading}
indicator={
<div className="loader-container">
<p>Loading</p>
</div>
}
>
<Layout className="yo-layout--top-nav--container-fluid yo-layout--top-nav">
<Layout>
<Header />
<Layout className="yo-nav-theme--light">
<Sider />
<Content
parent={this}
panes={this.state.panes}
actived={this.state.actived}
/>
<Content parent={this} panes={panes} actived={actived} />
</Layout>
</Layout>
</Layout>