0.2.5 • Published 5 years ago

v-ibar v0.2.5

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

v-ibar

vue通讯录组件

online demo

Installation

Use

$ npm install v-ibar -S
import Vue from 'vue'
import VIbar from 'v-ibar'

Vue.use(VIbar)
<v-ibar :data="data"/>
<!-- 插槽 -->
<v-ibar :data="data">
  <template v-slot="slotProps">
    {{ slotProps.item.name }}
  </template>
</v-ibar>

API

component attributes:

Attr. NameTypeDescriptionRequiredDefault Value
scrollElementString滚动容器Nwindow
dataArray数据列表(json数组)Y-
anchor-keyString字母的键名Nletter
anchor-navBoolean是否显示右侧导航Ntrue
touch-stateBoolean右侧导航触摸态Ntrue
touch-directBoolean滚动位置是否随导航触摸位置立即生效Ntrue
highlight-colorString高亮颜色值N#07c160
fixed-topNumber吸顶top值N0

instance methods:

方法名说明参数
doLayout重新计算布局-

Slot

Slot. NameDescription
-默认作用域插槽,slotProps.item访问

Local setup

npm install
npm run serve

License

MIT

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago