Skip to content

Commit

Permalink
feat(nuxt-admin): add metric action
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Feb 25, 2023
1 parent 2161e7c commit f338d87
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions starter/nuxt-admin/components/Metric/Item.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script setup lang="ts">
import {VBtn} from '@gits-id/button';
interface Props {
title: string;
value: number;
Expand All @@ -8,7 +10,7 @@ interface Props {
categories?: string[];
}
const props = withDefaults(defineProps<Props>(), {
withDefaults(defineProps<Props>(), {
categories: () => ['Dec', 'Jan', 'Feb'],
});
</script>
Expand All @@ -30,11 +32,23 @@ const props = withDefaults(defineProps<Props>(), {
<div class="text-gray-900 dark:text-neutral-200 font-semibold">
{{ title }}
</div>
<VIcon
name="ic:round-more-vert"
size="20"
class="text-gray-400 dark:text-neutral-400"
/>
<VDropdown
right
panel-class="border shadow shadow-neutral-900 dark:border-neutral-700"
>
<template #activator>
<VDropdownButton
:as="VBtn"
prefix-icon="ic:round-more-vert"
size="20"
class="text-gray-400 dark:text-neutral-400"
flush
/>
</template>
<VDropdownItem>View details</VDropdownItem>
<VDropdownItem>Download as PDF</VDropdownItem>
<VDropdownItem>Download as Image</VDropdownItem>
</VDropdown>
</div>

<div class="flex gap-4 mt-5">
Expand Down

0 comments on commit f338d87

Please sign in to comment.