如果在索引内部使用Pager,但是在组件内部使用Pager时,则无法使用。有帮助吗?
<Pager :info="$static.posts.pageInfo" />
和GraphQl
<static-query>
query Posts($page:Int){
posts: allPost(perPage: 3, page: $page) @paginate{
totalCount
pageInfo {
totalPages
currentPage
isFirst
isLast
}
edges {
node {
title
image
id
path
excerpt
}
}
}
}
</static-query>
<static-query>
query Posts($page:Int){
posts: allPost(perPage: 3, page: $page) @paginate{
totalCount
pageInfo {
totalPages
currentPage
isFirst
isLast
}
edges {
node {
title
image
id
path
excerpt
}
}
}
}
</static-query>