1.1.2 • Published 6 years ago
vue-chat-scroller v1.1.2
vue-chat-scroller
A Vue.js chat scroller
npm install vue-chat-scroller --save
import VueChatScroller from 'vue-chat-scroller'
Vue.use(VueChatScroller)
// 作为组件的方式使用
<vue-chat-scroller></vue-chat-scroller>
Props
name | Description | type | default |
---|---|---|---|
options | better-scroll options | Object | { scrollbar: true, probeType: 3, pullDownRefresh: { threshold: 40, stop: 40 } } |
chatList | 聊天列表 | Array | [] |
size | 能显示的列表长度 | Number | 50 |
Events
name | Description |
---|---|
onPullingDown | 上拉加载的回调 |
Slots 支持自定义插槽
name | Description | type | default | |
---|---|---|---|---|
item | 列表循环里的每一个子项 | <template></template> | <div>{{item.index}}</div> | |
pulldown-pull-to-load | 上拉加载没挂载到钩子 | <template></template> | pull down to load data | |
pulldown-before-load | 上拉加载挂载到钩子但是没有开始进行回调 | <template></template> | release to refresh | |
pulldown-after-load | 开始进行回调 | <template></template> | loading....... |
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.21
6 years ago
1.0.20
6 years ago
1.0.18
6 years ago
1.0.17
6 years ago
1.0.16
6 years ago
1.0.14
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago