aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/views/index/Notepad/index.vue
diff options
context:
space:
mode:
authorNtskwK <natsukawa247@outlook.com>2024-09-10 04:38:50 +0800
committerGitHub <noreply@github.com>2024-09-10 04:38:50 +0800
commit4536fceb61065acd7d0fe74eee98d293c682975f (patch)
tree63eb01728b6717cfc3069bb5520805acec0e4d4e /src/views/index/Notepad/index.vue
parent9ec3a2965c0e25f230b397a01c3c8b0543e61956 (diff)
parent96bcab1d19d4e5b537437744cf1a4773a67d2e7c (diff)
downloadHydroRollSite-4536fceb61065acd7d0fe74eee98d293c682975f.tar.gz
HydroRollSite-4536fceb61065acd7d0fe74eee98d293c682975f.zip
Merge pull request #6 from HydroRoll-Team/async-request
Async request
Diffstat (limited to 'src/views/index/Notepad/index.vue')
-rw-r--r--src/views/index/Notepad/index.vue21
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>