JSPM

@vsirrr/vue-exposure

0.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q5226F
  • License Apache-2.0

Package Exports

  • @vsirrr/vue-exposure

Readme

VueExposure

A Vue2 component to add IntersectionObserver and MutationObserver to Vue2 component or HTML element.

Usage

step one

npm i @vsirrr/vue-exposure

step two

<template>
  <VueExposure @exposure="exposure">
    <div>dom</div>
    <VueComponent />
  </VueExposure>
</template>

<script>
  import VueExposure from '@vsirrr/vue-exposure'

  export default {
    components: {
      VueExposure,
    },
    methods: {
      exposure(elm) {
        // todo
      },
    },
  }
</script>