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 1 commit
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
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) 配置之一。
fz6m marked this conversation as resolved.
Show resolved Hide resolved

例如:

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

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

```ts
Expand Down
Loading