How do I use /deep/ or >>> in Vue.js?

后端 未结 5 1010
抹茶落季
抹茶落季 2020-11-28 06:25

So, I\'ve read here that in Vue.js, you can use /deep/ or >>> in a selector in order to create style rules that apply to elements inside o

5条回答
  •  旧时难觅i
    2020-11-28 06:53

    I've successfully used /deep/ in Vue's scoped SCSS stylesheets with this structure:

    .parent-class {
      & /deep/ .child-class {
        background-color: #000;
      }
    }
    

    Edit: /deep/ is being deprecated, if it no longer works for you please refer to the other answer that explains ::v-deep

提交回复
热议问题