|
|
@@ -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>
|