# vue2-ios-picker

> iOS style picker component for vue2.0

Latest version **1.0.8** (published 2018-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue2-ios-picker
pnpm add vue2-ios-picker
yarn add vue2-ios-picker
bun add vue2-ios-picker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2018-01-07 |
| First published | 2017-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Cheiron Zhang |
| Maintainers | cheiron |
| Keywords | picker, ios-picker, vue2 |

## Links

- npm: https://www.npmjs.com/package/vue2-ios-picker
- Repository: https://github.com/cheiron1990/vue2-ios-picker
- Issues: https://github.com/cheiron1990/vue2-ios-picker/issues
- npm.io page: https://npm.io/package/vue2-ios-picker

## Dependencies (1)

- [better-scroll](https://npm.io/package/better-scroll.md) ^0.4.0

## Recent versions

- 1.0.8 (latest) — 2018-01-07
- 1.0.7 — 2018-01-04
- 1.0.6 — 2017-12-29
- 1.0.4 — 2017-07-18
- 1.0.3 — 2017-07-18
- 1.0.2 — 2017-07-18
- 1.0.1 — 2017-07-18
- 1.0.0 — 2017-07-18

## README

# vue2-ios-picker

> iOS style picker component for vue2.0

Thanks for [picker](https://github.com/ustbhuangyi/picker) by [ustbhuangyi](https://github.com/ustbhuangyi)

## Props

``` javascript
themeColor: '#000000' // define the color of confirm button text
title: 'Picker' // display in center of picker head
items: [
            [
                {
                    text: 'display',
                    value: 'for code'
                },
                {
                    text: 'display',
                    value: 'for code'
                }
            ],
            [
                {
                    text: 'display',
                    value: 'for code'
                },
                {
                    text: 'display',
                    value: 'for code'
                }
            ]
        ]  // require
selectedIndex: [0, 2, 3] // index of default select, default: [0, 0, 0]
```

## Event
``` javascript
change // column stop scroll. params: column index, item index of this column
select // click confirm button. params: value array of all column, index array of all column
cancel // user close picker
value-change // click confirm button and this value is different from the previous one. params: value array of all column, index array of all column
```

## Methods

``` javascript
show(next) // next a function, callback after showing picker. NOT require
hide() // close picker
scrollColumn(index, dist) // index is the index of target column, dist is the index of item you want to scroll to.
```

## Demo

``` bash
# install dependencies
yarn install

# serve with hot reload at localhost:8080
yarn run dev

---
_Source: https://npm.io/package/vue2-ios-picker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
