mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 00:08:25 +00:00
23 lines
465 B
Vue
23 lines
465 B
Vue
<template functional>
|
|
<component
|
|
:is="$options.methods.getComponent(props.field, parent.$registry)"
|
|
v-bind="data.attrs"
|
|
:read-only="true"
|
|
class="active"
|
|
v-on="listeners"
|
|
></component>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'GridViewFieldFormula',
|
|
methods: {
|
|
getComponent(field, registry) {
|
|
return registry
|
|
.get('formula_type', field.formula_type)
|
|
.getGridViewFieldComponent(field)
|
|
},
|
|
},
|
|
}
|
|
</script>
|