官方地址:https://avuejs.com/doc/crud/crud-doc
首先要知道avue是在element-ui的基础上做的二次封装所以element里的所有东西avue都支持
先上图
上代码:html
<avue-crud :data="data" :option="option" v-model="obj" :before-close="beforeOpen">
<!-- 自定义列-->
<template slot="name" slot-scope="scope" >
<el-tag></el-tag>
</template>
<!-- 自定表单-->
<template slot-scope="scope" slot="nameForm">
<el-tag></el-tag>
</template>
<!-- 自定义菜单 配置slot卡槽为menuLeft为表单菜单左边位置,卡槽为menuRight为表格菜单右边的位置-->
<template slot="menuLeft">
<el-button type="