How to use the antd.Form.create function in antd

To help you get started, we’ve selected a few antd examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github insiight / ant-design-theme-builder / src / components / form / time_related_controls / index.js View on Github external
)}
        
        
          <button size="large" type="primary">Submit</button>
        
      
    );
  }
}

const WrappedTimeRelatedForm = Form.create()(TimeRelatedForm);

export default function DemoComponent_form_time_related_controls() {
return();
};

export const demo = ;
github codenesium / samples / AdventureWorks / AdventureWorks.Api.TypeScript / src / react / src / components / productSubcategory / productSubcategoryCreateForm.tsx View on Github external
htmlType="submit"
              loading={this.state.submitting}
            &gt;
              {this.state.submitting ? 'Submitting...' : 'Submit'}
            
          
          {message}
        
      );
    } else {
      return null;
    }
  }
}

export const WrappedProductSubcategoryCreateComponent = Form.create({
  name: 'ProductSubcategory Create',
})(ProductSubcategoryCreateComponent);


/*
    a1c21673aa1811ddf09b1465ca93f91b
*/
github Waiviogit / waivio / src / client / rewards / MatchBot / CreateRule / CreateRule.js View on Github external
);
};

CreateRule.propTypes = {
  intl: PropTypes.shape().isRequired,
  form: PropTypes.shape().isRequired,
  modalVisible: PropTypes.bool.isRequired,
  editRule: PropTypes.shape(),
  handleChangeModalVisible: PropTypes.func.isRequired,
  setEditRule: PropTypes.func.isRequired,
};
CreateRule.defaultProps = {
  editRule: {},
};

export default Form.create()(injectIntl(CreateRule));
github alibaba / beidou / examples / antd-components / client / components / form / login-inline.jsx View on Github external
<button disabled="{hasErrors(getFieldsError())}" type="primary">
            Log in
          </button>
        
      
    );
  }
}

const WrappedHorizontalLoginForm = Form.create()(HorizontalLoginForm);

export default WrappedHorizontalLoginForm;
github pickpost / pickpost-platform / app / assets / pages / reset-password-page / index.jsx View on Github external
<button type="primary"> 确定修改 </button>
            
          
        }
      
    );
  }
}

export default connect(({ resetPasswordModel }) =&gt; {
  return {
    resetPasswordModel,
  };
})(Form.create()(ResetPasswordPage));
github codenesium / samples / CAD / CAD.Api.TypeScript / src / react / src / components / unitOfficer / unitOfficerDetailForm.tsx View on Github external
this.state.model!.unitIdNavigation &amp;&amp;
                    this.state.model!.unitIdNavigation!.toDisplay()
                )}
              <p></p>
            
          
          {message}
        
      );
    } else {
      return null;
    }
  }
}

export const WrappedUnitOfficerDetailComponent = Form.create({
  name: 'UnitOfficer Detail',
})(UnitOfficerDetailComponent);


/*
    93a2116fe68ccd9f6248c9011784244b
    
		This code was generated using the Codenesium platform. You can visit our site at https://www.codenesium.com. 
	
*/
github goodrain / rainbond-console / www / static / ant-pro / ant-design-pro-template / src / routes / Group / Backup.js View on Github external
}
		})
	}
	stopLoopStatus(){
		clearTimeout(this.timer)
	}
	render(){
		const data = this.props.data||{};
		return (
			<span>{this.state.map[data.status]} {data.status === 'starting' &amp;&amp; }</span>
		)
	}
}


@Form.create()
class Backup extends PureComponent {
	componentDidMount(){
		
	}
	state = {
		
	}
	onOk = (e) =&gt; {
		e.preventDefault();
		const form = this.props.form;
		form.validateFields((err, fieldsValue) =&gt; {
	        if (err) return;
	        this.props.onOk &amp;&amp; this.props.onOk(fieldsValue)
	    });
	}
	render(){
github dvajs / dva / packages / dva-example-user-dashboard / src / pages / users / components / Users / UserModal.js View on Github external
label="Website"
            &gt;
              {
                getFieldDecorator('website', {
                  initialValue: website,
                })(<input>)
              }
            
          
        
      
    );
  }
}

export default Form.create()(UserEditModal);
github genany / gen / src / modules / Page / PageComponent.js View on Github external
};

const formItemLayoutFull = {
  labelCol: {
    xs: { span: 24 },
    sm: { span: 3 },
    sm: { span: 3 }
  },
  wrapperCol: {
    xs: { span: 24 },
    sm: { span: 21 },
    md: { span: 21 }
  }
};

@Form.create()
export default class PageComponent extends PureComponent {
  constructor(props) {
    super(props);

    const component = this.props.component || { content: { extra_field: [] } };
    this.state = {
      component: component
    };
  }
  componentWillReceiveProps(nextProps) {
    if ('component' in nextProps) {
      const component = nextProps.component;
      component.content.extra_field = component.content.extra_field || [];
      this.setState({ component: component });
    }
  }
github doublechaintech / retailscm-biz-suite / bizui / src / bizcomponents / receivingspace / ReceivingSpace.preference.js View on Github external
&gt;
      {renderPermissionSetting(cardsData.cardsSource)}
      {renderExtraHeader(cardsData.cardsSource)}
        <div>
       
        {subListsOf(cardsData)} 
          
        </div>
      
    )
  }
}

export default connect(state =&gt; ({
  receivingSpace: state._receivingSpace,
}))(Form.create()(ReceivingSpacePreference))