【issues/776】显示100条/页,复选框只能显示3个的问题(隐藏合计的滚动条)

pull/824/head
zhangdaiscott 2023-10-10 09:22:36 +08:00
parent 222ef10781
commit f767724c30
2 changed files with 15 additions and 2 deletions

View File

@ -88,7 +88,9 @@
}
if (hasSelection) {
const isFixed = columns.some((col) => col.fixed === 'left');
// update-begin--author:liaozhiyang---date:20231009---forissues/776100/3(fixedtrue)
const isFixed = columns.some((col) => col.fixed === 'left' || col.fixed === true);
// update-begin--author:liaozhiyang---date:20231009---forissues/776100/3(fixedtrue)
columns.unshift({
width: 50,
title: 'selection',
@ -116,3 +118,12 @@
},
});
</script>
<style lang="less" scoped>
// update-begin--author:liaozhiyang---date:20231009---forissues/776100/3()
.ant-table-wrapper {
:deep(.ant-table-body) {
overflow-x: hidden !important;
}
}
// update-end--author:liaozhiyang---date:20231009---forissues/776100/3()
</style>

View File

@ -316,7 +316,8 @@ export function useCustomSelection(
// 自定义渲染Body
function bodyCustomRender(params) {
const { index } = params;
if (!recordIsShow(index)) {
// update-begin--author:liaozhiyang---date:20231009--for【issues/776】显示100条/页复选框只能显示3个的问题
if (propsRef.value.canResize && !recordIsShow(index)) {
return '';
}
if (isRadio.value) {
@ -324,6 +325,7 @@ export function useCustomSelection(
} else {
return renderCheckboxComponent(params);
}
// update-end--author:liaozhiyang---date:20231009---for【issues/776】显示100条/页复选框只能显示3个的问题
}
/**