diff options
| author | 2024-09-10 02:50:08 +0800 | |
|---|---|---|
| committer | 2024-09-10 02:52:00 +0800 | |
| commit | b41d6ea8223f74789f20aec5cc40a68cb27db758 (patch) | |
| tree | 5101296d23a0cf13cc3f5f89036a9420307b8631 /src/views/index/Notepad/index.vue | |
| parent | fdd0e29011021ba334318dce2f571442bf69bc2f (diff) | |
| download | HydroRollSite-b41d6ea8223f74789f20aec5cc40a68cb27db758.tar.gz HydroRollSite-b41d6ea8223f74789f20aec5cc40a68cb27db758.zip | |
refactor: package NotepadContent class
Diffstat (limited to 'src/views/index/Notepad/index.vue')
| -rw-r--r-- | src/views/index/Notepad/index.vue | 21 |
1 files changed, 8 insertions, 13 deletions
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> |
