소스 검색

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()