fix: 修改筛选页面自定义筛选不能用 (#698) fix #699

Reviewed-on: daoyoucloud/tachycode#698
Co-authored-by: wjh <wwwjh0710@163.com>
Co-committed-by: wjh <wwwjh0710@163.com>
This commit is contained in:
wjh 2024-04-12 17:49:11 +08:00 committed by sealday
parent 7531ed6f74
commit da8b4d0b45

View File

@ -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 = () => {