解释:滑块视图容器。内部只允许使用 swiper-item 组件描述滑块内容,否则会导致未定义的行为。

创新互联公司从2013年开始,先为上蔡等服务建站,上蔡等地企业,进行企业商务咨询服务。为上蔡企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。
| 属性名 | 类型 | 默认值 | 必填 | 说明 | 最低版本 |
|---|---|---|---|---|---|
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
change 事件中的 source 字段,表示触发 change 事件的原因,可能值如下:
| 值 | 说明 |
|---|---|
跳转编辑工具
在开发者工具中打开
在 WEB IDE 中打开
扫码体验
代码示例
请使用百度APP扫码
class="swiper"indicator-dots="{{switchIndicateStatus}}"indicator-color="rgba(0,0,0,0.30)"indicator-active-color="#fff"autoplay="{{switchAutoPlayStatus}}"current="0"current-item-id="0"interval="{{autoPlayInterval}}"duration="{{switchDuration}}"circular="true"vertical="{{switchVerticalStatus}}"previous-margin="0px"next-margin="0px"display-multiple-items="1"bind:change="swiperChange"bind:animationfinish="animationfinish">s-for="item in swiperList"item-id="{{itemId}}"class="{{item.className}}">{{item.value}} 指示点 class="init-switch"checked="{{switchIndicateStatus}}"bind:change="switchIndicate">自动切换 checked="{{switchAutoPlayStatus}}"bind:change="switchAutoPlay"class="init-switch">纵向滑动 checked="{{switchVerticalStatus}}"bind:change="switchVertical"class="init-switch">滑块切换时长 {{switchDuration}}ms class="slider"min="300"max="1500"value="{{switchDuration}}"bind:change="changeSwitchDuration">自动切换时间间隔 {{autoPlayInterval}}ms class="slider"min="1000"max="5000"value="{{autoPlayInterval}}"bind:change="changeAutoPlayInterval">
设计指南
建议滑块视图数量控制在 2-5 个。
建议滑块切换时长不低于 500ms ,自动切换时间间隔不高于 5000ms 。
自定义底部切换圆点 class="swiper-custom"autoplay="auto"interval="3000"duration="500"current="{{swiperCurrent}}"bindchange="swiperChangeCustom">
模拟 tabs 组件功能 全部 服务通知 系统通知 评论 其他 我是全部 我是服务通知 我是系统通知 我是评论 我是其他
A:参见属性说明,可以去掉 dot 显示之后,自己定义 dot 样式。具体代码可参见上方代码示例 2 。