mirror of
https://github.com/nocobase/nocobase
synced 2024-11-14 16:13:29 +00:00
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
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:
parent
fadda05424
commit
361558a0d0
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user