0
点赞
收藏
分享

微信扫一扫

element-ui的提示框修改停留时间以及修改位置


1.修改停留时间

this.$message.error({
message: '加载错误!',
duration: 2000
});

注意了,如果在显示提示框时点中了提示框,提示框就会永久停留,除非触发了下一次别的提示框的出现

2.修改位置

.el-message {
height: 100px !important;
top: 65% !important;
margin-top: -100px !important;
z-index: 100000002 !important;
}


举报

相关推荐

0 条评论