message line break in elementUI

Requirement: The prompt text is too long and needs to be displayed in a new line

 code show as below:

message is the value from the backend, if there is <br/> in it, you can also wrap it

this.$message({
              dangerouslyUseHTMLString: true,
              message:'导入失败! <br/>' + message,
              type:'error',
            })

Guess you like

Origin blog.csdn.net/weixin_43961652/article/details/122185812