Comments (7)
http://www.swiper.com.cn/api/pagination/2014/1217/68.html
可以参考官方的自定义分页器api,或者使用css来控制颜色,能实现你的需求;
组件应该尽量避免与官方api的差异,感谢反馈。
from vue-awesome-swiper.
from vue-awesome-swiper.
是的,因为使用scoped标签,生成的css将包含一个随机标签(属性选择器)来标记作用范围,并且子组件不会作为所在宿主组件的元素包含在范围内,所以它不会应用,这是vue的实现机制导致的,目前vue组件的模板里还没有可选的类似ng2的多种样式应用机制,所以目前可以用
- 需要应用pagination样式的组件,不使用scoped标签
- 将pagination样式定义在全局公共的css中
但是组件本身应该是不会有大的和官方差异较大的改动了,
如果后续有更好的方法,我会在此留言。
from vue-awesome-swiper.
from vue-awesome-swiper.
终于 解决了 我都想去 css改源码了
from vue-awesome-swiper.
使用scoped时 可以使用>>> 穿透语法
https://vue-loader-v14.vuejs.org/zh-cn/features/scoped-css.html
深度作用选择器那一节
from vue-awesome-swiper.
可以把style的scoped去掉哦
from vue-awesome-swiper.
Related Issues (20)
- Swiper does not re-render when the swiperOptions state change on IOS app
- The misuse of path of swiper.css causes the dependency was not found HOT 1
- swiper-pagination not show HOT 1
- loop+slidesPerView
- when slidesPerView is auto,use virtual errors HOT 1
- Can't resolve 'swiper/swiper-bundle.css'
- Nuxt 3 Support HOT 2
- Local Registration failed while global Registration succeeded
- Is swiper 7 currently supported ? HOT 2
- How to use stopOnLastSlide property?
- vue 2 swiper7 vue-awesome-swiper effect没有效果
- swiper7 allowSlideNext unable???
- How to modify the default value HOT 1
- Is vue3.0 supported? HOT 3
- cube effect ios is not click
- 更 HOT 1
- Vue-awesome-swiper on the Macbook, Monterey 12.2.1, M1 HOT 1
- To make it more accessible we should have the option to use ul and li as the tags for the slider and the slider items HOT 1
- Can't install vue-awesome-swiper 4.1.1 HOT 1
- IOS下轮播图在返回滑动的时候,图片显示当前激活图片但是随后又会跳转到上一张
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-awesome-swiper.