fix: remove zoom level configuration for map fields in table column (#5457)
Some checks failed
Build docker image / build-and-push (push) Has been cancelled
Build pro image / build-and-push (push) Has been cancelled
Deploy client docs / Build (push) Has been cancelled
E2E / Build (push) Has been cancelled
NocoBase frontEnd test / frontend-test (18) (push) Has been cancelled
E2E / Core and plugins (push) Has been cancelled
E2E / plugin-workflow (push) Has been cancelled
E2E / plugin-workflow-approval (push) Has been cancelled
E2E / plugin-data-source-main (push) Has been cancelled
E2E / Comment on PR (push) Has been cancelled

This commit is contained in:
Katherine 2024-10-18 17:49:37 +08:00 committed by GitHub
parent fadda05424
commit 361558a0d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,6 +26,7 @@ import {
useCollectionManager_deprecated,
useDesignable,
useFormBlockContext,
useColumnSchema,
} from '@nocobase/client';
import _ from 'lodash';
import { useMapTranslation } from '../locale';
@ -71,6 +72,10 @@ export const defaultZoomLevel = {
},
};
},
useVisible() {
const { fieldSchema: tableColumnSchema } = useColumnSchema();
return !tableColumnSchema;
},
};
export const mapBlockSettings = new SchemaSettings({