當我們在使用iview的modal時,發現當點擊確定時想操作一些事件,但是modal已經消失
這時需要自定義modal的頁腳了
modal中插入以下元素代碼,然后可以編輯自己的自定義方法了
<div slot="footer"> <Button type="text" @click="handleCancle">取消</Button> <Button type="primary" @click="handleComfirm">確定</Button> </div>
當我們在使用iview的modal時,發現當點擊確定時想操作一些事件,但是modal已經消失
這時需要自定義modal的頁腳了
modal中插入以下元素代碼,然后可以編輯自己的自定義方法了
<div slot="footer"> <Button type="text" @click="handleCancle">取消</Button> <Button type="primary" @click="handleComfirm">確定</Button> </div>
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。