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.

84 lines
1.8 KiB

9 months 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. leftIconSize: {
  65. type: [String, Number],
  66. default: uni.$u.props.navbar.leftIconSize
  67. },
  68. // 左侧返回图标的颜色
  69. leftIconColor: {
  70. type: String,
  71. default: uni.$u.props.navbar.leftIconColor
  72. },
  73. // 点击左侧区域(返回图标),是否自动返回上一页
  74. autoBack: {
  75. type: Boolean,
  76. default: uni.$u.props.navbar.autoBack
  77. },
  78. // 标题的样式,对象或字符串
  79. titleStyle: {
  80. type: [String, Object],
  81. default: uni.$u.props.navbar.titleStyle
  82. }
  83. }
  84. }