From 9632387ff155716ed3968917fa94cff799c7f449 Mon Sep 17 00:00:00 2001 From: handongxun Date: Fri, 6 Nov 2020 17:54:06 +0800 Subject: [PATCH] docs: clientdb-component --- docs/uniCloud/uni-clientdb-component.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/uniCloud/uni-clientdb-component.md b/docs/uniCloud/uni-clientdb-component.md index a715720cc..0a8e0307f 100644 --- a/docs/uniCloud/uni-clientdb-component.md +++ b/docs/uniCloud/uni-clientdb-component.md @@ -47,7 +47,7 @@ |page-data|String|分页策略选择。值为 `add` 代表下一页的数据追加到之前的数据中,常用于滚动到底加载下一页;值为 `replace` 时则替换当前data数据,常用于PC式交互,列表底部有页码分页按钮| |page-current|Number|当前页| |page-size|Number|每页数据数量| -|getcount|Boolan|是否查询总数据条数,默认 `false`,需要分页模式时指定为 `true`| +|getcount|Boolean|是否查询总数据条数,默认 `false`,需要分页模式时指定为 `true`| |getone|Boolean|指定查询结果是否仅返回数组第一条数据,默认 false。在false情况下返回的是数组,即便只有一条结果,也需要[0]的方式获取。在值为 true 时,直接返回结果数据,少一层数组。一般用于非列表页,比如详情页| |action|string|云端执行数据库查询的前或后,触发某个action函数操作,进行预处理或后处理,[详情](https://uniapp.dcloud.net.cn/uniCloud/uni-clientDB?id=%e4%ba%91%e7%ab%af%e9%83%a8%e5%88%86)。场景:前端无权操作的数据,比如阅读数+1| |manual|Boolean|是否手动加载数据,默认为 false,页面onready时自动联网加载数据。如果设为 true,则需要自行指定时机通过方法`this.$refs.udb.loadData()`来触发联网,其中的`udb`指组件的ref值| -- GitLab