You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.5 KiB

9 months ago
  1. export default {
  2. props: {
  3. // 返回顶部的形状,circle-圆形,square-方形
  4. mode: {
  5. type: String,
  6. default: uni.$u.props.backtop.mode
  7. },
  8. // 自定义图标
  9. icon: {
  10. type: String,
  11. default: uni.$u.props.backtop.icon
  12. },
  13. // 提示文字
  14. text: {
  15. type: String,
  16. default: uni.$u.props.backtop.text
  17. },
  18. // 返回顶部滚动时间
  19. duration: {
  20. type: [String, Number],
  21. default: uni.$u.props.backtop.duration
  22. },
  23. // 滚动距离
  24. scrollTop: {
  25. type: [String, Number],
  26. default: uni.$u.props.backtop.scrollTop
  27. },
  28. // 距离顶部多少距离显示,单位px
  29. top: {
  30. type: [String, Number],
  31. default: uni.$u.props.backtop.top
  32. },
  33. // 返回顶部按钮到底部的距离,单位px
  34. bottom: {
  35. type: [String, Number],
  36. default: uni.$u.props.backtop.bottom
  37. },
  38. // 返回顶部按钮到右边的距离,单位px
  39. right: {
  40. type: [String, Number],
  41. default: uni.$u.props.backtop.right
  42. },
  43. // 层级
  44. zIndex: {
  45. type: [String, Number],
  46. default: uni.$u.props.backtop.zIndex
  47. },
  48. // 图标的样式,对象形式
  49. iconStyle: {
  50. type: Object,
  51. default: uni.$u.props.backtop.iconStyle
  52. }
  53. }
  54. }