diff --git a/src/components/mdRatingBar/mdRatingBar.vue b/src/components/mdRatingBar/mdRatingBar.vue
index 7abc9d2..b690227 100644
--- a/src/components/mdRatingBar/mdRatingBar.vue
+++ b/src/components/mdRatingBar/mdRatingBar.vue
@@ -10,9 +10,11 @@
{{ mdBackIcon }}
+ @mouseout.native="onMouseOut"
+ v-html="backIcon">
@@ -25,9 +27,11 @@
{{ mdFrontIcon }}
+ @mouseout.native="onMouseOut"
+ v-html="frontIcon">
@@ -53,6 +57,8 @@
},
default: 0
},
+ mdFrontIconset: String,
+ mdBackIconset: String,
mdFrontIcon: {
type: String,
default: 'star'
@@ -75,6 +81,20 @@
this.srcBackIcon = this.checkSrc(this.mdBackIcon);
},
computed: {
+ backIcon() {
+ if (this.mdBackIconset) {
+ return '';
+ }
+
+ return this.mdBackIcon;
+ },
+ frontIcon() {
+ if (this.mdFrontIconset) {
+ return '';
+ }
+
+ return this.mdFrontIcon;
+ },
frontStarsStyle() {
return {
width: 100 * this.rating + '%',