|
@@ -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
|