diff --git a/src/components/Spelllist.vue b/src/components/Spelllist.vue
index a250685..5c8e350 100644
--- a/src/components/Spelllist.vue
+++ b/src/components/Spelllist.vue
@@ -12,15 +12,33 @@
Level
+
+
+
+ |
+
+
+
+
+
+ |
+
+
@@ -31,9 +49,25 @@ import SpellItem from './Spellitem'
Vue.component('spell-item', SpellItem)
export default {
+ computed: {
+ pageMax () {
+ return this.spells.length / this.perPage
+ },
+ pagedSpells () {
+ let min = this.page * this.perPage - this.perPage
+ let max = min + this.perPage
+ return this.spells.slice(min, max)
+ }
+ },
props: [
'spells'
- ]
+ ],
+ data () {
+ return {
+ perPage: 10,
+ page: 1
+ }
+ }
}