Merge branch 'next' into develop

This commit is contained in:
nocobase[bot] 2025-04-28 09:49:09 +00:00
commit 822d004ab0
2 changed files with 4 additions and 2 deletions

View File

@ -116,7 +116,6 @@ export const FormLinkageRules = withDynamicSchemaProps(
returnScope ??
((options) =>
options.filter((v) => {
console.log(category);
if (category === LinkageRuleCategory.block) {
return !['$nForm', '$nRecord'].includes(v.value);
}

View File

@ -78,7 +78,10 @@ export const useCurrentFormContext = ({ form: _form }: Pick<Props, 'form'> = {})
currentFormCtx: formInstance?.values,
/** 用来判断是否可以显示`当前表单`变量 */
shouldDisplayCurrentForm:
name === 'form' && formInstance && !formInstance.readPretty && !isVariableParsedInOtherContext,
['form', 'filter-form'].includes(name) &&
formInstance &&
!formInstance.readPretty &&
!isVariableParsedInOtherContext,
};
};