Index 索引选择器
+常用于通讯录、城市选择的索引选择器。
+在 .json 中引入组件
++
属性 | +说明 | +类型 | +默认值 | +
---|---|---|---|
i-class | +自定义 class 类名 | +String | +- | +
height | +容器 scroll-view 的高度,支持各种单位 | +String | +300 | +
item-height | +选择项的高度,单位 px | +Number | +18 | +
事件名 | +说明 | +返回值 | +
---|---|---|
bind:change | +选择项改变时触发, | +{index, current} | +
属性 | +说明 | +类型 | +默认值 | +
---|---|---|---|
i-class | +自定义 class 类名 | +String | +- | +
name | +选择项的标题 | +String | +- | +