mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
自动补充表格cel宽度;
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user