refactor: change button order and icon

This commit is contained in:
Methapon2001 2024-08-09 13:20:38 +07:00
parent d5698e9454
commit 0a5e6c48ea
2 changed files with 19 additions and 19 deletions

View file

@ -11,6 +11,7 @@ import {
EditButton,
CancelButton,
DeleteButton,
UndoButton,
} from 'components/button';
const item = defineModel<NonNullable<CustomerCreate['customerBranch']>[number]>(
@ -56,19 +57,19 @@ defineProps<{
type="button"
:disabled="actionDisabled"
/>
<SaveButton
icon-only
v-if="!readonly"
@click="$emit('save')"
class="q-ml-auto"
type="submit"
:disabled="actionDisabled"
/>
<CancelButton
<UndoButton
icon-only
v-if="!readonly"
@click="$emit('cancel')"
type="button"
class="q-ml-auto"
:disabled="actionDisabled"
/>
<SaveButton
icon-only
v-if="!readonly"
@click="$emit('save')"
type="submit"
:disabled="actionDisabled"
/>
</span>