我想并排放置 3 个输入。我有如下代码,并且在每次迭代中我都希望三个组件并排。可能吗?
{
this.state.features.length > 0 ?
this.state.features.map((feature) => {
return (
<div>
<BooleanInput key={feature} source={this.assignIsFeatureActiveProp(feature)} label={feature} />
<DisabledInput source="id" label="Value" defaultValue={feature} />
<TextInput source={this.assignFeatureValueProp(feature)} label="Value" />
</div>
)
})
:
null
}