|
|
@ -220,7 +220,12 @@ const [useProvideViewColumns, useViewColumns] = useInjectionState( |
|
|
|
const filteredFieldList = computed(() => { |
|
|
|
const filteredFieldList = computed(() => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
fields.value?.filter((field: Field) => { |
|
|
|
fields.value?.filter((field: Field) => { |
|
|
|
if (metaColumnById?.value?.[field.fk_column_id!]?.pv) return true |
|
|
|
if ( |
|
|
|
|
|
|
|
metaColumnById?.value?.[field.fk_column_id!]?.pv && |
|
|
|
|
|
|
|
(!filterQuery.value || field.title.toLowerCase().includes(filterQuery.value.toLowerCase())) |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
return true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// hide system columns if not enabled
|
|
|
|
// hide system columns if not enabled
|
|
|
|
if (!showSystemFields.value && isSystemColumn(metaColumnById?.value?.[field.fk_column_id!])) { |
|
|
|
if (!showSystemFields.value && isSystemColumn(metaColumnById?.value?.[field.fk_column_id!])) { |
|
|
|