fix: project topo 支持gif 以及 预览tooltip位置调整

This commit is contained in:
zhangyu
2023-04-13 16:03:06 +08:00
parent a2e3988397
commit cffce39732
4 changed files with 19 additions and 6 deletions

View File

@@ -1226,16 +1226,19 @@ export default {
this.pen.imageId = image.id
if (image.image) {
this.pen.image = image.image
this.pen.name = image.type || 'png'
this.pen.icon = ''
this.change('image')
}
if (image.icon) {
this.pen.icon = image.icon
this.pen.name = ''
this.pen.image = ''
this.change('icon')
}
if (!image.id) {
this.pen.image = image.image
this.pen.name = ''
this.pen.icon = ''
this.change('image')
}