king
2022-04-26 5046d0d13dc6a8563b8e54e31913bc44cfa1072f
src/components/normalform/modalform/mkSelect/index.jsx
@@ -106,6 +106,23 @@
    const { value, config, options } = this.state
    if (config.type !== 'multiselect') {
      if (config.extendName) {
        return (
          <Select
            showSearch
            allowClear
            value={value}
            filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0 ||
              option.props.extend.toLowerCase().indexOf(input.toLowerCase()) >= 0}
            onSelect={this.selectChange}
            onChange={(val) => val === undefined && this.selectChange('')}
          >
            {options.map((option, i) =>
              <Select.Option key={i} disabled={option.disabled} extend={option[config.extendName] || ''} value={option.value || option.field || ''}>{option.label || option.text}</Select.Option>
            )}
          </Select>
        )
      } else {
      return (
        <Select
          showSearch
@@ -120,6 +137,7 @@
          )}
        </Select>
      )
      }
    } else {
      return (<Select
        showSearch