Skip to content

Commit

Permalink
fix: 修复rowHandle无法隐藏的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Jan 17, 2022
1 parent 9c6b7e0 commit f9786f7
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions packages/fast-crud/src/components/crud/fs-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,19 @@ function buildTableColumns({ props, ctx, ui, getContextFn, componentRefs, render
}
}
//操作列
let rowHandle = {
key: "_rowHandle",
...props.rowHandle
};
rowHandle[ui.table.renderMethod] = (a, b, c) => {
const scope = ui.table.rebuildRenderScope(a, b, c);
return renderRowHandle(scope);
};
columns.push(rowHandle);
if (props.rowHandle?.show !== false) {
//操作列
let rowHandle = {
key: "_rowHandle",
...props.rowHandle
};
rowHandle[ui.table.renderMethod] = (a, b, c) => {
const scope = ui.table.rebuildRenderScope(a, b, c);
return renderRowHandle(scope);
};
columns.push(rowHandle);
}
return columns;
}
/**
Expand Down

0 comments on commit f9786f7

Please sign in to comment.