feat: add next button

This commit is contained in:
Methapon2001 2024-12-16 16:26:51 +07:00
parent ecd527737e
commit c9dd6b9f0e
2 changed files with 33 additions and 0 deletions

View 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-arrow-right'"
color="207 96% 32%"
:title="iconOnly ? $t('general.next') : undefined"
>
{{ label || $t('general.next') }}
{{ amount && amount > 0 ? `(${amount})` : '' }}
</MainButton>
</template>

View file

@ -12,3 +12,4 @@ export { default as CloseButton } from './CloseButton.vue';
export { default as ViewButton } from './ViewButton.vue';
export { default as PrintButton } from './PrintButton.vue';
export { default as StateButton } from './StateButton.vue';
export { default as NextButton } from './NextButton.vue';