<template> <transition name="fade"> <div class="modal-wrap" v-if="visible"> <div class="modal"> <div class="hd"> {{title}} <i class="btn-close iconfont icon-close" @click="close"></i> </div> <div class="bd"> <slot name="content"></slot> </div> <slot name="ft"> <!--<div class="ft" slot="ft"> <a href="javscript:void(0)" class="btn make-sure" @click="sure">确定</a> <a href="javscript:void(0)" class="btn cancel" @click="close">取消</a> </div>--> </slot> </div> <div class="backdrop" @click="close"></div> </div> </transition> </template>
vue 自定义modal 模态框组件:https://www.cnblogs.com/conglvse/p/9667930.html
Ant Design Modal对话框:https://ant.design/components/modal-cn/
Ant Design 组件 —— Modal:https://www.jianshu.com/p/a9793bf1ce20
view-design(View UI)Modal 对话框:https://www.iviewui.com/components/modal