mirror of
https://github.com/getbible/app.git
synced 2024-12-22 15:58:55 +00:00
changed props to data
This commit is contained in:
parent
569434f6f8
commit
33cab6aa5e
@ -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:''
|
||||
}
|
||||
},
|
||||
chapter:{
|
||||
type: Object,
|
||||
required: true,
|
||||
computed: {
|
||||
verses(){
|
||||
return this.$store.getters.verses;
|
||||
},
|
||||
dir(){
|
||||
return this.$store.getters.dir;
|
||||
},
|
||||
book_name(){
|
||||
return this.$store.getters.book_name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user