king
2021-08-31 72419e2f826031a158173f46d723a672064e37cd
src/menu/components/share/usercomponent/settingform/index.jsx
@@ -7,6 +7,7 @@
class SettingForm extends Component {
  static propTpyes = {
    dict: PropTypes.object,       // 字典项
    name: PropTypes.string,       // 组件名称
    inputSubmit: PropTypes.func   // 回车事件
  }
@@ -63,11 +64,15 @@
                </Tooltip>
              }>
                {getFieldDecorator('name', {
                  initialValue: '',
                  initialValue: this.props.name || '',
                  rules: [
                    {
                      required: true,
                      message: this.props.dict['form.required.input'] + '组件名称!'
                    },
                    {
                      max: 15,
                      message: '组件名称最多15个字符!'
                    }
                  ]
                })(<Input placeholder={''} autoComplete="off" onPressEnter={this.handleSubmit}/>)}