feat: popup component support overlay blur effect (#5359)

This commit is contained in:
Netfan
2025-01-11 23:37:17 +08:00
committed by GitHub
parent cb9c8db5ba
commit 6719e2679f
12 changed files with 86 additions and 4 deletions

View File

@@ -45,6 +45,10 @@ function openBaseDrawer(placement: DrawerPlacement = 'right') {
baseDrawerApi.setState({ placement }).open();
}
function openBlurDrawer() {
baseDrawerApi.setState({ overlayBlur: 5 }).open();
}
function openInContentDrawer(placement: DrawerPlacement = 'right') {
const state: Partial<DrawerState> = { class: '', placement };
if (placement === 'top') {
@@ -124,6 +128,9 @@ function openFormDrawer() {
<Button class="mb-2 ml-2" type="primary" @click="openBaseDrawer('top')">
顶部打开
</Button>
<Button class="mb-2 ml-2" type="primary" @click="openBlurDrawer">
遮罩层模糊效果
</Button>
</Card>
<Card class="mb-4" title="在内容区域打开">