Browse Source

改变样式

han_v3
herenshan112 4 months ago
parent
commit
c321b49e75
  1. 15
      src/components/DesignForm/app/index.vue
  2. 10
      src/components/DesignForm/tableListPage/index.vue
  3. 2482
      src/components/DesignForm/tableListPage/index_20240919.vue

15
src/components/DesignForm/app/index.vue

@ -1550,13 +1550,14 @@ const transformOption = (val: string | number, type?: string) => {
}; };
const readerColumnSun = (column: any) => { const readerColumnSun = (column: any) => {
console.log("表头label长度-11->", column);
let labelLong = 0; // label let labelLong = 0; // label
if (column) { if (column.children) {
labelLong = column.length; labelLong = column.children.length;
} }
if (labelLong > 0) { if (labelLong > 0) {
let countLenght = 3; let countLenght = 3;
column.forEach((item: any) => { column.children.forEach((item: any) => {
if (item.label.length < 3) { if (item.label.length < 3) {
countLenght = countLenght + 90; countLenght = countLenght + 90;
} else { } else {
@ -1566,7 +1567,7 @@ const readerColumnSun = (column: any) => {
console.log("表头label长度-->", countLenght); console.log("表头label长度-->", countLenght);
return countLenght; return countLenght;
} else { } else {
return 420; return 100;
} }
}; };
</script> </script>
@ -1832,7 +1833,7 @@ const readerColumnSun = (column: any) => {
:prop="item.field" :prop="item.field"
:label="item.label" :label="item.label"
config="" config=""
width="200" min-width="100"
align="center" align="center"
fixed="right" fixed="right"
> >
@ -1962,7 +1963,7 @@ const readerColumnSun = (column: any) => {
v-else-if="item.fieldClass == '_lableTitle'" v-else-if="item.fieldClass == '_lableTitle'"
label="标题" label="标题"
config="" config=""
min-width="320" min-width="20"
> >
<template #default="scope"> <template #default="scope">
{{ writeListTitle(scope.row, viewPage.list) }} {{ writeListTitle(scope.row, viewPage.list) }}
@ -1973,7 +1974,7 @@ const readerColumnSun = (column: any) => {
v-else-if="item.fieldClass == ''" v-else-if="item.fieldClass == ''"
:prop="item.field" :prop="item.field"
:label="item.label" :label="item.label"
:width="readerColumnSun(item.children)" :min-width="readerColumnSun(item)"
> >
<template #default="scope"> <template #default="scope">
<el-table <el-table

10
src/components/DesignForm/tableListPage/index.vue

@ -1566,12 +1566,12 @@ const readerColumn = (column: any, isSun: int) => {
}; };
const readerColumnSun = (column: any) => { const readerColumnSun = (column: any) => {
let labelLong = 0; // label let labelLong = 0; // label
if (column) { if (column.children) {
labelLong = column.length; labelLong = column.children.length;
} }
if (labelLong > 0) { if (labelLong > 0) {
let countLenght = 3; let countLenght = 3;
column.forEach((item: any) => { column.children.forEach((item: any) => {
if (item.label.length < 3) { if (item.label.length < 3) {
countLenght = countLenght + 90; countLenght = countLenght + 90;
} else { } else {
@ -1581,7 +1581,7 @@ const readerColumnSun = (column: any) => {
console.log("表头label长度-->", countLenght); console.log("表头label长度-->", countLenght);
return countLenght; return countLenght;
} else { } else {
return 420; return 100;
} }
}; };
</script> </script>
@ -1979,7 +1979,7 @@ const readerColumnSun = (column: any) => {
v-else-if="item.fieldClass == ''" v-else-if="item.fieldClass == ''"
:prop="item.field" :prop="item.field"
:label="item.label" :label="item.label"
:width="readerColumnSun(item.children)" :width="readerColumnSun(item)"
> >
<template #default="scope" <template #default="scope"
>{{ data.tableProps }} >{{ data.tableProps }}

2482
src/components/DesignForm/tableListPage/index_20240919.vue

File diff suppressed because it is too large
Loading…
Cancel
Save