master
wangbing 6 years ago
parent 9cff6e4892
commit ae5a5ff4d4

@ -539,6 +539,11 @@
</div> </div>
<el-row style="margin-bottom: 10px;"> <el-row style="margin-bottom: 10px;">
<el-button
plain
@click="showMessage">
消息
</el-button>
<el-button <el-button
plain plain
@click="showNotify"> @click="showNotify">
@ -980,11 +985,60 @@
nav.i("编辑"); nav.i("编辑");
}, },
showMessage: function () {
setTimeout(function(){
this.$message('这是一条消息提示');
}.bind(this),100)
setTimeout(function(){
this.$message({
message: '恭喜你,这是一条成功消息',
type: 'success'
});
}.bind(this),200)
setTimeout(function(){
this.$message({
message: '警告哦,这是一条警告消息',
type: 'warning'
});
}.bind(this),300)
setTimeout(function(){
this.$message.error('错了哦,这是一条错误消息');
}.bind(this),400)
},
showNotify: function () { showNotify: function () {
setTimeout(function(){
this.$notify({
title: '成功',
message: '这是一条消息的提示消息',
type: 'success'
});
}.bind(this),100)
setTimeout(function(){
this.$notify({
title: '警告',
message: '这是一条警告的提示消息',
type: 'warning'
});
}.bind(this),200)
setTimeout(function(){
this.$notify.info({ this.$notify.info({
title: '消息', title: '消息',
message: '这是一条消息的提示消息' message: '这是一条消息的提示消息'
}); });
}.bind(this),300)
setTimeout(function(){
this.$notify.error({
title: '错误',
message: '这是一条错误的提示消息'
});
}.bind(this),400)
}, },
showMessageBox: function () { showMessageBox: function () {
this.$alert('这是一段内容', '标题名称', { this.$alert('这是一段内容', '标题名称', {

Loading…
Cancel
Save

Powered by TurnKey Linux.