-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat: Picker和PickerView组件增加mouseWheel事件支持 #5052
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
shusiwei
commented
Apr 11, 2022
- Picker和PickerView组件增加mouseWheel属性
- 暴露useLockScroll中的lock&unlock方法
- 中英文文档跟进
Codecov Report
@@ Coverage Diff @@
## master #5052 +/- ##
==========================================
+ Coverage 42.23% 44.01% +1.77%
==========================================
Files 277 278 +1
Lines 5760 5782 +22
Branches 1333 1335 +2
==========================================
+ Hits 2433 2545 +112
+ Misses 3101 3025 -76
+ Partials 226 212 -14
Continue to review full report at Codecov.
|
@@ -17,6 +17,7 @@ PickerView 是 [Picker](./picker/#picker) 的内容区域。 | |||
| defaultValue | 默认选中项 | `PickerValue[]` | `[]` | | |||
| onChange | 选项改变时触发 | `(value: PickerValue[], extend: PickerValueExtend) => void` | - | | |||
| renderLabel | 自定义渲染每列展示的内容 | `(item: PickerColumnItem) => ReactNode` | `(item) => item.label` | | |||
| mouseWheel | 鼠标滚轮模式 | `boolean` | `false` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该修正为 启用鼠标滚轮模式
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一次滚动,直接滚动4条数据了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一次滚动,直接滚动4条数据了
是的,目前依然有这个问题。不知道何时可以解决呢?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一次滚动,直接滚动4条数据了
是的,目前依然有这个问题。不知道何时可以解决呢?
我刚才提交了个pr,看会不会合并吧 #6853
@@ -17,6 +17,7 @@ PickerView is the content area of [Picker](./picker/#picker). | |||
| defaultValue | Default selected options | `PickerValue[]` | `[]` | | |||
| onChange | Triggered when the options are changed | `(value: PickerValue[], extend: PickerValueExtend) => void` | - | | |||
| renderLabel | The function to custom rendering the label shown on a column | `(item: PickerColumnItem) => ReactNode` | `(item) => item.label` | | |||
| mouseWheel | Support mouse wheel events | `boolean` | `false` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该修正为 Enable mouse wheel mode
在你的基础上改了一下 |