From 0d4b4f4d45c0be1babff9c378985020e2155808b Mon Sep 17 00:00:00 2001 From: gaoyunqi Date: Mon, 4 Mar 2024 15:29:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=98=8E=E7=BB=86=E8=A1=A8=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E8=AE=BE=E5=AE=9A=E5=88=97=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/componentProperty/PropertyOption.vue | 4 ++++ src/components/Form/src/components/SubFormV2.vue | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/Designer/src/components/componentProperty/PropertyOption.vue b/src/components/Designer/src/components/componentProperty/PropertyOption.vue index 6d5c51b..22dbe96 100644 --- a/src/components/Designer/src/components/componentProperty/PropertyOption.vue +++ b/src/components/Designer/src/components/componentProperty/PropertyOption.vue @@ -263,6 +263,10 @@ + + + + {{ t('当前用户') }} diff --git a/src/components/Form/src/components/SubFormV2.vue b/src/components/Form/src/components/SubFormV2.vue index a86bf8c..5cf47dc 100644 --- a/src/components/Form/src/components/SubFormV2.vue +++ b/src/components/Form/src/components/SubFormV2.vue @@ -13,7 +13,7 @@ @@ -212,6 +212,12 @@ width: 60 }); } + columns.value.forEach((col: any) => { + // 设置表格的列宽 注意操作这列是没有componentProps + if (col?.componentProps?.colWidth) { + col.width = +col.componentProps.colWidth; + } + }); columns.value = filterColum(columns.value); nextTick(() => { //处理多表头