titleContent.vue 767 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <div class="title-content">
  3. <h2 class="title">{{ title }}</h2>
  4. <div class="title-sub">{{ titleSub }}</div>
  5. </div>
  6. </template>
  7. <script>
  8. export default {
  9. name: 'TitleContent',
  10. props: {
  11. title: {
  12. type: String,
  13. default: ''
  14. },
  15. titleSub: {
  16. type: String,
  17. default: ''
  18. }
  19. }
  20. }
  21. </script>
  22. <style lang="scss">
  23. .title-content {
  24. .title {
  25. font-size: 34px;
  26. font-family: PingFangSC-Medium, PingFang SC;
  27. font-weight: 600;
  28. color: #262626;
  29. }
  30. .title-sub {
  31. text-align: center;
  32. margin: 10px auto 0;
  33. font-size: 16px;
  34. font-family: PingFangSC-Regular, PingFang SC;
  35. font-weight: 400;
  36. color: #646A7E;
  37. line-height: 26px;
  38. }
  39. }
  40. </style>