浏览代码

Fix how to add bootstrap-table object

djhvscf 5 年之前
父节点
当前提交
5429bf71fd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -1862,7 +1862,7 @@ class BootstrapTable {
 
   trigger (_name, ...args) {
     const name = `${_name}.bs.table`
-    args[args.length - 1] = this
+    args[args.length] = this
     this.options[BootstrapTable.EVENTS[name]](...args)
     this.$el.trigger($.Event(name, { sender: this }), args)