king
2021-09-29 7acac704eadabff7bab8f640f6035935f57e5381
src/tabviews/zshare/mutilform/mkSelect/index.jsx
@@ -3,7 +3,6 @@
import { Select } from 'antd'
import MKEmitter from '@/utils/events.js'
import './index.scss'
class MKSelect extends Component {
  constructor(props) {
@@ -79,7 +78,7 @@
    const { config } = this.state
    let options = config.oriOptions.filter(option => option.ParentID === parentId || option.value === '')
    let _option = options[0] || null
    let _option = options[0] && !options[0].$disabled ? options[0] : null
    let val = _option ? _option.value : ''
    this.setState({
@@ -160,6 +159,7 @@
          allowClear
          id={config.uuid}
          value={value}
          dropdownMatchSelectWidth={config.dropdown !== 'false'}
          filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
          onSelect={this.selectChange}
          onChange={(val) => val === undefined && this.selectChange('')}