{{form}}
<avue-crud :data="data" :option="option" v-model="form"></avue-crud>
<script>
export default {
data() {
return {
form:{},
data: [
{
ids:1,
name:'张三',
sex:'男'
}, {
ids:2,
name:'李四',
sex:'女'
}
],
option:{
rowKey:'ids',
copyBtn:true,
delBtn:false,
column:[
{
label:'姓名',
prop:'name'
}, {
label:'性别',
prop:'sex'
}
]
},
};
}
}
</script>
运行结果