Modal框(模态框)

<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

上一篇:基于javaweb+jsp的甜品店奶茶店管理系统


下一篇:泛微流程表单通用功能代码块整理