mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 12:06:47 +00:00
fix: designable
This commit is contained in:
parent
fe1600dbc9
commit
28fadf945d
@ -7,12 +7,15 @@ import { useDesignable } from '../..';
|
||||
import { SchemaSettings } from '../../../schema-settings';
|
||||
|
||||
export const PageDesigner = ({ title }) => {
|
||||
const { dn } = useDesignable();
|
||||
const { dn, designable } = useDesignable();
|
||||
const { t } = useTranslation();
|
||||
const field = useField();
|
||||
const fieldSchema = useFieldSchema();
|
||||
const hidePageTitle = fieldSchema['x-component-props']?.hidePageTitle;
|
||||
const disablePageHeader = fieldSchema['x-component-props']?.disablePageHeader;
|
||||
if (!designable) {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<div className={'general-schema-designer'}>
|
||||
<div className={'general-schema-designer-icons'}>
|
||||
@ -108,8 +111,11 @@ export const PageDesigner = ({ title }) => {
|
||||
};
|
||||
|
||||
export const PageTabDesigner = ({ schema }) => {
|
||||
const { dn } = useDesignable();
|
||||
const { dn, designable } = useDesignable();
|
||||
const { t } = useTranslation();
|
||||
if (!designable) {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<div className={'general-schema-designer'}>
|
||||
<div className={'general-schema-designer-icons'}>
|
||||
|
Loading…
Reference in New Issue
Block a user