0
点赞
收藏
分享

微信扫一扫

【区分vue2和vue3下的element UI Switch 开关组件,分别详细介绍属性,事件,方法如何使用,并举例】

Java旺 2024-06-11 阅读 4

背景

<style scoped>
.custom-alert  {
  height: 300px; /* 你想要设置的高度 */
  overflow-y: auto;
}
</style>

解决方法

<style>
.custom-alert .el-message-box__message {
  height: 300px; /* 你想要设置的高度 */
  overflow-y: auto;
}
</style>

使用

  this.$alert(response.msg, "导入结果", {
    dangerouslyUseHTMLString: true,
    customClass: 'custom-alert'
  });

延伸

在这里插入图片描述

举报

相关推荐

Vue2 和vue3的区别

0 条评论