mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-27 09:41:58 +08:00
55 lines
1.5 KiB
JavaScript
55 lines
1.5 KiB
JavaScript
|
export default {
|
|||
|
props: {
|
|||
|
// 返回顶部的形状,circle-圆形,square-方形
|
|||
|
mode: {
|
|||
|
type: String,
|
|||
|
default: uni.$u.props.backtop.mode
|
|||
|
},
|
|||
|
// 自定义图标
|
|||
|
icon: {
|
|||
|
type: String,
|
|||
|
default: uni.$u.props.backtop.icon
|
|||
|
},
|
|||
|
// 提示文字
|
|||
|
text: {
|
|||
|
type: String,
|
|||
|
default: uni.$u.props.backtop.text
|
|||
|
},
|
|||
|
// 返回顶部滚动时间
|
|||
|
duration: {
|
|||
|
type: [String, Number],
|
|||
|
default: uni.$u.props.backtop.duration
|
|||
|
},
|
|||
|
// 滚动距离
|
|||
|
scrollTop: {
|
|||
|
type: [String, Number],
|
|||
|
default: uni.$u.props.backtop.scrollTop
|
|||
|
},
|
|||
|
// 距离顶部多少距离显示,单位px
|
|||
|
top: {
|
|||
|
type: [String, Number],
|
|||
|
default: uni.$u.props.backtop.top
|
|||
|
},
|
|||
|
// 返回顶部按钮到底部的距离,单位px
|
|||
|
bottom: {
|
|||
|
type: [String, Number],
|
|||
|
default: uni.$u.props.backtop.bottom
|
|||
|
},
|
|||
|
// 返回顶部按钮到右边的距离,单位px
|
|||
|
right: {
|
|||
|
type: [String, Number],
|
|||
|
default: uni.$u.props.backtop.right
|
|||
|
},
|
|||
|
// 层级
|
|||
|
zIndex: {
|
|||
|
type: [String, Number],
|
|||
|
default: uni.$u.props.backtop.zIndex
|
|||
|
},
|
|||
|
// 图标的样式,对象形式
|
|||
|
iconStyle: {
|
|||
|
type: Object,
|
|||
|
default: uni.$u.props.backtop.iconStyle
|
|||
|
}
|
|||
|
}
|
|||
|
}
|