vxe-tree 树组件拖拽排序功能的使用教程,通过 drag 启用行拖拽排序功能,支持同层级、跨层级、拖拽到子级非常强大的拖拽功能等
官网:https://vxeui.com
github:https://github.com/x-extends/vxe-pc-ui
gitee:https://gitee.com/x-extends/vxe-pc-ui
同层级拖拽
通过 drag-config.isPeerDrag 启用同层级拖拽
- <template>
-
- <vxe-tree v-bind="treeOptions"></vxe-tree>
-
- </template>
复制代码 跨层级拖拽
通过 drag-config.isCrossDrag 启用跨层级拖拽
- <template>
-
- <vxe-tree v-bind="treeOptions"></vxe-tree>
-
- </template>
复制代码 https://gitee.com/x-extends/vxe-pc-ui
来源:程序园用户自行投稿发布,如果侵权,请联系站长删除
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作! |