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.
29 lines
818 B
29 lines
818 B
2 years ago
|
<script setup lang="ts">
|
||
|
import LogosMysql from '~icons/logos/mysql'
|
||
|
import LogosPostgresql from '~icons/logos/postgresql'
|
||
|
import VscodeIconsFileTypeSqlite from '~icons/vscode-icons/file-type-sqlite'
|
||
|
import SimpleIconsMicrosoftsqlserver from '~icons/simple-icons/microsoftsqlserver'
|
||
|
import MdiDatabaseOutline from '~icons/mdi/database-outline'
|
||
|
|
||
|
const { baseType } = defineProps<{ baseType?: string }>()
|
||
|
|
||
|
const baseIcon = computed(() => {
|
||
|
switch (baseType) {
|
||
|
case ClientType.MYSQL:
|
||
|
return LogosMysql
|
||
|
case ClientType.PG:
|
||
|
return LogosPostgresql
|
||
|
case ClientType.SQLITE:
|
||
|
return VscodeIconsFileTypeSqlite
|
||
|
case ClientType.MSSQL:
|
||
|
return SimpleIconsMicrosoftsqlserver
|
||
|
default:
|
||
|
return MdiDatabaseOutline
|
||
|
}
|
||
|
})
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<component :is="baseIcon" />
|
||
|
</template>
|