navbar.vue 671 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <u-navbar
  3. :back-icon-name="backIconName"
  4. :title="title"
  5. :custom-back="backFunction"
  6. :back-icon-color="$appTheme.appThemeTextBlackColor"
  7. :title-color="$appTheme.appThemeTextBlackColor"
  8. :is-back="isback"
  9. :back-icon-size="32"
  10. :border-bottom="false"
  11. ></u-navbar>
  12. </template>
  13. <script>
  14. export default {
  15. name: 'navbar',
  16. props: {
  17. // 返回图标名称
  18. backIconName: {
  19. type: String,
  20. default: 'arrow-leftward'
  21. },
  22. // 标题
  23. title: {
  24. type: String,
  25. default: ''
  26. },
  27. // 自定义返回
  28. backFunction: {
  29. type: Function,
  30. default: null
  31. },
  32. isback:{
  33. type: Boolean,
  34. default: true
  35. },
  36. }
  37. };
  38. </script>
  39. <style></style>