fix:修改API文档

This commit is contained in:
sight
2021-12-20 16:21:36 +08:00
parent f506ebcf30
commit 4e899f25e0
2 changed files with 5 additions and 6 deletions

View File

@@ -97,7 +97,6 @@ const getScrollTarget = () => {
if (props.position === 'absolute') {
if (!targetElement.parentElement) throw new Error(`target parent element is not existed: ${props.target}`);
targetElement.parentElement.style.position = 'relative';
console.log(backtopRef.value);
if (!backtopRef.value) throw new Error(`backtop component ref is null: ${props.target}`);
backtopRef.value.style.position = props.position;
}