Open qq857254562 opened 4 years ago
版本是"react-native-picker": "^4.3.7"
大家有知道的吗 怎么解决。。。
pickerConfirmBtnText
这个问题可以通过添加【pickerTextEllipsisLen】属性来解决,目前测试属性值可接受number
Picker.init({ pickerData, selectedValue, pickerTitleText: pickerTitle, pickerConfirmBtnText: confirmBtnText, pickerCancelBtnText: cancelBtnText, pickerToolBarHeight, pickerTitleColor, pickerCancelBtnColor, pickerConfirmBtnColor, pickerToolBarBg, pickerBg, wheelFlex, onPickerConfirm: (pickedValue) => { confirmFunc(pickedValue) }, onPickerCancel: (pickedValue) => { cancelFunc(pickedValue) }, onPickerSelect: onValueChange, pickerTextEllipsisLen: 150, })
一个滚轮的时候显示省略号 [pickerTextEllipsisLen]已经添加了啊 ok 已解决。。、果然是这个属性可以用、之前设置的7 改到20果然可行了
V4.3.7 设置pickerTextEllipsisLen不起作用。 export default class Picker { static init(options: PickerOptions): void } PickerOptions 中没有pickerTextEllipsisLen这个属性啊?
use pickerTextEllipsisLen: 12 for android