图片新标签打开

This commit is contained in:
purocean
2018-07-16 12:05:07 +08:00
parent 394818e7e3
commit afbdd704f2
+6
View File
@@ -97,6 +97,11 @@ export default {
})
},
handleClick (e) {
if (e.target.tagName === 'IMG') {
window.open(e.target.src)
return
}
if (e.target.tagName === 'INPUT' && e.target.parentElement.classList.contains('source-line')) {
this.switchTodo(parseInt(e.target.parentElement.dataset['sourceLine']), e.target.checked)
return
@@ -219,6 +224,7 @@ export default {
display: block;
margin-left: auto;
margin-right: auto;
cursor: zoom-in;
}
.view img.inline {