解决:
//html
<el-drawer
custom-class="search_box"
title="我是标题"
:visible.sync="isshow"
:before-close="closeDrawer"
:with-header="false">
</el-drawer>
//js
props: {
show: {
type: Boolean,
default: false,
},
},
watch:{
show(val){
this.$nextTick(() => { this.isshow = val})
}
},