From 2655c4ad582fc7310ffbe0a2acc3cc5d289cf805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=9B=E7=9A=93?= Date: Fri, 23 Oct 2020 10:27:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=BC=E5=AE=B9=20didDropOut=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/designer/src/document/node/node.ts | 6 +++--- packages/editor-skeleton/.eslintrc.js | 2 +- packages/react-renderer/package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/designer/src/document/node/node.ts b/packages/designer/src/document/node/node.ts index fd486a4be..2c83d118f 100644 --- a/packages/designer/src/document/node/node.ts +++ b/packages/designer/src/document/node/node.ts @@ -290,9 +290,9 @@ export class Node { this._parent.children.unlinkChild(this); } } - // if (useMutator) { - // this._parent?.didDropOut(this); - // } + if (useMutator) { + this._parent?.didDropOut(this); + } // 建立新的父子关系 this._parent = parent; if (parent) { diff --git a/packages/editor-skeleton/.eslintrc.js b/packages/editor-skeleton/.eslintrc.js index c3ee4f29b..27e1e0d4f 100644 --- a/packages/editor-skeleton/.eslintrc.js +++ b/packages/editor-skeleton/.eslintrc.js @@ -1,7 +1,7 @@ module.exports = { extends: 'eslint-config-ali/typescript/react', rules: { - 'react/no-multi-comp': 1, + 'react/no-multi-comp': 0, 'no-unused-expressions': 1, 'implicit-arrow-linebreak': 1, 'no-nested-ternary': 1, diff --git a/packages/react-renderer/package.json b/packages/react-renderer/package.json index 66b2d174c..ac153ac8f 100644 --- a/packages/react-renderer/package.json +++ b/packages/react-renderer/package.json @@ -54,5 +54,5 @@ "publishConfig": { "registry": "http://registry.npm.alibaba-inc.com" }, - "homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-react-renderer@0.13.1-5/build/index.html" + "homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-react-renderer@0.13.1-6/build/index.html" }