简介: el-dialog使用::v-deep()穿透设置样式不生效,解决办法亲测有效!场景: <el-dialog v-model="dialogVisible" width="800px" :before-close="beforeClose" append-to-body :close-on-click-modal="false" title="增加文档" > <template #footer> <div style="text-align:center"> <el-button type=...
给el-dialog加个类,在不带scope的<style></style>中设置样式,如下: <el-dialogclass="dialog-bar"></el-dialog> 样式: <style lang="scss">.dialog-bar{.el-dialog__body {padding: 24px 40px 12px !important;}.el-dialog__header {border-bottom: 1px solid #E7E7E7 !important;color:#3D3D3D ...