在 el-dialog 增加 customClass,且在全局 style 里 写 (style 去掉scoped)
<el-dialog customClass="kub-mobileWidth"></el-dialog>
.kub-mobileWidth { width: 60%; }
@media (max-width: 768px) { .kub-mobileWidth { width: 98%; } }
在 el-dialog 增加 customClass,且在全局 style 里 写 (style 去掉scoped)
<el-dialog customClass="kub-mobileWidth"></el-dialog>
.kub-mobileWidth { width: 60%; }
@media (max-width: 768px) { .kub-mobileWidth { width: 98%; } }