前言
日常积累,欢迎指正
问题描述
错误代码段
import * as React from 'react'
import {
Card, Form, Select } from 'antd'
const Option = Select.Option
import {
FormComponentProps } from 'antd/lib/form'
interface IState {
// defaultCurrentLayerKey : any
}
interface IProps {
/**
* 面板关闭触发
*/
onClose?: (currentCom) => void
}
interface IDisasterEvaluationFormProps extends FormComponentProps {
}
class ComForm extends React.Component<IDisasterEvaluationFormProps, IState> {
constructor(props: IDisasterEvaluationFormProps) {
super(props)
}
render() {
const {
getFieldDecorator } = this.props.form
const formLayout = {
labelCol: {
span: 6 }, // offset : 12
wrapperCol