Redo rating template to sync with latest PrimeReact version
parent
6908614ec9
commit
ece2604344
|
@ -1,4 +1,4 @@
|
||||||
.p-rating a {
|
.p-rating .p-rating-icon {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
||||||
font-size: 1.25em;
|
font-size: 1.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-rating.p-disabled a,
|
.p-rating.p-disabled .p-rating-icon,
|
||||||
.p-rating.p-rating-readonly a {
|
.p-rating.p-rating-readonly .p-rating-icon {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
|
@ -1,11 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="containerClass">
|
<div :class="containerClass">
|
||||||
<a class="p-rating-cancel" v-if="cancel" @click="onCancelClick" tabindex="0">
|
<span class="p-rating-icon p-rating-cancel pi pi-ban" tabindex="0" v-if="cancel" @click="onCancelClick"></span>
|
||||||
<span class="p-rating-icon pi pi-ban"></span>
|
<span :key="i" v-for="i in stars" @click="onStarClick($event,i)" tabindex="0" @keydown.enter.prevent="onStarClick($event,i)"
|
||||||
</a>
|
:class="['p-rating-icon', {'pi pi-star-o': (i > value), 'pi pi-star': (i <= value)}]"></span>
|
||||||
<a :key="i" v-for="i in stars" @click="onStarClick($event,i)" tabindex="0" @keydown.enter.prevent="onStarClick($event,i)">
|
|
||||||
<span :class="['p-rating-icon', {'pi pi-star-o': (i > value), 'pi pi-star': (i <= value)}]"></span>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue