ZaiZai 1 năm trước cách đây
mục cha
commit
df8b133476
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/plugins/HcPdfSign.js

+ 6 - 0
src/plugins/HcPdfSign.js

@@ -331,9 +331,15 @@ export default class HcPdfSign {
         node.children[0].append(signImgDom)
         //鼠标按下
         signImgDom.addEventListener('mousedown', (e) => {
+            //上一个失去选中框
+            if (!isNullES(this.curSignDom)) {
+                this.curSignDom.style.border = 'none'
+            }
+            //新的当前选中项
             this.curSignDom = e.target
             this.signType = '移动'
             e.target.style.cursor = 'move'
+            e.target.style.border = '1px dashed #c7c7c7'
             //鼠标相对于图片的位置
             this.disX = e.clientX - e.target.offsetLeft
             this.disY = e.clientY - e.target.offsetTop