mirror of https://github.com/nocodb/nocodb
Pranav C
2 years ago
2 changed files with 23 additions and 1 deletions
@ -0,0 +1,22 @@
|
||||
<script lang="ts" setup> |
||||
import { Icon as IcIcon } from '@iconify/vue' |
||||
import type { TableType } from 'nocodb-sdk' |
||||
|
||||
const { meta: tableMeta } = defineProps<{ |
||||
meta: TableType |
||||
}>() |
||||
</script> |
||||
|
||||
<template> |
||||
<IcIcon |
||||
v-if="tableMeta.meta?.icon" |
||||
:data-testid="`nc-icon-${tableMeta.meta?.icon}`" |
||||
class="text-xl" |
||||
:icon="tableMeta.meta?.icon" |
||||
></IcIcon> |
||||
|
||||
<MdiEyeCircleOutline v-else-if="tableMeta.meta?.type === 'view'" class="w-5" /> |
||||
<MdiTableLarge v-else class="w-5" /> |
||||
</template> |
||||
|
||||
<style scoped></style> |
Loading…
Reference in new issue