afc163
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with
8 additions and
8 deletions
-
CHANGELOG.en-US.md
-
CHANGELOG.zh-CN.md
-
components/config-provider/index.en-US.md
-
components/config-provider/index.zh-CN.md
-
docs/react/use-in-typescript.en-US.md
-
docs/react/use-in-typescript.zh-CN.md
-
docs/react/use-with-create-react-app.en-US.md
-
docs/react/use-with-create-react-app.zh-CN.md
|
@ -75,7 +75,7 @@ timeline: true |
|
|
- 🆕 Default algorithm `theme.defaultAlgorithm`. [#36175](https://github.com/ant-design/ant-design/pull/36175) |
|
|
- 🆕 Default algorithm `theme.defaultAlgorithm`. [#36175](https://github.com/ant-design/ant-design/pull/36175) |
|
|
- 🆕 Dark algorithm `theme.darkAlgorithm`. [#36546](https://github.com/ant-design/ant-design/pull/36546) [#36656](https://github.com/ant-design/ant-design/pull/36656) |
|
|
- 🆕 Dark algorithm `theme.darkAlgorithm`. [#36546](https://github.com/ant-design/ant-design/pull/36546) [#36656](https://github.com/ant-design/ant-design/pull/36656) |
|
|
- 🆕 Compact algorithm `theme.compactAlgorithm`. [#38105](https://github.com/ant-design/ant-design/pull/38105) |
|
|
- 🆕 Compact algorithm `theme.compactAlgorithm`. [#38105](https://github.com/ant-design/ant-design/pull/38105) |
|
|
- 🆕 ConfigProvider support `theme` prop to modify theme configuration. For more: [Customize Theme](https://ant.design/docs/react/customize-theme-v5). |
|
|
- 🆕 ConfigProvider support `theme` prop to modify theme configuration. For more: [Customize Theme](https://ant.design/docs/react/customize-theme). |
|
|
- 🆕 Support multiple `algorithm` pipeline. [#37082](https://github.com/ant-design/ant-design/pull/37082) |
|
|
- 🆕 Support multiple `algorithm` pipeline. [#37082](https://github.com/ant-design/ant-design/pull/37082) |
|
|
- 🆕 Support switching wireframe style. [#37507](https://github.com/ant-design/ant-design/pull/37507) |
|
|
- 🆕 Support switching wireframe style. [#37507](https://github.com/ant-design/ant-design/pull/37507) |
|
|
- 🆕 Support override Design Token for single component. [#37568](https://github.com/ant-design/ant-design/pull/37568) |
|
|
- 🆕 Support override Design Token for single component. [#37568](https://github.com/ant-design/ant-design/pull/37568) |
|
|
|
@ -75,7 +75,7 @@ timeline: true |
|
|
- 🆕 默认算法 `theme.defaultAlgorithm`。[#36175](https://github.com/ant-design/ant-design/pull/36175) |
|
|
- 🆕 默认算法 `theme.defaultAlgorithm`。[#36175](https://github.com/ant-design/ant-design/pull/36175) |
|
|
- 🆕 暗色算法 `theme.darkAlgorithm`。[#36546](https://github.com/ant-design/ant-design/pull/36546) [#36656](https://github.com/ant-design/ant-design/pull/36656) |
|
|
- 🆕 暗色算法 `theme.darkAlgorithm`。[#36546](https://github.com/ant-design/ant-design/pull/36546) [#36656](https://github.com/ant-design/ant-design/pull/36656) |
|
|
- 🆕 紧凑算法 `theme.compactAlgorithm`。[#38105](https://github.com/ant-design/ant-design/pull/38105) |
|
|
- 🆕 紧凑算法 `theme.compactAlgorithm`。[#38105](https://github.com/ant-design/ant-design/pull/38105) |
|
|
- 🆕 ConfigProvider 新增 `theme` 属性,用于更改主题配置,详情:[定制主题](https://ant.design/docs/react/customize-theme-v5-cn)。 |
|
|
- 🆕 ConfigProvider 新增 `theme` 属性,用于更改主题配置,详情:[定制主题](https://ant.design/docs/react/customize-theme-cn)。 |
|
|
- 🆕 支持多个 `algorithm`。[#37082](https://github.com/ant-design/ant-design/pull/37082) |
|
|
- 🆕 支持多个 `algorithm`。[#37082](https://github.com/ant-design/ant-design/pull/37082) |
|
|
- 🆕 支持线框化切换。[#37507](https://github.com/ant-design/ant-design/pull/37507) |
|
|
- 🆕 支持线框化切换。[#37507](https://github.com/ant-design/ant-design/pull/37507) |
|
|
- 🆕 支持覆盖单个组件的主题变量。[#37568](https://github.com/ant-design/ant-design/pull/37568) |
|
|
- 🆕 支持覆盖单个组件的主题变量。[#37568](https://github.com/ant-design/ant-design/pull/37568) |
|
|
|
@ -61,7 +61,7 @@ Some components use dynamic style to support wave effect. You can config `csp` p |
|
|
| prefixCls | Set prefix className | string | `ant` | | |
|
|
| prefixCls | Set prefix className | string | `ant` | | |
|
|
| renderEmpty | Set empty content of components. Ref [Empty](/components/empty/) | function(componentName: string): ReactNode | - | | |
|
|
| renderEmpty | Set empty content of components. Ref [Empty](/components/empty/) | function(componentName: string): ReactNode | - | | |
|
|
| space | Set Space `size`, ref [Space](/components/space) | { size: `small` \| `middle` \| `large` \| `number` } | - | 4.1.0 | |
|
|
| space | Set Space `size`, ref [Space](/components/space) | { size: `small` \| `middle` \| `large` \| `number` } | - | 4.1.0 | |
|
|
| theme | Set theme, ref [Customize Theme](/docs/react/customize-theme-v5) | - | - | 5.0.0 | |
|
|
| theme | Set theme, ref [Customize Theme](/docs/react/customize-theme) | - | - | 5.0.0 | |
|
|
| virtual | Disable virtual scroll when set to `false` | boolean | - | 4.3.0 | |
|
|
| virtual | Disable virtual scroll when set to `false` | boolean | - | 4.3.0 | |
|
|
|
|
|
|
|
|
### ConfigProvider.config() `4.13.0+` |
|
|
### ConfigProvider.config() `4.13.0+` |
|
|
|
@ -62,7 +62,7 @@ export default () => ( |
|
|
| prefixCls | 设置统一样式前缀 | string | `ant` | | |
|
|
| prefixCls | 设置统一样式前缀 | string | `ant` | | |
|
|
| renderEmpty | 自定义组件空状态。参考 [空状态](/components/empty/) | function(componentName: string): ReactNode | - | | |
|
|
| renderEmpty | 自定义组件空状态。参考 [空状态](/components/empty/) | function(componentName: string): ReactNode | - | | |
|
|
| space | 设置 Space 的 `size`,参考 [Space](/components/space) | { size: `small` \| `middle` \| `large` \| `number` } | - | 4.1.0 | |
|
|
| space | 设置 Space 的 `size`,参考 [Space](/components/space) | { size: `small` \| `middle` \| `large` \| `number` } | - | 4.1.0 | |
|
|
| theme | 设置主题,参考 [定制主题](/docs/react/customize-theme-v5-cn) | - | - | 5.0.0 | |
|
|
| theme | 设置主题,参考 [定制主题](/docs/react/customize-theme-cn) | - | - | 5.0.0 | |
|
|
| virtual | 设置 `false` 时关闭虚拟滚动 | boolean | - | 4.3.0 | |
|
|
| virtual | 设置 `false` 时关闭虚拟滚动 | boolean | - | 4.3.0 | |
|
|
|
|
|
|
|
|
### ConfigProvider.config() `4.13.0+` |
|
|
### ConfigProvider.config() `4.13.0+` |
|
|
|
@ -98,7 +98,7 @@ module.exports = { |
|
|
|
|
|
|
|
|
### Customize Theme |
|
|
### Customize Theme |
|
|
|
|
|
|
|
|
Ref to the [Customize Theme documentation](/docs/react/customize-theme-v5). Modify theme with ConfigProvider: |
|
|
Ref to the [Customize Theme documentation](/docs/react/customize-theme). Modify theme with ConfigProvider: |
|
|
|
|
|
|
|
|
```tsx |
|
|
```tsx |
|
|
import React from 'react'; |
|
|
import React from 'react'; |
|
|
|
@ -100,7 +100,7 @@ module.exports = { |
|
|
|
|
|
|
|
|
### 自定义主题 |
|
|
### 自定义主题 |
|
|
|
|
|
|
|
|
参考 [配置主题](/docs/react/customize-theme-v5),通过 ConfigProvider 进行主题配置: |
|
|
参考 [配置主题](/docs/react/customize-theme),通过 ConfigProvider 进行主题配置: |
|
|
|
|
|
|
|
|
```tsx |
|
|
```tsx |
|
|
import React from 'react'; |
|
|
import React from 'react'; |
|
|
|
@ -122,7 +122,7 @@ module.exports = { |
|
|
|
|
|
|
|
|
### Customize Theme |
|
|
### Customize Theme |
|
|
|
|
|
|
|
|
Ref to the [Customize Theme documentation](/docs/react/customize-theme-v5). Modify theme with ConfigProvider: |
|
|
Ref to the [Customize Theme documentation](/docs/react/customize-theme). Modify theme with ConfigProvider: |
|
|
|
|
|
|
|
|
```tsx |
|
|
```tsx |
|
|
import React from 'react'; |
|
|
import React from 'react'; |
|
|
|
@ -112,7 +112,7 @@ module.exports = { |
|
|
|
|
|
|
|
|
### 自定义主题 |
|
|
### 自定义主题 |
|
|
|
|
|
|
|
|
参考 [配置主题](/docs/react/customize-theme-v5),通过 ConfigProvider 进行主题配置: |
|
|
参考 [配置主题](/docs/react/customize-theme),通过 ConfigProvider 进行主题配置: |
|
|
|
|
|
|
|
|
```tsx |
|
|
```tsx |
|
|
import React from 'react'; |
|
|
import React from 'react'; |
|
|