feat: 子表隐藏添加按钮同时隐藏操作列

This commit is contained in:
GAOANG
2024-09-04 16:01:30 +08:00
parent 66662d9365
commit 35ba9d19db

View File

@ -553,7 +553,14 @@
function filterColum(column) {
return column.filter((o) => {
return o.key == 'action' || o.key == 'index' || (((isBoolean(o.show) && o.show) || !isBoolean(o.show)) && isBoolean(o.componentProps?.isShow) && o.componentProps?.isShow) || !isBoolean(o.componentProps?.isShow);
let flag = true;
flag = o.key == 'index' || (((isBoolean(o.show) && o.show) || !isBoolean(o.show)) && isBoolean(o.componentProps?.isShow) && o.componentProps?.isShow) || !isBoolean(o.componentProps?.isShow)
if (o.key == 'action' && props.disableAddRow) {
flag = false
} else {
flag = true
}
return flag;
});
}
</script>