0.6.4 • Published 5 years ago

v-tag-picker v0.6.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

v-tag-picker

A cool mobile component of tag picker width vue.js 中文文档

npm npm npm

Introduction

DEMO

Screenshot

npm.io

Install

npm i v-tag-picker -S

Usage

// global
import vTagPicker from 'v-tag-picker'

Vue.use(vTagPicker)

// component
import { vTagPicker } from 'v-tag-picker'

components: {
  vTagPicker
}
<v-tag-picker
  :totalData="tagData"
  :selectedData="selectedData"
  @change="change"
>
  <div class="img-wrap" slot="top">
    <img class="" src="~@/examples/assets/tagbg.png" alt="">
    <div class="img-wrap__title">最感兴趣的栏目</div>
    <div class="img-wrap__subtitle">定制专属于我的课程栏目</div>
  </div>

  <div class="footer" slot="footer">
    <a href="/">进入首页</a>
  </div>
</v-tag-picker>

Props

NameTypeDefaultDescription
zIndexNumbertag-picker z-index
totalDataArray[]picker list data,Must has name key. { name: 'tag' }
selectedDataArray[]Selected list
animationDurationNumber500Animation time(ms).
onlyKeyStringnameUnique identifier for each item of data
appendToBodyBooleannameappend to body element

Events

NameDescriptionreturn
changeSelected data changeSelected data

slot

NameDescription
topIn front of the list
footerbottom page

License

MIT © JakeLaoyu

0.6.4

5 years ago

0.6.3

5 years ago

0.6.2

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.7

5 years ago

0.4.6

5 years ago

0.4.4

5 years ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago