1.0.3 • Published 3 years ago

q-backtop v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

Vue Quasar Backtop

安装

npm install q-backtop

示例

<template>
  <q-backtop />
</template>

<script>
import { QBacktop } from 'q-backtop'
export default {
  components: {
    QBacktop
  }
}
</script>

参数

<q-backtop :reverse="true" position="top-right" :scroll-offset="1000" icon="vertical_align_bottom" text="直达底部" />
参数类型默认说明
scroll-offsetint200滚动偏移量,从该位置开始在页面上显示该组件
reversebooleanfalse反向(直达底部)
rightint20距离边界水平距离
bottomint20距离边界垂直距离
positionstringbottom-right组件位置:top-right,top,right,bottom,left,......
roundbooleantrue是否圆形
iconstringvertical_align_top图标
colorstringprimary颜色
glossybooleanfalse光泽效果
textstring返回顶部鼠标悬停提示

备注

  • 当 reverse 为 true 时,为反向效果,页面将滚动到底部,此时可修改参数:position,scroll-offset,icon,text 实现更好显示效果。
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago