Update table.js

pull/86/head
Huc 2017-11-28 11:52:47 +08:00 committed by GitHub
parent 89a61cd593
commit b2b935eda6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1244,7 +1244,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form'], function(exports){
var config = thisTable.config[id];
if(!config) return hint.error('The ID option was not found in the table instance');
//表格重载支持重绘表头
config.cols= options.cols;
config.cols == options.cols || config.cols;
return table.render($.extend(true, {}, config, options));
};