mirror of
https://github.com/potato47/ccc-devtools.git
synced 2024-12-26 03:39:16 +00:00
支持bool类型
This commit is contained in:
parent
22d4484293
commit
0f3d6b318c
@ -33,6 +33,7 @@ const NEX_CONFIG = {
|
|||||||
{ name: 'Zoom Ratio', key: 'zoomRatio', type: 'number' },
|
{ name: 'Zoom Ratio', key: 'zoomRatio', type: 'number' },
|
||||||
{ name: 'Depth', key: 'depth', type: 'number' },
|
{ name: 'Depth', key: 'depth', type: 'number' },
|
||||||
{ name: 'Bacground Color', key: 'hex_backgroundColor', rawKey: 'backgroundColor', type: 'color' },
|
{ name: 'Bacground Color', key: 'hex_backgroundColor', rawKey: 'backgroundColor', type: 'color' },
|
||||||
|
{ name: 'Align with Screen', key: 'alignWithScreen', type: 'bool' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
'cc.Sprite': {
|
'cc.Sprite': {
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
<link href="ccc-devtools/libs/css/materialdesignicons.min.css" rel="stylesheet" type="text/css">
|
<link href="ccc-devtools/libs/css/materialdesignicons.min.css" rel="stylesheet" type="text/css">
|
||||||
<link href="ccc-devtools/libs/css/vuetify.min.css" rel="stylesheet" type="text/css">
|
<link href="ccc-devtools/libs/css/vuetify.min.css" rel="stylesheet" type="text/css">
|
||||||
|
<style>
|
||||||
|
html {
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<v-app id="app">
|
<v-app id="app">
|
||||||
<v-app-bar app clipped-left color="gray" dense v-if="true">
|
<v-app-bar app clipped-left color="gray" dense v-if="true">
|
||||||
@ -89,6 +94,7 @@
|
|||||||
<td style="width: 60%;">
|
<td style="width: 60%;">
|
||||||
<v-color-picker v-if="row.type == 'color'" class="ma-2" canvas-height="80" width="259"
|
<v-color-picker v-if="row.type == 'color'" class="ma-2" canvas-height="80" width="259"
|
||||||
hide-inputs v-model="selectedNode[row.key]"></v-color-picker>
|
hide-inputs v-model="selectedNode[row.key]"></v-color-picker>
|
||||||
|
<v-simple-checkbox v-else-if="row.type == 'bool'" v-model="selectedNode[row.key]" style="padding: 10px;width: 100%;"></v-simple-checkbox>
|
||||||
<input v-else :type="row.type" v-model="selectedNode[row.key]"
|
<input v-else :type="row.type" v-model="selectedNode[row.key]"
|
||||||
style="padding: 10px;width: 100%;"></input>
|
style="padding: 10px;width: 100%;"></input>
|
||||||
</td>
|
</td>
|
||||||
@ -120,6 +126,7 @@
|
|||||||
<textarea v-else-if="row.type == 'textarea'" rows="1"
|
<textarea v-else-if="row.type == 'textarea'" rows="1"
|
||||||
v-model="selectedNode[component.key][row.key]" style="padding: 10px;width: 100%;">
|
v-model="selectedNode[component.key][row.key]" style="padding: 10px;width: 100%;">
|
||||||
</textarea>
|
</textarea>
|
||||||
|
<v-simple-checkbox v-else-if="row.type == 'bool'" v-model="selectedNode[component.key][row.key]" style="padding: 10px;width: 100%;"></v-simple-checkbox>
|
||||||
<input v-else :type="row.type" v-model="selectedNode[component.key][row.key]"
|
<input v-else :type="row.type" v-model="selectedNode[component.key][row.key]"
|
||||||
style="padding: 10px;width: 100%;"></input>
|
style="padding: 10px;width: 100%;"></input>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user