{"size": 965, "ext": "js", "max_stars_repo_path": "src/view/DSPManage/DealManage/moudle/RadioInputCom.js", "max_stars_repo_name": "wangpengzsx/lead-admin-ui", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/view/DSPManage/DealManage/moudle/RadioInputCom.js", "max_issues_repo_name": "wangpengzsx/lead-admin-ui", "max_issues_repo_issues_event_min_datetime": "2021-03-09T19:12:09.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-10T19:31:41.000Z", "max_forks_repo_path": "src/view/DSPManage/DealManage/moudle/RadioInputCom.js", "max_forks_repo_name": "wangpengzsx/lead-admin-ui", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 24.7435897436, "max_line_length": 76, "alphanum_fraction": 0.6155440415}
import React from "react";
import {Radio} from "antd";
export default class RadioInputCom extends React.Component {
	constructor(){
		super()
		this.state={
			value:''
		}
	}
	onChange(e){
		this.props.call(e.target.value)
	}
	onInputChange(e){
		this.props.input_call(e.target.value)
	}
	render() {
		return (
			<div className="accountListRow" style={{height:30}}>
				<div className="form-left">
					 {this.props.label}：
				</div>
				<div className="form-right-multiple" style={{display:'block'}}>
					<Radio.Group onChange={(e)=>this.onChange(e)} value={this.props.value}>
						<Radio value="NO" >不限制</Radio>
						<Radio value="YES" >限制</Radio>
					</Radio.Group>
					{this.props.value=='YES'?<input
						className="border1"
						value={this.props.input_value}
						onChange={(e)=>this.onInputChange(e)}
						style={{ width: '300px'}}
					/>:null}
					{this.props.value=='YES'?<i className="color1">请填写PV值</i>:null}
				</div>
			</div>
		)
	}
}
