Commit 019555be0c88edc673cae382023d647e78959b30

Authored by 无木
1 parent 33a335a3

fix(table): `selection-change` not triggered in unchecking

修复selection-change事件在取消勾选时未能正确触发的问题

fixed: #1053
CHANGELOG.zh_CN.md
@@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
4 - **BasicTable** 4 - **BasicTable**
5 - 修复`CellFormat`无法使用`Map`类型数据的问题 5 - 修复`CellFormat`无法使用`Map`类型数据的问题
6 - 修复可编辑单元格未能正确显示`0`值的问题 6 - 修复可编辑单元格未能正确显示`0`值的问题
  7 + - 修复 selection-change 事件在取消勾选时未能正确触发的问题
7 - **Qrcode** 修复二维码组件在创建时未能及时绘制的问题 8 - **Qrcode** 修复二维码组件在创建时未能及时绘制的问题
8 9
9 ## 2.7.0(2021-08-03) 10 ## 2.7.0(2021-08-03)
src/components/Table/src/hooks/useRowSelection.ts
@@ -52,7 +52,8 @@ export function useRowSelection( @@ -52,7 +52,8 @@ export function useRowSelection(
52 rows: getSelectRows(), 52 rows: getSelectRows(),
53 }); 53 });
54 }); 54 });
55 - } 55 + },
  56 + { deep: true }
56 ); 57 );
57 58
58 const getAutoCreateKey = computed(() => { 59 const getAutoCreateKey = computed(() => {