通過具名 slot (插槽)來顯示Dialog 的標題


<el-dialog :visible.sync="dialogVisible"> <h1 slot="title" class="header-title"> {{ rowNotice.noticeTitle }} </h1> <div class="notice_content">{{ rowNotice.content }}</div> <span slot="footer" class="dialog-footer"> <el-button type="primary" @click="dialogVisible = false">確 定</el-button> </span> </el-dialog>


可參考以下網址:
https://blog.csdn.net/hbjiankely/article/details/88218237


免責聲明!

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



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