MissketDeck: Implement media view tl

This commit is contained in:
syuilo
2018-06-10 01:01:28 +09:00
parent 72c4ccaee8
commit f9d5af0600
6 changed files with 63 additions and 10 deletions

View File

@ -9,7 +9,7 @@
<transition-group name="mk-notes" class="transition">
<template v-for="(note, i) in _notes">
<x-note :note="note" :key="note.id" @update:note="onNoteUpdated(i, $event)"/>
<x-note :note="note" :key="note.id" @update:note="onNoteUpdated(i, $event)" :media-view="mediaView"/>
<p class="date" :key="note.id + '_date'" v-if="i != notes.length - 1 && note._date != _notes[i + 1]._date">
<span>%fa:angle-up%{{ note._datetext }}</span>
<span>%fa:angle-down%{{ _notes[i + 1]._datetext }}</span>
@ -44,6 +44,11 @@ export default Vue.extend({
more: {
type: Function,
required: false
},
mediaView: {
type: Boolean,
required: false,
default: false
}
},