mirror of
https://github.com/potato47/ccc-devtools.git
synced 2024-12-25 11:19:10 +00:00
output node handler in console
This commit is contained in:
parent
6beff39c3d
commit
8f3e9f9b1c
37
index.html
37
index.html
@ -56,6 +56,9 @@
|
||||
<el-col :span="20">
|
||||
<el-input v-model="node.name" size="mini"></el-input>
|
||||
</el-col>
|
||||
<el-col :span="2">
|
||||
<el-button icon="el-icon-search" @click="outputNodeHandler" size="mini" circle></el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<Collapse simple value="1">
|
||||
<Panel name="1">
|
||||
@ -152,14 +155,17 @@
|
||||
</Split>
|
||||
</div>
|
||||
</Split>
|
||||
<el-tooltip :content="'ccc-devtools@Next v1.1.0 https://github.com/potato47/ccc-devtools'" placement="top" style="position: absolute;bottom:10px;left:10px;width: 100;background:#333333;">
|
||||
<el-switch
|
||||
v-model="isDevMode"
|
||||
@change="handleChangeMode"
|
||||
active-color="#13ce66"
|
||||
inactive-color="gray">
|
||||
</el-switch>
|
||||
</el-tooltip>
|
||||
<div style="position: absolute;bottom:10px;left:10px;width: 200px;">
|
||||
<el-switch
|
||||
v-model="isDevMode"
|
||||
@change="handleChangeMode"
|
||||
active-color="#13ce66"
|
||||
inactive-color="gray">
|
||||
</el-switch>
|
||||
<el-tooltip :content="'ccc-devtools@Next v1.2.0'" placement="top">
|
||||
<Icon type="logo-github" size="24" @click="openGithub"/>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -212,6 +218,21 @@
|
||||
handleColorChange(data) {
|
||||
this.$data.node.color = new cc.Color().fromHEX(data);
|
||||
},
|
||||
outputNodeHandler(target) {
|
||||
let i = 1;
|
||||
while(window['temp'+i] !== undefined) {
|
||||
i++;
|
||||
}
|
||||
window['temp'+i] = this.$data.node;
|
||||
console.log('temp' + i);
|
||||
console.log(window['temp'+i]);
|
||||
},
|
||||
outputComponentHandler(target) {
|
||||
// TODO
|
||||
},
|
||||
openGithub() {
|
||||
window.open('https://github.com/potato47/ccc-devtools');
|
||||
},
|
||||
filterNode(value, node) {
|
||||
if (!value) return true;
|
||||
return node.name.toLowerCase().indexOf(value.toLowerCase()) !== -1;
|
||||
|
BIN
screenshots/t5.png
Normal file
BIN
screenshots/t5.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 95 KiB |
Loading…
Reference in New Issue
Block a user