Merge pull request #1270 from Sight-wcg/patch/table-hidecol

修复 table hideCol 方法第二个参数为对象时无效的问题
pull/1273/head
贤心 2023-06-04 22:35:30 +08:00 committed by GitHub
commit f54137daf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2817,6 +2817,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
}
})
} else {
cols = layui.isArray(cols) ? cols : [cols];
layui.each(cols, function (i1, item1) {
that.eachCols(function (i2, item2) {
if (item1.field === item2.field) {