!18 修复:缩放引发的移动错位问题

Merge pull request !18 from smallwei/N/A
Foming 3 years ago committed by Gitee
commit 7159d2e2c4

@ -212,6 +212,7 @@
:key="index"
v-model="widget.value"
:index="index"
:step="step"
:type="widget.type"
:bigscreen="{ bigscreenWidth, bigscreenHeight }"
@onActivated="setOptionsOnClickWidget"
@ -373,6 +374,9 @@ export default {
};
},
computed: {
step () {
return Number(100 / (this.bigscreenScaleInWorkbench * 100))
},
headers() {
return {
Authorization: getToken() // token

@ -6,6 +6,7 @@
!-->
<template>
<avue-draggable
:step="step"
:width="widgetsWidth"
:height="widgetsHeight"
:left="widgetsLeft"
@ -89,7 +90,8 @@ export default {
value: {
type: [Object],
default: () => {}
}
}
step: Number
},
data() {
return {

Loading…
Cancel
Save