react-component / react-component/picker

需求一个能手动控制选完时间后,标签是否滑动到顶的配置

Open
#937 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
304
Forks
345
Avg merge
2d 7h
Merged PRs (30d)
7

Description

现状 & 问题:

TimePicker组件会在选择完时间后,自动让选择的时间滑动到顶,但在我的应用场景里并不需要自动滑动,而我关不掉这个功能。

需求:

添加一个props,支持能禁用掉这个功能

我看到的相关的文件:PickerPanel/TimePanel/TimePanelBody/TimeColumn.tsx

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with PickerPanel/TimePanel/TimePanelBody/TimeColumn.tsx and trace the behavior that scrolls the selected time to the top after selection. Add a prop that controls this behavior, and consider the work done when applications can disable the automatic scrolling while normal scrolling remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.