el-popover 點擊取消按鈕,彈窗仍然無法關閉


<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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM