mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-05-14 13:12:20 +00:00
32 lines
595 B
Vue
32 lines
595 B
Vue
<template>
|
|
<InjectedFormulaInput
|
|
v-model="fieldValue"
|
|
:disabled="!fieldMapping.enabled"
|
|
v-bind="$attrs"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import InjectedFormulaInput from '@baserow/modules/core/components/formula/InjectedFormulaInput'
|
|
|
|
export default {
|
|
name: 'FieldMapping',
|
|
components: { InjectedFormulaInput },
|
|
props: {
|
|
fieldMapping: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
},
|
|
computed: {
|
|
fieldValue: {
|
|
get() {
|
|
return this.fieldMapping.value
|
|
},
|
|
set(value) {
|
|
this.$emit('change', { value })
|
|
},
|
|
},
|
|
},
|
|
}
|
|
</script>
|