mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-24 05:03:02 +00:00
39 lines
962 B
Vue
39 lines
962 B
Vue
<template>
|
|
<div>
|
|
<div class="control">
|
|
<label class="control__label control__label--small">Options</label>
|
|
<div class="control__elements">
|
|
<FieldSelectOptions
|
|
ref="selectOptions"
|
|
v-model="values.select_options"
|
|
></FieldSelectOptions>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import form from '@baserow/modules/core/mixins/form'
|
|
import fieldSubForm from '@baserow/modules/database/mixins/fieldSubForm'
|
|
import FieldSelectOptions from '@baserow/modules/database/components/field/FieldSelectOptions'
|
|
|
|
export default {
|
|
name: 'FieldNumberSubForm',
|
|
components: { FieldSelectOptions },
|
|
mixins: [form, fieldSubForm],
|
|
data() {
|
|
return {
|
|
allowedValues: ['select_options'],
|
|
values: {
|
|
select_options: [],
|
|
},
|
|
}
|
|
},
|
|
methods: {
|
|
isFormValid() {
|
|
this.$refs.selectOptions.$v.$touch()
|
|
return !this.$refs.selectOptions.$v.$invalid
|
|
},
|
|
},
|
|
}
|
|
</script>
|