diff --git a/src/components/formTable/formItemGroup.vue b/src/components/formTable/formItemGroup.vue
index 37dfd8a..a8db804 100644
--- a/src/components/formTable/formItemGroup.vue
+++ b/src/components/formTable/formItemGroup.vue
@@ -507,7 +507,7 @@ const linksIf = (obj: FormList) => {
:label="item.label"
:key="tIndex"
>
-
+
@@ -629,7 +629,7 @@ const linksIf = (obj: FormList) => {
-
+
diff --git a/src/components/lowCode/newFormItem.vue b/src/components/lowCode/newFormItem.vue
index 1c4c5b7..b06d5b7 100644
--- a/src/components/lowCode/newFormItem.vue
+++ b/src/components/lowCode/newFormItem.vue
@@ -15,6 +15,7 @@ import {
} from '@/api/lowCode/utils';
import validate from "@/api/lowCode/form/validate"
import { AnalysisCss,AnalysisInputCss } from '@/api/common/cssInfo' //样式解析
+import { useAttrs,computed, onMounted, nextTick,ref,watch,onBeforeMount} from 'vue'
//辅助控件
import InputPage from '@/components/lowCode/assistant/inputPage.vue'
import DigitpagePage from '@/components/lowCode/assistant/digitpage.vue'
@@ -62,6 +63,7 @@ const props = withDefaults(
tablekey?:any
numrun?:any
rowIndex?:any
+ tableinfo?:any
}>(),
{}
)
@@ -406,6 +408,18 @@ const testPage = (val:any) =>{
console.log("刷新数据-------->", val);
}
+const labelMaxWidth = computed(()=>{
+ if(props.data.type=='radio'){
+ if(props.tableinfo&&props.tableinfo.labelPosition&&props.tableinfo.labelPosition=='top'){
+ return "100%"
+ }else{
+ return "150px"
+ }
+ }else{
+ return "150px"
+ }
+})
+
@@ -481,7 +495,7 @@ const testPage = (val:any) =>{
}
:deep .el-form-item__label{
height: 100%;
- max-width: 150px;
+ max-width: v-bind(labelMaxWidth);
}
}