<avue-crud :option="option" :search.sync="search" :data="data" >
<template slot="searchMenu" slot-scope="{row,size}">
<el-button :size="size" @click="searchSubmit(row)">自定义提交</el-button>
</template>
<template slot="search" slot-scope="{row,size}">
<el-tag>标题</el-tag>
<el-input placeholder="自定义输入框" :size="size" style="width:200px" v-model="search.slot"></el-input>
</template>
</avue-crud>
<script>
export default {
data(){
return {
search:{},
data:[{
name:'张三'
}],
option:{
column: [{
label: '姓名',
prop: 'name'
},{
label: '日期',
prop: 'date',
type:'datetime'
}]
}
}
}
}
</script>
运行结果