Commit 824f78d2 authored by rockyl's avatar rockyl

相对坐标

parent 62189bdd
...@@ -42,8 +42,8 @@ export function parseDom(el: HTMLElement) { ...@@ -42,8 +42,8 @@ export function parseDom(el: HTMLElement) {
} }
if (vNode) { if (vNode) {
const {left, top, width, height} = bound; const {left, top, width, height} = bound;
vNode.x = left; vNode.x = left - pX;
vNode.y = top; vNode.y = top - pY;
vNode.width = width; vNode.width = width;
vNode.height = height; vNode.height = height;
......
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