1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-26 21:54:40 +00:00
bramw_baserow/web-frontend/modules/builder/components/elements/ElementsListItem.vue

25 lines
494 B
Vue

<template>
<a class="select__item-link" @click="$emit('click')">
<span class="select__item-name">
<i :class="`fas fa-${elementType.iconClass} select__item-icon`"></i>
{{ elementType.name }}
</span>
</a>
</template>
<script>
export default {
name: 'ElementsListItem',
props: {
element: {
type: Object,
required: true,
},
},
computed: {
elementType() {
return this.$registry.get('element', this.element.type)
},
},
}
</script>