From b41d6ea8223f74789f20aec5cc40a68cb27db758 Mon Sep 17 00:00:00 2001
From: Ntkskwk <natsukawa247@outlook.com>
Date: Tue, 10 Sep 2024 02:50:08 +0800
Subject: refactor: package NotepadContent class

---
 src/views/index/Notepad/index.vue | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

(limited to 'src/views/index/Notepad/index.vue')

diff --git a/src/views/index/Notepad/index.vue b/src/views/index/Notepad/index.vue
index 33466d4..2d4f037 100644
--- a/src/views/index/Notepad/index.vue
+++ b/src/views/index/Notepad/index.vue
@@ -1,18 +1,13 @@
 <script lang="ts">
+import { NotepadContent } from "@/views/index/Notepad/type";
+
 export default {
   props: {
-    title: {
-      type: String,
-      default: "1",
-    },
-    message: {
-      type: String,
-      require: true
+    content: {
+      type: NotepadContent,
+      require: true,
+      default: new NotepadContent(),
     },
-    date: {
-      type: Date,
-      default: new Date('2024-07-14T12:00:00Z')
-    }
   },
 }
 </script>
@@ -21,9 +16,9 @@ export default {
 <template>
   <div class="details" style="overflow-y:hidden;overflow-x:hidden;height:100%">
     <h3>
-      {{ title }}
+      {{ content.title }}
     </h3>
-    <v-md-preview :text="message" ></v-md-preview>
+    <v-md-preview :text="content.message" ></v-md-preview>
   </div>
 </template>
 
-- 
cgit v1.2.3-70-g09d2

