1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-26 05:37:13 +00:00
bramw_baserow/web-frontend/modules/builder/components/elements/ElementsListItem.vue
2023-11-15 06:08:35 +00:00

25 lines
531 B
Vue

<template>
<a class="select__item-link" @click="$emit('click')">
<span class="select__item-name">
<i :class="`${elementType.iconClass} select__item-icon`"></i>
<span class="select__item-name-text">{{ elementType.name }}</span>
</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>