JSPM

@1-week/vue-use-core

0.2.16
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q40556F
  • License MIT

A Collection of Vue Compositon API Utilities.

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 -S

Usage

import { useMouse } from '@vueblocks/vue-use-core'

export default {
  setup () {
    const { x, y, remove } = useMouse()

    return {
      x,
      y
    }
  }
}

License

MIT @xiaoluoboding