diff --git a/source/src/devtools/data.ts b/source/src/devtools/data.ts index bebc5ef..6fe20ce 100644 --- a/source/src/devtools/data.ts +++ b/source/src/devtools/data.ts @@ -64,10 +64,10 @@ export class StringData extends Info { } export class NumberData extends Info { - constructor() { + constructor(data: number) { super(); this.type = DataType.Number; - this.data = 1; + this.data = data; } } diff --git a/source/src/devtools/execute.ts b/source/src/devtools/execute.ts new file mode 100644 index 0000000..ee0abed --- /dev/null +++ b/source/src/devtools/execute.ts @@ -0,0 +1,18 @@ +interface ICCInspector extends Object { + devPageCallEntry(para: string): void; + + init(): void; +} + +declare interface Window { + CCInspector: ICCInspector; + CCInspectorPara: string; +} +debugger +if (window.hasOwnProperty('CCInspector')) { + if (window.CCInspector.hasOwnProperty('devPageCallEntry')) { + window.CCInspector.devPageCallEntry(window.CCInspectorPara); + } else { + console.log("脚本inject.js未注入") + } +} diff --git a/source/src/devtools/global.less b/source/src/devtools/global.less index 373b9c4..644baa5 100644 --- a/source/src/devtools/global.less +++ b/source/src/devtools/global.less @@ -11,8 +11,13 @@ } } } -.el-input{ - input{ + +.el-input { + input { text-align: left !important; } } + +.el-tree { + width: 100%; +} diff --git a/source/src/devtools/index.vue b/source/src/devtools/index.vue index 8e50fcc..97fd6fa 100644 --- a/source/src/devtools/index.vue +++ b/source/src/devtools/index.vue @@ -43,10 +43,9 @@