king
2023-12-12 49f09cc6f8ff8c30a75ed1a9d6f510b69b73962a
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