fix: 修复有表头排序时,draggableCondition由false变true还显示拖拽按钮的缺陷

--bug=1042783 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001042783
This commit is contained in:
teukkk 2024-06-21 14:37:21 +08:00 committed by Craftsman
parent c0f310a2e7
commit 6561ca6ee7
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ export default function useTableProps<T>(
watch(
() => props?.draggableCondition,
() => {
setTableDraggable();
setTableDraggable(Object.keys(sortItem.value).length === 0 && Object.keys(filterItem.value).length === 0);
},
{
immediate: true,