feat(flowEditor): 添加操作栏组件
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…
Reference in New Issue