props.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. "use strict";
  2. const uni_modules_uviewPlus_libs_config_props = require("../../libs/config/props.js");
  3. const props = {
  4. props: {
  5. // 吸顶容器到顶部某个距离的时候,进行吸顶,在H5平台,NavigationBar为44px
  6. offsetTop: {
  7. type: [String, Number],
  8. default: () => uni_modules_uviewPlus_libs_config_props.defProps.sticky.offsetTop
  9. },
  10. // 自定义导航栏的高度
  11. customNavHeight: {
  12. type: [String, Number],
  13. default: () => uni_modules_uviewPlus_libs_config_props.defProps.sticky.customNavHeight
  14. },
  15. // 是否开启吸顶功能
  16. disabled: {
  17. type: Boolean,
  18. default: () => uni_modules_uviewPlus_libs_config_props.defProps.sticky.disabled
  19. },
  20. // 吸顶区域的背景颜色
  21. bgColor: {
  22. type: String,
  23. default: () => uni_modules_uviewPlus_libs_config_props.defProps.sticky.bgColor
  24. },
  25. // z-index值
  26. zIndex: {
  27. type: [String, Number],
  28. default: () => uni_modules_uviewPlus_libs_config_props.defProps.sticky.zIndex
  29. },
  30. // 列表中的索引值
  31. index: {
  32. type: [String, Number],
  33. default: () => uni_modules_uviewPlus_libs_config_props.defProps.sticky.index
  34. }
  35. }
  36. };
  37. exports.props = props;