@jiangood/admin-spring-boot-starter 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -74,12 +74,10 @@ export class LoginPage extends React.Component {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
getForm
|
|
78
|
-
|
|
79
|
-
return this.props.form;
|
|
80
|
-
}
|
|
77
|
+
getForm = siteInfo => {
|
|
78
|
+
|
|
81
79
|
|
|
82
|
-
|
|
80
|
+
const form = <Form
|
|
83
81
|
name="normal_login"
|
|
84
82
|
className="login-form"
|
|
85
83
|
initialValues={{remember: true}}
|
|
@@ -118,7 +116,12 @@ export class LoginPage extends React.Component {
|
|
|
118
116
|
</Button>
|
|
119
117
|
</Form.Item>
|
|
120
118
|
</Form>;
|
|
121
|
-
|
|
119
|
+
|
|
120
|
+
if(this.props.formRender){
|
|
121
|
+
return this.props.formRender(form);
|
|
122
|
+
}
|
|
123
|
+
return form;
|
|
124
|
+
};
|
|
122
125
|
|
|
123
126
|
renderFormBottom() {
|
|
124
127
|
let siteInfo = this.state.siteInfo;
|