fix: 新元素无法在大纲树拖拽

This commit is contained in:
jingyu 2022-08-03 11:08:08 +08:00 committed by LeoYuan 袁力皓
parent f400172825
commit 3d41fd5d07

View File

@ -152,7 +152,8 @@ export class OutlineMain implements ISensor, ITreeBoard, IScrollable {
return canMove;
});
if (!operationalNodes || operationalNodes.length === 0) {
// 如果拖拽的是 Node 才需要后面的判断,拖拽 data 不需要
if (isDragNodeObject(dragObject) && (!operationalNodes || operationalNodes.length === 0)) {
return;
}