| id | string(string.IDString) | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | - | - | - | - | - | - | 4.61 | 5.0 |
| 唯一标识 |
| v-slot:default | string | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| {data, loading, hasMore, pagination, error} |
| 合法值 | 兼容性 | 描述 | | data | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 查询结果,类型为Array<UTSJSONObject> | | loading | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 查询中的状态。可根据此状态,在template中通过v-if显示等待内容 | | hasMore | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 是否有更多数据。可根据此状态,在template中通过v-if显示没有更多数据了 | | error | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 查询错误。可根据此状态,在template中通过v-if显示等待内容 | | pagination | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 分页属性 | | 合法值 | 兼容性 | 描述 | | current | - | 当前页号 | | size | - | 分页大小 | | count | - | 数据库的总数据量, 设置 :getcount=true 时有效 |
|
|
| collection | string(string.DBCollectionString) | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 表名 |
| field | string(string.DBFieldString) | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 查询字段,多个字段用 , 分割 |
| where | string(string.JQLString) | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 查询条件 |
| orderby | string | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 排序字段及正序倒叙设置 |
| groupby | string | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 对数据进行分组 |
| group-field | string | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 对数据进行分组统计 |
| distinct | boolean | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | - | 3.93 | - | 4.11 | - | - | - |
| 是否对数据查询结果中重复的记录进行去重 |
| 合法值 | 兼容性 | 描述 | | true | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | - | 4.41 | - | - | - | - | - | - |
| 去重 | | false | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | - | - | - | - | - | - | - | - |
| 不去重 |
|
| page-data | string | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | - | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| add 多次查询的集合, replace 当前查询的集合 |
| 合法值 | 兼容性 | 描述 | | add | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | - | 4.41 | - | - | - | - | 4.61 | 5.0 |
| 多次查询的集合 | | replace | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | - | - | - | - | - | - | 4.61 | 5.0 |
| 当前查询的集合 |
|
| page-current | number | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 当前页 |
| page-size | number | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 每页数据数量 |
| getone | boolean | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | x | - | x | - | x | 5.0 |
| 指定查询结果是否返回数组第一条数据,默认 false。在false情况下返回的是数组,即便只有一条结果,也需要[0]方式获取。在true下,直接返回结果数据,少一层数组 |
| getcount | boolean | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 是否查询总数量 |
| gettree | boolean | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 是否查询树状结构数据 |
| startwith | string | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| gettree的第一层级条件,此初始条件可以省略,不传startWith时默认从最顶级开始查询 |
| limitlevel | number | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| gettree查询返回的树的最大层级。超过设定层级的节点不会返回。默认10级,最大15,最小1 |
| manual | boolean | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 是否手动加载数据,默认为 false,页面onLoad时自动联网加载数据 |
| loadtime | string | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 加载数据时机,默认auto,可选值 auto|onready|manual |
| 合法值 | 兼容性 | 描述 | | auto | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 页面就绪后或属性变化后加载数据,默认为auto | | onready | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 页面就绪后不自动加载数据,属性变化后加载。适合在onLoad中接收上个页面的参数作为where条件时 | | manual | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 手动模式,不自动加载数据。如果涉及到分页,需要先手动修改当前页,在调用加载数据 |
|
action | string(string.ClientDBActionString) | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | x | - | x | - | x | 5.0 |
| 云端执行数据库查询的前或后,触发某个action函数操作,进行预处理或后处理(推荐改用JQL触发器) |
| @load | (data : Array<UTSJSONObject>, ended : boolean, pagination : UTSJSONObject) => void | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 成功回调。如联网返回结果后,想修改下数据再渲染界面,则在本方法里对data进行修改 |
| @error | (event: UniEvent) => void | - | |
Web
|
微信小程序
|
Android
|
Android(Vapor)
|
iOS
|
iOS(Vapor)
|
HarmonyOS
|
HarmonyOS(Vapor)
| | 4.0 | 4.41 | 3.93 | - | 4.11 | - | 4.61 | 5.0 |
| 失败回调 |