Taro2.x使用pickerView百度小程序显示异常,pickerViewColumn强制换行不在一行显示



  • <PickerView indicatorStyle='height: 50px;' style='width: 100%; height: 300px;' value={this.state.value} onChange={this.onChange}>
    <PickerViewColumn>
    {this.state.years.map(item => {
    return (
    <View>{item}年</View>
    );
    })}
    </PickerViewColumn>
    <PickerViewColumn>
    {this.state.months.map(item => {
    return (
    <View>{item}月</View>
    )
    })}
    </PickerViewColumn>
    <PickerViewColumn>
    {this.state.days.map(item => {
    return (
    <View>{item}日</View>
    )
    })}
    </PickerViewColumn>
    </PickerView>



  • Taro版本2.2.13


登录后回复