mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-11-05 05:46:41 +00:00
update
This commit is contained in:
@@ -30,8 +30,10 @@ export default class NodeBaseProperty extends Vue {
|
||||
@Prop({default: () => testData,})
|
||||
allGroup: Array<Record<string, any>> | undefined;
|
||||
|
||||
onClickHeader(group) {
|
||||
group.fold = !group.fold;
|
||||
onClickHeader(group: any) {
|
||||
if (group && group.hasOwnProperty('fold')) {
|
||||
group.fold = !group.fold;
|
||||
}
|
||||
}
|
||||
|
||||
@Prop({default: "label"})
|
||||
@@ -44,9 +46,11 @@ export default class NodeBaseProperty extends Vue {
|
||||
}
|
||||
|
||||
created() {
|
||||
this.allGroup.forEach(item => {
|
||||
this.$set(item, 'fold', false);
|
||||
})
|
||||
if (this.allGroup) {
|
||||
this.allGroup.forEach(item => {
|
||||
this.$set(item, 'fold', false);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
changeSizeActionWidth(step: number) {
|
||||
|
||||
@@ -110,7 +110,7 @@ export default class UiProp extends Vue {
|
||||
document.addEventListener("onselectstart", this._onSelect);
|
||||
}
|
||||
|
||||
colorReverse(OldColorValue) {
|
||||
colorReverse(OldColorValue: string) {
|
||||
OldColorValue = "0x" + OldColorValue.replace(/#/g, "");
|
||||
var str = "000000" + (0xFFFFFF - OldColorValue).toString(16);
|
||||
return '#' + str.substring(str.length - 6, str.length);
|
||||
|
||||
@@ -55,7 +55,7 @@ const PluginMsg = require("../core/plugin-msg");
|
||||
}
|
||||
})
|
||||
export default class Index extends Vue {
|
||||
private isShowDebug: boolean = true;
|
||||
private isShowDebug: boolean = false;
|
||||
treeItemData: Record<string, any> = {};
|
||||
treeData: Array<Record<string, any>> = []
|
||||
bgConn: chrome.runtime.Port | null = null// 与background.js的链接
|
||||
@@ -342,8 +342,6 @@ export default class Index extends Vue {
|
||||
|
||||
onBtnClickTest3() {
|
||||
// chrome.devtools.inspectedWindow.eval(`window.ccinspector.testMsg3()`)
|
||||
let f = require("../core/event-mgr");
|
||||
console.log(f.id);
|
||||
}
|
||||
|
||||
onMemoryTest() {
|
||||
|
||||
Reference in New Issue
Block a user