beefe / react-native-picker

A Native Picker with high performance.
1.75k stars 785 forks source link

android文字省略号 #396

Open qq857254562 opened 4 years ago

qq857254562 commented 4 years ago

image

qq857254562 commented 4 years ago

版本是"react-native-picker": "^4.3.7"

qq857254562 commented 4 years ago

大家有知道的吗 怎么解决。。。

XiaofanFTD commented 4 years ago

pickerConfirmBtnText

FerrisW commented 4 years ago

330已提到

这个问题可以通过添加【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, })

shadow-boy commented 4 years ago

image 一个滚轮的时候显示省略号 [pickerTextEllipsisLen]已经添加了啊 ok 已解决。。、果然是这个属性可以用、之前设置的7 改到20果然可行了

cw0925 commented 4 years ago

V4.3.7 设置pickerTextEllipsisLen不起作用。 export default class Picker { static init(options: PickerOptions): void } PickerOptions 中没有pickerTextEllipsisLen这个属性啊?

miloDev-android commented 4 years ago

use pickerTextEllipsisLen: 12 for android