0
点赞
收藏
分享

微信扫一扫

调整element组件样式

霍华德 2022-01-26 阅读 129

采用定位组件的方法,通过组件外层的class或id定位,使用 >>> 进行样式穿透。

<template>
  <div class="container">
    //component
  </div>
</template>

<script>
    ...
</script>

<style scoped>
.container >>> ... {
    ...
}
</style>

举报

相关推荐

0 条评论