From c2337b537dfd97db377eec0e88b9bc7bba11f420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?w=C5=AB=20y=C4=81ng?= Date: Thu, 27 Jun 2024 17:46:26 +0800 Subject: [PATCH] chore: release 1.7.6 (#2965) * chore: release 1.7.6 * chore: update common * chore: changelog's changes * chore: update CHANGELOG --------- Co-authored-by: github-actions[bot] --- CHANGELOG.md | 18 ++++++++++++++++++ package.json | 2 +- src/_common | 2 +- src/table/hooks/useColumnResize.tsx | 2 +- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d886f55f..0ebb4dfba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,24 @@ toc: false spline: explain --- +## 🌈 1.7.6 `2024-06-27` +### 🚀 Features +- `Tabs`: 支持通过滚轮或者触摸板进行滚动操作,新增 `scrollPosition` API,支持配置选中滑块滚动最终停留位置 @oljc ([#2954](https://github.com/Tencent/tdesign-react/pull/2954)) +- `ImageViewer`: 新增 `isSvg` 属性,支持原生 `SVG` 预览显示,用于对 `SVG` 进行操作的场景 @HaixingOoO ([#2958](https://github.com/Tencent/tdesign-react/pull/2958)) +- `Input`: 新增 `spellCheck` API @NWYLZW ([#2941](https://github.com/Tencent/tdesign-react/pull/2941)) + +### 🐞 Bug Fixes +- `DatePicker`: 修复单独使用 `DateRangePickerPanel` 面板头部点击逻辑与 `DateRangePicker` 不一致的问题 @uyarn ([#2944](https://github.com/Tencent/tdesign-react/pull/2944)) +- `Form`: 修复嵌套 `FormList` 场景下使用 `shouldUpdate` 导致循环渲染的问题 @moecasts ([#2948](https://github.com/Tencent/tdesign-react/pull/2948)) +- `Tabs`: 修复 `1.7.4` 版本后,`Tabs` 的 className 影响 `TabItem` 的问题 @uyarn ([#2946](https://github.com/Tencent/tdesign-react/pull/2946)) +- `Table`: 修复 `usePagination` 中 `pagination` 动态变化的功能问题 @HaixingOoO ([#2960](https://github.com/Tencent/tdesign-react/pull/2960)) +- `Table`: 修复鼠标右键表格也可以触发列宽拖拽的问题 @HaixingOoO ([#2961](https://github.com/Tencent/tdesign-react/pull/2961)) +- `Table`: 修复只存在一列可被 resize 的使用场景下,拖拽功能异常的问题 @uyarn ([#2959](https://github.com/Tencent/tdesign-react/pull/2959)) + +### 🚧 Others +- 站点全量新增 TypeScript 示例代码 @uyarn @HaixingOoO @ZWkang ([#2871](https://github.com/Tencent/tdesign-react/pull/2871)) + + ## 🌈 1.7.5 `2024-05-31` ### 🐞 Bug Fixes - `DatePicker`: 修复点击`jump`按钮的逻辑没有同步下拉选择的改动的缺陷 @uyarn ([#2934](https://github.com/Tencent/tdesign-react/pull/2934)) diff --git a/package.json b/package.json index 5133ea65b..1f2c36622 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "tdesign-react", "purename": "tdesign", - "version": "1.7.5", + "version": "1.7.6", "description": "TDesign Component for React", "title": "tdesign-react", "main": "lib/index.js", diff --git a/src/_common b/src/_common index 13dbba032..04cd5155d 160000 --- a/src/_common +++ b/src/_common @@ -1 +1 @@ -Subproject commit 13dbba032124b2dd6194f0b6433d75b21027366c +Subproject commit 04cd5155dca3e44d264d82fe3d0a632a8dc2a019 diff --git a/src/table/hooks/useColumnResize.tsx b/src/table/hooks/useColumnResize.tsx index 134aeebcd..882ce19db 100644 --- a/src/table/hooks/useColumnResize.tsx +++ b/src/table/hooks/useColumnResize.tsx @@ -267,7 +267,7 @@ export default function useColumnResize(params: { if (!effectNextCol?.colKey) { // 已经不存在最后一列,比如整个表格只有一列可以调整的场景,需要直接影响到表格本身的宽度 - if (resizeLineParams.effectCol) newThWidthList[tmpCurrentCol?.colKey] -= moveDistance; + if (resizeLineParams.effectCol === 'next') newThWidthList[tmpCurrentCol?.colKey] -= moveDistance; else newThWidthList[tmpCurrentCol?.colKey] += moveDistance; newThWidthList.tableWidth = getTotalTableWidth(newThWidthList); } else if (resizeLineParams.effectCol === 'next') {