* 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>
14 lines
537 B
TypeScript
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>
|
|
);
|
|
};
|