king
2022-02-09 d59f518f466274b2caeb2e01c10c92deafe7c93b
src/menu/urlfieldcomponent/settingform/index.jsx
@@ -2,7 +2,7 @@
import PropTypes from 'prop-types'
import { Form, Input } from 'antd'
import './index.scss'
// import './index.scss'
class SettingForm extends Component {
  static propTpyes = {
@@ -30,6 +30,17 @@
    }
  }
  componentDidMount() {
    try {
      let _input = document.getElementById('field')
      if (_input.focus) {
        _input.focus()
      }
    } catch (e) {
      console.warn('focus error!')
    }
  }
  render() {
    const { getFieldDecorator } = this.props.form