diff --git a/.changeset/lemon-tomatoes-peel.md b/.changeset/lemon-tomatoes-peel.md new file mode 100644 index 0000000000..0aa92f9c75 --- /dev/null +++ b/.changeset/lemon-tomatoes-peel.md @@ -0,0 +1,5 @@ +--- +'@td-design/react-native-picker': patch +--- + +fix: 缩小picker的scale,并配置文字的超出效果 diff --git a/packages/react-native-picker/src/components/WheelPicker/WheelPickerItem.tsx b/packages/react-native-picker/src/components/WheelPicker/WheelPickerItem.tsx index d562361d6c..ed904caeff 100644 --- a/packages/react-native-picker/src/components/WheelPicker/WheelPickerItem.tsx +++ b/packages/react-native-picker/src/components/WheelPicker/WheelPickerItem.tsx @@ -23,7 +23,7 @@ function WheelPickerItem({ textStyle, style, visibleRest, height, option, index, opacityOutputRange.push(y); } - const scaleOutputRange = [1.3]; + const scaleOutputRange = [1.1]; for (let x = 1; x <= visibleRest + 1; x++) { const y = scaleFunction(x); scaleOutputRange.unshift(y); @@ -52,7 +52,9 @@ function WheelPickerItem({ textStyle, style, visibleRest, height, option, index, return ( - {option?.label} + + {option?.label} + ); }