Advertisement
Guest User

header.vue

a guest
Aug 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. <template>
  2. <GridLayout rows="auto" columns="75,*,75" id="header">
  3. <!-- <FlexboxLayout class="btn menu">
  4. <Image src="~/assets/icons/arrow.png" class="icon" v-if="canBack == true"
  5. @tap="$navigateBack" />
  6. <Image src="~/assets/icons/Menu-Red.png" class="icon" v-else-if="secondary == false" />
  7. <Image src="~/assets/icons/Menu-White.png" class="icon" v-else />
  8. </FlexboxLayout>
  9. <FlexboxLayout>
  10. <Image src="~/assets/icons/johndoe.jpg" class="icon" />
  11. <Label text="Daftar Approval" alignSelf="center" />
  12. </FlexboxLayout> -->
  13. <Image col="0" row="0" src="~/assets/icons/arrow.png" class="icon"
  14. v-if="canBack == true" @tap="$navigateBack" />
  15. <Image col="0" row="0" src="~/assets/icons/Menu-Red.png"
  16. v-else-if="secondary == false" stretch="aspectFit" width="24" />
  17. <Label col="1" row="0" text="Daftar Approval" horizontalAlignment="center" />
  18. </GridLayout>
  19. </template>
  20.  
  21. <script>
  22. export default {
  23. props: {
  24. secondary: {
  25. type: Boolean,
  26. default: false
  27. },
  28. canBack: {
  29. type: Boolean
  30. }
  31. },
  32.  
  33. data() {
  34. return {};
  35. }
  36. };
  37. </script>
  38.  
  39. <style scoped>
  40. #header {
  41. padding: 0;
  42. }
  43.  
  44. #header .btn {
  45.  
  46. margin: 0;
  47. padding: 0;
  48. justify-content: center;
  49. align-items: center;
  50. }
  51.  
  52. #header .btn .icon {
  53. padding: 0;
  54. margin: 0;
  55. }
  56.  
  57. #header .btn.pp {
  58. height: 100%;
  59. }
  60.  
  61. #header .btn.menu .icon {
  62. height: 60%;
  63. }
  64.  
  65. #header .btn.pp .icon {
  66. border: 2px solid #ffffff;
  67. border-radius: 100%;
  68. }
  69. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement