docs: add description to theme customization docs (#47959)

* docs(Button): change paddingBlock type def desc

* doc(Theme): 主题定制 cssVar 和 hashed 文档增加 API 说明
This commit is contained in:
宋红凯 2024-03-20 10:02:18 +08:00 committed by GitHub
parent 708bdfc159
commit ff76a640f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -440,6 +440,8 @@ const theme = {
| inherit | Inherit theme configured in upper ConfigProvider | boolean | true |
| algorithm | Modify the algorithms of theme | `(token: SeedToken) => MapToken` \| `((token: SeedToken) => MapToken)[]` | `defaultAlgorithm` |
| components | Modify Component Token and Alias Token applied to components | `ComponentsConfig` | - |
| cssVar | Toggle CSS Variables | boolean \| { prefix?: string; key?: string } [CSS Variables](/docs/react/css-variables-cn#api) | false |
| hashed | Component class Hash value | boolean [Refer](/docs/react/css-variables#disable-hash) | true |
### ComponentsConfig

View File

@ -440,6 +440,8 @@ const theme = {
| inherit | 继承上层 ConfigProvider 中配置的主题。 | boolean | true |
| algorithm | 用于修改 Seed Token 到 Map Token 的算法 | `(token: SeedToken) => MapToken` \| `((token: SeedToken) => MapToken)[]` | `defaultAlgorithm` |
| components | 用于修改各个组件的 Component Token 以及覆盖该组件消费的 Alias Token | `ComponentsConfig` | - |
| cssVar | 开启 CSS 变量 | boolean \| { prefix?: string; key?: string } 参考 [使用 CSS 变量](/docs/react/css-variables-cn#api) | false |
| hashed | 组件 class Hash 值 | boolean [参考](/docs/react/css-variables-cn#关闭-hash) | true |
### ComponentsConfig