美文网首页
sass、scss、stylus 在 vue 中修改 eleme

sass、scss、stylus 在 vue 中修改 eleme

作者: sunxiaochuan | 来源:发表于2021-11-30 09:43 被阅读0次

参考地址

vue 官网文档:深度作用选择器

代码示例

  • sass
<style lang="sass" scoped>
.el-table
  ::v-deep
    .el-table__header-wrapper,th.el-table__cell,.cell
        overflow: inherit
</style>
  • scss
<style lang="scss" scoped>
.el-table{
  /deep/ .el-table__header-wrapper,/deep/ th.el-table__cell,.cell{
    overflow: inherit;
  }
}
</style>
  • stylus
<style lang="stylus" scoped>
.el-table
  >>>
    .el-table__header-wrapper,th.el-table__cell,.cell
        overflow: inherit
</style>

相关文章

网友评论

      本文标题:sass、scss、stylus 在 vue 中修改 eleme

      本文链接:https://www.haomeiwen.com/subject/doorxrtx.html