Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(antd): conditions for runtime config to take effect #12202

Merged
merged 2 commits into from
Mar 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading