From 0a76623c53deb18f68ad585b60153acde5b0a2e3 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Fri, 19 Jul 2024 11:39:23 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90issues/6865=E3=80=91=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=8D=95=E4=B8=AA=E7=9A=84labelWidth=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Form/src/hooks/useLabelWidth.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jeecgboot-vue3/src/components/Form/src/hooks/useLabelWidth.ts b/jeecgboot-vue3/src/components/Form/src/hooks/useLabelWidth.ts index f994985d..1ce84f46 100644 --- a/jeecgboot-vue3/src/components/Form/src/hooks/useLabelWidth.ts +++ b/jeecgboot-vue3/src/components/Form/src/hooks/useLabelWidth.ts @@ -26,11 +26,14 @@ export function useItemLabelWidth(schemaItemRef: Ref, propsRef: Ref< return { labelCol, wrapperCol }; } let width = labelWidth || globalLabelWidth; - const col = { ...globalLabelCol, ...labelCol }; + let col = { ...globalLabelCol, ...labelCol }; const wrapCol = { ...globWrapperCol, ...wrapperCol }; if (width) { width = isNumber(width) ? `${width}px` : width; + // update-begin--author:liaozhiyang---date:20240717---for:【issues/6865】配置单个的labelWidth不生效 + col = {}; + // update-end--author:liaozhiyang---date:20240717---for:【issues/6865】配置单个的labelWidth不生效 } return {