header.vue 692 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <div class="header" :style="{backgroundImage: 'url(' + bgImage + ')' }" >
  3. {{ title }}
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. }
  11. },
  12. props: {
  13. bgImage: {
  14. type: String,
  15. default: ''
  16. },
  17. title: {
  18. type: String,
  19. default: ''
  20. }
  21. },
  22. created() {
  23. },
  24. methods: {
  25. }
  26. }
  27. </script>
  28. <style lang="scss" scoped>
  29. @import "~static/common/style.sass";
  30. .header {
  31. display: flex;
  32. justify-content: center;
  33. align-items: center;
  34. height: 885px;
  35. font-size:64px;
  36. font-family:PingFangSC-Medium,PingFang SC;
  37. font-weight:500;
  38. color:#ffffff;
  39. }
  40. </style>