m-picker icon indicating copy to clipboard operation
m-picker copied to clipboard

OnClick handler for Picker

Open warmhug opened this issue 7 years ago • 1 comments

ref https://github.com/ant-design/ant-design-mobile/issues/1841

What problem does this feature solve?

The user can change the value of the Picker/ PickerView/ DatePicker by clicking the value and scroll to that value besides scrolling the picker.

What does the proposed API look like?

<Picker onPickerClick={(value) => console.log(value) />

onPickerClick will return the value that is clicked.

warmhug avatar Sep 14 '17 07:09 warmhug

就算不给做这个,为PickerItem加个OnClick属性,Picker则提供一个ScrollTo方法也好啊

vipcxj avatar Jul 26 '19 09:07 vipcxj