king
2023-08-17 c7aece35a62b6e91fd98a625bf0e53f64bfbd18d
src/components/normalform/modalform/mkRadio/index.jsx
@@ -4,7 +4,6 @@
import { Radio } from 'antd'
import MKEmitter from '@/utils/events.js'
import './index.scss'
class MKRadio extends Component {
  static propTpyes = {
@@ -81,11 +80,11 @@
  }
  render() {
    const { value, options } = this.state
    const { value, options, config } = this.state
    return (
      <Radio.Group style={{whiteSpace: 'nowrap'}} value={value} onChange={this.onChange}>
        {options.map(option => <Radio key={option.value} value={option.value}>{option.label}</Radio>)}
      <Radio.Group style={{whiteSpace: 'nowrap'}} disabled={config.disabled} value={value} onChange={this.onChange}>
        {options.map(option => <Radio key={option.value} disabled={option.disabled} value={option.value}>{option.label}</Radio>)}
      </Radio.Group>
    )
  }