Skip to content

Commit 0ec36be

Browse files
HaixingOoOgithub-actions[bot]uyarn
authored
chore: release 1.11.2 (#3469)
* Release: 1.11.2 * chore: update common * fix(input): fix Input readonly mode can show clear icon * chore: revert change * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Uyarn <[email protected]>
1 parent 58bd543 commit 0ec36be

File tree

5 files changed

+30
-5
lines changed

5 files changed

+30
-5
lines changed

packages/common

Submodule common updated 44 files

packages/components/input/Input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,12 @@ const Input = forwardRefWithStatics(
380380
}
381381

382382
function handleMouseEnter(e: React.MouseEvent<HTMLDivElement>) {
383-
toggleIsHover(true);
383+
!readonly && toggleIsHover(true);
384384
onMouseenter?.({ e });
385385
}
386386

387387
function handleMouseLeave(e: React.MouseEvent<HTMLDivElement>) {
388-
toggleIsHover(false);
388+
!readonly && toggleIsHover(false);
389389
onMouseleave?.({ e });
390390
}
391391

packages/components/transfer/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ export const filterCheckedTreeNodes = (nodes: DataOption[], checkeds: TransferVa
4848
newItem.children = filterCheckedTreeNodes(item.children, checkeds);
4949
}
5050
return newItem;
51-
});
51+
})
52+
.filter((item) => (item.children && item.children.length !== 0) || !item.children);
5253

5354
// 获取目的树结构
5455
export const getTargetNodes = (sourceNodes: DataOption[], data: DataOption[]): DataOption[] => {

packages/tdesign-react/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,30 @@ toc: false
55
spline: explain
66
---
77

8+
## 🌈 1.11.2 `2025-03-28`
9+
### 🚀 Features
10+
- `ImageViewer`: 新增 `onDownload` API,用于自定义预览图片下载的回调功能 @lifeiFront ([#3408](https://github.com/Tencent/tdesign-react/pull/3408))
11+
- `ConfigProvider`: Input 新增 `clearTrigger` 配置,用于全局模式在有值时显示关闭按钮的功能 @RylanBot ([#3412](https://github.com/Tencent/tdesign-react/pull/3412))
12+
- `Descriptions`: 新增 `tableLayout` 属性 @liweijie0812 ([#3434](https://github.com/Tencent/tdesign-react/pull/3434))
13+
- `Message`: 关闭消息实例时,从全局的消息列表中移除该实例,避免潜在的内存泄漏风险 @wonkzhang ([#3413](https://github.com/Tencent/tdesign-react/pull/3413))
14+
- `Select`: 分组选项器新增支持过滤功能 @huangchen1031 ([#3430](https://github.com/Tencent/tdesign-react/pull/3430))
15+
- `Tabs`: 新增 `lazy` API,支持配置懒加载功能 @HaixingOoO ([#3426](https://github.com/Tencent/tdesign-react/pull/3426))
16+
17+
### 🐞 Bug Fixes
18+
- `ConfigProvider`: 修复全局配置二级配置影响非`Context`范围的问题 @uyarn ([#3441](https://github.com/Tencent/tdesign-react/pull/3441))
19+
- `Dialog`: 取消和确认按钮添加类名,方便定制需求 @RSS1102 ([#3417](https://github.com/Tencent/tdesign-react/pull/3417))
20+
- `Drawer`: 修复拖拽改变大小的时候获取宽度可能不正确的问题 @wonkzhang ([#3420](https://github.com/Tencent/tdesign-react/pull/3420))
21+
- `Guide`: 修复`popupProps` 穿透属性 `overlayClassName` 无效 @RSS1102 ([#3433](https://github.com/Tencent/tdesign-react/pull/3433))
22+
- `Popup`: 解决组件修饰符`arrow`属性设置不生效的问题 @wonkzhang ([#3437](https://github.com/Tencent/tdesign-react/pull/3437))
23+
- `Select`: 修复单选框在 `readonly` 模式下有光标和`clear`图标的问题 @wonkzhang ([#3436](https://github.com/Tencent/tdesign-react/pull/3436))
24+
- `Table`: 修复开启虚拟滚动时,`fixedRows`的渲染问题 @huangchen1031 ([#3427](https://github.com/Tencent/tdesign-react/pull/3427))
25+
- `Table`: 修复可选中行表格在火狐浏览器中的样式异常问题 @uyarn ([common#2093](https://github.com/Tencent/tdesign-common/pull/2093))
26+
- `Tooltip`: 修复 `React 16` 下,TooltipLite 的 mouse 计算位置错误的问题 @moecasts ([#3465](https://github.com/Tencent/tdesign-react/pull/3465))
27+
- `Tree`: 修复部分场景下移除节点后组件报错的问题 @2ue ([#3463](https://github.com/Tencent/tdesign-react/pull/3463))
28+
### 📝 Documentation
29+
- `Card`: 修复文档内容的文案错误问题 @betavs ([#3448](https://github.com/Tencent/tdesign-react/pull/3448))
30+
31+
832
## 🌈 1.11.1 `2025-02-28`
933
### 🚀 Features
1034
- `Layout`: 子组件 `Content` 新增 `content` API @liweijie0812 ([#3384](https://github.com/Tencent/tdesign-react/pull/3384))

packages/tdesign-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tdesign-react",
3-
"version": "1.11.2-beta.1",
3+
"version": "1.11.2",
44
"title": "tdesign-react",
55
"description": "TDesign Component for React",
66
"main": "lib/index.js",

0 commit comments

Comments
 (0)