feat: add next button
This commit is contained in:
parent
ecd527737e
commit
c9dd6b9f0e
2 changed files with 33 additions and 0 deletions
32
src/components/button/NextButton.vue
Normal file
32
src/components/button/NextButton.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-arrow-right'"
|
||||||
|
color="207 96% 32%"
|
||||||
|
:title="iconOnly ? $t('general.next') : undefined"
|
||||||
|
>
|
||||||
|
{{ label || $t('general.next') }}
|
||||||
|
{{ amount && amount > 0 ? `(${amount})` : '' }}
|
||||||
|
</MainButton>
|
||||||
|
</template>
|
||||||
|
|
@ -12,3 +12,4 @@ export { default as CloseButton } from './CloseButton.vue';
|
||||||
export { default as ViewButton } from './ViewButton.vue';
|
export { default as ViewButton } from './ViewButton.vue';
|
||||||
export { default as PrintButton } from './PrintButton.vue';
|
export { default as PrintButton } from './PrintButton.vue';
|
||||||
export { default as StateButton } from './StateButton.vue';
|
export { default as StateButton } from './StateButton.vue';
|
||||||
|
export { default as NextButton } from './NextButton.vue';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue