mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-06-07 08:44:00 +00:00
默认node不折叠
This commit is contained in:
parent
6fc7997353
commit
4659d4230a
@ -33,7 +33,7 @@ export default class properties extends Vue {
|
|||||||
allGroup: Array<Record<string, any>> | undefined;
|
allGroup: Array<Record<string, any>> | undefined;
|
||||||
|
|
||||||
onClickHeader(group: any) {
|
onClickHeader(group: any) {
|
||||||
if (group && group.hasOwnProperty('fold')) {
|
if (group && group.hasOwnProperty("fold")) {
|
||||||
group.fold = !group.fold;
|
group.fold = !group.fold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -45,7 +45,7 @@ export default class properties extends Vue {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Watch('allGroup')
|
@Watch("allGroup")
|
||||||
watchAllGroup() {
|
watchAllGroup() {
|
||||||
this._initValue();
|
this._initValue();
|
||||||
}
|
}
|
||||||
@ -56,9 +56,11 @@ export default class properties extends Vue {
|
|||||||
|
|
||||||
_initValue() {
|
_initValue() {
|
||||||
if (this.allGroup) {
|
if (this.allGroup) {
|
||||||
this.allGroup.forEach(item => {
|
// 第一个cc.Node不折叠
|
||||||
this.$set(item, 'fold', false);
|
for (let i = 0; i < this.allGroup.length; i++) {
|
||||||
})
|
let item = this.allGroup[i];
|
||||||
|
this.$set(item, "fold", i !== 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user