VueStar

查看中文文档,请移步至 这里
demo
For a better demonstration, please use the phone scan the following two-dimensional code view demo

API
Props
| Option | Type | Description | | ------------- |-------------| -----| | animate | String | To activate the animation of the like button| | color | String | Activate the like button, the color of the button. (note to must be hex or RGB color code) |Slot
| SlotName | Description | | -------------| -----| | icon | Set up the like button |Detailed instructions
Props
animate
animate
Specify the like button animation, the default is no animation, you can add animation CSS class, of course, can also introduce CSS animation library, such as animate.css






color
color
Activate the button when the button color changes, the default is not. Note: The value of this parameter must be filled in hex or rgb color code, rather than the css class



Slot
icon
icon
To the slot
inside fill in any content you want, it is the carrier of the like button



abuout event
Events should be bound in the slot
```vue
<a slot="icon" class="fa fa-heart" @click="handleClick"></a>
export default {
methods: {
handleClick () {
//do something
}
}
}
```
Simple example
```html<img slot="icon" src="./yourImgPlace/yourImg.png" />
```
```html
<i slot="icon" class="fa fa-heart"></i>
```
Installation and use
```javascript
npm install vue-star
```
- If used as a global component
- If as a local component
VueStar
}
}
```
Bug and suggestions
If you encounter problems or suggestions in the use, welcome to issues
LICENSE
MIT