Skip to content

Commit

Permalink
fix(Table): fixed treeNodeCol not update on columns change (#3400)
Browse files Browse the repository at this point in the history
* fix(TimePicker): fixed only support hh:mm format

* fix(TimePicker): disabled position only is  start

* fix(Upload): fixed vue error on uploadPastedFiles is false

* docs: add readonly in api

* fix(Table): fixed treeNodeCol not update on columns change
  • Loading branch information
myronliu347 authored Dec 5, 2024
1 parent 913a944 commit 5e3e7d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/table/hooks/useTreeData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default function useTreeData(props: TdEnhancedTableProps, context: SetupC
});

watch(
() => [columns, props.tree?.treeNodeColumnIndex],
() => [columns.value, props.tree?.treeNodeColumnIndex],
() => {
treeNodeCol.value = getTreeNodeColumnCol();
},
Expand Down

0 comments on commit 5e3e7d4

Please sign in to comment.