1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-24 16:36:46 +00:00
bramw_baserow/web-frontend/modules/database/components/row/RowEditFieldRating.vue
2021-12-28 12:37:58 +00:00

31 lines
639 B
Vue

<template>
<div class="control__elements">
<div class="field-rating">
<Rating
:rating-style="field.style"
:color="field.color"
:value="value"
:max-value="field.max_value"
:read-only="readOnly"
@update="update"
/>
</div>
</div>
</template>
<script>
import rowEditField from '@baserow/modules/database/mixins/rowEditField'
import Rating from '@baserow/modules/database/components/Rating'
export default {
components: { Rating },
mixins: [rowEditField],
methods: {
update(newValue) {
this.$emit('update', newValue, this.value)
},
},
}
</script>