Commit f0ef1c60 by zhaochengxiang

调整

parent 96fd8cd2
...@@ -462,6 +462,7 @@ const ModelTable = (props) => { ...@@ -462,6 +462,7 @@ const ModelTable = (props) => {
title: item.name, title: item.name,
dataIndex: item.key, dataIndex: item.key,
ellipsis: true, ellipsis: true,
width: 120,
}) })
}); });
...@@ -473,6 +474,7 @@ const ModelTable = (props) => { ...@@ -473,6 +474,7 @@ const ModelTable = (props) => {
if ((visibleColNames||[]).length > 0) { if ((visibleColNames||[]).length > 0) {
newCols = newCols.filter(col => visibleColNames.indexOf(col.title)!==-1 || col.title==='序号' || col.title==='操作'); newCols = newCols.filter(col => visibleColNames.indexOf(col.title)!==-1 || col.title==='序号' || col.title==='操作');
newCols[newCols.length-2].width = null;
} }
return newCols; return newCols;
......
...@@ -121,7 +121,7 @@ function setDefaultWidth(columns, width) { ...@@ -121,7 +121,7 @@ function setDefaultWidth(columns, width) {
} }
if (count > 0) { if (count > 0) {
let defaultW = (rowWidth > width ? 0 : width - rowWidth) / count let defaultW = (rowWidth > width ? 0 : width - rowWidth) / count
if (defaultW < 100) { if (defaultW < 80) {
defaultW = 80 defaultW = 80
} }
for (const col of columns) { for (const col of columns) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment