Quellcode durchsuchen

【issues/6865】配置单个的labelWidth不生效

JEECG vor 9 Monaten
Ursprung
Commit
0a76623c53
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 4 1
      jeecgboot-vue3/src/components/Form/src/hooks/useLabelWidth.ts

+ 4 - 1
jeecgboot-vue3/src/components/Form/src/hooks/useLabelWidth.ts

@@ -26,11 +26,14 @@ export function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, 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 {