refactor: change button order and icon
This commit is contained in:
parent
d5698e9454
commit
0a5e6c48ea
2 changed files with 19 additions and 19 deletions
|
|
@ -7,10 +7,9 @@ import { onMounted } from 'vue';
|
||||||
import {
|
import {
|
||||||
SaveButton,
|
SaveButton,
|
||||||
EditButton,
|
EditButton,
|
||||||
CancelButton,
|
|
||||||
DeleteButton,
|
DeleteButton,
|
||||||
|
UndoButton,
|
||||||
} from 'src/components/button';
|
} from 'src/components/button';
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
prefixId?: string;
|
prefixId?: string;
|
||||||
outlined?: boolean;
|
outlined?: boolean;
|
||||||
|
|
@ -94,20 +93,20 @@ watch(
|
||||||
type="button"
|
type="button"
|
||||||
:disabled="actionDisabled"
|
:disabled="actionDisabled"
|
||||||
/>
|
/>
|
||||||
|
<UndoButton
|
||||||
|
icon-only
|
||||||
|
v-if="!readonly && !create"
|
||||||
|
class="q-ml-auto"
|
||||||
|
type="button"
|
||||||
|
:disabled="actionDisabled"
|
||||||
|
@click="$emit('cancel')"
|
||||||
|
/>
|
||||||
<SaveButton
|
<SaveButton
|
||||||
icon-only
|
icon-only
|
||||||
v-if="!readonly"
|
v-if="!readonly"
|
||||||
@click="$emit('save')"
|
@click="$emit('save')"
|
||||||
class="q-ml-auto"
|
|
||||||
:disabled="actionDisabled"
|
:disabled="actionDisabled"
|
||||||
/>
|
/>
|
||||||
<CancelButton
|
|
||||||
icon-only
|
|
||||||
v-if="!readonly && !create"
|
|
||||||
type="button"
|
|
||||||
:disabled="actionDisabled"
|
|
||||||
@click="$emit('cancel')"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<q-select
|
<q-select
|
||||||
outlined
|
outlined
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ import {
|
||||||
EditButton,
|
EditButton,
|
||||||
CancelButton,
|
CancelButton,
|
||||||
DeleteButton,
|
DeleteButton,
|
||||||
|
UndoButton,
|
||||||
} from 'components/button';
|
} from 'components/button';
|
||||||
|
|
||||||
const item = defineModel<NonNullable<CustomerCreate['customerBranch']>[number]>(
|
const item = defineModel<NonNullable<CustomerCreate['customerBranch']>[number]>(
|
||||||
|
|
@ -56,19 +57,19 @@ defineProps<{
|
||||||
type="button"
|
type="button"
|
||||||
:disabled="actionDisabled"
|
:disabled="actionDisabled"
|
||||||
/>
|
/>
|
||||||
<SaveButton
|
<UndoButton
|
||||||
icon-only
|
|
||||||
v-if="!readonly"
|
|
||||||
@click="$emit('save')"
|
|
||||||
class="q-ml-auto"
|
|
||||||
type="submit"
|
|
||||||
:disabled="actionDisabled"
|
|
||||||
/>
|
|
||||||
<CancelButton
|
|
||||||
icon-only
|
icon-only
|
||||||
v-if="!readonly"
|
v-if="!readonly"
|
||||||
@click="$emit('cancel')"
|
@click="$emit('cancel')"
|
||||||
type="button"
|
type="button"
|
||||||
|
class="q-ml-auto"
|
||||||
|
:disabled="actionDisabled"
|
||||||
|
/>
|
||||||
|
<SaveButton
|
||||||
|
icon-only
|
||||||
|
v-if="!readonly"
|
||||||
|
@click="$emit('save')"
|
||||||
|
type="submit"
|
||||||
:disabled="actionDisabled"
|
:disabled="actionDisabled"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue