Skip to content

Commit

Permalink
docs(config): 更新内置模块导出后引入方式
Browse files Browse the repository at this point in the history
  • Loading branch information
KuangPF committed Aug 4, 2023
1 parent 1264421 commit 8fc2d75
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/docs/config/FAQ.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Or import it as a React component:

```tsx | pure
/*.dumi/pages/index.tsx */
import HomeBaseLayout from 'dumi-theme-antd/homeBaseLayout';
import { HomeBaseLayout } from 'dumi-theme-antd';

const CustomHomePage = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion example/docs/config/FAQ.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ order: 3

```tsx | pure
/* .dumi/pages/index.tsx */
import HomeBaseLayout from 'dumi-theme-antd/homeBaseLayout';
import { HomeBaseLayout } from 'dumi-theme-antd';

const CustomHomePage = () => {
return (
Expand Down
7 changes: 7 additions & 0 deletions example/docs/config/base.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,13 @@ Because dumi does not provide the form of slot to support loading components, it
export { default } from 'dumi-theme-antd/loading';
```

The import method after `0.3.1` version:

```ts
/* .dumi/loading.tsx */
export { Loading as default } from 'dumi-theme-antd';
```

Configure the loading value

```ts
Expand Down
7 changes: 7 additions & 0 deletions example/docs/config/base.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,13 @@ interface ILoading {
export { default } from 'dumi-theme-antd/loading';
```

`0.3.1`版本后引入方式:

```ts
/* .dumi/loading.tsx */
export { Loading as default } from 'dumi-theme-antd';
```

配置 loading 值

```ts
Expand Down

0 comments on commit 8fc2d75

Please sign in to comment.