# vue-m-index

> Letters index component for vue(移动端字母索引组件 )

Latest version **0.0.2** (published 2017-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-m-index
pnpm add vue-m-index
yarn add vue-m-index
bun add vue-m-index
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-04-07 |
| First published | 2016-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | wanglei |
| Maintainers | wanglei8381 |
| Keywords | vue-m-index, vue, index |

## Links

- npm: https://www.npmjs.com/package/vue-m-index
- Repository: https://github.com/wanglei8381/vue-m-index
- Homepage: https://github.com/wanglei8381/vue-m-index#readme
- npm.io page: https://npm.io/package/vue-m-index

## Dependencies (1)

- [vue-m-touch](https://npm.io/package/vue-m-touch.md) ^0.2.1

## Recent versions

- 0.0.2 (latest) — 2017-04-07
- 0.0.1 — 2016-11-28

## README

#vue-m-index
 <h5>基于vue的字母索引组件</h5>

##Install
npm install vue-m-index

##Use
```js
import indexBar from 'vue-m-index'
export default {
    components: {
        indexBar
    }
}
````

~~~html
<index-bar
  @click="choose"
  :list="list"
  :search="search">
    <div slot="header" class="region-header">
          <input class="search-input" type="text"
                 placeholder="输入城市名或拼音查询" v-model.trim="search">
    </div>
    <div class="m-hot-city">
      <h1 class="city-title">热门城市</h1>
    </div>
</index-bar>
~~~

##Props
```
1. list 展示的数据列表
    type: Array
    required: true
    eg: ['北京','上海']

2. search 搜索的内容
    type: String

3. click 用户选中的项的通知函数事件
    eg: @click="choose"
```

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