Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add useIntersectionObserver #27

Merged
merged 12 commits into from
Dec 28, 2019
Merged

feat: add useIntersectionObserver #27

merged 12 commits into from
Dec 28, 2019

Conversation

pikax
Copy link
Owner

@pikax pikax commented Nov 13, 2019

<template>
  <div>
    {{ isIntersecting }}

    <div ref="el">
      Element
    </div>
  </div>
</template>

<script>
import {ref, watch, reactive} from '@vue/composition-api';
import {useIntersectionObserver} from '../../../';

export default {
  name: "intersection-observer-example",
  setup(){
    const el = ref(null);
    const o = useIntersectionObserver(el);
    return {
      ...o,
      el
    }
  }
}
</script>

@pikax pikax added this to In progress in Road to v1 via automation Dec 10, 2019
# Conflicts:
#	dist/index.d.ts
#	dist/utils.d.ts
#	dist/vue-composable.cjs.js
#	dist/vue-composable.es.js
#	dist/vue-composable.umd.js
#	dist/vue-composable.umd.prod.js
#	dist/web/fetch.d.ts
#	docs/.vuepress/config.js
#	packages/axios/__tests__/intersectionObserver.spec.ts
#	packages/axios/src/intersectionObserver.ts
#	packages/web/src/event/event.ts
#	src/index.ts
@pikax pikax merged commit a7b3e79 into master Dec 28, 2019
Road to v1 automation moved this from In progress to Done Dec 28, 2019
@pikax pikax deleted the useIntersectionObserver branch December 28, 2019 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Road to v1
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant