From 2c7366717fda58ce04f2a8c3b05bc5daf1601634 Mon Sep 17 00:00:00 2001 From: LuckyFBB <976060700@qq.com> Date: Thu, 24 Oct 2024 16:36:27 +0800 Subject: [PATCH] fix(drawer): change renderButton outside Spin --- src/drawer/__tests/__snapshots__/index.test.tsx.snap | 10 +++++----- src/drawer/index.tsx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/drawer/__tests/__snapshots__/index.test.tsx.snap b/src/drawer/__tests/__snapshots__/index.test.tsx.snap index cd5442472..7fb97c0c2 100644 --- a/src/drawer/__tests/__snapshots__/index.test.tsx.snap +++ b/src/drawer/__tests/__snapshots__/index.test.tsx.snap @@ -25,17 +25,17 @@ exports[`test Drawer snapshot match 1`] = ` class="dtc-drawer-content" role="dialog" > + closeBtn
- closeBtn
diff --git a/src/drawer/index.tsx b/src/drawer/index.tsx index 9a0083809..d583675bc 100644 --- a/src/drawer/index.tsx +++ b/src/drawer/index.tsx @@ -120,8 +120,8 @@ const Drawer = (props: DrawerProps) => { {...rest} {...motionProps} > + {!mask && renderButton()} - {!mask && renderButton()} {title &&
{title}
} {banner && (