Can I change the TreeSelect props on the fly?
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 20/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
该 issue 没有指出源文件、测试或入口点;请先定位 TreeSelect 组件以及它对 showCheckedStrategy 和 treeCheckStrictly 的处理。确定是否支持在这两种模式之间切换,以及应保留哪种选择状态,然后记录或测试已达成一致的行为。
由索引模型根据 Issue 内容生成。
描述
Can I change the TreeSelect props on the fly? For example, I wanted to have 2 modes for this component, so user can freely switch between TreeSelect.SHOW_ALL and TreeSelect.SHOW_PARENT. From my understanding, I need to change the props of showCheckedStrategy & treeCheckStrictly to make this happen. Any Idea on how to dynamically change this two props?
MODE 1 : Select only parent
showCheckedStrategy = TreeSelect.SHOW_PARENT
treeCheckStrictly = true

MODE 2: Select parent and all its children
showCheckedStrategy = TreeSelect.SHOW_ALL
treeCheckStrictly = false

- 主要语言
- TypeScript
- 星标
- 312
- 派生
- 205
- 平均合并
- 37 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
react-component/tree-select 的其他 Issue
-
Focus and keyboard navigation do not work in search results when disabled parents可能已有人在做 @nrps9909 于 44 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 52/100
react-component/tree-select#652 ·
-
难度 3/5 1-2 天 新手友好度 45/100
react-component/tree-select#528 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
react-component/tree-select#485 ·
-
难度 4/5 3-5 天 新手友好度 28/100
react-component/tree-select#466 ·
-
DFS这里是否能调整为尾递归未关闭
难度 3/5 1-2 天 新手友好度 35/100
react-component/tree-select#454 ·
查看 react-component/tree-select 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 72/100
yjh051108/dsh-routing-suite#216 ·
-
kind/bug priority/needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Dependencies view: `getParent` loops forever on untitled documents, extension host runs out of memory可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 半天 新手友好度 66/100
apache/fineract-consumer-facing#175 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1 小时以内 新手友好度 82/100
awslabs/visual-asset-management-system#413 ·
维护者通常 1 天内回复