vue-chat-scroll-image
Forked from
Added new feature trigger scroll down when image messages loaded.
Installation
-
#### NPM / Yarn Run
npm install --save vue-chat-scroll-image
, oryarn add vue-chat-scroll-image
-
#### With Modules
// ES6Vue// ES5var Vue =Vue -
####
<script>
IncludeJust include
./dist/vue-chat-scroll-image.js
after Vue itself.
Usage
There's nothing you need to do in JavaScript except for installation. To use the plugin, simply use the v-chat-scroll
directive.
{{ n }}
Prevent scroll down when user has scrolled up
Alternatively, you can pass a config value to the directive:
{{ n }}