feat(flowEditor): 添加操作栏组件

master
钟良源 5 months ago
parent 107814434b
commit 669f3a74da

@ -0,0 +1,37 @@
import React from 'react';
import { Button } from '@arco-design/web-react';
import { IconSave, IconPlayArrow, IconCodeSquare } from '@arco-design/web-react/icon';
const ButtonGroup = Button.Group;
interface ActionBarProps {
onSave: () => void;
}
const ActionBar: React.FC<ActionBarProps> = ({ onSave }) => {
return (
<div className="action-bar">
<Button onClick={onSave} type="primary" shape="round" icon={<IconSave />}></Button>
<ButtonGroup style={{ marginLeft: 8 }}>
<Button
type="outline"
shape="round"
icon={<IconPlayArrow />}
style={{ padding: '0 8px', backgroundColor: '#fff' }}
>
</Button>
<Button
type="outline"
shape="round"
icon={<IconCodeSquare />}
style={{ padding: '0 8px', backgroundColor: '#fff' }}
>
</Button>
</ButtonGroup>
</div>
);
};
export default ActionBar;
Loading…
Cancel
Save