26 lines
509 B
Vue
26 lines
509 B
Vue
<script lang="ts" setup>
|
|
import type { PropType } from 'vue';
|
|
|
|
const props = defineProps({
|
|
blocks: { type: Array as PropType<{height:string, color: string}[]> },
|
|
});
|
|
|
|
</script>
|
|
<template>
|
|
<div class="flex gap-0.5">
|
|
<div class="cursor-default" v-for="(item, index) in blocks" :key="index">
|
|
<div class="tooltip"
|
|
:data-tip="item.height"
|
|
:class="item.color"
|
|
style="width: 3px;"
|
|
>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style>
|
|
|
|
</style>
|