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.
35 lines
704 B
35 lines
704 B
<script lang="ts" setup> |
|
import type { ViewType } from 'nocodb-sdk' |
|
|
|
const props = defineProps<{ |
|
meta: ViewType |
|
ignoreColor?: boolean |
|
}>() |
|
|
|
const viewMeta = toRef(props, 'meta') |
|
</script> |
|
|
|
<template> |
|
<LazyGeneralEmojiPicker |
|
v-if="viewMeta?.meta?.icon" |
|
:data-testid="`nc-emoji-${viewMeta.meta?.icon}`" |
|
size="xsmall" |
|
:emoji="viewMeta.meta?.icon" |
|
readonly |
|
/> |
|
<component |
|
:is="viewIcons[viewMeta.type]?.icon" |
|
v-else-if="viewMeta?.type" |
|
class="nc-view-icon group-hover" |
|
:style="{ |
|
color: !props.ignoreColor ? viewIcons[viewMeta.type]?.color : undefined, |
|
fontWeight: 500, |
|
}" |
|
/> |
|
</template> |
|
|
|
<style> |
|
.nc-view-icon { |
|
font-size: 1.05rem; |
|
} |
|
</style>
|
|
|