2024-08-07 14:35:49 +07:00
|
|
|
<script lang="ts" setup>
|
2024-08-08 11:33:28 +07:00
|
|
|
import MainButton from './MainButton.vue';
|
2024-08-07 14:35:49 +07:00
|
|
|
|
|
|
|
|
defineEmits<{
|
|
|
|
|
(e: 'click', v: MouseEvent): void;
|
|
|
|
|
}>();
|
|
|
|
|
defineProps<{
|
2024-08-08 11:09:45 +07:00
|
|
|
iconOnly?: boolean;
|
2024-08-07 14:35:49 +07:00
|
|
|
solid?: boolean;
|
|
|
|
|
outlined?: boolean;
|
|
|
|
|
disabled?: boolean;
|
|
|
|
|
dark?: boolean;
|
2024-08-16 15:31:49 +07:00
|
|
|
|
|
|
|
|
amount?: number;
|
2024-08-07 14:35:49 +07:00
|
|
|
}>();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2024-08-08 11:33:28 +07:00
|
|
|
<MainButton
|
2024-08-07 15:01:14 +07:00
|
|
|
@click="(e) => $emit('click', e)"
|
2024-08-08 11:33:28 +07:00
|
|
|
v-bind="{ ...$props, ...$attrs }"
|
2024-08-08 04:59:45 +00:00
|
|
|
icon="mdi-content-save-outline"
|
|
|
|
|
color="207 96% 32%"
|
2024-08-09 11:33:03 +07:00
|
|
|
:title="iconOnly ? $t('save') : undefined"
|
2024-08-07 14:35:49 +07:00
|
|
|
>
|
2024-08-16 15:31:49 +07:00
|
|
|
{{ $t('save') }} {{ amount && amount > 0 ? `(${amount})` : '' }}
|
2024-08-08 11:33:28 +07:00
|
|
|
</MainButton>
|
2024-08-07 14:35:49 +07:00
|
|
|
</template>
|