styleEditor.jsx 581 B

123456789101112131415161718192021222324
  1. import React from 'react';
  2. import { Form, Input } from 'antd';
  3. const FormItem = Form.Item;
  4. class StyleManager extends React.Component {
  5. constructor(props) {
  6. super(props);
  7. this.state = {};
  8. }
  9. render() {
  10. const { getFieldDecorator } = this.props.form;
  11. return (
  12. <Form>
  13. <FormItem label='图例'>
  14. {getFieldDecorator('legend')(
  15. <Input />
  16. )}
  17. </FormItem>
  18. </Form>
  19. );
  20. }
  21. }
  22. export default Form.create()(StyleManager);