mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 11:02:48 +08:00
自动补充表格cel宽度;
This commit is contained in:
@@ -779,6 +779,17 @@ define(["jquery", "tableSelect", "ckeditor", 'miniTheme', 'tableData', 'citypick
|
|||||||
for (index in col) {
|
for (index in col) {
|
||||||
var val = col[index];
|
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) {
|
if (val.sort === undefined) {
|
||||||
|
|
||||||
cols[i][index]['sort'] = true;
|
cols[i][index]['sort'] = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user