Skip to content

Commit

Permalink
Merge pull request #1167 from LoopZhou/fix/zmy-table-controller
Browse files Browse the repository at this point in the history
fix(table): 多级表头表格,列配置全选功能选不全
  • Loading branch information
chaishi committed Jul 13, 2022
2 parents 877ae69 + 96e9f39 commit fe7bd3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/table/hooks/useColumnController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default function useColumnController(props: TdPrimaryTableProps, context:

const handleClickAllShowColumns = (checked: boolean, ctx: { e: Event }) => {
if (checked) {
const newData = columns.value?.map((t) => t.colKey) || [];
const newData = checkboxOptions.value?.map((t) => t.value) || [];
columnCheckboxKeys.value = newData;
const params: PrimaryTableColumnChange<TableRowData> = { type: 'check', columns: newData, e: ctx.e };
props.onColumnChange?.(params);
Expand Down

0 comments on commit fe7bd3c

Please sign in to comment.