From b085e3fa0e449c5c24fc1382e033be04febeca65 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 16 May 2023 18:02:21 +0800 Subject: [PATCH] feat: menuActionList component support style css properties (#2711) --- packages/core-browser/src/components/actions/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core-browser/src/components/actions/index.tsx b/packages/core-browser/src/components/actions/index.tsx index 49deb21436..7550075858 100644 --- a/packages/core-browser/src/components/actions/index.tsx +++ b/packages/core-browser/src/components/actions/index.tsx @@ -52,7 +52,8 @@ export const MenuActionList: React.FC<{ data: MenuNode[]; afterClick?: (item: MenuNode) => void; context?: any[]; -}> = ({ data = [], context = [], afterClick }) => { + style?: React.CSSProperties; +}> = ({ data = [], context = [], afterClick, style }) => { if (!data.length) { return null; } @@ -129,6 +130,7 @@ export const MenuActionList: React.FC<{ motion={{ motionLeave: false, motionEnter: false }} {...({ builtinPlacements: placements } as any)} onClick={handleClick} + style={style} > {recursiveRender(data)}