fixed toms stupid

This commit is contained in:
Thomas 2022-04-09 20:12:43 -05:00
parent 8ca78cbe4b
commit 82d361d7ef
6 changed files with 12 additions and 19 deletions

View File

@ -1,12 +1,8 @@
<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,
},
});
import { RichTextBox } from "../support/types";
import { stepX, stepY } from "../support/const";
const props = defineProps<{value: RichTextBox}>();
</script>
<template>

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import {EvaluationResult, Maybe} from '../types'
import {EvaluationResult, Maybe} from '../support/types'
import {MathStatement} from '../support/parse'
import {computed} from 'vue'
import Katex from './Katex.vue'

View File

@ -1,12 +1,9 @@
<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,
},
});
import { RichTextBox } from "../support/types";
import { stepX, stepY } from "../support/const";
const props = defineProps<{value: RichTextBox}>();
</script>
<template>

View File

@ -101,10 +101,10 @@ const makeNewRichTextBox = () => {
richEditID.value = richTextStatements.value.length - 1;
richEditExpression.value = richTextStatements.value[richEditID.value].text;
richEditModal.value = true;
console.log("editing statement", id, richEditModal);
console.log("editing statement",richEditID.value, richEditModal);
};
const richTextStatements = ref([]);
const richTextStatements = ref([new RichTextBox("Hello World")]);
const richEditModal = ref(false);
const richEditExpression = ref("");

View File

@ -3,7 +3,7 @@ import {defineEmits, ref} from 'vue'
import {MathStatement} from '../support/parse'
import Katex from '../components/Katex.vue'
import { v4 as uuidv4 } from 'uuid'
import {StatementID} from '../types'
import {StatementID} from '../support/types'
const emit = defineEmits<{
(eventName: 'save', statement: MathStatement): void

View File

@ -3,7 +3,7 @@ import {ref} from 'vue'
import {MathStatement} from '../support/parse'
import {v4 as uuidv4} from 'uuid'
import Katex from '../components/Katex.vue'
import {StatementID} from '../types'
import {StatementID} from '../support/types'
const emit = defineEmits<{
(eventName: 'save', statement: MathStatement): void,