Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

基于iview的tree组件拓展了树节点拖拽功能,默认使用了远程加载 #1192

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

Open
Flywor wants to merge 2 commits into iview:master
base: master
Choose a base branch
Loading
from Flywor:tree-drag

Conversation

@Flywor
Copy link

@Flywor Flywor commented Feb 13, 2019

增加树节点拖拽组件源码至_c/tree-drag
增加相应demo和路由、i18n文字配置

组件目前开放了

1个参数
// 接收返回Promise的方法
getChild: {
type: Function,
default: null
}

2个事件
// 节点选择触发
// node 选择的树节点
on-select(node)

// 拖拽完成触发
// dragNode 拖拽的树节点
// dropNode 拖拽至目标的树节点
// position 拖拽到目标节点的位置('before' 'inner' 'after')
// event 拖拽结束事件本身
on-drag(dragNode, dropNode, position, event)

该组件个人维护地址: https://github.com/Flywor/iview-tree-drag

提供该功能加入参考
欢迎拍砖指导

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /