Skip to content

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.

1 participant