fix: use share button on dialog form
This commit is contained in:
parent
f7d55734aa
commit
0f9c752e04
2 changed files with 22 additions and 24 deletions
|
|
@ -1,4 +1,12 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import {
|
||||||
|
EditButton,
|
||||||
|
DeleteButton,
|
||||||
|
CancelButton,
|
||||||
|
SaveButton,
|
||||||
|
UndoButton,
|
||||||
|
} from 'src/components/button';
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
title: string;
|
title: string;
|
||||||
titleFormAddress?: string;
|
titleFormAddress?: string;
|
||||||
|
|
@ -127,20 +135,17 @@ const currentTab = defineModel<string>('currentTab');
|
||||||
{{ badgeLabel }}
|
{{ badgeLabel }}
|
||||||
</text>
|
</text>
|
||||||
</div>
|
</div>
|
||||||
<q-btn
|
<CancelButton
|
||||||
round
|
icon-only
|
||||||
flat
|
id="btn-form-close"
|
||||||
id="closeDialog"
|
|
||||||
icon="mdi-close"
|
|
||||||
padding="xs"
|
|
||||||
class="close-btn"
|
|
||||||
:class="{ dark: $q.dark.isActive }"
|
|
||||||
@click="
|
@click="
|
||||||
() => {
|
() => {
|
||||||
modal = beforeClose ? beforeClose() : !modal;
|
modal = beforeClose ? beforeClose() : !modal;
|
||||||
close?.();
|
close?.();
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
|
type="reset"
|
||||||
|
resetValidation
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -205,25 +210,18 @@ const currentTab = defineModel<string>('currentTab');
|
||||||
<div>
|
<div>
|
||||||
<slot name="footer"></slot>
|
<slot name="footer"></slot>
|
||||||
</div>
|
</div>
|
||||||
<div class="row flex justify-end q-gutter-x-md">
|
<div class="row flex justify-end">
|
||||||
<q-btn
|
<CancelButton
|
||||||
id="cancelBtn"
|
id="btn-form-cancel"
|
||||||
unelevated
|
outlined
|
||||||
class="col btn-cancel-dialog rounded"
|
|
||||||
color="grey-4"
|
|
||||||
text-color="grey-10"
|
|
||||||
@click="close"
|
@click="close"
|
||||||
:label="$t('cancel')"
|
|
||||||
v-close-popup
|
v-close-popup
|
||||||
/>
|
/>
|
||||||
<q-btn
|
<SaveButton
|
||||||
dense
|
class="q-ml-md"
|
||||||
unelevated
|
id="btn-form-submit"
|
||||||
id="submitBtn"
|
|
||||||
type="submit"
|
type="submit"
|
||||||
color="primary"
|
solid
|
||||||
class="q-px-md rounded"
|
|
||||||
:label="$t('save')"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ function reset() {
|
||||||
<div class="q-mr-md" style="width: 36.8px"></div>
|
<div class="q-mr-md" style="width: 36.8px"></div>
|
||||||
<CancelButton
|
<CancelButton
|
||||||
icon-only
|
icon-only
|
||||||
id="btn-info-cancel"
|
id="btn-info-close"
|
||||||
@click="
|
@click="
|
||||||
() => {
|
() => {
|
||||||
drawerOpen = beforeClose ? beforeClose() : !drawerOpen;
|
drawerOpen = beforeClose ? beforeClose() : !drawerOpen;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue