diff --git a/src/components/viewport/ref-lines.vue b/src/components/viewport/ref-lines.vue index 6c080a7..891056a 100755 --- a/src/components/viewport/ref-lines.vue +++ b/src/components/viewport/ref-lines.vue @@ -1,14 +1,14 @@ @@ -40,6 +40,7 @@ export default { if (item.hasGuide && item.belong !== 'page') return guides.push({ + uuid: item.uuid, width: item.width, height: item.height, top: item.top, @@ -66,10 +67,16 @@ export default { var bottom = top + val.height if (cor.indexOf(top) < 0 && top !== 0) { - cor.push(top) + cor.push({ + id: `horiz-${val.uuid}-${top}`, + val: top + }) } if (cor.indexOf(bottom) < 0) { - cor.push(bottom) + cor.push({ + id: `horiz-${val.uuid}-${bottom}`, + val: bottom + }) } }) @@ -85,10 +92,16 @@ export default { var right = left + val.width if (cor.indexOf(left) < 0 && left !== 0) { - cor.push(left) + cor.push({ + id: `verti-${val.uuid}-${left}`, + val: left + }) } if (cor.indexOf(right) < 0 && right < 750) { - cor.push(right) + cor.push({ + id: `verti-${val.uuid}-${right}`, + val: right + }) } })