f9f8dc78f4
* feat: dynamic import plugin client * refactor: pm * chore: improve cli * feat: improve code * feat: update dependences * feat: hello plugin * fix: plugin.enabled * fix: test error * feat: improve code * feat: pm command * feat: add samples * fix: redirect * feat: transitions * feat: bookmark * feat: add pm script
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>
|
|
);
|
|
};
|