mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Popup): adjust teleport handler
This commit is contained in:
parent
52b187692b
commit
54a8608078
@ -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 (
|
||||
<Teleport to={to}>
|
||||
<Teleport to={this.teleport}>
|
||||
{this.genOverlay()}
|
||||
{this.genPopup()}
|
||||
</Teleport>
|
||||
|
Loading…
x
Reference in New Issue
Block a user