uni-events-helper-wx
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.

64 lines
1.4 KiB

3 years ago
  1. export default {
  2. props: {
  3. // 是否开启顶部安全区适配
  4. safeAreaInsetTop: {
  5. type: Boolean,
  6. default: uni.$u.props.navbar.safeAreaInsetTop
  7. },
  8. // 固定在顶部时,是否生成一个等高元素,以防止塌陷
  9. placeholder: {
  10. type: Boolean,
  11. default: uni.$u.props.navbar.placeholder
  12. },
  13. // 是否固定在顶部
  14. fixed: {
  15. type: Boolean,
  16. default: uni.$u.props.navbar.fixed
  17. },
  18. // 是否显示下边框
  19. border: {
  20. type: Boolean,
  21. default: uni.$u.props.navbar.border
  22. },
  23. // 左边的图标
  24. leftIcon: {
  25. type: String,
  26. default: uni.$u.props.navbar.leftIcon
  27. },
  28. // 左边的提示文字
  29. leftText: {
  30. type: String,
  31. default: uni.$u.props.navbar.leftText
  32. },
  33. // 左右的提示文字
  34. rightText: {
  35. type: String,
  36. default: uni.$u.props.navbar.rightText
  37. },
  38. // 右边的图标
  39. rightIcon: {
  40. type: String,
  41. default: uni.$u.props.navbar.rightIcon
  42. },
  43. // 标题
  44. title: {
  45. type: [String, Number],
  46. default: uni.$u.props.navbar.title
  47. },
  48. // 背景颜色
  49. bgColor: {
  50. type: String,
  51. default: uni.$u.props.navbar.bgColor
  52. },
  53. // 标题的宽度
  54. titleWidth: {
  55. type: [String, Number],
  56. default: uni.$u.props.navbar.titleWidth
  57. },
  58. // 导航栏高度
  59. height: {
  60. type: [String, Number],
  61. default: uni.$u.props.navbar.height
  62. }
  63. }
  64. }