Package Exports
- @1-week/vue-use-core
- @1-week/vue-use-core/lib/index.cjs.js
- @1-week/vue-use-core/lib/index.esm.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@1-week/vue-use-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@vueblocks/vue-use-core
A Collection of Vue Compositon API Utilities.
Install
# Vue 2 with @vue/composition-api
yarn add @vue/composition-api @vueblocks/vue-use-core -S
or
npm i @vue/composition-api @vueblocks/vue-use-core -S
# Vue 3
yarn add @vueblocks/vue-use-core -S
or
npm i @vueblocks/vue-use-core -SUsage
import { useMouse } from '@vueblocks/vue-use-core'
export default {
setup () {
const { x, y, remove } = useMouse()
return {
x,
y
}
}
}License
MIT @xiaoluoboding