2019-04-15 10:35:40 +08:00
|
|
|
<template>
|
|
|
|
<div class="abstract-wrapper">
|
2019-12-15 13:02:58 +08:00
|
|
|
<NoteAbstractItem
|
2019-11-13 15:55:16 +08:00
|
|
|
v-for="(item) in currentPageData"
|
2019-11-13 14:21:17 +08:00
|
|
|
:key="item.path"
|
|
|
|
:item="item"
|
|
|
|
:currentPage="currentPage"
|
|
|
|
:currentTag="currentTag"
|
|
|
|
:hideAccessNumber="true" />
|
2019-04-15 10:35:40 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2019-11-13 14:21:17 +08:00
|
|
|
import NoteAbstractItem from './NoteAbstractItem'
|
2019-04-15 10:35:40 +08:00
|
|
|
|
|
|
|
export default {
|
2019-11-13 14:21:17 +08:00
|
|
|
components: { NoteAbstractItem },
|
|
|
|
props: ['data', 'currentPage', 'currentTag', 'hideAccessNumber'],
|
|
|
|
computed: {
|
|
|
|
currentPageData () {
|
|
|
|
const start = this.currentPage * 10 - 10
|
|
|
|
const end = this.currentPage * 10
|
|
|
|
return this.data.slice(start, end)
|
|
|
|
}
|
|
|
|
}
|
2019-04-15 10:35:40 +08:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
.abstract-wrapper
|
|
|
|
width 100%
|
|
|
|
</style>
|