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 父节点 checked =true 后 子节点 checked =false 还是会被选中 #1606

Closed
4 tasks done
cdsdhj opened this issue Jan 30, 2024 · 1 comment
Closed
4 tasks done
Labels
wontfix 不做修复与处理,或无法解决

Comments

@cdsdhj
Copy link

cdsdhj commented Jan 30, 2024

议题条件

  • 我确认已查看官方使用文档:https://layui.dev ,但没有找到相关解决方案。
  • 我确认已在 Issues 中搜索过类似的问题,但没有找到相关解决方案。
  • 我已仔细阅读: 🍀 Layui Issue 贡献指南

议题类型

疑是 BUG

使用版本

v2.9.6

问题描述

树组件 tree 父节点 checked =true 后 子节点 checked =false 还是会被选中

业务代码

[{
	title: 'LTP计划',
	id: 'A',
	checked: true,
	spread: true,
	children: [{
			title: 'LTP计划',
			id: 'A100',
			checked: false
		},
		{
			title: '结果分析报表',
			id: 'A200',
			checked: true
		}
	]
}]

截图补充

1
2

浏览器

Chrome 121.0.6167.86

演示地址

No response

友好承诺

  • 我承诺将本着相互尊重、理解和友善的态度进行交流,共同维护 Layui 良好的社区氛围。
@sentsim
Copy link
Member

sentsim commented Jan 30, 2024

tree 组件的问题暂不受理,复杂树菜单需求建议采用别的同类组件替代实现,后续可等待版本重构后的 tree。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix 不做修复与处理,或无法解决
Projects
None yet
Development

No branches or pull requests

2 participants