-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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 node can drag and drop #9251
Conversation
I need this functionality, any plan to merge. 👍 |
packages/theme-chalk/src/tree.scss
Outdated
@@ -21,6 +21,12 @@ | |||
transform: translate(-50%, -50%); | |||
color: mix($--color-primary, rgb(158, 68, 0), 50%); | |||
} | |||
|
|||
.dropGap { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 className需要加前缀,另外 dropGap 不是个很好的名字,叫 el-tree--drop-indicator 可能更合理。
packages/tree/src/tree-node.vue
Outdated
@@ -77,6 +87,10 @@ | |||
return {}; | |||
} | |||
}, | |||
dragEnable: { | |||
type: Boolean, | |||
default: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
代码风格里面 ,
应该是不需要的。
packages/tree/src/tree.vue
Outdated
@@ -80,6 +87,11 @@ | |||
type: Boolean, | |||
default: false | |||
}, | |||
dragEnable: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
draggable 可能更通俗易懂一些。
packages/tree/src/tree.vue
Outdated
type: Boolean, | ||
default: false | ||
}, | ||
canDrop: Function, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allowDrop 吧
为Tree组件添加拖拽功能