element-ui 回到顶部组件el-backtop
element
A Vue.js 2.0 UI Toolkit for Web
项目地址:https://gitcode.com/gh_mirrors/eleme/element
免费下载资源
·
参考:
1,https://blog.csdn.net/weixin_42598901/article/details/99674145
2,https://www.cnblogs.com/rogerwu/p/9543563.html
3,https://blog.csdn.net/qq_36070288/article/details/84765139
4,https://www.cnblogs.com/chendada/p/11238746.html
5,https://blog.csdn.net/qq348843576/article/details/103261602
三行代码就足够。如果报错,就在headContainer类的样式中加上这个2个属性:height: 100vh;overflow-x: hidden;
target要指向触发滚动的对象
<el-backtop target=".headContainer">
<i class="el-icon-caret-top"></i>
</el-backtop>
效果图:
GitHub 加速计划 / eleme / element
54.07 K
14.63 K
下载
A Vue.js 2.0 UI Toolkit for Web
最近提交(Master分支:3 个月前 )
c345bb45
7 个月前
a07f3a59
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update table.md
* Update transition.md
* Update popover.md 7 个月前
更多推荐
已为社区贡献37条内容
所有评论(0)