mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-27 06:00:37 +00:00
37 lines
722 B
Vue
37 lines
722 B
Vue
<template>
|
|
<InjectedFormulaInputGroup
|
|
v-model="fieldValue"
|
|
:placeholder="$t('upsertRowWorkflowActionForm.fieldMappingPlaceholder')"
|
|
:label="field.name"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import InjectedFormulaInputGroup from '@baserow/modules/core/components/formula/InjectedFormulaInputGroup'
|
|
|
|
export default {
|
|
name: 'FieldMapping',
|
|
components: { InjectedFormulaInputGroup },
|
|
props: {
|
|
field: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
value: {
|
|
type: String,
|
|
required: false,
|
|
default: () => '',
|
|
},
|
|
},
|
|
computed: {
|
|
fieldValue: {
|
|
get() {
|
|
return this.value
|
|
},
|
|
set(value) {
|
|
this.$emit('change', value)
|
|
},
|
|
},
|
|
},
|
|
}
|
|
</script>
|