From eefe8f5410c38d803edf2821bcb0c600baecc41c Mon Sep 17 00:00:00 2001 From: Zhufu <1176354795@qq.com> Date: Wed, 12 Jun 2024 09:44:30 +0800 Subject: [PATCH] =?UTF-8?q?[=E8=A1=A8=E5=8D=95=E8=AE=BE=E8=AE=A1]=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E7=BB=84=E5=86=85=E9=83=A8=E7=BB=84=E4=BB=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0csType?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/onlineform/formdesign/FormModal.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/views/demo/onlineform/formdesign/FormModal.vue b/src/views/demo/onlineform/formdesign/FormModal.vue index 340b3b4a..4fe0d16e 100644 --- a/src/views/demo/onlineform/formdesign/FormModal.vue +++ b/src/views/demo/onlineform/formdesign/FormModal.vue @@ -216,6 +216,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' && @@ -253,6 +256,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' && @@ -310,6 +316,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); + } }); } });