From 7c060247516925f48175d7f29cd43b626632665e Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 19 Mar 2024 23:09:49 +0800 Subject: [PATCH] docs(:sparkles:): release 4.24.16 (#47932) * docs(:sparkles:): release 4.24.16 * chore: upgrade rc-segmented to fix types * type: fix ref type * docs: update changelog * demo: fix Segmented demos --- CHANGELOG.en-US.md | 9 ++++++++ CHANGELOG.zh-CN.md | 9 ++++++++ components/_util/wave.tsx | 12 +++++------ components/form/demo/disabled.md | 2 +- components/modal/demo/dark.md | 4 +++- components/radio/__tests__/group.test.tsx | 21 ++++++++++++------- .../radio/__tests__/radio-button.test.tsx | 11 ++++++---- components/segmented/demo/basic.md | 4 +++- components/segmented/demo/block.md | 6 +++--- components/segmented/demo/custom.md | 4 +++- components/segmented/demo/disabled.md | 4 +++- components/segmented/demo/icon-only.md | 4 +++- components/segmented/demo/size-consistent.md | 4 +++- components/segmented/demo/size.md | 4 +++- components/segmented/demo/with-icon.md | 4 +++- package.json | 4 ++-- 16 files changed, 74 insertions(+), 32 deletions(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 76bbe609f162..4d1fcf945ea8 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -15,6 +15,15 @@ timeline: true --- +## 4.24.16 + +`2024-03-18` + +- 🐞 Fix Select that scrollbar is not displayed when there are few options. [#47050](https://github.com/ant-design/ant-design/pull/47050) +- 🐞 Fix Transfer cannot invert current page correctly. [#47134](https://github.com/ant-design/ant-design/pull/47134) [@linxianxi](https://github.com/linxianxi) +- 🐞 Fix that clicking Form tooltip icon should not trigger Switch. [#46159](https://github.com/ant-design/ant-design/pull/46159) [@Wxh16144](https://github.com/Wxh16144) +- 🐞 Fix Segmented `options` className being overrided by `className`. [rc-segmented#175](https://github.com/react-component/segmented/pull/175/) [@stoil-terziev](https://github.com/stoil-terziev) + ## 4.24.15 `2023-11-21` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 13e00510a174..a2709cce15c1 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -15,6 +15,15 @@ timeline: true --- +## 4.24.16 + +`2024-03-18` + +- 🐞 修复 Select 组件在选项较少时不显示滚动条的问题。[#47050](https://github.com/ant-design/ant-design/pull/47050) +- 🐞 修复 Transfer 反选当页错误的问题。[#47134](https://github.com/ant-design/ant-design/pull/47134) [@linxianxi](https://github.com/linxianxi) +- 🐞 修复点击 Form `tooltip` 图标会触发 Switch 切换的问题。[#46159](https://github.com/ant-design/ant-design/pull/46159) [@Wxh16144](https://github.com/Wxh16144) +- 🐞 修复 Segmented `options` 内 `className` 会覆盖组件自带 `className` 的问题。[rc-segmented#175](https://github.com/react-component/segmented/pull/175/) [@stoil-terziev](https://github.com/stoil-terziev) + ## 4.24.15 `2023-11-21` diff --git a/components/_util/wave.tsx b/components/_util/wave.tsx index 90ab38435682..5ec4e8502891 100644 --- a/components/_util/wave.tsx +++ b/components/_util/wave.tsx @@ -22,7 +22,7 @@ function getValidateContainer(nodeRoot: Node): Element { } return Array.from(nodeRoot.childNodes).find( - ele => ele?.nodeType === Node.ELEMENT_NODE, + (ele) => ele?.nodeType === Node.ELEMENT_NODE, ) as Element; } @@ -115,19 +115,17 @@ class Wave extends React.Component { styleForPseudo = updateCSS( ` - [${getPrefixCls('')}-click-animating-without-extra-node='true']::after, .${getPrefixCls( - '', - )}-click-animating-node { + [${getPrefixCls('')}-click-animating-without-extra-node='true']::after, .${getPrefixCls('')}-click-animating-node { --antd-wave-shadow-color: ${waveColor}; }`, 'antd-wave', { csp: this.csp, attachTo: nodeBody }, - ); + ) as HTMLStyleElement; } if (insertExtraNode) { node.appendChild(extraNode); } - ['transition', 'animation'].forEach(name => { + ['transition', 'animation'].forEach((name) => { node.addEventListener(`${name}start`, this.onTransitionStart); node.addEventListener(`${name}end`, this.onTransitionEnd); }); @@ -213,7 +211,7 @@ class Wave extends React.Component { if (insertExtraNode && this.extraNode && node.contains(this.extraNode)) { node.removeChild(this.extraNode); } - ['transition', 'animation'].forEach(name => { + ['transition', 'animation'].forEach((name) => { node.removeEventListener(`${name}start`, this.onTransitionStart); node.removeEventListener(`${name}end`, this.onTransitionEnd); }); diff --git a/components/form/demo/disabled.md b/components/form/demo/disabled.md index 818666e07c00..13d3fa762cd8 100644 --- a/components/form/demo/disabled.md +++ b/components/form/demo/disabled.md @@ -124,5 +124,5 @@ const FormDisabledDemo = () => { ); }; -export default () => ; +export default FormDisabledDemo; ``` diff --git a/components/modal/demo/dark.md b/components/modal/demo/dark.md index cbd3d22ab501..aaac0714f94b 100644 --- a/components/modal/demo/dark.md +++ b/components/modal/demo/dark.md @@ -297,7 +297,7 @@ const TableTransfer = ({ leftColumns, rightColumns, ...restProps }) => ( ); -export default () => { +const Demo = () => { const [open, setOpen] = useState(false); const [targetKeys, setTargetKeys] = useState(oriTargetKeys); const [selectedKeys, setSelectedKeys] = useState([]); @@ -574,6 +574,8 @@ export default () => { ); }; + +export default Demo; ```