fix: save btn with show amount
This commit is contained in:
parent
b3922cddff
commit
cc2e49f735
2 changed files with 6 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue