add return

This commit is contained in:
kangwei 2020-04-21 21:26:36 +08:00
parent 8e3e3b589a
commit 567281fa9b

View File

@ -4,7 +4,7 @@ import { DragObjectType, isNode } from '@ali/lowcode-designer';
const dragon = designer.dragon;
const DragEngine = {
from(shell: Element, boost: (e: MouseEvent) => any): any {
dragon.from(shell, (e) => {
return dragon.from(shell, (e) => {
const r = boost(e);
if (!r) {
return null;