navbar.vue 981 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <u-navbar
  3. :back-icon-name="backIconName"
  4. :title="title"
  5. :custom-back="backFunction"
  6. :back-icon-color="backIconColor"
  7. :title-color="titleColor"
  8. :title-size="titleSize"
  9. :is-back="isback"
  10. :back-icon-size="36"
  11. :border-bottom="false"
  12. :background="{background: background}"
  13. ></u-navbar>
  14. </template>
  15. <script>
  16. export default {
  17. name: 'navbar',
  18. props: {
  19. // 返回图标名称
  20. backIconName: {
  21. type: String,
  22. default: 'arrow-left'
  23. },
  24. titleSize: {
  25. type: Number,
  26. default: 32
  27. },
  28. // 标题
  29. title: {
  30. type: String,
  31. default: ''
  32. },
  33. titleColor: {
  34. type: String,
  35. default: '$appTheme.appThemeTextBlackColor'
  36. },
  37. backIconColor: {
  38. type: String,
  39. default: '$appTheme.appThemeTextBlackColor'
  40. },
  41. // 自定义返回
  42. backFunction: {
  43. type: Function,
  44. default: null
  45. },
  46. isback:{
  47. type: Boolean,
  48. default: true
  49. },
  50. background: {
  51. type: String,
  52. default: 'transparent'
  53. }
  54. }
  55. };
  56. </script>
  57. <style></style>