From c4b754018c9b249b1603ce9b294783dc59ab1c16 Mon Sep 17 00:00:00 2001 From: acccccccb Date: Fri, 28 Jan 2022 16:08:11 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=EF=BC=9Ahttps://gitee.com/GLUESTICK/vue-?= =?UTF-8?q?img-cutter/issues/I4SDOE=20bugfix:=20dialog-footer=20=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=AB=98=E5=BA=A6=2040px=20bugfix:=20=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=AE=BD=E9=AB=98=E5=8F=8A=E5=9D=90=E6=A0=87=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E5=B0=8F=E6=95=B0=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README-zh-CN.md | 8 ++ README.md | 8 ++ src/components/ImgCutter.vue | 233 +++++++++++++++++++++-------------- 3 files changed, 154 insertions(+), 95 deletions(-) diff --git a/README-zh-CN.md b/README-zh-CN.md index 6257cf1..23bf869 100644 --- a/README-zh-CN.md +++ b/README-zh-CN.md @@ -198,6 +198,14 @@ forIe9:function(){ --- +#### 3.0.1 + +- bugfix:[#I4SDOE](https://gitee.com/GLUESTICK/vue-img-cutter/issues/I4SDOE) + +- bugfix: dialog-footer 默认高度 40px + +- bugfix: 显示宽高及坐标移除小数点 + #### 3.0.0 - chore:构建工具改为 vue3 diff --git a/README.md b/README.md index 7bc518c..665e642 100644 --- a/README.md +++ b/README.md @@ -195,6 +195,14 @@ ForIE9:function(){ ### Update log: +#### 3.0.1 + +- bugfix:[#I4SDOE](https://gitee.com/GLUESTICK/vue-img-cutter/issues/I4SDOE) + +- bugfix: dialog-footer default height 40px + +- bugfix: width height x and y convert to int + #### 3.0.0 - chore:Build tool changed to vue3 diff --git a/src/components/ImgCutter.vue b/src/components/ImgCutter.vue index fe8381d..4112799 100644 --- a/src/components/ImgCutter.vue +++ b/src/components/ImgCutter.vue @@ -119,21 +119,10 @@
-
- 宽:{{ toolBox.width.toFixed(0) }} 高:{{ - toolBox.height.toFixed(0) - }} - (x:{{ toolBoxPosition.x }},y:{{ toolBoxPosition.y }}) -
- -
- 宽:{{ - (toolBox.width / (drawImg.width / drawImg.swidth)).toFixed(0) - }} - 高:{{ - (toolBox.height / (drawImg.width / drawImg.swidth)).toFixed(0) - }} - (x:{{ toolBoxPosition.x }},y:{{ toolBoxPosition.y }}) +
+ 宽:{{ showToolBoxWidth }} 高:{{ showToolBoxHeight }} (x:{{ + showToolBoxX + }},y:{{ showToolBoxY }})
-