WIP: refs #6416 - refactor-InvoiceIn #196

Closed
jsegarra wants to merge 17 commits from 6416-refactor-InvoiceIn into dev
1 changed files with 33 additions and 0 deletions
Showing only changes of commit 9b0613a557 - Show all commits

View File

@ -0,0 +1,33 @@
<script setup>
import { useI18n } from 'vue-i18n';
const $props = defineProps({
class: { type: String, require: true, default: null },
padding: { type: String, require: true, default: null },
color: { type: String, require: true, default: null },
icon: { type: String, require: true, default: null },
promise: { type: Function, require: true, default: null },
});
const { t } = useI18n();
async function onClick() {
if ($props.promise) return await $props.promise();
}
</script>
<template>
<QBtn
:class="$props.class"
:padding="$props.padding"
:icon="$props.icon"
flat
:color="$props.color"
round
@click="onClick()"
>
<QTooltip>
<slot name="tooltip">
{{ t('components.smartCard.downloadFile') }}
</slot></QTooltip
>
</QBtn>
</template>
<style lang="scss" scoped></style>