# vue-scratchable **Repository Path**: sailorj-java/vue-scratchable ## Basic Information - **Project Name**: vue-scratchable - **Description**: vue-刮刮乐实现 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-06 - **Last Updated**: 2021-12-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 🦄 vue-scratchable 🏳️‍🌈🧽 Publishing status: ![Publishing status](https://github.com/sebastianwachter/vue-scratchable/workflows/Lint%2C%20Publish%2C%20%26%20Release/badge.svg) A Vue.js wrapper component that turns everything into fun scratch cards. Includes touch support without additional dependencies. It can also calculate percentage value of the scratchables's cleared area. ## 🎉 Installation Install it with npm: ``` npm i vue-scratchable ``` Or directly in the browser: ```html ``` ## ✨ Usage Register the component globally: ```js import VueScratchable from 'vue-scratchable'; Vue.component('vue-scratchable', VueScratchable); ``` Or use it locally in your Single File Components: ```js import VueScratchable from 'vue-scratchable'; export default { /* ... */ components: { VueScratchable, }, /* ... */ }; ``` In both cases you are now able to use it in the `