This commit is contained in:
xuyanfeng
2021-04-04 20:48:18 +08:00
parent 9694e2722c
commit 8d0119e4a1
11 changed files with 110 additions and 104 deletions

View File

@@ -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) {

View File

@@ -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);

View File

@@ -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() {