js: add generated child remove api
This commit is contained in:
8
doric-web/dist/index.js
vendored
8
doric-web/dist/index.js
vendored
@@ -1961,6 +1961,14 @@ class Group extends Superview {
|
||||
addChild(view) {
|
||||
this.children.push(view);
|
||||
}
|
||||
removeChild(view) {
|
||||
const ret = this.children.filter(e => e !== view);
|
||||
this.children.length = 0;
|
||||
ret.forEach(e => this.addChild(e));
|
||||
}
|
||||
removeAllChildren() {
|
||||
this.children.length = 0;
|
||||
}
|
||||
}
|
||||
|
||||
const SPECIFIED = 1;
|
||||
|
2
doric-web/dist/index.js.map
vendored
2
doric-web/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user