当在某个页面中需要对element-ui组件dialog弹窗样式重置,需要使用custom-class(Dialog 的自定义类名)

  例子:在style scoped样式表里面为弹窗样式进行重置:

  custom-class="schedule-task-diaog"

 /deep/.schedule-task-diaog{
    height:100vh !important;
    margin:0px !important;
    /deep/.el-dialog__header{
      width:100%;
      padding:0px !important;
      height:50px;
      line-height:50px;
    }
    /deep/ .el-dialog__body{
      width:100%;
      height:calc(~"100% - 50px");
      box-sizing: border-box;
    }
  } 

 

相关文章:

  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-02-19
相关资源
相似解决方案