需求:el-popover 展示与关闭click控制,提交内容后自动关闭
<el-popover
placement="right"
width="500"
ref="popNote"
trigger="click">
<div>
<el-input type="textarea" v-model="scope.row.remark"></el-input>
<el-button size="mini" @click="auditNote(scope.row.id,scope.row.remark)" type="success" style="margin: 10px 0% 0 88%;">提交</el-button>
</div>
<el-button slot="reference" type="text" size="small">审核备注</el-button>
</el-popover>
实现:打印 this.$refs.popNote并执行 this.$refs.popNote.doClose();并不生效
后执行 document.body.click() 生效