1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-09 23:27:51 +00:00
bramw_baserow/web-frontend/modules/builder/components/BorderRadiusSelector.vue

37 lines
696 B
Vue

<template>
<RadioGroup
:model-value="value"
:options="options"
type="button"
@input="$emit('input', $event)"
/>
</template>
<script>
import { BORDER_RADIUS_TYPES } from '@baserow/modules/builder/enums'
export default {
name: 'BorderRadiusSelector',
props: {
value: {
type: String,
required: false,
default: null,
},
},
computed: {
options() {
return [
{
label: this.$t('borderRadiusSelector.pixel'),
value: BORDER_RADIUS_TYPES.PIXEL,
},
{
label: this.$t('borderRadiusSelector.percent'),
value: BORDER_RADIUS_TYPES.PERCENT,
},
]
},
},
}
</script>