mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-03-16 22:10:27 +00:00
[rating-bar] adds hover event
This commit is contained in:
parent
3a0b90ae22
commit
bbda58ba64
2 changed files with 6 additions and 0 deletions
|
|
@ -88,6 +88,11 @@
|
|||
<md-table-cell>Receive the new rating</md-table-cell>
|
||||
<md-table-cell>Triggered when the rating changes his value by user interaction.</md-table-cell>
|
||||
</md-table-row>
|
||||
<md-table-row>
|
||||
<md-table-cell>hover</md-table-cell>
|
||||
<md-table-cell>Receive the pointer rating</md-table-cell>
|
||||
<md-table-cell>Triggered when the user points over a new rating.</md-table-cell>
|
||||
</md-table-row>
|
||||
</md-table-body>
|
||||
</md-table>
|
||||
</api-table>
|
||||
|
|
|
|||
|
|
@ -131,6 +131,7 @@
|
|||
hoverStars(evt) {
|
||||
if (!this.disabled) {
|
||||
this.rating = this.getIconIndex(evt.currentTarget);
|
||||
this.$emit('hover', this.rating);
|
||||
}
|
||||
},
|
||||
clickStars(evt) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue