Browse Source

feat(gui-v2): add noco icon component

pull/2721/head
braks 2 years ago
parent
commit
a699feb3a3
  1. 14
      packages/nc-gui-v2/components/general/NocoIcon.vue

14
packages/nc-gui-v2/components/general/NocoIcon.vue

@ -0,0 +1,14 @@
<script lang="ts" setup>
interface Props {
width?: number
height?: number
}
const { width = 90, height = 90 } = defineProps<Props>()
</script>
<template>
<div :style="{ left: `calc(50% - ${width / 2}px)`, top: `-${height * 0.6}px` }" class="absolute rounded-lg bg-primary">
<img :width="width" :height="height" alt="NocoDB" src="~/assets/img/icons/512x512-trans.png" />
</div>
</template>
Loading…
Cancel
Save