微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

微信小程序 教程之wxapp视图容器 swiper

相关文章

  1. 微信小程序 教程之wxapp 视图容器 view

微信小程序视图容器:swiper

​滑动面板

Box-sizing: border-Box; word-wrap: break-word; white-space: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0); text-align: left; font: 14px/2 'Helvetica Neue','Hiragino Sans GB','Microsoft YaHei',黑体,Arial,sans-serif; margin: 0px 0px 0.85em; orphans: 3; widows: 3; letter-spacing: 0px; background-color: rgb(255,255,255); text-indent: 20px; -webkit-text-stroke-width: 0px; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased">​滑动面板

属性名 类型 认值 说明 显示面板指示点utoplay自动切换页面的index自动切换时间间隔

注意:其中只可放置swiper-item组件,其他节点会被自动删除

swiper-item

仅可放置在swiper组件中,宽高自动设置为100%

示例代码

rush:js;"> utoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}"> imgurls}}"> imgurls: [ 'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg','http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg','http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg' ],indicatorDots: false,autoplay: false,interval: 5000,duration: 1000 },changeIndicatorDots: function(e) { this.setData({ indicatorDots: !this.data.indicatorDots }) },changeAutoplay: function(e) { this.setData({ autoplay: !this.data.autoplay }) },intervalChange: function(e) { this.setData({ interval: e.detail.value }) },durationChange: function(e) { this.setData({ duration: e.detail.value }) } })

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。