Merge pull request #1162 from sunxiaobin89/main
修复table的height配置#divid-差值的设定中如果divid出现横杆的话无法命中的问题
This commit is contained in:
commit
c11d72cdee
@ -376,7 +376,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
|
|||||||
if(options.height && /^full-\d+$/.test(options.height)){
|
if(options.height && /^full-\d+$/.test(options.height)){
|
||||||
that.fullHeightGap = options.height.split('-')[1];
|
that.fullHeightGap = options.height.split('-')[1];
|
||||||
options.height = _WIN.height() - that.fullHeightGap;
|
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("-");
|
var parentDiv = options.height.split("-");
|
||||||
that.parentHeightGap = parentDiv.pop();
|
that.parentHeightGap = parentDiv.pop();
|
||||||
that.parentDiv = parentDiv.join("-");
|
that.parentDiv = parentDiv.join("-");
|
||||||
|
Loading…
Reference in New Issue
Block a user