fix(tour): target position (#6629)

pull/6658/head
果冻橙 2023-06-15 13:23:04 +08:00 committed by GitHub
parent 308c30c738
commit 6861a77d29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -156,8 +156,8 @@ const Tour = defineComponent({
const mergedMaskStyle = typeof mergedMask.value === 'boolean' ? undefined : mergedMask.value;
// when targetElement is not exist, use body as triggerDOMNode
const getTriggerDOMNode = node => {
return node || targetElement.value || document.body;
const getTriggerDOMNode = () => {
return targetElement.value || document.body;
};
const getPopupElement = () => (