mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 12:16:53 +00:00
* feat: allow partial column update (GUI) * feat: allow partial column update (backend) * refactor: swagger schema description correction * feat: allow edit from multi field editor * fix: allow meta update in api level * fix: add tooltip and docs link * fix: multi field editor corrections * fix: allow table meta update * fix: allow table meta update * fix: allow column validation update * fix: block adding new option directly from cell * fix: add tooltip for column menu options * refactor: tooltips * test: replace index with count as parameter * fix: corrections * refactor: hint text update
32 lines
1012 B
Vue
32 lines
1012 B
Vue
<script setup lang="ts">
|
|
import LogosMysqlIcon from '~icons/logos/mysql-icon'
|
|
import LogosPostgresql from '~icons/nc-icons/postgresql'
|
|
import VscodeIconsFileTypeSqlite from '~icons/vscode-icons/file-type-sqlite'
|
|
import SimpleIconsMicrosoftsqlserver from '~icons/simple-icons/microsoftsqlserver'
|
|
import LogosSnowflakeIcon from '~icons/logos/snowflake-icon'
|
|
import MdiDatabaseOutline from '~icons/mdi/database-outline'
|
|
|
|
const { sourceType } = defineProps<{ sourceType?: string; color?: string }>()
|
|
|
|
const baseIcon = computed(() => {
|
|
switch (sourceType) {
|
|
case ClientType.MYSQL:
|
|
return LogosMysqlIcon
|
|
case ClientType.PG:
|
|
return LogosPostgresql
|
|
case ClientType.SQLITE:
|
|
return VscodeIconsFileTypeSqlite
|
|
case ClientType.MSSQL:
|
|
return SimpleIconsMicrosoftsqlserver
|
|
case ClientType.SNOWFLAKE:
|
|
return LogosSnowflakeIcon
|
|
default:
|
|
return MdiDatabaseOutline
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<component :is="baseIcon" :style="color ? { color } : {}" />
|
|
</template>
|