【issues/776】显示100条/页,复选框只能显示3个的问题(隐藏合计的滚动条)
parent
222ef10781
commit
f767724c30
|
@ -88,7 +88,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasSelection) {
|
if (hasSelection) {
|
||||||
const isFixed = columns.some((col) => col.fixed === 'left');
|
// update-begin--author:liaozhiyang---date:20231009---for:【issues/776】显示100条/页,复选框只能显示3个的问题(fixed也有可能设置true)
|
||||||
|
const isFixed = columns.some((col) => col.fixed === 'left' || col.fixed === true);
|
||||||
|
// update-begin--author:liaozhiyang---date:20231009---for:【issues/776】显示100条/页,复选框只能显示3个的问题(fixed也有可能设置true)
|
||||||
columns.unshift({
|
columns.unshift({
|
||||||
width: 50,
|
width: 50,
|
||||||
title: 'selection',
|
title: 'selection',
|
||||||
|
@ -116,3 +118,12 @@
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="less" scoped>
|
||||||
|
// update-begin--author:liaozhiyang---date:20231009---for:【issues/776】显示100条/页,复选框只能显示3个的问题(隐藏合计的滚动条)
|
||||||
|
.ant-table-wrapper {
|
||||||
|
:deep(.ant-table-body) {
|
||||||
|
overflow-x: hidden !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// update-end--author:liaozhiyang---date:20231009---for:【issues/776】显示100条/页,复选框只能显示3个的问题(隐藏合计的滚动条)
|
||||||
|
</style>
|
||||||
|
|
|
@ -316,7 +316,8 @@ export function useCustomSelection(
|
||||||
// 自定义渲染Body
|
// 自定义渲染Body
|
||||||
function bodyCustomRender(params) {
|
function bodyCustomRender(params) {
|
||||||
const { index } = 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 '';
|
return '';
|
||||||
}
|
}
|
||||||
if (isRadio.value) {
|
if (isRadio.value) {
|
||||||
|
@ -324,6 +325,7 @@ export function useCustomSelection(
|
||||||
} else {
|
} else {
|
||||||
return renderCheckboxComponent(params);
|
return renderCheckboxComponent(params);
|
||||||
}
|
}
|
||||||
|
// update-end--author:liaozhiyang---date:20231009---for:【issues/776】显示100条/页,复选框只能显示3个的问题
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue