<el-curd>组件表格更多操作方式可自定义
<div id="app" v-cloak>
<el-curd
ref="curd"
:field="field" >
<template v-slot:dropdown="row">
<li
v-if="authority.indexOf('shop/order/content') !== -1"
@click="openData(row, ['content'], '订单详情', 'shop/order/content')">
订单详情
</li>
</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>