ZaiZai 1 tahun lalu
induk
melakukan
df8b133476
1 mengubah file dengan 6 tambahan dan 0 penghapusan
  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