From 8d66ff34fae5b048a6b7923cc75d34f13a08be9d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 02 八月 2022 11:42:43 +0800 Subject: [PATCH] Merge branch 'develop' --- 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 9b2ec9e..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 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> ) } -- Gitblit v1.8.0