From 362f24ee182b3bbd04d41686b58650b24d564be9 Mon Sep 17 00:00:00 2001 From: itorr Date: Sat, 13 Aug 2022 12:09:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=9B=BE=E7=89=87=20?= =?UTF-8?q?=E6=8C=89=E9=92=AE=20=E6=A0=B7=E5=BC=8F=20=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/document.js | 2 +- html/document.less | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/html/document.js b/html/document.js index b4c394b..f5b25ce 100644 --- a/html/document.js +++ b/html/document.js @@ -207,7 +207,7 @@ louvreInit(_=>{ }, async louvre(){ app.runing = true; - app.src = await louvre({ + await louvre({ img: app.$refs['img'], outputCanvas: app.$refs['canvas'], config: { diff --git a/html/document.less b/html/document.less index 4795a1b..bd9eb2c 100644 --- a/html/document.less +++ b/html/document.less @@ -71,6 +71,8 @@ canvas{ } img{ position: absolute; + left: 0; + right: 0; opacity: 0; pointer-events: none; transition: opacity .1s ease;