特易招,招聘小程序
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.

88 lines
1.5 KiB

4 months ago
  1. export default {
  2. props: {
  3. // 是否开启顶部安全区适配
  4. safeAreaInsetTop: {
  5. type: Boolean,
  6. default: true
  7. },
  8. // 固定在顶部时,是否生成一个等高元素,以防止塌陷
  9. placeholder: {
  10. type: Boolean,
  11. default: false
  12. },
  13. // 是否固定在顶部
  14. fixed: {
  15. type: Boolean,
  16. default: true
  17. },
  18. // 是否显示下边框
  19. border: {
  20. type: Boolean,
  21. default: false
  22. },
  23. // 左边的图标
  24. leftIcon: {
  25. type: String,
  26. default: 'arrow-left'
  27. },
  28. // 左边的提示文字
  29. leftText: {
  30. type: String,
  31. default: ''
  32. },
  33. // 左右的提示文字
  34. rightText: {
  35. type: String,
  36. default: ''
  37. },
  38. // 右边的图标
  39. rightIcon: {
  40. type: String,
  41. default: ''
  42. },
  43. // 标题
  44. title: {
  45. type: [String, Number],
  46. default: ''
  47. },
  48. // 背景颜色
  49. bgColor: {
  50. type: String,
  51. default: '#ffffff'
  52. },
  53. imgMode: {
  54. type: String,
  55. default: 'aspectFill'
  56. },
  57. // 标题的宽度
  58. titleWidth: {
  59. type: [String, Number],
  60. default: '400rpx'
  61. },
  62. // 导航栏高度
  63. height: {
  64. type: [String, Number],
  65. default: '44px'
  66. },
  67. // 左侧返回图标的大小
  68. leftIconSize: {
  69. type: [String, Number],
  70. default: 20
  71. },
  72. // 左侧返回图标的颜色
  73. leftIconColor: {
  74. type: String,
  75. default: '#303133'
  76. },
  77. // 点击左侧区域(返回图标),是否自动返回上一页
  78. autoBack: {
  79. type: Boolean,
  80. default: false
  81. },
  82. // 标题的样式,对象或字符串
  83. titleStyle: {
  84. type: [String, Object],
  85. default: ''
  86. },
  87. ...uni.$uv?.props?.navbar
  88. }
  89. }