当前位置:   article > 正文

使用scoped穿透方法实现修改vue中mint UI组件样式_mintui组件库修改mint-indicator-wrapper样式

mintui组件库修改mint-indicator-wrapper样式

效果:


代码:

<div class="goods-swiper">
  <mt-swipe :auto="5000" :show-indicators="true">
    <mt-swipe-item v-for="(item,index) in goodSwiperLists" :key="index"><img :src="item.image"></mt-swipe-item>
  </mt-swipe>
</div>

修改mint UI swiper组件默认样式.mint-swipe-indicator和.mint-swipe-indicator.is-active,在页面中style使用了scoped之后,直接修改样式根本实现不了,之前一直是给要修改的单独加一个class使用<style scoped></style>和<style></style>两个。

    另外一种方式就是使用scoped穿透方法。

代码:


使用‘>>>’样式修改成功。




声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/煮酒与君饮/article/detail/895077
推荐阅读
相关标签
  

闽ICP备14008679号