提交 99826d25 编写于 作者: d-u-a's avatar d-u-a

<unicloud-db> 增加hasMore属性

上级 5fe7c5d3
......@@ -5,6 +5,7 @@
:data="dataList"
:pagination="paginationInternal"
:loading="loading"
:hasMore="hasMore"
:error="errorMessage"
/>
</view>
......@@ -88,6 +89,7 @@ export default {
data () {
return {
loading: false,
hasMore: false,
dataList: this.getone ? {} : [],
paginationInternal: {
current: this.pageCurrent,
......@@ -309,6 +311,7 @@ export default {
count
} = res.result
this._isEnded = data.length < this.pageSize
this.hasMore = !this._isEnded
const data2 = this.getone ? (data.length ? data[0] : undefined) : data
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册