mirror of
https://github.com/baserow/baserow.git
synced 2026-12-05 16:58:36 +00:00
26 lines
533 B
Vue
26 lines
533 B
Vue
<template>
|
|
<component
|
|
:is="getComponent(field)"
|
|
:field="field"
|
|
:value="value"
|
|
:read-only="true"
|
|
:selected="selected"
|
|
class="active"
|
|
></component>
|
|
</template>
|
|
|
|
<script>
|
|
import gridField from '@baserow/modules/database/mixins/gridField'
|
|
|
|
export default {
|
|
name: 'GridViewFormulaField',
|
|
mixins: [gridField],
|
|
methods: {
|
|
getComponent(field) {
|
|
const formulaType = this.$registry.get('formula_type', field.formula_type)
|
|
return formulaType.getGridViewFieldComponent()
|
|
},
|
|
},
|
|
}
|
|
</script>
|