fix(bootstrapTable): 临时解决getOptions抛出异常问题

#Comment
提交给作者了,等待修复

#Issue
https://github.com/wenzhixin/bootstrap-table/issues/4366
This commit is contained in:
Argo Zhang 2019-05-25 21:58:09 +08:00
parent 471aee2938
commit 79721bdab9
1 changed files with 9 additions and 0 deletions

View File

@ -328,4 +328,13 @@ $(function () {
});
}
});
// fix bug
$($('table')[1]).data('bootstrap.table').__proto__.getOptions = function () {
var data = this.options.data;
delete this.options.data;
var options = $.extend(true, {}, this.options);
this.options.data = data;
return options;
};
});