Preview refactoring

This commit is contained in:
Christoph Wiechert
2017-05-09 12:25:22 +02:00
parent 5f751d927b
commit e52047b5cd
3 changed files with 110 additions and 58 deletions

View File

@@ -1,5 +1,5 @@
<template lang="pug">
.modal.fade.in.background-darken(ref='modal', style="display:block", tabindex='-1', role='dialog', @click.self='close()', @keyup.esc='close()')
.modal.fade.in.background-darken(ref='modal', style="display:block", tabindex='-1', role='dialog', @click.self='close()', @keyup.esc='close()', @keyup.left="$emit('prev')", @keyup.right="$emit('next')")
.modal-dialog.modal-fluid(role='document')
.modal-content
.modal-header(v-if='hasHeader')
@@ -26,11 +26,6 @@
}
},
data() {
return {
}
},
mounted() {
this.$nextTick(function() {
this.$refs.modal.focus();