@fiahfy/vue-visibility-changed-mixin
v0.0.2
Published
Vue mixin for visibility changed
Downloads
2
Readme
@fiahfy/vue-visibility-changed-mixin
Vue mixin for visibility changed.
Installation
npm install @fiahfy/vue-visibility-changed-mixin
Usage
import VisibilityChanged from '@fiahfy/vue-visibility-changed-mixin'
new Vue({
mixins: [VisibilityChanged],
visibilityChanged(visible) {
console.log(visible) // true -> visible, false -> hidden
}
})