This commit is contained in:
xman 2025-06-20 17:30:59 +08:00
parent bceea13d7e
commit 73c7008e3b
2 changed files with 2 additions and 5 deletions

View File

@ -768,7 +768,9 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
});
return html.join(' ');
},
content: function (value, row, index) {
var width = this.width != undefined ? (this.width.toString().match(/^\d+$/) ? this.width + "px" : this.width) : "250px";
var hover = this.hover != undefined && this.hover ? "autocontent-hover" : "";
return "<div class='autocontent-item " + hover + "' style='white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:" + width + ";'>" + (value??'') + "</div>";

File diff suppressed because one or more lines are too long