Skip to content

Commit

Permalink
docs: update antd.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nnmax authored Mar 15, 2024
1 parent 66b4809 commit 1a8c3de
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/docs/docs/max/antd.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,25 @@ export default {

### 运行时配置

:::warning
要使 antd 的运行时配置有效,您必须在构建时的配置中为 antd 添加 [`styleProvider`](#styleprovider)[`configProvider`](#configprovider)[`appConfig`](#appconfig) 配置之一。

例如:

```ts
// .umirc.ts
export default {
antd: {
styleProvider: {},
// or
configProvider: {},
// or
appConfig: {},
}
}
```
:::

在 app.ts(x) 文件中可以对 antd 进行更丰富的配置,比如配置 antd5 的预设算法和 message 最大显示数:

```ts
Expand Down

0 comments on commit 1a8c3de

Please sign in to comment.