|
|
@ -138,7 +138,7 @@ async function handleOpenChange(val: boolean) { |
|
|
<div class="flex items-center"> |
|
|
<div class="flex items-center"> |
|
|
<component :is="getIconRender" class="mr-2" /> |
|
|
<component :is="getIconRender" class="mr-2" /> |
|
|
<span class="flex-auto">{{ $t(title) }}</span> |
|
|
<span class="flex-auto">{{ $t(title) }}</span> |
|
|
<AlertDialogCancel v-if="showCancel"> |
|
|
<AlertDialogCancel v-if="showCancel" as-child> |
|
|
<VbenButton |
|
|
<VbenButton |
|
|
variant="ghost" |
|
|
variant="ghost" |
|
|
size="icon" |
|
|
size="icon" |
|
|
@ -158,16 +158,17 @@ async function handleOpenChange(val: boolean) { |
|
|
<VbenLoading v-if="loading && contentMasking" :spinning="loading" /> |
|
|
<VbenLoading v-if="loading && contentMasking" :spinning="loading" /> |
|
|
</AlertDialogDescription> |
|
|
</AlertDialogDescription> |
|
|
<div class="flex justify-end gap-x-2" :class="`justify-${buttonAlign}`"> |
|
|
<div class="flex justify-end gap-x-2" :class="`justify-${buttonAlign}`"> |
|
|
<AlertDialogCancel v-if="showCancel" :disabled="loading"> |
|
|
<AlertDialogCancel v-if="showCancel" as-child> |
|
|
<component |
|
|
<component |
|
|
:is="components.DefaultButton || VbenButton" |
|
|
:is="components.DefaultButton || VbenButton" |
|
|
|
|
|
:disabled="loading" |
|
|
variant="ghost" |
|
|
variant="ghost" |
|
|
@click="handleCancel" |
|
|
@click="handleCancel" |
|
|
> |
|
|
> |
|
|
{{ cancelText || $t('cancel') }} |
|
|
{{ cancelText || $t('cancel') }} |
|
|
</component> |
|
|
</component> |
|
|
</AlertDialogCancel> |
|
|
</AlertDialogCancel> |
|
|
<AlertDialogAction> |
|
|
<AlertDialogAction as-child> |
|
|
<component |
|
|
<component |
|
|
:is="components.PrimaryButton || VbenButton" |
|
|
:is="components.PrimaryButton || VbenButton" |
|
|
:loading="loading" |
|
|
:loading="loading" |
|
|
|