|
|
@ -25,9 +25,13 @@ const { showSystemFields, metaColumnById } = useViewColumns(activeView, meta) |
|
|
|
const options = computed<SelectProps['options']>(() => |
|
|
|
const options = computed<SelectProps['options']>(() => |
|
|
|
meta.value?.columns |
|
|
|
meta.value?.columns |
|
|
|
?.filter((c: ColumnType) => { |
|
|
|
?.filter((c: ColumnType) => { |
|
|
|
if (!showSystemFields.value && isSystemColumn(metaColumnById?.value?.[c.id!])) { |
|
|
|
if (isSystemColumn(metaColumnById?.value?.[c.id!])) { |
|
|
|
|
|
|
|
return ( |
|
|
|
|
|
|
|
/** if the field is used in filter, then show it anyway */ |
|
|
|
|
|
|
|
localValue.value === c.id || |
|
|
|
/** hide system columns if not enabled */ |
|
|
|
/** hide system columns if not enabled */ |
|
|
|
return false |
|
|
|
showSystemFields.value |
|
|
|
|
|
|
|
) |
|
|
|
} else if (c.uidt === UITypes.QrCode || c.uidt === UITypes.Barcode || c.uidt === UITypes.ID) { |
|
|
|
} else if (c.uidt === UITypes.QrCode || c.uidt === UITypes.Barcode || c.uidt === UITypes.ID) { |
|
|
|
return false |
|
|
|
return false |
|
|
|
} else if (isSort) { |
|
|
|
} else if (isSort) { |
|
|
|