HeadManage.vue 745 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <div class="top-common">
  3. <div class="common-left">
  4. <div class="title">{{ title }}</div>
  5. <div class="tips">{{ tips }}</div>
  6. </div>
  7. <div class="common-right">
  8. <slot name="setting"></slot>
  9. </div>
  10. </div>
  11. </template>
  12. <script setup>
  13. const props = defineProps({
  14. title: {
  15. required: true,
  16. type: String
  17. },
  18. tips: {
  19. typeof: String
  20. }
  21. });
  22. </script>
  23. <style scoped>
  24. .top-common {
  25. display: flex;
  26. flex-direction: row;
  27. justify-content: space-between;
  28. height: 80px;
  29. }
  30. .common-left {
  31. display: flex;
  32. flex-direction: column;
  33. gap: 10px;
  34. }
  35. .title {
  36. font-family: 'pingfang sc';
  37. font-size: 18px;
  38. font-weight: 600;
  39. }
  40. .tips {
  41. font-size: 12px;
  42. color: var(color-text-3);
  43. }
  44. </style>