element-UI提示框

 1         //弹窗提示框1
 2         alert1: function () {
 3             this.$message('这是一条消息提示');
 4         },
 5         //弹窗提示框2
 6         alert2: function () {
 7             this.$message({
 8                 message: '恭喜你,这是一条成功消息',
 9                 type: 'success'
10             });
11         },
12         //弹窗提示框3
13         alert3: function () {
14             this.$message({
15                 message: '警告哦,这是一条警告消息',
16                 type: 'warning'
17             });
18         },
19         //弹窗提示框4
20         alert4: function () {
21             this.$message.error('错了哦,这是一条错误消息');
22         }

 

posted @ 2022-04-26 01:22  勤快的懒羊羊  阅读(805)  评论(0编辑  收藏  举报