class MixedInput extends Component {
value = () => {
return "xxx"
}
onChange = () => {
console.log("set value")
this.setState({ value: "xxx" });
}
render() {
let options = this.props.items.map(function (option, idx) {
return { value: option.value, label: option.text }
});
return (
<div>
<Picker data={options} cols={1} onChange={this.onChange}>
<List.Item>{this.props.label}</List.Item>
</Picker>
<TextareaItem rows={3} onChange={this.onChange} />
</div>
)
}
}
export default MixedInput
this setting does not work. The attribute value obtained in submit is always undefined,. Which god would trouble me to tell me the use of the custom component rc-form? thank you very much.