小程序3--swiper/input/button

137 阅读1分钟

一、小程序swiper

swiper组件的常用属性


indicator-dots     boolean false 是否显示面板指示点

indicator-color    color rgba(0,0,0,.3) 指示点颜色

indicator-active-color   color #O000oo 当前选中的指示点颜色

autoplay     boolean false 是否自动切换

interval      number 5000    自动切换时间间隔

circular     boolean false    是否采用衔接滑动`

二、按钮

通过type属性指定按钮颜色类型


<button type="primary">主色调按钮</button>

<button type="warn">警告按钮</button>

  size="mini" 小尺寸按钮同一行


<button type="primary" size="mini">主色调按钮</button>

<button type="warn" size="mini">警告按钮</button>

plain 镂空按钮


<button type="primary" plain>主色调按钮</button>

<button type="warn" plain>警告按钮</button>