feat: 兼容 didDropOut 接口

This commit is contained in:
力皓 2020-10-23 10:27:45 +08:00
parent 6649a7e981
commit 2655c4ad58
3 changed files with 5 additions and 5 deletions

View File

@ -290,9 +290,9 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
this._parent.children.unlinkChild(this);
}
}
// if (useMutator) {
// this._parent?.didDropOut(this);
// }
if (useMutator) {
this._parent?.didDropOut(this);
}
// 建立新的父子关系
this._parent = parent;
if (parent) {

View File

@ -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,

View File

@ -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"
}