From da8b4d0b45796989b435c594b2bf980a7ec9980c Mon Sep 17 00:00:00 2001 From: wjh Date: Fri, 12 Apr 2024 17:49:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=87=AA=E5=AE=9A=E4=B9=89=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E7=94=A8=20(#698)=20fix=20#699?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachycode/pulls/698 Co-authored-by: wjh Co-committed-by: wjh --- .../@hera/plugin-core/src/client/schema-settings/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-settings/index.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-settings/index.tsx index 05b8e05a3..1fabdf595 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-settings/index.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-settings/index.tsx @@ -242,7 +242,10 @@ export const usePaginationVisible = () => { export const useSetFilterScopeVisible = () => { const fieldSchema = useFieldSchema(); - return fieldSchema['x-component-props']?.useProps === '{{ useFilterBlockActionProps }}'; + return ( + fieldSchema['x-component-props']?.useProps === '{{ useFilterBlockActionProps }}' || + fieldSchema['x-use-component-props'] === 'useFilterBlockActionProps' + ); }; export const EditTitle = () => {