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

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant