Skip to content

Commit becfdeb

Browse files
committed
refactor: 支持动画逻辑
1 parent 6c730e5 commit becfdeb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/BootstrapBlazor/Components/Drawer/Drawer.razor.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,12 @@ public async Task OnContainerClick()
192192
await OnClickBackdrop();
193193
}
194194
_render = false;
195+
var animation = await InvokeAsync<bool>("execute", Id, false);
196+
if (animation)
197+
{
198+
await Task.Delay(300);
199+
}
195200
await Close();
196-
await InvokeVoidAsync("execute", Id, false);
197201
_render = true;
198202
}
199203

0 commit comments

Comments
 (0)