Skip to content

Commit

Permalink
Resolve missing prop console warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Jan 15, 2025
1 parent b2391ae commit c04924a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
24 changes: 24 additions & 0 deletions client/src/components/Markdown/Editor/CellEditor.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template>
<div class="d-flex h-100 w-100">
{{ markdownText }}
</div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { parseMarkdown } from "../parse";
const props = defineProps<{
markdownText: string;
}>();
interface CellType {
name: string;
content: string;
}
const cells = ref<Array<CellType>>(parseMarkdown(props.markdownText));
console.log(cells.value);
</script>
2 changes: 1 addition & 1 deletion client/src/components/Markdown/Editor/TextEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import FlexPanel from "@/components/Panels/FlexPanel.vue";
const props = defineProps<{
markdownText: string;
mode: "report" | "page";
steps: Record<string, any>;
steps?: Record<string, any>;
title: string;
}>();
Expand Down
5 changes: 2 additions & 3 deletions client/src/components/Markdown/MarkdownEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,19 @@ library.add(faQuestion);
defineProps<{
markdownText: string;
steps: Record<string, any>;
steps?: Record<string, any>;
title: string;
mode: "report" | "page";
}>();
const showHelpModal = ref<boolean>(false);
const editor = ref("cells");
const editorOptions = ref([
{ text: "Text", value: "text" },
{ text: "Cells", value: "cells" },
]);
const editor = ref("text");
function onHelp() {
showHelpModal.value = true;
}
Expand Down

0 comments on commit c04924a

Please sign in to comment.