mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
vue components refactoring
This commit is contained in:
19
resources/js/components/UI/BarChart/BarChart.vue
Normal file
19
resources/js/components/UI/BarChart/BarChart.vue
Normal 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>
|
||||
Reference in New Issue
Block a user