king
2022-10-04 41c55c1f103658b997f7a828a7067bdb228f1df0
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