tachybase_todo/packages/plugins/iframe-block/src/client/IframeBlockPlugin.tsx
SemmyWong 6d1a4425f2
feat: add iframe-block plugin (#1281)
* feat: iframe-block plugin done

* refactor: iframe html filed type changed

* refactor: remove built-in actions in the ACL

* refactor: use built-in resource action

* fix: add iframe-block in built-in plugins

* refactor: remove id collection schema

* fix: fix iframe-block permission

* fix: fix iframe-block permission

* fix: improve code

* fix: src

* fix: bug

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-12-24 16:29:20 +08:00

14 lines
537 B
TypeScript

import { SchemaComponentOptions } from '@nocobase/client';
import React from 'react';
import { Iframe } from './Iframe';
import { IframeBlockInitializer } from './IframeBlockInitializer';
import { IframeBlockInitializerProvider } from './IframeBlockInitializerProvider';
export const IframeBlockPlugin = (props: any) => {
return (
<SchemaComponentOptions components={{ Iframe, IframeBlockInitializer }}>
<IframeBlockInitializerProvider>{props.children}</IframeBlockInitializerProvider>
</SchemaComponentOptions>
);
};