复制、粘贴快捷方式不禁用默认事件
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
3948596014
commit
f53412acbf
|
@ -1111,19 +1111,25 @@ export default {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
if (e.ctrlKey && e.key === 'c') {
|
if (e.ctrlKey && e.key === 'c') {
|
||||||
e.preventDefault();
|
// e.preventDefault();
|
||||||
this.type = 'copy'
|
if (this.checkList.length > 0 && !this.renameId) {
|
||||||
this.copy()
|
this.type = 'copy'
|
||||||
|
this.copy()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (e.ctrlKey && e.key === 'v') {
|
if (e.ctrlKey && e.key === 'v') {
|
||||||
e.preventDefault();
|
// e.preventDefault();
|
||||||
this.type = 'stickup'
|
this.type = 'stickup'
|
||||||
this.stickup()
|
this.stickup()
|
||||||
}
|
}
|
||||||
if (e.ctrlKey && e.key === 'x') {
|
if (e.ctrlKey && e.key === 'x') {
|
||||||
e.preventDefault();
|
// e.preventDefault();
|
||||||
this.type = 'shear'
|
if (this.checkList.length > 0 && !this.renameId) {
|
||||||
this.shear()
|
this.type = 'shear'
|
||||||
|
this.shear()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 键盘事件(松开)
|
// 键盘事件(松开)
|
||||||
|
@ -1138,8 +1144,8 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
document.addEventListener('keydown', this.keydown);
|
document.addEventListener('keydown', this.keydown);
|
||||||
document.addEventListener('keyup', this.keyup);
|
document.addEventListener('keyup', this.keyup);
|
||||||
let table = document.getElementById("auditDocumentTable")
|
// let table = document.getElementById("auditDocumentTable")
|
||||||
table.addEventListener('click', this.docClick);
|
document.addEventListener('click', this.docClick);
|
||||||
this.getList()
|
this.getList()
|
||||||
this.getBreadcrumbData()
|
this.getBreadcrumbData()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue