fix:修改API文档
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user