From 3e41f6bf6645a4eaef07ec61d60b732f5532f65f Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Wed, 11 Feb 2026 14:54:22 +0800 Subject: [PATCH 1/4] =?UTF-8?q?BI=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DesignForm/app/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DesignForm/app/index.vue b/src/components/DesignForm/app/index.vue index 59275ec..87d1cd9 100644 --- a/src/components/DesignForm/app/index.vue +++ b/src/components/DesignForm/app/index.vue @@ -2711,7 +2711,7 @@ const getNonValue = () => { From a80edfa4be1410a732264d41ebd7484ad2589509 Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Wed, 11 Feb 2026 15:24:30 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=E6=A0=87=E7=AD=BE=E5=90=8E=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DesignForm/public/form/formGroup.vue | 6 +++++- src/styles/index.scss | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/DesignForm/public/form/formGroup.vue b/src/components/DesignForm/public/form/formGroup.vue index f6d9590..1cf7ca1 100644 --- a/src/components/DesignForm/public/form/formGroup.vue +++ b/src/components/DesignForm/public/form/formGroup.vue @@ -1156,5 +1156,9 @@ const judgaButClass = (btnClass:string):string => { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 32, 194, 0.15); } - +.group{ + :deep .el-input-group__append{ + padding: 0 10px; + } +} diff --git a/src/styles/index.scss b/src/styles/index.scss index 4d30855..8954344 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -118,3 +118,6 @@ .glm-btn-box { padding: 20px 20px 0 20px; } +.el-input-group__append{ + padding: 0 10px; +} From 3c9000a858a9e3634317038ecba4a0d914b41efe Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Wed, 11 Feb 2026 16:02:58 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E5=A2=9E=E5=A4=A7=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DesignForm/public/form/childTable.vue | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/components/DesignForm/public/form/childTable.vue b/src/components/DesignForm/public/form/childTable.vue index 91dd84a..7d25218 100644 --- a/src/components/DesignForm/public/form/childTable.vue +++ b/src/components/DesignForm/public/form/childTable.vue @@ -103,7 +103,7 @@ onMounted(()=>{ setTimeout(()=>{ if(preFillFlag.value==1){ let i = 0; - props.data.control.preFill.ids.forEach((element:any) => { + props.data.control.preFill?.ids.forEach((element:any) => { addColumn() //console.log(element) @@ -340,6 +340,25 @@ function optionsValue3Get1(data: any, fieldName: string) { console.log(props.data.name) */ emits("optionsValue3GetTable", data, fieldName); } +/** +@ 作者: 秦东 +@ 时间: 2026-02-11 15:52:08 +@ 功能: 计算宽度 +*/ +const jisuanTableWidth = (data: any) => { + let width = 0; + console.log("jisuanTableWidth--->计算宽度",data.item.label.length,"---------->",data) + // data.item.label.forEach((item: any) => { + // // width += item.item.span?item.item.span:120; + // }); + if (data.item.label && data.item.label.length > 0) { + width = data.item.label.length * 30+90; + } + if (width < 100) { + width = 120; + } + return width; +} @@ -354,9 +373,10 @@ function optionsValue3Get1(data: any, fieldName: string) { :key="index" :prop="item.name" :label="item.item.label" - :width="item.item.span" + :width="jisuanTableWidth(item)" >