调整 ConfirmDialog 组件的宽度属性

This commit is contained in:
jxxghp
2025-05-24 17:22:49 +08:00
parent 4dd4e0e148
commit 11c8c488da
+2 -2
View File
@@ -17,7 +17,7 @@ const props = withDefaults(defineProps<Props>(), {
content: '', content: '',
confirmText: '', confirmText: '',
cancelText: '', cancelText: '',
width: '30rem', width: '28rem',
}) })
const emit = defineEmits<{ const emit = defineEmits<{
@@ -62,7 +62,7 @@ function handleCancel() {
<VDialog :model-value="modelValue" @update:model-value="emit('update:modelValue', $event)" :max-width="width"> <VDialog :model-value="modelValue" @update:model-value="emit('update:modelValue', $event)" :max-width="width">
<VCard> <VCard>
<VCardItem> <VCardItem>
<div class="d-flex align-center justify-center mt-3"> <div class="d-flex align-center justify-start mt-3">
<VAvatar :color="currentType.color" variant="text" size="x-large"> <VAvatar :color="currentType.color" variant="text" size="x-large">
<VIcon size="x-large" :icon="currentType.icon" /> <VIcon size="x-large" :icon="currentType.icon" />
</VAvatar> </VAvatar>