23 lines
531 B
TypeScript
23 lines
531 B
TypeScript
|
import { useFieldSchema } from '@formily/react';
|
||
|
import {
|
||
|
GeneralSchemaDesigner,
|
||
|
SchemaSettings,
|
||
|
useCollection
|
||
|
} from '@nocobase/client';
|
||
|
import React from 'react';
|
||
|
|
||
|
export const HelloDesigner = () => {
|
||
|
const { name, title } = useCollection();
|
||
|
const fieldSchema = useFieldSchema();
|
||
|
return (
|
||
|
<GeneralSchemaDesigner title={title || name}>
|
||
|
<SchemaSettings.Remove
|
||
|
removeParentsIfNoChildren
|
||
|
breakRemoveOn={{
|
||
|
'x-component': 'Grid',
|
||
|
}}
|
||
|
/>
|
||
|
</GeneralSchemaDesigner>
|
||
|
);
|
||
|
};
|