mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-20 00:48:43 +00:00
简略显示SpriteFrame的纹理信息
This commit is contained in:
parent
2affb38e50
commit
0c5279e8e2
@ -457,16 +457,18 @@ export class ImageData extends Info {
|
|||||||
* 图片的url路径
|
* 图片的url路径
|
||||||
*/
|
*/
|
||||||
data: string = "";
|
data: string = "";
|
||||||
|
desc: string = "";
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
this.type = DataType.Image;
|
this.type = DataType.Image;
|
||||||
this.data = "";
|
this.data = "";
|
||||||
|
this.desc = "";
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
parse(data: ImageData) {
|
parse(data: ImageData) {
|
||||||
super.parse(data);
|
super.parse(data);
|
||||||
this.data = data.data;
|
this.data = data.data;
|
||||||
|
this.desc = data.desc;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
test() {
|
test() {
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="data.isImage()" class="property-image">
|
<div v-if="data.isImage()" class="property-image">
|
||||||
<div class="box">
|
<div class="box" v-if="data.data">
|
||||||
<img :src="data.data" alt="图片" @click="onClickImg" class="img" />
|
<img :src="data.data" alt="图片" @click="onClickImg" class="img" />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="url" :title="data.desc">{{ data.desc }}</div>
|
||||||
<div class="url" :title="data.data"></div>
|
|
||||||
<div style="flex: 1"></div>
|
|
||||||
<i class="print iconfont icon_print" @click="onShowValueInConsole"></i>
|
<i class="print iconfont icon_print" @click="onShowValueInConsole"></i>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -77,6 +75,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
.url {
|
.url {
|
||||||
|
flex: 1;
|
||||||
color: white;
|
color: white;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user