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;
|
employee?: boolean;
|
||||||
edit?: boolean;
|
edit?: boolean;
|
||||||
|
|
||||||
|
saveAmount?: number;
|
||||||
|
|
||||||
isEdit?: boolean;
|
isEdit?: boolean;
|
||||||
tabsList?: { name: string; label: string }[];
|
tabsList?: { name: string; label: string }[];
|
||||||
|
|
||||||
|
|
@ -214,6 +216,7 @@ const currentTab = defineModel<string>('currentTab');
|
||||||
id="btn-form-submit"
|
id="btn-form-submit"
|
||||||
type="submit"
|
type="submit"
|
||||||
solid
|
solid
|
||||||
|
:amount="saveAmount"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@ defineProps<{
|
||||||
outlined?: boolean;
|
outlined?: boolean;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
dark?: boolean;
|
dark?: boolean;
|
||||||
|
|
||||||
|
amount?: number;
|
||||||
}>();
|
}>();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
@ -21,6 +23,6 @@ defineProps<{
|
||||||
color="207 96% 32%"
|
color="207 96% 32%"
|
||||||
:title="iconOnly ? $t('save') : undefined"
|
:title="iconOnly ? $t('save') : undefined"
|
||||||
>
|
>
|
||||||
{{ $t('save') }}
|
{{ $t('save') }} {{ amount && amount > 0 ? `(${amount})` : '' }}
|
||||||
</MainButton>
|
</MainButton>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue