敢为人鲜小程序前端代码仓库
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.

40 lines
848 B

5 months ago
  1. export default {
  2. props: {
  3. // 吸顶容器到顶部某个距离的时候,进行吸顶,在H5平台,NavigationBar为44px
  4. offsetTop: {
  5. type: [String, Number],
  6. default: 0
  7. },
  8. // 自定义导航栏的高度
  9. customNavHeight: {
  10. type: [String, Number],
  11. // #ifdef H5
  12. // H5端的导航栏属于“自定义”导航栏的范畴,因为它是非原生的,与普通元素一致
  13. default: 44,
  14. // #endif
  15. // #ifndef H5
  16. default: 0
  17. // #endif
  18. },
  19. // 是否禁用吸顶功能
  20. disabled: {
  21. type: Boolean,
  22. default: false
  23. },
  24. // 吸顶区域的背景颜色
  25. bgColor: {
  26. type: String,
  27. default: 'transparent'
  28. },
  29. // z-index值
  30. zIndex: {
  31. type: [String, Number],
  32. default: ''
  33. },
  34. // 列表中的索引值
  35. index: {
  36. type: [String, Number],
  37. default: ''
  38. },
  39. ...uni.$uv?.props?.sticky
  40. }
  41. }