diff --git a/examples/docs/message.md b/examples/docs/message.md index 20b5ad3a..4bbe6d77 100644 --- a/examples/docs/message.md +++ b/examples/docs/message.md @@ -2,69 +2,68 @@ module.exports = { methods: { open() { - this.$notify({ - title: '标题名称', - message: '这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案' + this.$message({ + message: '这是一条消息提示' }); }, open2() { - this.$notify({ - title: '成功', - message: '这是一条成功的提示消息', + this.$message({ + message: '恭喜你,这是一条成功消息', type: 'success' }); }, open3() { - this.$notify({ - title: '警告', - message: '这是一条警告的提示消息', + this.$message({ + message: '警告哦,这是一条警告消息', type: 'warning' }); }, open4() { - this.$notify({ - title: '消息', - message: '这是一条消息的提示消息', - type: 'info' + this.$message({ + message: '错了哦,这是一条错误消息', + type: 'error' }); }, open5() { - this.$notify({ - title: '错误', - message: '这是一条错误的提示消息', - type: 'error' + this.$message({ + showClose: true, + message: '恭喜你,这是一条成功消息' }); }, open6() { - this.$notify({ - title: '提示', - message: '这是一条不会自动关闭的消息', - duration: 0 + this.$message({ + showClose: true, + message: '警告哦,这是一条警告消息', + type: 'warning' }); }, - + open7() { - this.$notify({ - title: '提示', - message: '这是一条带有回调函数的消息', - onClose: this.onClose + this.$message({ + showClose: true, + message: '错了哦,这是一条错误消息', + type: 'error' }); }, - onClose() { - console.log('Notification 已关闭'); - } + open8() { + this.$message({ + showClose: true, + message: '错了哦,这是一条错误消息', + type: 'error' + }); + } } };