我正在尝试从 Vue 指令订阅 Ag-Grid
function insert(el: HTMLElement, binding: DirectiveBinding, {componentInstance} : VNode){
let grid = componentInstance as AgGridVue;
grid.$on('rowDataChanged', (params) => {
console.log(params) //Doesn't even enter to this event
})
grid.$on('row-data-changed', (params) => {
console.log(params) //Neither here
})
}
我只是想知道这是否可能。