mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix: field linkage rules in filter form block missing 'current form' variable (#6794)
This commit is contained in:
parent
19225ab829
commit
f964d25bfa
@ -116,7 +116,6 @@ export const FormLinkageRules = withDynamicSchemaProps(
|
|||||||
returnScope ??
|
returnScope ??
|
||||||
((options) =>
|
((options) =>
|
||||||
options.filter((v) => {
|
options.filter((v) => {
|
||||||
console.log(category);
|
|
||||||
if (category === LinkageRuleCategory.block) {
|
if (category === LinkageRuleCategory.block) {
|
||||||
return !['$nForm', '$nRecord'].includes(v.value);
|
return !['$nForm', '$nRecord'].includes(v.value);
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,10 @@ export const useCurrentFormContext = ({ form: _form }: Pick<Props, 'form'> = {})
|
|||||||
currentFormCtx: formInstance?.values,
|
currentFormCtx: formInstance?.values,
|
||||||
/** 用来判断是否可以显示`当前表单`变量 */
|
/** 用来判断是否可以显示`当前表单`变量 */
|
||||||
shouldDisplayCurrentForm:
|
shouldDisplayCurrentForm:
|
||||||
name === 'form' && formInstance && !formInstance.readPretty && !isVariableParsedInOtherContext,
|
['form', 'filter-form'].includes(name) &&
|
||||||
|
formInstance &&
|
||||||
|
!formInstance.readPretty &&
|
||||||
|
!isVariableParsedInOtherContext,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user