mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 16:28:31 +00:00
28 lines
673 B
Vue
28 lines
673 B
Vue
<template functional>
|
|
<div :class="[data.staticClass, data.class]">
|
|
<component
|
|
:is="$options.methods.getComponent(props.field, parent.$registry)"
|
|
v-for="(item, index) in props.value || []"
|
|
:key="index"
|
|
:field="props.field"
|
|
:value="item && item.value"
|
|
:selected="props.selected"
|
|
></component>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'FunctionalFormulaArrayItems',
|
|
methods: {
|
|
getComponent(field, $registry) {
|
|
const formulaType = $registry.get(
|
|
'formula_type',
|
|
field.array_formula_type
|
|
)
|
|
return formulaType.getFunctionalGridViewFieldArrayComponent()
|
|
},
|
|
},
|
|
}
|
|
</script>
|