Skip to content

Commit 4a0ee85

Browse files
authored
fix(picker): Add swipeDuration prop to Picker component (#848)
1 parent 5233d84 commit 4a0ee85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/picker/Picker.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const Picker: FC<PickerProps> = (props) => {
4545
cancelBtn,
4646
confirmBtn,
4747
renderLabel,
48+
swipeDuration,
4849
} = useDefaultProps(props, pickerDefaultProps);
4950
const pickerClass = usePrefixClass('picker');
5051

@@ -160,6 +161,7 @@ const Picker: FC<PickerProps> = (props) => {
160161
value={pickerValue[idx]}
161162
renderLabel={renderLabel}
162163
onPick={(context) => handlePick(context, idx)}
164+
swipeDuration={swipeDuration}
163165
/>
164166
</div>
165167
))}

0 commit comments

Comments
 (0)