Browse Source

Merge pull request #2950 from nocodb/feat/gui-v2-specific-db-type

feat(gui-v2): SpecificDBType Cell
pull/2982/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
07fdb74d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/nc-gui-v2/components/smartsheet-header/VirtualCellIcon.vue
  2. 1
      packages/nocodb-sdk/src/lib/UITypes.ts

3
packages/nc-gui-v2/components/smartsheet-header/VirtualCellIcon.vue

@ -9,6 +9,7 @@ import MMIcon from '~icons/mdi/table-network'
import FormulaIcon from '~icons/mdi/math-integral' import FormulaIcon from '~icons/mdi/math-integral'
import RollupIcon from '~icons/mdi/movie-roll' import RollupIcon from '~icons/mdi/movie-roll'
import CountIcon from '~icons/mdi/counter' import CountIcon from '~icons/mdi/counter'
import SpecificDBTypeIcon from '~icons/mdi/database-settings'
const { columnMeta } = defineProps<{ columnMeta?: ColumnType }>() const { columnMeta } = defineProps<{ columnMeta?: ColumnType }>()
@ -26,6 +27,8 @@ const icon = computed(() => {
return BTIcon return BTIcon
} }
break break
case UITypes.SpecificDBType:
return SpecificDBTypeIcon
case UITypes.Formula: case UITypes.Formula:
return FormulaIcon return FormulaIcon
case UITypes.Lookup: case UITypes.Lookup:

1
packages/nocodb-sdk/src/lib/UITypes.ts

@ -46,6 +46,7 @@ export function isVirtualCol(
| ColumnType | ColumnType
) { ) {
return [ return [
UITypes.SpecificDBType,
UITypes.LinkToAnotherRecord, UITypes.LinkToAnotherRecord,
UITypes.Formula, UITypes.Formula,
UITypes.Rollup, UITypes.Rollup,

Loading…
Cancel
Save