From afbdd704f29539552928c36b3db8b15f2816b95d Mon Sep 17 00:00:00 2001 From: purocean Date: Mon, 16 Jul 2018 12:05:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=96=B0=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=89=93=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/View.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/components/View.vue b/frontend/src/components/View.vue index 2a2fce57..e2cc1036 100644 --- a/frontend/src/components/View.vue +++ b/frontend/src/components/View.vue @@ -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 {