fixed dragability after new statment is added

This commit is contained in:
2022-04-09 18:59:28 -05:00
parent 83374615aa
commit 8fbab92e1b
5 changed files with 16 additions and 8 deletions

View File

@@ -1,20 +1,17 @@
<script setup lang="ts">
import { ref } from "vue";
import { RichTextBox } from "../types.ts";
import { stepX, stepY } from "../support/const.ts";
const props = defineProps({
value: {
type: RichTextBox,
},
// statement: { type: String, required: true },
// startingX: { type: Number, default: 0 },
// startingY: { type: Number, default: 0 },
});
</script>
<template>
<Draggable
:grid="[5, 5]"
:grid="[stepX, stepY]"
:default-position="{ x: props.value.x, y: props.value.y }"
>
<div style="display: flex; bottom: 10px; right: 0">