import React, { PropTypes } from ‘react’;
import { Row, Col, Button, Input } from ‘antd’;
const ButtonGroup = Button.Group;
const propTypes = {
download: PropTypes.func.isRequired,
clear: PropTypes.func.isRequired,
setSqlValue: React.PropTypes.func.isRequired,
sql: PropTypes.string.isRequired
};
function ExportDatabaseSearch ({ download, clear, setSqlValue, sql }) {
return (
<Input
type=“textarea”
value={sql}
onChange={(event) => setSqlValue(event)}
placeholder=“Please input sql statement”
autosize={{ minRows: 2 }}
/>
Download
Clear
);
};
ExportDatabaseSearch.propTypes = propTypes;
export default ExportDatabaseSearch;
我的属性验证不起作用 求大神指导