Skip to content

Commit

Permalink
docs(antd): conditions for runtime config to take effect (#12202)
Browse files Browse the repository at this point in the history
* docs: update `antd.md`

* docs: update

---------

Co-authored-by: fz6m <59400654+fz6m@users.noreply.github.com>
  • Loading branch information
nnmax and fz6m authored Mar 16, 2024
1 parent 66b4809 commit 23fd3c7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/docs/docs/max/antd.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,17 @@ export default {

### 运行时配置

在 app.ts(x) 文件中可以对 antd 进行更丰富的配置,比如配置 antd5 的预设算法和 message 最大显示数:
`app.ts(x)` 运行时配置中可以修改 antd `ConfigProvider` 的值,使用此功能前,**确保你已经打开了 `antd.configProvider` 选项**,否则对 `ConfigProvider` 的修改不会生效:

```ts
// .umirc.ts

antd: {
configProvider: {}
}
```

如配置 antd 5 的主题预设算法和 `message` 弹出框最大数:

```ts
// app.ts
Expand Down

0 comments on commit 23fd3c7

Please sign in to comment.