Merge branch 'master' into chore/private_export

This commit is contained in:
🏎️ Imer 2024-08-26 01:12:12 -07:00 committed by GitHub
commit ac4b17ada1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 33 additions and 15 deletions

View File

@ -23,6 +23,7 @@ export default defineConfig({
mfsu: false,
mako: {},
crossorigin: {},
runtimePublicPath: {},
outputPath: '_site',
favicons: ['https://gw.alipayobjects.com/zos/rmsportal/rlpTLlbMzTNYuZGGCVYM.png'],
resolve: {

View File

@ -16,6 +16,14 @@ tag: vVERSION
---
## 5.20.3
`2024-08-26`
- 🐞 Refactor Typography native css ellipsis measure logic to handle precision edge case. [#50514](https://github.com/ant-design/ant-design/pull/50514) [@zombieJ](https://github.com/zombieJ)
- 🐞 Fix ColorPicker `onChangeComplete` not correct when click directly without move on the picker panel. [#50501](https://github.com/ant-design/ant-design/pull/50501) [@zombieJ](https://github.com/zombieJ)
- 🐞 Fix FloatButton.Group with controlled mode warning for nest updating issue. [#50500](https://github.com/ant-design/ant-design/pull/50500) [@zombieJ](https://github.com/zombieJ)
## 5.20.2
`2024-08-19`

View File

@ -15,6 +15,14 @@ tag: vVERSION
---
## 5.20.3
`2024-08-26`
- 🐞 重构 Typography 在使用 css 原生省略时的检查逻辑,以解决屏幕缩放等情况下的精度问题。[#50514](https://github.com/ant-design/ant-design/pull/50514) [@zombieJ](https://github.com/zombieJ)
- 🐞 修复 ColorPicker 组件在面板上不拖拽直接点击的时候,`onChangeComplete` 返回值不正确的问题。[#50501](https://github.com/ant-design/ant-design/pull/50501) [@zombieJ](https://github.com/zombieJ)
- 🐞 修复 FloatButton.Group 在受控模式下 React 会警告递归更新的问题。[#50500](https://github.com/ant-design/ant-design/pull/50500) [@zombieJ](https://github.com/zombieJ)
## 5.20.2
`2024-08-19`

7
codecov.yml Normal file
View File

@ -0,0 +1,7 @@
coverage:
status:
project: #add everything under here, more options at https://docs.codecov.com/docs/commit-status
default:
target: 100%
threshold: 0%
base: auto

View File

@ -45,8 +45,8 @@ A Drawer is a panel that is typically overlaid on top of a page and slides in fr
Common props ref[Common props](/docs/react/common-props)
<!-- prettier-ignore -->
:::info{title=注意}
v5 use `rootClassName` & `rootStyle` to config wrapper style instead of `className` & `style` in v4 to align the API with Modal.
:::info{title=Note}
v5 uses `rootClassName` & `rootStyle` to configure the outermost element style, instead of `className` & `style` from v4. This is done to align the API with Modal.
:::
| Props | Description | Type | Default | Version |

View File

@ -375,15 +375,7 @@ const Base = React.forwardRef<HTMLElement, BlockProps>((props, ref) => {
// Expand
const renderExpand = () => {
const { expandable, symbol } = ellipsisConfig;
if (!expandable) {
return null;
}
if (expanded && expandable !== 'collapsible') {
return null;
}
return (
return expandable ? (
<TransButton
key="expand"
className={`${prefixCls}-${expanded ? 'collapse' : 'expand'}`}
@ -392,7 +384,7 @@ const Base = React.forwardRef<HTMLElement, BlockProps>((props, ref) => {
>
{typeof symbol === 'function' ? symbol(expanded) : symbol}
</TransButton>
);
) : null;
};
// Edit

View File

@ -1,6 +1,6 @@
{
"name": "antd",
"version": "5.20.2",
"version": "5.20.3",
"description": "An enterprise-class UI design language and React components implementation",
"keywords": [
"ant",
@ -351,11 +351,13 @@
"size-limit": [
{
"path": "./dist/antd.min.js",
"limit": "350 KiB"
"limit": "500 KiB",
"gzip": true
},
{
"path": "./dist/antd-with-locales.min.js",
"limit": "400 KiB"
"limit": "500 KiB",
"gzip": true
}
],
"title": "Ant Design",