diff options
Diffstat (limited to 'src/client/components/note-preview.vue')
| -rw-r--r-- | src/client/components/note-preview.vue | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/client/components/note-preview.vue b/src/client/components/note-preview.vue index 14314889a3..4ea97d17ee 100644 --- a/src/client/components/note-preview.vue +++ b/src/client/components/note-preview.vue @@ -1,15 +1,15 @@ <template> <div class="yohlumlk"> - <mk-avatar class="avatar" :user="note.user"/> + <MkAvatar class="avatar" :user="note.user"/> <div class="main"> - <x-note-header class="header" :note="note" :mini="true"/> + <XNoteHeader class="header" :note="note" :mini="true"/> <div class="body"> <p v-if="note.cw != null" class="cw"> <span class="text" v-if="note.cw != ''">{{ note.cw }}</span> - <x-cw-button v-model="showContent" :note="note"/> + <XCwButton v-model:value="showContent" :note="note"/> </p> <div class="content" v-show="note.cw == null || showContent"> - <x-sub-note-content class="text" :note="note"/> + <XSubNote-content class="text" :note="note"/> </div> </div> </div> @@ -17,12 +17,13 @@ </template> <script lang="ts"> -import Vue from 'vue'; +import { defineComponent } from 'vue'; import XNoteHeader from './note-header.vue'; import XSubNoteContent from './sub-note-content.vue'; import XCwButton from './cw-button.vue'; +import * as os from '@/os'; -export default Vue.extend({ +export default defineComponent({ components: { XNoteHeader, XSubNoteContent, |