const childrens = [];
for (let i = 0; i <= 10; i++) {
childrens.push(<option key={i} value={(i*0.1).toFixed(1)}>{(i*0.1).toFixed(1)}</option>);
}
<select
className="targetColoralpha"
onChange={this.changeAlpha}
>
<option value={1}>透明度</option>
{childrens}
</select>
changeAlpha = (e) => {
let tg = e.target
let alpha = tg.options[tg.selectedIndex].value
this.setState({alpha,})
if (!this.props.onChange) return;
if (this.props.onlyColorParamter) {
this.props.onChange(this.state.iconColor, alpha)
return;
}
}