Explorar el Código

自定义事件

chenlei hace 10 meses
padre
commit
d111c5bab9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);//自定义事件
             }
     }
 }