码迷,mamicode.com
首页 > Web开发 > 详细

vue.js插件提示框模板写法

时间:2017-06-08 22:23:20      阅读:250      评论:0      收藏:0      [点我收藏+]

标签:code   confirm   text   cli   his   ext   name   regexp   attr   

<template>
  <el-button type="text" @click="open4">点击打开 Message Box</el-button>
</template>

<script>
  export default {
    methods: {
      open4() {
        this.$msgbox({
          title: ‘消息‘,
          message: ‘这是一段内容, 这是一段内容, 这是一段内容, 这是一段内容, 这是一段内容, 这是一段内容, 这是一段内容‘,
          showCancelButton: true,
          confirmButtonText: ‘确定‘,
          cancelButtonText: ‘取消‘
        }).then(action => {
          this.$message({
            type: ‘info‘,
            message: ‘action: ‘ + action
          });
        });
      },
    }
  }
</script>

vue.js插件提示框模板写法

标签:code   confirm   text   cli   his   ext   name   regexp   attr   

原文地址:http://www.cnblogs.com/gerry/p/6964837.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!