Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

包已安装,也在入口文件引入了,页面看不到按钮 #1

Open
ghost opened this issue Jul 20, 2018 · 4 comments
Open

包已安装,也在入口文件引入了,页面看不到按钮 #1

ghost opened this issue Jul 20, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Jul 20, 2018

包已安装,也在入口文件引入了,import VmBackTop from 'vue-back-top' 以及Vue.component(VmBackTop.name, VmBackTop) ,然后在组件内使用了

<vm-back-top :height="400" :bottom="100" :duration="1000" :timing="'ease'" >
                <div class="top">返回顶端</div>
            </vm-back-top>

但还是没效果,查看元素发现这个元素已在,但是拖动滚动条,按钮无法出现,是不是还需要其他依赖?

@Uzty
Copy link
Member

Uzty commented Jul 21, 2018

元素的vm-back-top-show这个类名出不来吗,不需要其它依赖啊,看看是不是其他样式还是其他元素影响了

@sallenhandong
Copy link

同上 显示不出来。检查了 布局,始终显示不出来按钮

@Uzty
Copy link
Member

Uzty commented Aug 20, 2018

可以看一下是不是被别的层级高的元素盖住了,还有这个组件仅支持window的滚动,如果是盒子内部滚动是触发不了的

@sallenhandong
Copy link

嗯 解决了,之前嵌套太多,滚动有些问题,刚入前端不久,😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants