@ -1,7 +1,7 @@
< script setup lang = "ts" >
< script setup lang = "ts" >
import type { SelectProps } from 'ant-design-vue'
import type { SelectProps } from 'ant-design-vue'
import type { ColumnType , LinkToAnotherRecordType } from 'nocodb-sdk'
import type { ColumnType , LinkToAnotherRecordType } from 'nocodb-sdk'
import { RelationTypes , UITypes , isCreatedOrLastModifiedBy Col , isLinksOrLTAR , isSystemColumn , isVirtualCol } from 'nocodb-sdk'
import { RelationTypes , UITypes , isHidden Col , isLinksOrLTAR , isSystemColumn , isVirtualCol } from 'nocodb-sdk'
import { MetaInj , computed , inject , ref , resolveComponent , useViewColumnsOrThrow } from '#imports'
import { MetaInj , computed , inject , ref , resolveComponent , useViewColumnsOrThrow } from '#imports'
const { modelValue , isSort , allowEmpty , ... restProps } = defineProps < {
const { modelValue , isSort , allowEmpty , ... restProps } = defineProps < {
@ -28,8 +28,8 @@ const options = computed<SelectProps['options']>(() =>
(
(
customColumns . value ? . filter ( ( c : ColumnType ) => {
customColumns . value ? . filter ( ( c : ColumnType ) => {
if ( isSystemColumn ( metaColumnById ? . value ? . [ c . id ! ] ) ) {
if ( isSystemColumn ( metaColumnById ? . value ? . [ c . id ! ] ) ) {
if ( isCreatedOrLastModifiedBy Col ( c ) ) {
if ( isHidden Col ( c ) ) {
/** ignore created by and last modified by system field */
/** ignore mm relation column, created by and last modified by system field */
return false
return false
}
}
}
}
@ -40,8 +40,8 @@ const options = computed<SelectProps['options']>(() =>
return true
return true
}
}
if ( isSystemColumn ( metaColumnById ? . value ? . [ c . id ! ] ) ) {
if ( isSystemColumn ( metaColumnById ? . value ? . [ c . id ! ] ) ) {
if ( isCreatedOrLastModifiedBy Col ( c ) ) {
if ( isHidden Col ( c ) ) {
/** ignore created by and last modified by system field */
/** ignore mm relation column, created by and last modified by system field */
return false
return false
}
}