|
|
@ -2,8 +2,8 @@ |
|
|
|
import type { Ref } from 'vue' |
|
|
|
import type { Ref } from 'vue' |
|
|
|
import type { ListItem as AntListItem } from 'ant-design-vue' |
|
|
|
import type { ListItem as AntListItem } from 'ant-design-vue' |
|
|
|
import jsep from 'jsep' |
|
|
|
import jsep from 'jsep' |
|
|
|
import type { ColumnType } from 'nocodb-sdk' |
|
|
|
import type { ColumnType, FormulaType } from 'nocodb-sdk' |
|
|
|
import { UITypes, jsepCurlyHook } from 'nocodb-sdk' |
|
|
|
import { UITypes, jsepCurlyHook, substituteColumnIdWithAliasInFormula } from 'nocodb-sdk' |
|
|
|
import { |
|
|
|
import { |
|
|
|
MetaInj, |
|
|
|
MetaInj, |
|
|
|
NcAutocompleteTree, |
|
|
|
NcAutocompleteTree, |
|
|
@ -604,7 +604,11 @@ function scrollToSelectedOption() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// set default value |
|
|
|
// set default value |
|
|
|
vModel.value.formula_raw = (column?.value?.colOptions as Record<string, any>)?.formula_raw || '' |
|
|
|
vModel.value.formula_raw = substituteColumnIdWithAliasInFormula( |
|
|
|
|
|
|
|
(column.value?.colOptions as FormulaType)?.formula, |
|
|
|
|
|
|
|
meta?.value?.columns as ColumnType[], |
|
|
|
|
|
|
|
(column.value?.colOptions as any)?.formula_raw, |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
// set additional validations |
|
|
|
// set additional validations |
|
|
|
setAdditionalValidations({ |
|
|
|
setAdditionalValidations({ |
|
|
|