diff --git a/src/popup/index.js b/src/popup/index.js index 6ae410e67..48c120761 100644 --- a/src/popup/index.js +++ b/src/popup/index.js @@ -1,6 +1,6 @@ // Utils import { Teleport, Transition } from 'vue'; -import { createNamespace, isDef, isFunction } from '../utils'; +import { createNamespace, isDef } from '../utils'; import { on, off, preventDefault } from '../utils/dom/event'; import { getScroller } from '../utils/dom/scroll'; @@ -319,11 +319,9 @@ export default createComponent({ }, render() { - const { teleport } = this; - if (teleport) { - const to = isFunction(teleport) ? teleport() : teleport; + if (this.teleport) { return ( - + {this.genOverlay()} {this.genPopup()}