<el-curd>组件表格操作方式可自定义
<div id="app" v-cloak>
<el-curd
ref="curd"
:field="field">
<template v-slot:operation="row">
<a href="javascript:;" @click="openData(row, ['message'], '备注', 'shop/lottery/message')">备注</a>
</template>
</el-curd>
</div>
<script>
new Vue({
el: "#app",
data() {
return {
field: [],
}
},
methods: {
// 打开数据
openData(row, appoint, title = '', drawerSave = true) {
this.$refs.curd.openData(row, appoint, title, drawerSave);
},
}
})
</script>