Commit 97f5c3e0 by 李伟康

commit 调整画布

1 parent 79813fc7
......@@ -3,7 +3,6 @@
<zoom-pan
:class="['canvas-box',{fill:custom}]"
:disabled="drawStatus"
:restore="watchStatus"
:scale-max="5"
:scale-min="1"
@scale="scale"
......
......@@ -14,7 +14,6 @@
:scale-min="scaleMin"
:scale-max="scaleMax"
:disabled="disabled"
out-of-bounds
@scale="onScale"
:scale-value="defalutscale"
>
......@@ -31,7 +30,6 @@ import utils from "@/utils/utils.js";
export default {
props: {
disabled: Boolean,
restore: Number,
scaleMax: {
type: Number,
default: 10
......@@ -50,8 +48,8 @@ export default {
};
},
watch: {
watchScaleValue () {
if(this.defalutscale != 1) this.defalutscale = 2
watchStatus () {
if (this.defalutscale != 1) this.defalutscale = 1.1
this.scale = 1
this.transformOriginStyle = `50% 50%'`
setTimeout(() => {
......@@ -60,8 +58,8 @@ export default {
}
},
computed: {
watchScaleValue () {
return this.restore
watchStatus () {
return this.$store.state.user.historyStatus
}
},
methods: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!