修复table的height配置#divid-差值的设定中如果divid出现横杆的话无法命中的问题

pull/1162/head
sunxiaobin89 2022-11-07 10:08:39 +08:00
parent e2f201ec42
commit 9a4536ed62
1 changed files with 1 additions and 1 deletions

View File

@ -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("-");