Commit 14438637 authored by kaitly205422@163.com's avatar kaitly205422@163.com

四色图

parent 6c03aa91
...@@ -582,6 +582,8 @@ export default { ...@@ -582,6 +582,8 @@ export default {
// 拖动时判断layoutHeight是否需要更新 // 拖动时判断layoutHeight是否需要更新
item.x = (x / this.W) * 12; item.x = (x / this.W) * 12;
item.y = y / 30; item.y = y / 30;
item.x = (newX / this.W) * 12;
item.y = newY / 30;
debounce(this.updateLayoutHeight)(); debounce(this.updateLayoutHeight)();
// if (top > this.layoutHeight) { // if (top > this.layoutHeight) {
// this.layoutHeight = top; // this.layoutHeight = top;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment