瀏覽代碼

自定义事件

chenlei 10 月之前
父節點
當前提交
d111c5bab9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/list/src/tool-list.js

+ 1 - 1
packages/list/src/tool-list.js

@@ -303,7 +303,7 @@ export function tableEventList(obj, btnObj, row, opType = 'only') {
                 if (obj.$listeners && !obj.$listeners.onListEvent) {
                     console.error('未定义emit方法:onListEvent, ' + type)
                 }
-                obj.$emit('onListEvent', type, row);//自定义事件
+                obj.$emit('onListEvent', type, row, btnObj);//自定义事件
             }
     }
 }