Selaa lähdekoodia

feat: 首页加载loading效果

周玉环 1 päivä sitten
vanhempi
commit
c999d003ab
1 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. 5 4
      xinkeaboard-seller/src/components/PageLoading/index.js

+ 5 - 4
xinkeaboard-seller/src/components/PageLoading/index.js

@@ -1,9 +1,10 @@
-import React from 'react';
-import { Spin } from 'antd';
+import React from "react";
+import { Spin } from "antd";
 
 // loading components from code split
 // https://umijs.org/plugin/umi-plugin-react.html#dynamicimport
 export default () => (
-  <div style={{ paddingTop: 100, textAlign: 'center' }}>
-  </div>
+  <Spin>
+    <div style={{ paddingTop: 100, textAlign: "center" }} />
+  </Spin>
 );