Skip to content

Commit

Permalink
fix:修复文档页面Loading没有居中的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hy916 committed Apr 27, 2023
1 parent b212886 commit 60abae2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/core/src/changelog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@

#### ThemeProvider 基本用法

使用 ThemeProvider 更好地支持动态主题。 在app.tsx入口文件添加如下
使用 ThemeProvider 更好地支持动态主题。

当然,也可以不使用 ThemeProvider,但是就没有更优美的动态主题呢。

在app.tsx入口文件添加如下

```diff
import { ThemeProvider,theme } from '@uiw/react-native';
Expand Down
2 changes: 1 addition & 1 deletion website/src/routes/Controller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { routeData } from '../routes/router';
import NotFound from '../component/NotFound';

const Loading = (
<div style={{ textAlign: 'center', padding: '50px 0 50px 0' }}>
<div style={{ position: 'fixed', top: '50%', left: '50%', transform: 'translate(-50%, -50%)' }}>
<Loader color="#333" tip="页面加载中..." />
</div>
);
Expand Down

0 comments on commit 60abae2

Please sign in to comment.