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>


登录后回复