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

✨ [Feature]: Cascader勾选父级时,不带父级与子级的值 #344

Open
jinxiangqiang opened this issue Jan 18, 2024 · 3 comments
Open

Comments

@jinxiangqiang
Copy link

jinxiangqiang commented Jan 18, 2024

What problem does this feature solve

image
如图,在勾选父级时,虽然子级也有勾选效果,但实际显示的值是node2,目前开启多选后,ngModelChange会返回所有选中的值,且在数据量大时,卡顿严重
image

What does the proposed API look like

[tree]=�true

@foolmadao
Copy link

你说的"在勾选父级时,虽然子级也有勾选效果,但实际显示的值是node2"现象在demo上没有复现。
image

另外卡顿问题本地测试了一下没复现,建议提供下你的数据量大小。

@jinxiangqiang
Copy link
Author

我表达错误,如果选择option1-1,是否可以定义个属性开关,需要带入子级或者不需要带入子级。

以下是我的演示数据,在我电脑上选择农、林、牧、渔业的时候会卡死3秒左右才勾选上
a.json

@foolmadao
Copy link

我表达错误,如果选择option1-1,是否可以定义个属性开关,需要带入子级或者不需要带入子级。

以下是我的演示数据,在我电脑上选择农、林、牧、渔业的时候会卡死3秒左右才勾选上 a.json

这个demo演示了怎么实现选父不带子
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants