elementui-插槽

<el-table-column label="操作">
    <template slot-scope="scope">
        <el-button size="mini" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
</template>
</el-table-column>
methods: {
    handleEdit(index, row) {
        console.log(index, row);
    }
}

喜欢的小伙伴可以关注我的微信公众号“前端伪大叔”

 

posted @ 2019-10-20 11:20  前端伪大叔  阅读(2670)  评论(0编辑  收藏  举报