Skip to content

Commit

Permalink
fix(table): 修复onColumnControllerVisibleChange的trigger参数不正确的问题 (#1480)
Browse files Browse the repository at this point in the history
  • Loading branch information
sechi747 committed Sep 7, 2022
1 parent 1b23570 commit cf179c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/table/hooks/useColumnController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export default function useColumnController(props: TdPrimaryTableProps, context:
if (columnControllerVisible.value === undefined) {
dialogInstance.value.hide();
} else {
props.onColumnControllerVisibleChange?.(false, { trigger: 'cancel' });
props.onColumnControllerVisibleChange?.(false, { trigger: 'confirm' });
context.emit('update:columnControllerVisible', false);
}
},
Expand All @@ -170,7 +170,7 @@ export default function useColumnController(props: TdPrimaryTableProps, context:
if (columnControllerVisible.value === undefined) {
dialogInstance.value.hide();
} else {
props.onColumnControllerVisibleChange?.(false, { trigger: 'confirm' });
props.onColumnControllerVisibleChange?.(false, { trigger: 'cancel' });
context.emit('update:columnControllerVisible', false);
}
},
Expand Down

0 comments on commit cf179c3

Please sign in to comment.