调整预约确认弹窗布局
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<Teleport to="body">
|
||||
<Transition name="modal-fade">
|
||||
<div v-if="modelValue" class="modal-mask">
|
||||
<section class="modal-panel" @click.stop @focusin.capture="scrollFocusedControlIntoView">
|
||||
<section class="modal-panel" :class="panelClass" @click.stop @focusin.capture="scrollFocusedControlIntoView">
|
||||
<div class="modal-panel__head">
|
||||
<h2>{{ title }}</h2>
|
||||
<button class="modal-panel__close" type="button" aria-label="关闭" :disabled="closeDisabled" @click="requestClose">
|
||||
@@ -40,6 +40,7 @@ const props = defineProps<{
|
||||
hasUnsavedChanges?: boolean
|
||||
unsavedConfirmTitle?: string
|
||||
unsavedConfirmMessage?: string
|
||||
panelClass?: string
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
:model-value="statusConfirmVisible"
|
||||
:title="statusConfirmTitle"
|
||||
:close-disabled="saving"
|
||||
panel-class="appointment-status-confirm-modal"
|
||||
@update:model-value="updateStatusConfirmVisible"
|
||||
>
|
||||
<div class="status-confirm">
|
||||
@@ -317,5 +318,47 @@ onMounted(loadDetail)
|
||||
color: #4d4840;
|
||||
font-size: 14px;
|
||||
line-height: 1.7;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.status-confirm p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
:global(.appointment-status-confirm-modal) {
|
||||
align-self: center;
|
||||
width: min(calc(100vw - 32px), 340px);
|
||||
max-height: calc(100vh - 64px);
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
:global(.appointment-status-confirm-modal .modal-panel__head) {
|
||||
justify-content: center;
|
||||
padding: 18px 48px 10px;
|
||||
border-bottom: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
:global(.appointment-status-confirm-modal .modal-panel__head h2) {
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
:global(.appointment-status-confirm-modal .modal-panel__close) {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 12px;
|
||||
}
|
||||
|
||||
:global(.appointment-status-confirm-modal .modal-panel__footer) {
|
||||
position: static;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
padding: 0 16px 16px;
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
:global(.appointment-status-confirm-modal .modal-panel__footer button) {
|
||||
min-width: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user