ZaiZai 1 an în urmă
părinte
comite
df8b133476
1 a modificat fișierele cu 6 adăugiri și 0 ștergeri
  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)
         node.children[0].append(signImgDom)
         //鼠标按下
         //鼠标按下
         signImgDom.addEventListener('mousedown', (e) => {
         signImgDom.addEventListener('mousedown', (e) => {
+            //上一个失去选中框
+            if (!isNullES(this.curSignDom)) {
+                this.curSignDom.style.border = 'none'
+            }
+            //新的当前选中项
             this.curSignDom = e.target
             this.curSignDom = e.target
             this.signType = '移动'
             this.signType = '移动'
             e.target.style.cursor = 'move'
             e.target.style.cursor = 'move'
+            e.target.style.border = '1px dashed #c7c7c7'
             //鼠标相对于图片的位置
             //鼠标相对于图片的位置
             this.disX = e.clientX - e.target.offsetLeft
             this.disX = e.clientX - e.target.offsetLeft
             this.disY = e.clientY - e.target.offsetTop
             this.disY = e.clientY - e.target.offsetTop