1.0.0 • Published 7 years ago
vuc-scratch v1.0.0
vuc-scratch
Install
npm install --save vuc-scratch
yarn add vuc-scratchBasic use
// Global
import vucScratch from 'vuc-scratch'
Vue.use(vucScratch)
// Local
import {vucScratch} from 'vuc-scratch'
export default {
components: {vucScratch}
}
Global Attribute Method
| Attribute | Type | Default value | Explain |
|---|---|---|---|
| H | number | 55 | height |
| W | number | 300 | width |
| size | Array | 35, 35 | Particle size |
| scratchColor | String | #D1D1D1 | Scraping area color |
| recover | Boolean | false | Detection Equivalent Value True Redrawing |
slot
# There is no default style
<div slot="content" ></div>Tip
- Supporting mobile end
Welcome pr issues star
1.0.0
7 years ago