diff --git a/src/components/IssueContent.vue b/src/components/IssueContent.vue index 0156ae8..8f3667d 100644 --- a/src/components/IssueContent.vue +++ b/src/components/IssueContent.vue @@ -2,17 +2,17 @@ import { ref } from 'vue' interface Props { - value?: string + text?: string } const props = defineProps() -const emit = defineEmits<{ changed: [value: string] }>() +const emit = defineEmits<{ changed: [text: string] }>() const editing = ref(false) -const draft = ref(props.value ?? '') +const draft = ref(props.text ?? '') const startEdit = () => { - draft.value = props.value ?? '' + draft.value = props.text ?? '' editing.value = true } @@ -22,7 +22,7 @@ const save = () => { } const cancel = () => { - draft.value = props.value ?? '' + draft.value = props.text ?? '' editing.value = false } @@ -30,8 +30,8 @@ const cancel = () => {