picker component

This commit is contained in:
cookfront
2017-02-20 11:49:37 +08:00
parent bdc74d2298
commit 5bae32c726
8 changed files with 385 additions and 10 deletions

View File

@@ -1,7 +1,29 @@
<script>
export default {
data() {
return {
pickerColumns: [
{
values: ['杭州', '宁波', '温州', '嘉兴', '湖州', '绍兴', '金华', '衢州', '舟山', '台州', '丽水']
}
]
};
}
};
</script>
## Picker组件
模仿iOS中的`UIPickerView`
### 基础用法
:::demo 基础用法
```html
<z-picker :columns="pickerColumns"></z-picker>
```
:::
### API
| 参数 | 说明 | 类型 | 默认值 | 可选值 |