|
@@ -21,6 +21,7 @@
|
|
|
import { computed, onMounted, onUnmounted, ref } from "vue";
|
|
|
import { BoardShape, compass, title } from "./board";
|
|
|
import { components } from "./edit-shape";
|
|
|
+import { inputIng } from "./state";
|
|
|
|
|
|
const props = defineProps<{ shape: BoardShape }>();
|
|
|
const emit = defineEmits<{
|
|
@@ -28,12 +29,10 @@ const emit = defineEmits<{
|
|
|
}>();
|
|
|
const editComponent = computed(() => {
|
|
|
const type = props.shape.data.type;
|
|
|
- console.log(type);
|
|
|
if (type && components[type]) {
|
|
|
return components[type];
|
|
|
}
|
|
|
});
|
|
|
-const inputIng = ref(false);
|
|
|
|
|
|
const delHandler = () => {
|
|
|
props.shape.delete();
|