弹出框自定义样式
newsClick(data) {
this.$alert(data.content, data.title, {
dangerouslyUseHTMLString: true, // html 片段开启
customClass: 'msgBox' // ⾃定义⼀个class名
});
},
注意:<style scoped>这里是不生效的
<style>
.msgBox {
width: 60% !important;
height: 60% !important;
overflow: auto !important;
}
</style>