diff --git a/src/components/DesignForm/app/index.vue b/src/components/DesignForm/app/index.vue index d9f4639..bf1892d 100644 --- a/src/components/DesignForm/app/index.vue +++ b/src/components/DesignForm/app/index.vue @@ -1550,13 +1550,14 @@ const transformOption = (val: string | number, type?: string) => { }; const readerColumnSun = (column: any) => { + console.log("表头label长度-11->", column); let labelLong = 0; // 表头label长度 - if (column) { - labelLong = column.length; + if (column.children) { + labelLong = column.children.length; } if (labelLong > 0) { let countLenght = 3; - column.forEach((item: any) => { + column.children.forEach((item: any) => { if (item.label.length < 3) { countLenght = countLenght + 90; } else { @@ -1566,7 +1567,7 @@ const readerColumnSun = (column: any) => { console.log("表头label长度-->", countLenght); return countLenght; } else { - return 420; + return 100; } }; @@ -1832,7 +1833,7 @@ const readerColumnSun = (column: any) => { :prop="item.field" :label="item.label" config="" - width="200" + min-width="100" align="center" fixed="right" > @@ -1962,7 +1963,7 @@ const readerColumnSun = (column: any) => { v-else-if="item.fieldClass == '_lableTitle'" label="标题" config="" - min-width="320" + min-width="20" >