Test docs & made the default windows size to be bigger.

This commit is contained in:
yuanhau 2025-05-19 01:01:26 +08:00
parent d9c6cec16e
commit 23295ff590
9 changed files with 441 additions and 59 deletions

View file

@ -17,10 +17,10 @@ const isDragging = ref(false);
const position = ref({
x:
props.initialX ||
Math.floor(window.innerWidth / 2 - parseInt(props.width || "400") / 2),
Math.floor(window.innerWidth / 2 - parseInt(props.width || "600") / 2),
y:
props.initialY ||
Math.floor(window.innerHeight / 2 - parseInt(props.height || "300") / 2),
Math.floor(window.innerHeight / 2 - parseInt(props.height || "400") / 2),
});
const offset = ref({ x: 0, y: 0 });