mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-19 16:38:41 +00:00
rename
This commit is contained in:
parent
af69e1ecda
commit
993d918aca
@ -31,7 +31,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<NodeBaseProperty :all-group="treeItemData"></NodeBaseProperty>
|
<properties :all-group="treeItemData"></properties>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="!isShowDebug" class="no-find">
|
<div v-show="!isShowDebug" class="no-find">
|
||||||
@ -44,16 +44,14 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from "vue";
|
import Vue from "vue";
|
||||||
import {Component, Prop} from "vue-property-decorator";
|
import {Component, Prop} from "vue-property-decorator";
|
||||||
import SceneProperty from "@/devtools/ccType/SceneProperty.vue";
|
import properties from "./propertys.vue";
|
||||||
import ComponentsProperty from "@/devtools/ccType/ComponentsProperty.vue";
|
|
||||||
import NodeBaseProperty from "@/devtools/ccType/NodeBaseProperty.vue";
|
|
||||||
import {DataType, testData} from "./data"
|
import {DataType, testData} from "./data"
|
||||||
import {NodeData} from "@/devtools/type";
|
import {NodeData} from "@/devtools/type";
|
||||||
|
|
||||||
const PluginMsg = require("../core/plugin-msg");
|
const PluginMsg = require("../core/plugin-msg");
|
||||||
@Component({
|
@Component({
|
||||||
components: {
|
components: {
|
||||||
NodeBaseProperty, ComponentsProperty, SceneProperty,
|
properties,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
export default class Index extends Vue {
|
export default class Index extends Vue {
|
||||||
|
@ -24,8 +24,8 @@ import UiProp from "./ui-prop.vue"
|
|||||||
@Component({
|
@Component({
|
||||||
components: {UiProp},
|
components: {UiProp},
|
||||||
})
|
})
|
||||||
export default class NodeBaseProperty extends Vue {
|
export default class properties extends Vue {
|
||||||
name: string = "node-base"
|
name: string = "properties"
|
||||||
|
|
||||||
@Prop({default: () => [],})
|
@Prop({default: () => [],})
|
||||||
allGroup: Array<Record<string, any>> | undefined;
|
allGroup: Array<Record<string, any>> | undefined;
|
||||||
@ -53,6 +53,7 @@ export default class NodeBaseProperty extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_initValue() {
|
_initValue() {
|
||||||
|
debugger
|
||||||
if (this.allGroup) {
|
if (this.allGroup) {
|
||||||
this.allGroup.forEach(item => {
|
this.allGroup.forEach(item => {
|
||||||
this.$set(item, 'fold', false);
|
this.$set(item, 'fold', false);
|
@ -94,6 +94,7 @@ let cc_inspector = {
|
|||||||
"children", "quat", "node",
|
"children", "quat", "node",
|
||||||
// 生命周期函数
|
// 生命周期函数
|
||||||
"onFocusInEditor", "onRestore", "start", "lateUpdate", "update", "resetInEditor", "onLostFocusInEditor",
|
"onFocusInEditor", "onRestore", "start", "lateUpdate", "update", "resetInEditor", "onLostFocusInEditor",
|
||||||
|
"onEnable", "onDisable", "onDestroy", "onLoad",
|
||||||
];
|
];
|
||||||
for (let key in node) {
|
for (let key in node) {
|
||||||
if (!key.startsWith("_") &&
|
if (!key.startsWith("_") &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user