Przeglądaj źródła

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

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

fixed: #1053
无木 3 lat temu
rodzic
commit
019555be0c

+ 1 - 0
CHANGELOG.zh_CN.md

@@ -4,6 +4,7 @@
 - **BasicTable**
   - 修复`CellFormat`无法使用`Map`类型数据的问题
   - 修复可编辑单元格未能正确显示`0`值的问题
+  - 修复 selection-change 事件在取消勾选时未能正确触发的问题
 - **Qrcode** 修复二维码组件在创建时未能及时绘制的问题
 
 ## 2.7.0(2021-08-03)

+ 2 - 1
src/components/Table/src/hooks/useRowSelection.ts

@@ -52,7 +52,8 @@ export function useRowSelection(
           rows: getSelectRows(),
         });
       });
-    }
+    },
+    { deep: true }
   );
 
   const getAutoCreateKey = computed(() => {