primevue-mirror/components/lib/rating/BaseRating.vue

50 lines
997 B
Vue
Raw Normal View History

2023-05-24 12:46:10 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import RatingStyle from 'primevue/rating/style';
2023-05-24 12:46:10 +00:00
export default {
name: 'BaseRating',
extends: BaseComponent,
props: {
modelValue: {
type: Number,
default: null
},
disabled: {
type: Boolean,
default: false
},
readonly: {
type: Boolean,
default: false
},
stars: {
type: Number,
default: 5
},
cancel: {
type: Boolean,
default: true
},
onIcon: {
type: String,
default: undefined
},
offIcon: {
type: String,
default: undefined
},
cancelIcon: {
type: String,
default: undefined
}
},
style: RatingStyle,
provide() {
return {
$parentInstance: this
};
2023-05-24 12:46:10 +00:00
}
};
</script>