diff --git a/packages/editor-skeleton/src/components/popup/index.tsx b/packages/editor-skeleton/src/components/popup/index.tsx
index d6cdef2ba..194174d4e 100644
--- a/packages/editor-skeleton/src/components/popup/index.tsx
+++ b/packages/editor-skeleton/src/components/popup/index.tsx
@@ -11,7 +11,10 @@ export class PopupPipe {
private currentId?: string;
- create(props?: object): { send: (content: ReactNode, title: ReactNode) => void; show: (target: Element) => void } {
+ create(props?: object): {
+ send: (content: ReactNode, title: ReactNode) => void;
+ show: (target: Element) => void;
+ } {
let sendContent: ReactNode = null;
let sendTitle: ReactNode = null;
const id = uniqueId('popup');
@@ -60,26 +63,30 @@ export class PopupPipe {
}
}
-export default class PopupService extends Component<{ popupPipe?: PopupPipe; actionKey?: string; safeId?: string }> {
+export default class PopupService extends Component<{
+ popupPipe?: PopupPipe;
+ actionKey?: string;
+ safeId?: string;
+ popupContainer?: string;
+}> {
private popupPipe = this.props.popupPipe || new PopupPipe();
componentWillUnmount() {
this.popupPipe.purge();
}
-
render() {
- const { children, actionKey, safeId } = this.props;
+ const { children, actionKey, safeId, popupContainer } = this.props;
return (