Skip to content

Commit c73d9b8

Browse files
authored
docs: add antd config (umijs#4938)
1 parent 1c21824 commit c73d9b8

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

docs/plugins/plugin-antd.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,39 @@ export default {
5151

5252
启用暗色主题,只有 antd 使用版本 4 时才支持。紧凑主题在 `antd@>4.1.0` 时支持。
5353

54+
### config
55+
56+
使用 antd 的全局化配置。
57+
58+
* Type: `object`
59+
* Default: `{}`
60+
61+
支持 [ConfigProvider](https://ant.design/components/config-provider-cn/) 的配置。
62+
63+
比如:
64+
65+
```js
66+
export default {
67+
antd: {
68+
config:{
69+
componentSize:'small'
70+
}
71+
},
72+
}
73+
```
74+
#### 运行时配置
75+
76+
##### antd
77+
78+
* Type: `object`
79+
80+
```typescript
81+
// src/app.ts
82+
export const antd = {
83+
componentSize:'small'
84+
}
85+
```
86+
5487
## FAQ
5588

5689
### 如何使用 antd 的其他版本?

0 commit comments

Comments
 (0)