Operate.jsx 618 Bytes
import {
  Form,
  Card,
  Tabs,
  Badge,
  Spin,
  Row,
  Col,
  Input,
  Select,
  Button,
  Table,
  InputNumber,
  Popover,
  Steps,
  Tag,
  Divider,
} from 'antd';
const Operate = (props) => {
  const { cancelFunc, okFunc, leftContentSlot } = props;
  return (
    <Row justify="space-between" style={{ padding: '10px 0', textAlign: 'right' }}>
      <div>{leftContentSlot}</div>
      <div>
        <Button onClick={cancelFunc}>取消</Button>
        <Button type="primary" style={{ marginLeft: 24 }} onClick={okFunc}>
          确定
        </Button>
      </div>
    </Row>
  );
};
export default Operate;