デッキのキーボードショートカットを強化

This commit is contained in:
syuilo 2018-10-20 02:49:39 +09:00
parent 41bd436d3e
commit 1fccde38f6
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
6 changed files with 72 additions and 10 deletions

View file

@ -1,5 +1,5 @@
<template>
<x-notes ref="timeline" :more="existMore ? more : null"/>
<x-notes ref="timeline" :more="existMore ? more : null" @parentFocus="parentFocus"/>
</template>
<script lang="ts">
@ -57,6 +57,7 @@ export default Vue.extend({
}, rej);
}));
},
more() {
this.moreFetching = true;
@ -80,10 +81,19 @@ export default Vue.extend({
return promise;
},
onNote(note) {
// Prepend a note
(this.$refs.timeline as any).prepend(note);
}
},
focus() {
this.$refs.timeline.focus();
},
parentFocus(direction) {
this.$emit('parentFocus', direction);
},
}
});
</script>