mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-25 00:46:46 +00:00
34 lines
570 B
Vue
34 lines
570 B
Vue
<template>
|
|
<component
|
|
:is="getFieldComponent(field.type)"
|
|
:field="field"
|
|
:value="row[`field_${field.id}`]"
|
|
:selected="false"
|
|
:state="{}"
|
|
:read-only="true"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'SimpleGridField',
|
|
props: {
|
|
field: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
row: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
},
|
|
methods: {
|
|
getFieldComponent(type) {
|
|
return this.$registry
|
|
.get('field', type)
|
|
.getFunctionalGridViewFieldComponent(this.field)
|
|
},
|
|
},
|
|
}
|
|
</script>
|