Commit f0fff39a authored by 陈帅's avatar 陈帅

fix: fix basic form page

parent d06a7691
......@@ -17,7 +17,7 @@
"react": "^16.6.3",
"redux": "^4.0.1",
"umi-request": "^1.0.0",
"umi-plugin-react": "^1.7.2"
"umi-plugin-react": "^1.8.4"
},
"devDependencies": {
"umi": "^2.6.9",
......
FormBasicForm/snapshot.png

17.1 KB | W: | H:

FormBasicForm/snapshot.png

84.7 KB | W: | H:

FormBasicForm/snapshot.png
FormBasicForm/snapshot.png
FormBasicForm/snapshot.png
FormBasicForm/snapshot.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -28,6 +28,7 @@ interface PAGE_NAME_UPPER_CAMEL_CASEProps extends FormComponentProps {
submitting: boolean;
dispatch: Dispatch<any>;
}
class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEProps> {
handleSubmit = (e: React.FormEvent) => {
const { dispatch, form } = this.props;
......@@ -66,7 +67,6 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEPro
sm: { span: 10, offset: 7 },
},
};
return (
<PageHeaderWrapper content={<FormattedMessage id="BLOCK_NAME.basic.description" />}>
<Card bordered={false}>
......@@ -247,7 +247,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEPro
}
}
export default Form.create<PAGE_NAME_UPPER_CAMEL_CASEProps>(
export default Form.create<PAGE_NAME_UPPER_CAMEL_CASEProps>()(
connect(({ loading }: { loading: { effects: { [key: string]: boolean } } }) => ({
submitting: loading.effects['BLOCK_NAME_CAMEL_CASE/submitRegularForm'],
}))(PAGE_NAME_UPPER_CAMEL_CASE),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment