Browse Source

feat: adiciona custom style em dashboard

ebagabee 1 month ago
parent
commit
988b24a270

+ 3 - 1
src/components/charts/DashboardStatCard.vue

@@ -12,6 +12,7 @@
         v-if="badge"
         v-if="badge"
         :color="badgeColor"
         :color="badgeColor"
         :label="badge"
         :label="badge"
+        :style="customStyle"
         class="stat-badge"
         class="stat-badge"
       />
       />
       <span v-else-if="subtitle" class="text-caption text-foreground">{{
       <span v-else-if="subtitle" class="text-caption text-foreground">{{
@@ -29,6 +30,7 @@ defineProps({
   subtitle: { type: String, default: "" },
   subtitle: { type: String, default: "" },
   badge: { type: String, default: "" },
   badge: { type: String, default: "" },
   badgeColor: { type: String, default: "accent-1" },
   badgeColor: { type: String, default: "accent-1" },
+  customStyle: { type: String, default: "padding: 4px" },
 });
 });
 </script>
 </script>
 
 
@@ -58,7 +60,7 @@ defineProps({
 
 
 .stat-badge {
 .stat-badge {
   font-size: 12px;
   font-size: 12px;
-  padding: 4px;
+
   border-radius: 8px;
   border-radius: 8px;
   width: fit-content;
   width: fit-content;
   color: $primary;
   color: $primary;

+ 2 - 1
src/pages/dashboard/DashboardPage.vue

@@ -221,7 +221,8 @@
           icon="mdi-account-multiple-outline"
           icon="mdi-account-multiple-outline"
           value="87%"
           value="87%"
           badge="Alta"
           badge="Alta"
-          badge-color="positive"
+          badge-color="approved"
+          custom-style="padding: 6px 24px"
         />
         />
         <DashboardStatCard
         <DashboardStatCard
           title="Estoque Geral de Produtos"
           title="Estoque Geral de Produtos"