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

master
RuoYi 6 years ago committed by Limy
parent 29a4529a6b
commit 9f79d7c6c3

@ -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) {

Loading…
Cancel
Save