line.vue 538 B

123456789101112131415
  1. <template>
  2. <div class="flex justify-between w-full my-[1px] text-xs text-center font-digital-dismay cursor-default select-none">
  3. <div v-for="part in parts"
  4. class="flex-1 h-[16px] border-[2px] leading-none border-black hover:text-zinc-400 transition-all rounded"
  5. :class="[highLight === part ? 'bg-zinc-700 text-zinc-700' : 'bg-zinc-900 text-zinc-900']">
  6. {{ part }}
  7. </div>
  8. </div>
  9. </template>
  10. <script setup>
  11. const props = defineProps({
  12. parts: 30,
  13. highLight: 0
  14. })
  15. </script>