vue: Board(WIP)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<tr class="comment">
|
||||
<th class="author">{{ comment.author }}</th>
|
||||
<td class="text">{{ comment.text }}</td>
|
||||
<td class="date">{{ comment.date }}</td>
|
||||
<!-- 삭제도 나중에 추가? -->
|
||||
</tr>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { BoardCommentItem } from "board.vue";
|
||||
import { defineComponent, PropType } from "vue";
|
||||
|
||||
export default defineComponent({
|
||||
name: "BoardComment",
|
||||
props: {
|
||||
comment: {
|
||||
type: Object as PropType<BoardCommentItem>,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user