mirror of
https://github.com/purocean/yn.git
synced 2026-10-13 07:38:54 +08:00
图片新标签打开
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user