This commit is contained in:
parent
d909be2fc4
commit
82f48a4b80
1 changed files with 32 additions and 0 deletions
32
src/components/button/PasteButton.vue
Normal file
32
src/components/button/PasteButton.vue
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import MainButton from './MainButton.vue';
|
||||||
|
|
||||||
|
defineEmits<{
|
||||||
|
(e: 'click', v: MouseEvent): void;
|
||||||
|
}>();
|
||||||
|
defineProps<{
|
||||||
|
iconOnly?: boolean;
|
||||||
|
solid?: boolean;
|
||||||
|
outlined?: boolean;
|
||||||
|
disabled?: boolean;
|
||||||
|
dark?: boolean;
|
||||||
|
|
||||||
|
label?: string;
|
||||||
|
icon?: string;
|
||||||
|
|
||||||
|
amount?: number;
|
||||||
|
}>();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<MainButton
|
||||||
|
@click="(e) => $emit('click', e)"
|
||||||
|
v-bind="{ ...$props, ...$attrs }"
|
||||||
|
:icon="icon || 'mdi-file-replace'"
|
||||||
|
color="207 96% 32%"
|
||||||
|
:title="iconOnly ? $t('general.paste') : undefined"
|
||||||
|
>
|
||||||
|
{{ label || $t('general.paste') }}
|
||||||
|
{{ amount && amount > 0 ? `(${amount})` : '' }}
|
||||||
|
</MainButton>
|
||||||
|
</template>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue