Files

35 lines
585 B
Vue

<template>
<component
:is="getFieldComponent(field.type)"
:row="row"
: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>