diff --git a/src/components/Form/src/components/SubFormV2.vue b/src/components/Form/src/components/SubFormV2.vue index 9b826d3..c410374 100644 --- a/src/components/Form/src/components/SubFormV2.vue +++ b/src/components/Form/src/components/SubFormV2.vue @@ -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; }); }