Skip to content

Commit

Permalink
feat: menuActionList component support style css properties (#2711)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricbet authored May 16, 2023
1 parent ba5213f commit b085e3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core-browser/src/components/actions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -129,6 +130,7 @@ export const MenuActionList: React.FC<{
motion={{ motionLeave: false, motionEnter: false }}
{...({ builtinPlacements: placements } as any)}
onClick={handleClick}
style={style}
>
{recursiveRender(data)}
</Menu>
Expand Down

0 comments on commit b085e3f

Please sign in to comment.