mirror of https://gitee.com/karson/fastadmin.git
parent
15f6fb7553
commit
98b813aff1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -583,8 +583,8 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
||||||
return html.join(' ');
|
return html.join(' ');
|
||||||
},
|
},
|
||||||
content: function (value, row, index) {
|
content: function (value, row, index) {
|
||||||
var width = this.width != undefined ? this.width : 250;
|
var width = this.width != undefined ? (this.width.match(/^\d+$/) ? this.width + "px" : this.width) : "250px";
|
||||||
return "<div style='white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:" + width + "px;'>" + value + "</div>";
|
return "<div style='white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:" + width + ";'>" + value + "</div>";
|
||||||
},
|
},
|
||||||
status: function (value, row, index) {
|
status: function (value, row, index) {
|
||||||
var custom = {normal: 'success', hidden: 'gray', deleted: 'danger', locked: 'info'};
|
var custom = {normal: 'success', hidden: 'gray', deleted: 'danger', locked: 'info'};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue