From 54a8608078ebb51347af9361e1936d119c7b5fb2 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Fri, 21 Aug 2020 11:03:21 +0800 Subject: [PATCH] fix(Popup): adjust teleport handler --- src/popup/index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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()}