File tree 2 files changed +7
-3
lines changed
playground/src/views/examples/modal
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ async function handleOpenChange(val: boolean) {
138
138
<div class =" flex items-center" >
139
139
<component :is =" getIconRender" class =" mr-2" />
140
140
<span class =" flex-auto" >{{ $t(title) }}</span >
141
- <AlertDialogCancel v-if =" showCancel" >
141
+ <AlertDialogCancel v-if =" showCancel" as-child >
142
142
<VbenButton
143
143
variant =" ghost"
144
144
size =" icon"
@@ -158,16 +158,17 @@ async function handleOpenChange(val: boolean) {
158
158
<VbenLoading v-if =" loading && contentMasking" :spinning =" loading" />
159
159
</AlertDialogDescription >
160
160
<div class =" flex justify-end gap-x-2" :class =" `justify-${buttonAlign}`" >
161
- <AlertDialogCancel v-if =" showCancel" :disabled = " loading " >
161
+ <AlertDialogCancel v-if =" showCancel" as-child >
162
162
<component
163
163
:is =" components.DefaultButton || VbenButton"
164
+ :disabled =" loading"
164
165
variant =" ghost"
165
166
@click =" handleCancel"
166
167
>
167
168
{{ cancelText || $t('cancel') }}
168
169
</component >
169
170
</AlertDialogCancel >
170
- <AlertDialogAction >
171
+ <AlertDialogAction as-child >
171
172
<component
172
173
:is =" components.PrimaryButton || VbenButton"
173
174
:loading =" loading"
Original file line number Diff line number Diff line change @@ -261,6 +261,9 @@ async function openPrompt() {
261
261
</template >
262
262
</Card >
263
263
<Card class =" w-[300px]" title =" 轻量提示弹窗" >
264
+ <template #extra >
265
+ <DocButton path =" /components/common-ui/vben-alert" />
266
+ </template >
264
267
<p >通过快捷方法创建动态提示弹窗,适合一些轻量的提示和确认、输入等</p >
265
268
<template #actions >
266
269
<Button type =" primary" @click =" openAlert" >Alert</Button >
You can’t perform that action at this time.
0 commit comments