Skip to content
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

Cascader 能不能考虑支持选择任意层级,而不是只能选择最后一级 #1156

Closed
chenshiming1113 opened this issue Nov 13, 2023 · 2 comments · Fixed by #1186
Closed
Labels
easy 简单问题 enhancement New feature or request issueshoot 代码共建平台

Comments

@chenshiming1113
Copy link

chenshiming1113 commented Nov 13, 2023

这个功能解决了什么问题

手机端选择部门时,不一定只选择最后一层级部门,比如部门一共有4级,可能选择二级或三级部门。

你建议的方案是什么

希望考虑像PC端的Cascader 可以选择任意层级,点确定按钮则选择选择结束

IssueShoot

  • 预估时长: 1
  • 期望完成时间: 2023-11-30
  • 开发难度: 低
  • 参与人数: 1
  • 需求对接人: anlyyao
  • 验收标准: 实现期望改造效果,提 PR 并通过验收无误
  • 备注: 最终激励以实际提交 pull request 并合并为准
Copy link
Contributor

👋 @chenshiming1113,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao
Copy link
Collaborator

anlyyao commented Nov 24, 2023

@chenshiming1113 可以支持点击确认按钮后结束选择。 但是你说的“不一定只选择最后一层级部门,比如部门一共有4级,可能选择二级或三级部门”,不是很理解,有具体和PC哪一个示例对应吗?

@anlyyao anlyyao added enhancement New feature or request easy 简单问题 issueshoot 代码共建平台 labels Nov 24, 2023
novlan1 added a commit to novlan1/tdesign-mobile-vue that referenced this issue Dec 14, 2023
anlyyao added a commit that referenced this issue Dec 21, 2023
* feat(cascader): support checkStrictly

fix #1156

* fix(Cascader): resolved the problem of triggering close event on first click

---------

Co-authored-by: anlyyao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy 简单问题 enhancement New feature or request issueshoot 代码共建平台
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants