只有列超出指定长度才浮动提示

pull/85/head
RuoYi 2019-04-18 12:46:13 +08:00
parent ff10fe098e
commit a2ca643a3a
1 changed files with 2 additions and 1 deletions

View File

@ -154,10 +154,11 @@
var _value = $.common.nullToStr(value); var _value = $.common.nullToStr(value);
if (_value.length > _length) { if (_value.length > _length) {
_text = _value.substr(0, _length) + "..."; _text = _value.substr(0, _length) + "...";
return $.common.sprintf("<a href='#' class='tooltip-show' data-toggle='tooltip' title='%s'>%s</a>", _value, _text);
} else { } else {
_text = _value; _text = _value;
return _text;
} }
return '<a href="#" class="tooltip-show" data-toggle="tooltip" title="' + _value + '">' + _text +'</a>';
}, },
// 下拉按钮切换 // 下拉按钮切换
dropdownToggle: function (value) { dropdownToggle: function (value) {