mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-10-23 00:35:23 +00:00
丢失链接,未发现cocos游戏给出详细的提示
This commit is contained in:
@@ -23,10 +23,20 @@ export enum CompType {
|
||||
ToggleContainer = "cc.ToggleContainer",
|
||||
Toggle = "cc.Toggle",
|
||||
Button = "cc.Button",
|
||||
BlockInputEvents = "cc.BlockInputEvents",
|
||||
Scene = "cc.Scene",
|
||||
}
|
||||
|
||||
export function getSimpleProperties(typeName: string): string[] {
|
||||
const config = {};
|
||||
config[CompType.Scene] = [
|
||||
"autoReleaseAssets",
|
||||
"position",
|
||||
"scale",
|
||||
"rotation",
|
||||
"color", //
|
||||
];
|
||||
config[CompType.BlockInputEvents] = ["enabled"];
|
||||
config[CompType.Button] = [
|
||||
"target", //
|
||||
"interactable",
|
||||
|
@@ -1,16 +1,32 @@
|
||||
<template>
|
||||
<div class="find-game">
|
||||
<span>no games created by cocos creator found!</span>
|
||||
<div style="display: flex; flex-direction: column">
|
||||
<span>no games created by cocos creator found!</span>
|
||||
<span>{{ msg }}</span>
|
||||
</div>
|
||||
<i class="fresh iconfont icon_refresh" @click="onBtnClickUpdatePage"></i>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from "vue";
|
||||
import { defineComponent, ref } from "vue";
|
||||
import { Msg, PluginEvent, ResponseSupportData } from "../../core/types";
|
||||
import { bridge } from "./bridge";
|
||||
import { checkSupport } from "./util";
|
||||
export default defineComponent({
|
||||
name: "find",
|
||||
setup(props) {
|
||||
bridge.on(Msg.ResponseSupport, (event: PluginEvent) => {
|
||||
let data: ResponseSupportData = event.data;
|
||||
const b: boolean = data.support;
|
||||
if (b) {
|
||||
msg.value = "";
|
||||
} else {
|
||||
msg.value = data.msg;
|
||||
}
|
||||
});
|
||||
const msg = ref<string>("");
|
||||
return {
|
||||
msg,
|
||||
onBtnClickUpdatePage() {
|
||||
checkSupport();
|
||||
},
|
||||
|
Reference in New Issue
Block a user