fix(bootstrapTable): 临时解决getOptions抛出异常问题
#Comment 提交给作者了,等待修复 #Issue https://github.com/wenzhixin/bootstrap-table/issues/4366
This commit is contained in:
parent
471aee2938
commit
79721bdab9
|
@ -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;
|
||||||
|
};
|
||||||
});
|
});
|
Loading…
Reference in New Issue