<el-popover placement="bottom" width="200" :ref="aa" :visible.sync="reviewVisible" > <div style="text-align: right; margin-top: 20px"> <el-button size="mini" type="text" @click="handleCloseReview(scope)">取消</el-button> <el-button type="primary" size="mini" @click="handleAdd">确定</el-button> </div> </el-popover>
handleCloseReview(scope) { //这样才可以关闭调<el-popover> this.$refs.aa.doClose() }, //之前我通过控制reviewVisible,我发现是关闭的;
参考地址: https://blog.csdn.net/weixin_42224055/article/details/108464884