Update componen template
This commit is contained in:
Executable
+67
@@ -0,0 +1,67 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue';
|
||||
import { useTheme } from 'vuetify';
|
||||
const theme = useTheme();
|
||||
const primary = theme.current.value.colors.primary;
|
||||
/* Chart */
|
||||
const chartOptions = computed(() => {
|
||||
return {
|
||||
chart: {
|
||||
type: 'area',
|
||||
height: 90,
|
||||
fontFamily: `inherit`,
|
||||
foreColor: '#adb0bb',
|
||||
sparkline: {
|
||||
enabled: true
|
||||
}
|
||||
},
|
||||
colors: [primary],
|
||||
stroke: {
|
||||
curve: 'smooth',
|
||||
width: 2
|
||||
},
|
||||
dataLabels: {
|
||||
enabled: false
|
||||
},
|
||||
legend: {
|
||||
show: false
|
||||
},
|
||||
grid: {
|
||||
show: false
|
||||
},
|
||||
xaxis: {
|
||||
axisBorder: {
|
||||
show: true
|
||||
},
|
||||
axisTicks: {
|
||||
show: false
|
||||
}
|
||||
},
|
||||
tooltip: {
|
||||
theme: 'light'
|
||||
}
|
||||
};
|
||||
});
|
||||
const Chart = {
|
||||
series: [
|
||||
{
|
||||
name: '',
|
||||
data: [0, 3, 1, 2, 8, 1, 5, 1]
|
||||
}
|
||||
]
|
||||
};
|
||||
</script>
|
||||
<template>
|
||||
<v-card elevation="10" >
|
||||
<v-card-item>
|
||||
<div class="d-flex justify-space-between align-end">
|
||||
<div>
|
||||
<v-card-title class="text-h5">2,545 </v-card-title>
|
||||
<v-card-subtitle class="text-subtitle-1 pb-0">Earned</v-card-subtitle>
|
||||
</div>
|
||||
<p class="text-subtitle-1 text-success">+1.20%</p>
|
||||
</div>
|
||||
</v-card-item>
|
||||
<apexchart class="mt-3" type="area" height="90" :options="chartOptions" :series="Chart.series"> </apexchart>
|
||||
</v-card>
|
||||
</template>
|
||||
Reference in New Issue
Block a user