mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-21 23:37:55 +00:00
32 lines
603 B
Vue
32 lines
603 B
Vue
<template>
|
|
<RadioGroup
|
|
:model-value="value"
|
|
:options="options"
|
|
type="button"
|
|
@input="$emit('input', $event)"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import { WIDTHS_NEW } from '@baserow/modules/builder/enums'
|
|
|
|
export default {
|
|
name: 'WidthSelector',
|
|
props: {
|
|
value: {
|
|
type: String,
|
|
required: false,
|
|
default: WIDTHS_NEW.AUTO,
|
|
},
|
|
},
|
|
computed: {
|
|
options() {
|
|
return [
|
|
{ value: WIDTHS_NEW.AUTO, label: this.$t('widthSelector.widthAuto') },
|
|
{ value: WIDTHS_NEW.FULL, label: this.$t('widthSelector.widthFull') },
|
|
]
|
|
},
|
|
},
|
|
}
|
|
</script>
|