弹框展示:

代码:

 <template>
<div>
<el-col :span="9" style="text-align: right;">
<el-button @click="dialogVisible=true"
style="text-align: right;font-weight:700;font-size: 17px;padding: 7px 10px;">点我弹框
</el-button>
</el-col>
<!--弹框-->
<el-dialog title="弹框" :visible.sync="dialogVisible" :close-on-click-modal="true" :modal="true" :show-close="true" :center="true">
内容展示
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="dialogVisible = false">确 定</el-button>
</span>
</el-dialog>
</div> </template>
<script>
export default {
data() {
return {
dialogVisible: false
};
},
methods: {}
};
</script>
el-dialog 几个参数:
title:标题名
visible:展示弹框,默认 false
close-on-click-modal:点击关闭弹框,默认 true
modal:弹框后,后面页面蒙层,默认 true
show-close:展示关闭按钮,默认 true
center:头部和底部居中展示,默认 false
												

最新文章

  1. Mac 下安装Jenkins
  2. C#基础知识简单梳理
  3. Httpd运维日志:通过apxs添加模块
  4. java实现顺序栈
  5. IBM总裁郭士纳总结的四类人
  6. c语言 列出-终止系统进程
  7. python 模块之-hashlib
  8. hdu 3016 Man Down
  9. Effective C++ 随笔(4)
  10. CSS3 Selectors All In One
  11. tomcat6的编译和导入myeclipse
  12. 洛谷P1156 垃圾陷阱 dp
  13. npm 安装私有 git 包
  14. [Python 模块] logging模块、Logger类
  15. [转载]编写高性能js
  16. 转 关于shell中if 语法结构的广泛误解
  17. mysqli常用方法
  18. centos6.5下安装samba服务器与配置
  19. loadrunner两个函数:取参数长度和时间戳函数
  20. elasticsearch(3) curl命令

热门文章

  1. openshift 使用curl命令访问apiserver
  2. 选redis还是memcache,源码怎么说
  3. codeforces --- Round #250 (Div. 2) B. The Child and Set
  4. go 指针 通过指针修改int类型的值
  5. Equalizing Two Strings CodeForces - 1256F (思维)
  6. 解决h5版的uniapp请求跨域问题
  7. ansible debugger 模块
  8. 阿里巴巴 Java 开发手册 (十二)安全规约
  9. ASP.NET SignalR 系列(五)之群组推送
  10. 从香农熵到手推KL散度