Giter Club home page Giter Club logo

Comments (7)

surmon-china avatar surmon-china commented on August 15, 2024

http://www.swiper.com.cn/api/pagination/2014/1217/68.html

可以参考官方的自定义分页器api,或者使用css来控制颜色,能实现你的需求;
组件应该尽量避免与官方api的差异,感谢反馈。

from vue-awesome-swiper.

immake avatar immake commented on August 15, 2024

from vue-awesome-swiper.

surmon-china avatar surmon-china commented on August 15, 2024

是的,因为使用scoped标签,生成的css将包含一个随机标签(属性选择器)来标记作用范围,并且子组件不会作为所在宿主组件的元素包含在范围内,所以它不会应用,这是vue的实现机制导致的,目前vue组件的模板里还没有可选的类似ng2的多种样式应用机制,所以目前可以用

  1. 需要应用pagination样式的组件,不使用scoped标签
  2. 将pagination样式定义在全局公共的css中

但是组件本身应该是不会有大的和官方差异较大的改动了,
如果后续有更好的方法,我会在此留言。

from vue-awesome-swiper.

immake avatar immake commented on August 15, 2024

from vue-awesome-swiper.

qinouz avatar qinouz commented on August 15, 2024

终于 解决了 我都想去 css改源码了

from vue-awesome-swiper.

unixc3t avatar unixc3t commented on August 15, 2024

使用scoped时 可以使用>>> 穿透语法
https://vue-loader-v14.vuejs.org/zh-cn/features/scoped-css.html
深度作用选择器那一节

from vue-awesome-swiper.

wildescarrot avatar wildescarrot commented on August 15, 2024

可以把style的scoped去掉哦

from vue-awesome-swiper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.