mirror of
https://github.com/itorr/one-last-image.git
synced 2026-01-02 20:06:03 +08:00
点击图像对比原图
This commit is contained in:
@@ -175,6 +175,7 @@ const data = {
|
||||
style,
|
||||
runing: false,
|
||||
convolutes,
|
||||
diff: false,
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ canvas{
|
||||
canvas{
|
||||
|
||||
}
|
||||
&:active{
|
||||
&[data-diff]{
|
||||
img{
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,13 @@
|
||||
<!-- <img src="../one-last-image-logo-color.png"> -->
|
||||
</header>
|
||||
<div>
|
||||
<div class="output-box" :data-cover="style.cover">
|
||||
<div class="output-box"
|
||||
:data-cover="style.cover"
|
||||
:data-diff="diff"
|
||||
@touchstart.prevent="diff = true"
|
||||
@touchend.prevent="diff = false"
|
||||
@mousedown.prevent="diff = true"
|
||||
@mouseup.prevent="diff = false">
|
||||
<img src="images/asuka-8.jpg" @load="setImageAndDraw">
|
||||
<canvas ref="canvas"></canvas>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user