Просмотр исходного кода

refactor: add novamente a opção de xlsx

Gustavo Mantovani 1 месяц назад
Родитель
Сommit
44e79af4f2
1 измененных файлов с 17 добавлено и 4 удалено
  1. 17 4
      src/pages/dashboard/components/DashboardFiltersBar.vue

+ 17 - 4
src/pages/dashboard/components/DashboardFiltersBar.vue

@@ -56,17 +56,30 @@
         @click="$emit('action')"
       />
 
-      <q-btn
+      <q-btn-dropdown
         v-if="showExport"
         class="dashboard-export-btn"
         color="primary"
-        label="Exportar PDF"
+        label="Exportar"
         no-caps
         unelevated
         :disable="loading || exporting || !canExportReport"
         :loading="exporting"
-        @click="$emit('export', 'pdf')"
-      />
+      >
+        <q-list>
+          <q-item v-close-popup clickable @click="$emit('export', 'xlsx')">
+            <q-item-section>
+              <q-item-label>XLSX</q-item-label>
+            </q-item-section>
+          </q-item>
+
+          <q-item v-close-popup clickable @click="$emit('export', 'pdf')">
+            <q-item-section>
+              <q-item-label>PDF</q-item-label>
+            </q-item-section>
+          </q-item>
+        </q-list>
+      </q-btn-dropdown>
     </div>
   </div>
 </template>