给表格列超出指定长度浮动提示的input指定一个宽度,避免鼠标鼠标悬浮单元格部分位置才显示提示。

master
Awen 4 years ago committed by Limy
parent cb519606eb
commit 142ddf27ec

@ -294,7 +294,7 @@ var table = {
_value = _value.replace(/\'/g,"'"); _value = _value.replace(/\'/g,"'");
_value = _value.replace(/\"/g,"""); _value = _value.replace(/\"/g,""");
var actions = []; var actions = [];
actions.push($.common.sprintf('<input style="opacity: 0;position: absolute;z-index:-1" type="text" value="%s"/>', _value)); actions.push($.common.sprintf('<input style="opacity: 0;position: absolute;width:5px;z-index:-1" type="text" value="%s"/>', _value));
actions.push($.common.sprintf('<a href="###" class="tooltip-show" data-toggle="tooltip" data-target="%s" title="%s">%s</a>', _target, _value, _text)); actions.push($.common.sprintf('<a href="###" class="tooltip-show" data-toggle="tooltip" data-target="%s" title="%s">%s</a>', _target, _value, _text));
return actions.join(''); return actions.join('');
} else { } else {

Loading…
Cancel
Save