refactor: add new btn view and example
This commit is contained in:
parent
b3d15434f6
commit
f5566f81e6
1 changed files with 16 additions and 0 deletions
|
|
@ -2,6 +2,13 @@
|
||||||
import { formatNumberDecimal } from 'stores/utils';
|
import { formatNumberDecimal } from 'stores/utils';
|
||||||
import { dateFormatJS } from 'src/utils/datetime';
|
import { dateFormatJS } from 'src/utils/datetime';
|
||||||
|
|
||||||
|
import { MainButton, ViewButton } from 'components/button';
|
||||||
|
|
||||||
|
defineEmits<{
|
||||||
|
(e: 'view', index: number): void;
|
||||||
|
(e: 'example', index: number): void;
|
||||||
|
}>();
|
||||||
|
|
||||||
withDefaults(
|
withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
payType: string;
|
payType: string;
|
||||||
|
|
@ -36,6 +43,15 @@ withDefaults(
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<aside class="column col q-py-md text-right self-center q-px-md">
|
<aside class="column col q-py-md text-right self-center q-px-md">
|
||||||
|
<div class="q-gutter-x-xs">
|
||||||
|
<MainButton
|
||||||
|
icon="mdi-play-box-outline"
|
||||||
|
color="207 96% 32%"
|
||||||
|
@click="() => $emit('example', index)"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<ViewButton icon-only @click="() => $emit('example', index)" />
|
||||||
|
</div>
|
||||||
<span class="app-text-positive text-weight-bold text-body1">
|
<span class="app-text-positive text-weight-bold text-body1">
|
||||||
{{ $t('quotation.receiptDialog.receiptIssued') }}
|
{{ $t('quotation.receiptDialog.receiptIssued') }}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue