sohelp-table 支持的全部事件如下,后面四個事件同 ele-pro-table、ant-design-vue 的 a-table 的事件:
| 事件名稱 | 說明 | 參數 | 返回 |
| --- | --- | --- | --- |
| updateEdit | 修改窗口事件(帶參數) | record //當前選中數據,text /操作按鈕名稱/ | 無 |
| addEdit | 新增窗口事件 | 無 | 無 |
| onBlur | 輸入框失去焦點事件 | columns record index | 無 |
| onChange | 開關事件 | columns record index | 無 |
實例說明
~~~
<template>
<sohelp-table
ref='sohelpTable',
refid='admin_menu!menu'
@change="onChange"
@updateEdit="updateEdit"
@addEdit="addEdit"
/>
</template>
<script>
export default {
name:'sohelp',
data(){
return{
UsershowEdit:false
}
}
methods:{
onChange(){},
updateEdit(record,text){
console.log('編輯數據',record,'按鈕名稱',text)
},
addEdit(){
this.UsershowEdit=true
}
}
}
</script>
~~~