From 52a95526c0ddb5373e2744d65322e9e40540fb45 Mon Sep 17 00:00:00 2001 From: codedance Date: Wed, 24 Nov 2021 22:18:09 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E5=86=85=E9=83=A8backtop=E7=BB=84=E4=BB=B6=E9=9A=8F=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=9D=A1=E7=A7=BB=E5=8A=A8=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/devui-vue/devui/back-top/src/hooks/use-target.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/devui-vue/devui/back-top/src/hooks/use-target.ts b/packages/devui-vue/devui/back-top/src/hooks/use-target.ts index 220e770b..f0a1139b 100644 --- a/packages/devui-vue/devui/back-top/src/hooks/use-target.ts +++ b/packages/devui-vue/devui/back-top/src/hooks/use-target.ts @@ -8,7 +8,7 @@ export default function (props: BackTopProps, backTopRef) { if (!targetEl) throw new Error(`props ${target} is not existed`) // 设置定位 - targetEl.style.position = 'relative' + targetEl.parentElement.style.position = 'relative' backTopRef.value.style.position = 'absolute' return targetEl } -- Gitee From 5e90ee9dd4e4e265030e69fe07b984e91033348a Mon Sep 17 00:00:00 2001 From: codedance Date: Wed, 24 Nov 2021 22:53:06 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=AE=8C=E6=88=90=E8=BF=9B=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/devui-vue/devui/back-top/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/devui-vue/devui/back-top/index.ts b/packages/devui-vue/devui/back-top/index.ts index 3a5f745c..cdc6e7eb 100644 --- a/packages/devui-vue/devui/back-top/index.ts +++ b/packages/devui-vue/devui/back-top/index.ts @@ -10,7 +10,7 @@ export { BackTop } export default { title: 'BackTop 回到顶部', category: '导航', - status: '10%', // TODO: 组件若开发完成则填入"已完成",并删除该注释 + status: '60%', // TODO: 组件若开发完成则填入"已完成",并删除该注释 install(app: App): void { app.use(BackTop as any) } -- Gitee