From b718f8dc8f1ebe30a2d3d0513e40d44962b6b20f Mon Sep 17 00:00:00 2001 From: jzh <1587315093@qq.com> Date: Wed, 9 Aug 2023 11:07:47 +0800 Subject: [PATCH] enhance: floating-panel add classPrefix --- src/components/floating-panel/floating-panel.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/floating-panel/floating-panel.tsx b/src/components/floating-panel/floating-panel.tsx index bfd6657bec..be71b3f2b0 100644 --- a/src/components/floating-panel/floating-panel.tsx +++ b/src/components/floating-panel/floating-panel.tsx @@ -14,6 +14,8 @@ import { mergeProps } from '../../utils/with-default-props' import { useLockScroll } from '../../utils/use-lock-scroll' import { useMemoizedFn } from 'ahooks' +const classPrefix = 'adm-floating-panel' + export type FloatingPanelRef = { setHeight: ( height: number, @@ -137,22 +139,22 @@ export const FloatingPanel = forwardRef( props, `calc(100% + (${Math.round(y)}px))`), }} >
-
-
+
+
-
+
{props.children}