在avue-crud,标签内自己写一个操作栏的按钮,通过 handleEdit()
<template slot-scope="scope" slot="menu">
<el-button
type="text"
icon="el-icon-edit-outline"
size="small"
@click.stop="handleEdit(scope.row, scope.index)"
>签到
</template>
在methods定义方法
handleEdit(row, index) {
this.$refs.crud.rowEdit(row, index);
},
avue-crud自己调起编辑弹窗
于 2022-05-10 13:18:53 首次发布