From c7aece35a62b6e91fd98a625bf0e53f64bfbd18d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 17 八月 2023 16:22:15 +0800 Subject: [PATCH] 2023-08-17 --- src/components/normalform/modalform/mkRadio/index.jsx | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/normalform/modalform/mkRadio/index.jsx b/src/components/normalform/modalform/mkRadio/index.jsx index aab46a3..088ed0e 100644 --- a/src/components/normalform/modalform/mkRadio/index.jsx +++ b/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 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> ) } -- Gitblit v1.8.0