diff --git a/src/views/demo/onlineform/formdesign/FormModal.vue b/src/views/demo/onlineform/formdesign/FormModal.vue index c91d97c3..0a929c22 100644 --- a/src/views/demo/onlineform/formdesign/FormModal.vue +++ b/src/views/demo/onlineform/formdesign/FormModal.vue @@ -218,6 +218,9 @@ if (item.columns) { item.columns = changeCloums(item.columns, tableData); } + if(item.component === 'CardGroup'){ + item.componentProps.options = changeCloums(item.componentProps.options,tableData) + } if ( item.component != 'CardGroup' && item.component != 'Grid' && @@ -260,6 +263,9 @@ if (list.columns) { list.columns = changeCloums(list.columns, tableData); } + if(list.component === 'CardGroup'){ + list.componentProps.options = changeCloums(list.componentProps.options,tableData) + } if ( list.component != 'CardGroup' && list.component != 'Grid' && @@ -317,6 +323,11 @@ childItem.csType = element.data[currentIndex].csType; } }); + if(childItem.component === 'CardGroup'){ + childItem.componentProps.options = changeCloums(childItem.componentProps.options,tableData) + }else if(childItem.columns){ + childItem.columns = changeCloums(childItem.columns, tableData); + } }); } });