mirror of
https://gitee.com/layui/layui.git
synced 2025-04-05 17:38:02 +08:00
修复table的height配置#divid-差值的设定中如果divid出现横杆的话无法命中的问题
This commit is contained in:
parent
e2f201ec42
commit
9a4536ed62
@ -376,7 +376,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
|
||||
if(options.height && /^full-\d+$/.test(options.height)){
|
||||
that.fullHeightGap = options.height.split('-')[1];
|
||||
options.height = _WIN.height() - that.fullHeightGap;
|
||||
} else if (options.height && /^#\w+-{1}\d+$/.test(options.height)) {
|
||||
} else if (options.height && /^#\w+\S*-\d+$/.test(options.height)) {
|
||||
var parentDiv = options.height.split("-");
|
||||
that.parentHeightGap = parentDiv.pop();
|
||||
that.parentDiv = parentDiv.join("-");
|
||||
|
Loading…
Reference in New Issue
Block a user