diff --git a/src/App.vue b/src/App.vue index 633a5dfe4e547c48bfa93740a290ba5ba370930a..b257cc3172594fff44809f6f783077b9c0b99335 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,47 +1,148 @@ + + +import {ref, nextTick} from "vue" - + let maxX = dragParent.offsetWidth - dragBox.offsetWidth + let maxY = dragParent.offsetHeight - dragBox.offsetHeight - + +.drag-box { + width: 50px; + height: 50px; + border: solid 1px #2c3e50; + border-radius: 20px; + cursor: move; + position: absolute; +} + + \ No newline at end of file