fix: save btn with show amount

This commit is contained in:
puriphatt 2024-08-16 15:31:49 +07:00
parent b3922cddff
commit cc2e49f735
2 changed files with 6 additions and 1 deletions

View file

@ -20,6 +20,8 @@ defineProps<{
employee?: boolean;
edit?: boolean;
saveAmount?: number;
isEdit?: boolean;
tabsList?: { name: string; label: string }[];
@ -214,6 +216,7 @@ const currentTab = defineModel<string>('currentTab');
id="btn-form-submit"
type="submit"
solid
:amount="saveAmount"
/>
</div>
</div>

View file

@ -10,6 +10,8 @@ defineProps<{
outlined?: boolean;
disabled?: boolean;
dark?: boolean;
amount?: number;
}>();
</script>
@ -21,6 +23,6 @@ defineProps<{
color="207 96% 32%"
:title="iconOnly ? $t('save') : undefined"
>
{{ $t('save') }}
{{ $t('save') }} {{ amount && amount > 0 ? `(${amount})` : '' }}
</MainButton>
</template>