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

希望tree-grid支持选checkRowKeys包含父节点的key #147

Closed
heshunwq opened this issue Jul 18, 2019 · 3 comments

Comments

@heshunwq
Copy link

commented Jul 18, 2019

这个需求解决了什么问题 What problem does this feature solve

假设现在有一个父节点,两个子节点。
选择其中一个子节点。需要checkRowKeys中包含选中的子节点key和父节点的key。

建议的 API 是什么样的 What does the proposed API look like

可以在selectConfig中配置是否支持该模式。

是否已有其他不错的替代方案 Describe alternatives you've considered

没有

版本 Version

  • os: ?
  • browser: ?
  • vue: ?
  • vxe-table: 1.7.1
@xuliangzhan

This comment has been minimized.

Copy link
Owner

commented Jul 18, 2019

该 bug 已修复,建议更新到最新试下 https://xuliangzhan.github.io/vxe-table/#/table/tree/selection

@heshunwq

This comment has been minimized.

Copy link
Author

commented Jul 19, 2019

@xuliangzhan 我的需求可能没表达清楚,我仔细想了下,这个功能可能和已有选择有冲突。
需求改成:希望tree-grid支持父子选择状态不关联,参考ivew里tree的check-strictly属性(https://www.iviewui.com/components/tree)

@xuliangzhan xuliangzhan closed this Aug 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.