Skip to content

Commit

Permalink
fix(docs): 修复docs加载动画
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaMaid committed Sep 14, 2018
1 parent 842ef45 commit 8f15597
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/pages/components/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ import Loading from '@yoshino/components/Loading';
function getComponentAsyncLoading<T>(loading: () => Promise<{
default: T
}>) {
return getComponentAsync(loading, <Loading text='文档加载中!!' size='large' type='c'/>);
return getComponentAsync(loading, (
<div
style={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
}}
>
<Loading text='文档加载中!!' size='large' type='c'/>
</div>)
);
}

export default [
Expand Down

0 comments on commit 8f15597

Please sign in to comment.