From 23fd3c7623fd4fb166ea125d580eef62c5c64b47 Mon Sep 17 00:00:00 2001 From: max Date: Sun, 17 Mar 2024 01:13:48 +0800 Subject: [PATCH] docs(antd): conditions for runtime config to take effect (#12202) * docs: update `antd.md` * docs: update --------- Co-authored-by: fz6m <59400654+fz6m@users.noreply.github.com> --- docs/docs/docs/max/antd.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/docs/docs/max/antd.md b/docs/docs/docs/max/antd.md index c5dc72f9f827..511a5801f8ee 100644 --- a/docs/docs/docs/max/antd.md +++ b/docs/docs/docs/max/antd.md @@ -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