| | |
| | | dict: PropTypes.object, |
| | | auth: PropTypes.bool, |
| | | lang: PropTypes.string, |
| | | langList: PropTypes.array, |
| | | platName: PropTypes.string |
| | | } |
| | | |
| | |
| | | initialValue: true, |
| | | })(<Checkbox>{this.props.dict['login.remember']}</Checkbox>)} |
| | | </Form.Item> |
| | | <Form.Item className="minline right"> |
| | | {this.props.langList && this.props.langList.length > 0 ? <Form.Item className="minline right"> |
| | | {getFieldDecorator('lang', { |
| | | initialValue: this.props.lang, |
| | | })( |
| | |
| | | onChange={(value) => {this.changelang(value)}} |
| | | getPopupContainer={() => document.getElementById('login-form')} |
| | | > |
| | | <Select.Option value="zh-CN">中文简体</Select.Option> |
| | | <Select.Option value="en-US">English</Select.Option> |
| | | {this.props.langList.map((item, index) => { |
| | | return <Select.Option key={index} value={item.Lang}>{item.LangName}</Select.Option> |
| | | })} |
| | | </Select> |
| | | )} |
| | | </Form.Item> |
| | | </Form.Item> : null} |
| | | <Form.Item className="btn-login"> |
| | | <Button type="primary" htmlType="submit" className="login-form-button" disabled={this.props.isDisabled} loading={this.props.isDisabled}> |
| | | {this.props.dict['login.submit']} |