4
2
mirror of https://github.com/getbible/app.git synced 2024-12-22 07:48:55 +00:00

changed props to data

This commit is contained in:
Erastus Amunwe 2020-11-02 09:51:37 +02:00
parent 569434f6f8
commit 33cab6aa5e

View File

@ -1,7 +1,7 @@
<template>
<ul :dir="dir"
class="uk-margin-medium-top uk-list uk-list-divider uk-animation-hover">
<li v-for="(verse, i) in chapter" :key="i"
<li v-for="(verse, i) in verses" :key="i"
:class="`uk-animation-slide-bottom uk-animation-15 uk-animation-hover`">
<h5 class=" uk-primary">
@ -17,17 +17,22 @@
</template>
<script>
export default {
props: {
dir: {
type:String,
required:true},
book_name: {
type:String,
required: true,
data: () => {
return {
// dir: ''
// book_name: ''
// chapter:''
}
},
computed: {
verses(){
return this.$store.getters.verses;
},
chapter:{
type: Object,
required: true,
dir(){
return this.$store.getters.dir;
},
book_name(){
return this.$store.getters.book_name;
}
}
}