问题描述:
在layer中的表格,如果表格带有省略号,点击省略号旁边的下拉,会展开省略号影藏的文字,这个功能是没有问题的。
问题是拖动layer表格,展开的这一块文字,在原来的位置,没有跟随着移到相应的位置
正常的功能 如图:
移动弹框之后的功能 如图:
解决办法:
在layer中有个moveEnd属性,在弹框移动结束之后执行
我们可以在此属性里,把省略号展开这个文本去掉
moveEnd:function(layero) { $('.layui-table-tips-c.layui-icon-close').each(function () { $(this).click(); }); }