浏览代码

fixbug: 修复 删除设备 信息点时,留有白色背景问题

yx 4 年之前
父节点
当前提交
57763a869e
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/lib/items/SEquipmentItem.ts

+ 3 - 0
src/lib/items/SEquipmentItem.ts

@@ -292,6 +292,9 @@ export class SEquipmentItem extends SObjectItem {
         this.epData.InfoList.pop()
         if (this.textArr.length) {
             this.textArr[this.textArr.length - 1].text = '';
+            this.textArr[this.textArr.length - 1].width = 0;
+            this.textArr[this.textArr.length - 1].height = 0;
+            this.textArr[this.textArr.length - 1].backgroundColor = SColor.Transparent;
             this.textArr.pop()
         }
         this.update()