-
Notifications
You must be signed in to change notification settings - Fork 360
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] 组件节点上的 disabled 配置和 draggable 配置会被绑定的数据上的同名配置覆盖 #2707
Labels
💪🏻 enhancement
New feature or request
Comments
👋 @zhangvj,感谢给 TDesign 提出了 issue。 |
感觉节点配置项的优先级高于上一级组件同名配置是组件 API 设计的一般做法,也符合一般认知。 |
xiaosansiji
added
💪🏻 enhancement
New feature or request
and removed
💭 discussion
we are discussing
labels
Aug 23, 2023
目前 1.6.2 版本 keys中 已经添加了 disabled 可配置属性 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tdesign-vue 版本
1.6.0
重现链接
No response
重现步骤
注:disable 会出现同样现象
期望结果
节点上的是否可拖拽不应直接受绑定的data数据中的同名属性影响;
除非在 keys 中添加了指定的 draggable 配置对应节点对象的某个属性值;
disable 属性同理;
建议:
1、添加组件全局的拖动和禁用配置
2、添加keys中可配置对应的属性
3、添加可动态设置节点是否允许拖拽的判断属性(类似element-ui的allow-drag和allow-drop)
实际结果
tree组件的 disable 与 draggable 配置受绑定data数据上同名字段影响
框架版本
Vue2(2.6.*)
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
拖动应该是tree组件比较常用的功能,还希望各位开发大佬考虑下这个功能的实现方式
Tasks
Tasks
The text was updated successfully, but these errors were encountered: