elementUI messageBox 组件自定义样式方法:添加属性’customClass’12345678this.$confirm('确认?','告警',{ confirmButtonText: '确定', cancelButtonText: '', type: 'warning', customClass: 'myBox' // 👈}).then(function(){ // do some }) 注意 放 customClass 的 style 不能加 scoped123456<style>.myBox { background: green; ......}</style> ElementUI Css 作者: Ning lx 文章链接: http://ninglx.github.io/2022/05/18/elementUI修改messageBox弹框样式/ 版权声明: 本网站所有文章除特别声明外,均采用 CC BY-NC-ND 4.0 许可协议。转载请注明出处! 上一篇: mapbox关闭/取消图层的点击事件 下一篇: 记录Promise.all用法