自动补充表格cel宽度;

This commit is contained in:
2022-07-27 11:39:05 +08:00
parent 9ff97de097
commit 7b12ee23bb

View File

@@ -779,6 +779,17 @@ define(["jquery", "tableSelect", "ckeditor", 'miniTheme', 'tableData', 'citypick
for (index in col) {
var val = col[index];
if (val['width'] == undefined) {
var width = null;
if (val.title) {
width = val.title.length * 15 + 55
}
if (width != null) {
cols[i][index]['width'] = width
}
}
if (val.sort === undefined) {
cols[i][index]['sort'] = true;