mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
603 B
27 lines
603 B
2 years ago
|
<script lang="ts" setup>
|
||
|
import { Icon as IcIcon } from '@iconify/vue'
|
||
|
import type { TableType } from 'nocodb-sdk'
|
||
|
import { viewIcons } from '#imports'
|
||
|
|
||
|
const { meta: viewMeta } = defineProps<{
|
||
|
meta: TableType
|
||
|
}>()
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<IcIcon
|
||
|
v-if="viewMeta?.meta?.icon"
|
||
|
:data-testid="`nc-icon-${viewMeta?.meta?.icon}`"
|
||
|
class="text-[16px]"
|
||
|
:icon="viewMeta?.meta?.icon"
|
||
|
></IcIcon>
|
||
|
<component
|
||
|
:is="viewIcons[viewMeta.type]?.icon"
|
||
|
v-else
|
||
|
class="nc-view-icon group-hover"
|
||
|
:style="{ color: viewIcons[viewMeta.type]?.color }"
|
||
|
/>
|
||
|
</template>
|
||
|
|
||
|
<style scoped></style>
|