react-component / react-component/cascader

loadData的时候异步的改变枝节点为叶节点,并且关闭浮层

Open
#44 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
233
Forks
149
Avg merge
10h 23m
Merged PRs (30d)
2

Description

现在有一个需求,因为一些原因,后台传过来数据的时候不知道此时的节点是枝节点还是叶节点。每次需要等待传回来的数据判断。这时候想要有一个回调,如果传回来的数据表示当前节点是叶节点,设置值为当前节点并且关闭浮层。

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 from the cascader's loadData entry point and trace how returned data updates the current node and controls the popup. Determine how an asynchronously identified leaf should be selected and how the overlay is closed, then verify the behavior with the existing test setup; the issue does not name specific files or tests.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.