vue components refactoring

This commit is contained in:
Čarodej
2022-04-13 16:19:10 +02:00
parent 6a4bfa8bfe
commit 338f8664b7
251 changed files with 1068 additions and 1943 deletions

View File

@@ -0,0 +1,19 @@
<template>
<div
class="grid h-20 grid-flow-col items-end gap-1 sm:h-28 sm:gap-2 lg:flex lg:items-end lg:justify-between lg:gap-0"
>
<!--Data bar-->
<Bar v-for="(item, i) in data" :key="i" :bar="item" />
</div>
</template>
<script>
import Bar from './Bar'
export default {
name: 'BarChart',
props: ['color', 'data'],
components: {
Bar,
},
}
</script>