index.vue 485 B

12345678910111213141516171819202122232425
  1. <template>
  2. <div class="mb-12px">
  3. <div class="flex text-[var(--el-text-color-primary)] justify-between items-center">
  4. <span>{{title}}</span>
  5. <slot name="extra"></slot>
  6. </div>
  7. <div class="text-[var(--el-text-color-secondary)] text-12px my-8px">
  8. {{desc}}
  9. </div>
  10. <slot></slot>
  11. </div>
  12. </template>
  13. <script lang="ts" setup>
  14. defineOptions({ name: 'Index' })
  15. defineProps({
  16. title: {
  17. type: String
  18. },
  19. desc: {
  20. type: String
  21. }
  22. })
  23. </script>