1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-25 00:46:46 +00:00
bramw_baserow/web-frontend/modules/database/components/view/grid/SimpleGridField.vue
2024-03-01 09:54:25 +00:00

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>