子节点无法拖动
ponysb opened this issue · comments
Pony commented
框架:vue3
系统win11
浏览器:edge
跟着官方的文档走,发现无法拖动子节点,会默认选中节点上的文字,无法实现自由拖动等需求
<button @click="toggleFreeDrag" v-if="activeNodes.length > 0">{{ isOpenFreeDrag ? '关闭自由拖拽' : '开启自由拖拽' }}
<button @click="resetLayout" v-if="activeNodes.length > 0">恢复默认布局
<button @click="back" v-if="!isStart">回退
<button @click="forward" v-if="!isEnd">前进
<button @click="insertNode" v-if="activeNodes.length > 0">插入兄弟节点
<button @click="insertChildNode" v-if="activeNodes.length > 0">插入子节点
<button @click="deleteNode" v-if="activeNodes.length > 0">删除节点
街角小林 commented
需要注册Drag插件