Browse Source

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

pull/85/head
RuoYi 6 years ago
parent
commit
a2ca643a3a
  1. 3
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

3
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

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

Loading…
Cancel
Save