From 2bebe030a00b7356a29d29b92e3773ef3b2f41a9 Mon Sep 17 00:00:00 2001 From: Jussiadev Date: Tue, 3 Apr 2018 19:11:05 +0300 Subject: [PATCH] add slot for book content --- src/components/book-reader/BookReader.vue | 10 ++++- static/left-alignment.svg | 45 +++++++++++++++++++++++ static/search.svg | 15 ++++++++ 3 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 static/left-alignment.svg create mode 100644 static/search.svg diff --git a/src/components/book-reader/BookReader.vue b/src/components/book-reader/BookReader.vue index 864af2d..93151d9 100644 --- a/src/components/book-reader/BookReader.vue +++ b/src/components/book-reader/BookReader.vue @@ -4,7 +4,9 @@ -
+ +
+
@@ -52,6 +54,10 @@ export default { progress: { type: Number, required: true + }, + bookArea: { + type: String, + default: 'area' } }, data () { @@ -81,7 +87,7 @@ export default { }, methods: { initReader () { - this.rendition = this.book.renderTo(this.$refs.viewer, { + this.rendition = this.book.renderTo(this.bookArea, { contained: true }) this.registerThemes() diff --git a/static/left-alignment.svg b/static/left-alignment.svg new file mode 100644 index 0000000..db7fdbd --- /dev/null +++ b/static/left-alignment.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/search.svg b/static/search.svg new file mode 100644 index 0000000..77ecb28 --- /dev/null +++ b/static/search.svg @@ -0,0 +1,15 @@ + + + + Group + Created with Sketch. + + + + + + + + + + \ No newline at end of file