Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
unidocs-uni-app-x-zh
提交
7ed82467
U
unidocs-uni-app-x-zh
项目概览
DCloud
/
unidocs-uni-app-x-zh
通知
144
Star
2
Fork
33
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
9
列表
看板
标记
里程碑
合并请求
11
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
unidocs-uni-app-x-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
9
Issue
9
列表
看板
标记
里程碑
合并请求
11
合并请求
11
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
7ed82467
编写于
5个月前
作者:
D
DCloud_LXH
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: uts api 示例
上级
3648170f
master
dev
无相关合并请求
变更
34
展开全部
隐藏空白更改
内联
并排
Showing
34 changed file
with
27 addition
and
64 deletion
+27
-64
docs/.vuepress/utils/utsApiJson.json
docs/.vuepress/utils/utsApiJson.json
+1
-1
docs/api/choose-image.md
docs/api/choose-image.md
+1
-1
docs/api/choose-video.md
docs/api/choose-video.md
+2
-2
docs/api/compress-image.md
docs/api/compress-image.md
+1
-1
docs/api/compress-video.md
docs/api/compress-video.md
+1
-1
docs/api/download-file.md
docs/api/download-file.md
+0
-2
docs/api/event-bus.md
docs/api/event-bus.md
+1
-1
docs/api/facial-recognition-meta-info.md
docs/api/facial-recognition-meta-info.md
+6
-2
docs/api/get-app-authorize-setting.md
docs/api/get-app-authorize-setting.md
+0
-2
docs/api/get-app-base-info.md
docs/api/get-app-base-info.md
+0
-2
docs/api/get-app.md
docs/api/get-app.md
+0
-2
docs/api/get-battery-info.md
docs/api/get-battery-info.md
+0
-2
docs/api/get-current-pages.md
docs/api/get-current-pages.md
+0
-5
docs/api/get-device-info.md
docs/api/get-device-info.md
+4
-6
docs/api/get-image-info.md
docs/api/get-image-info.md
+1
-1
docs/api/get-launch-options-sync.md
docs/api/get-launch-options-sync.md
+0
-2
docs/api/get-location.md
docs/api/get-location.md
+1
-1
docs/api/get-network-type.md
docs/api/get-network-type.md
+0
-2
docs/api/get-performance.md
docs/api/get-performance.md
+1
-1
docs/api/get-provider.md
docs/api/get-provider.md
+1
-1
docs/api/get-system-info.md
docs/api/get-system-info.md
+0
-2
docs/api/get-system-setting.md
docs/api/get-system-setting.md
+0
-2
docs/api/get-video-info.md
docs/api/get-video-info.md
+1
-1
docs/api/get-window-info.md
docs/api/get-window-info.md
+2
-4
docs/api/install-apk.md
docs/api/install-apk.md
+1
-1
docs/api/load-font-face.md
docs/api/load-font-face.md
+0
-2
docs/api/page-scroll-to.md
docs/api/page-scroll-to.md
+0
-2
docs/api/preview-image.md
docs/api/preview-image.md
+0
-2
docs/api/pull-down-refresh.md
docs/api/pull-down-refresh.md
+0
-2
docs/api/save-image-to-photos-album.md
docs/api/save-image-to-photos-album.md
+0
-2
docs/api/save-video-to-photos-album.md
docs/api/save-video-to-photos-album.md
+1
-1
docs/api/set-navigation-bar-color.md
docs/api/set-navigation-bar-color.md
+0
-2
docs/api/theme-change.md
docs/api/theme-change.md
+1
-1
docs/api/upload-file.md
docs/api/upload-file.md
+0
-2
未找到文件。
docs/.vuepress/utils/utsApiJson.json
浏览文件 @
7ed82467
此差异已折叠。
点击以展开。
docs/api/choose-image.md
浏览文件 @
7ed82467
...
...
@@ -10,7 +10,7 @@
<!-- UTSAPIJSON.chooseImage.tutorial -->
<!-- UTSAPIJSON.choose
-i
mage.example -->
<!-- UTSAPIJSON.choose
I
mage.example -->
<!-- UTSAPIJSON.general_type.name -->
...
...
This diff is collapsed.
Click to expand it.
docs/api/choose-video.md
浏览文件 @
7ed82467
...
...
@@ -10,7 +10,7 @@
<!-- UTSAPIJSON.chooseVideo.tutorial -->
<!-- UTSAPIJSON.choose
-v
ideo.example -->
<!-- UTSAPIJSON.choose
V
ideo.example -->
<!-- UTSAPIJSON.general_type.name -->
...
...
@@ -19,4 +19,4 @@
## Tips
*
本API会自动申请摄像头和相册权限,如需手动获取app是否拥有摄像头和相册权限,参考
[
uni.getAppAuthorizeSetting
](
get-app-authorize-setting.md
)
*
app端拍摄和相册选择会在应用沙盒目录的cache目录产生临时文件,位置
[
详见
](
file-system-spec.md#cache
)
。
*
app端如需主动删除临时文件,使用
[
uni.getFileSystemManager
](
get-file-system-manager.md
)
。
\ No newline at end of file
*
app端如需主动删除临时文件,使用
[
uni.getFileSystemManager
](
get-file-system-manager.md
)
。
This diff is collapsed.
Click to expand it.
docs/api/compress-image.md
浏览文件 @
7ed82467
...
...
@@ -10,7 +10,7 @@
<!-- UTSAPIJSON.compressImage.tutorial -->
<!-- UTSAPIJSON.compress
-i
mage.example -->
<!-- UTSAPIJSON.compress
I
mage.example -->
<!-- UTSAPIJSON.general_type.name -->
...
...
This diff is collapsed.
Click to expand it.
docs/api/compress-video.md
浏览文件 @
7ed82467
...
...
@@ -10,7 +10,7 @@
<!-- UTSAPIJSON.compressVideo.tutorial -->
<!-- UTSAPIJSON.compress
-v
ideo.example -->
<!-- UTSAPIJSON.compress
V
ideo.example -->
<!-- UTSAPIJSON.general_type.name -->
...
...
This diff is collapsed.
Click to expand it.
docs/api/download-file.md
浏览文件 @
7ed82467
...
...
@@ -21,8 +21,6 @@
<!-- UTSAPIJSON.downloadFile.tutorial -->
<!-- UTSAPIJSON.download-file.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
...
...
This diff is collapsed.
Click to expand it.
docs/api/event-bus.md
浏览文件 @
7ed82467
...
...
@@ -54,7 +54,7 @@
<!-- UTSAPIJSON.$emit.tutorial -->
<!-- UTSAPIJSON.event
-b
us.example -->
<!-- UTSAPIJSON.event
B
us.example -->
<!-- UTSAPIJSON.general_type.name -->
...
...
This diff is collapsed.
Click to expand it.
docs/api/facial-recognition-meta-info.md
浏览文件 @
7ed82467
...
...
@@ -17,7 +17,9 @@ uni-id-pages,已经内置实人认证,从云端到客户端均已开发好
<!-- UTSAPIJSON.getFacialRecognitionMetaInfo.param -->
<!-- UTSAPIJSON.getFacialRecognitionMetaInfo.returnValue -->
<!-- UTSAPIJSON.getFacialRecognitionMetaInfo.example -->
<!-- UTSAPIJSON.getFacialRecognitionMetaInfo.tutorial -->
<!-- UTSAPIJSON.getFacialRecognitionMetaInfo.tutorial -->
...
...
@@ -31,9 +33,11 @@ uni-id-pages,已经内置实人认证,从云端到客户端均已开发好
<!-- UTSAPIJSON.startFacialRecognitionVerify.returnValue -->
<!-- UTSAPIJSON.startFacialRecognitionVerify.example -->
<!-- UTSAPIJSON.startFacialRecognitionVerify.tutorial -->
<!-- UTSAPIJSON.facial
-recognition-v
erify.example -->
<!-- UTSAPIJSON.facial
RecognitionV
erify.example -->
<!-- UTSAPIJSON.general_type.name -->
...
...
This diff is collapsed.
Click to expand it.
docs/api/get-app-authorize-setting.md
浏览文件 @
7ed82467
...
...
@@ -22,8 +22,6 @@ Android和iOS的权限设计并不相同,比如iOS有相册权限,Android则
本API只返回部分权限,Android平台的权限非常多,在Android上获取所有未授权权限,另见
[
UTSAndroid.getSystemPermissionDenied
](
../uts/utsandroid.md#getsystempermissiondenied
)
,这里的权限名称就是Android原始的权限名称了。
<!-- UTSAPIJSON.get-app-authorize-setting.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/get-app-base-info.md
浏览文件 @
7ed82467
...
...
@@ -14,8 +14,6 @@
<!-- UTSAPIJSON.getAppBaseInfo.tutorial -->
<!-- UTSAPIJSON.get-app-base-info.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/get-app.md
浏览文件 @
7ed82467
...
...
@@ -12,8 +12,6 @@
<!-- UTSAPIJSON.getApp.tutorial -->
<!-- UTSAPIJSON.get-app.example -->
以上示例,getApp()后调用了app.uvue里定义的increasetLifeCycleNum方法。app.uvue的源码
[
另见
](
https://gitcode.net/dcloud/hello-uni-app-x/-/blob/alpha/App.uvue
)
<!-- UTSAPIJSON.general_type.name -->
...
...
This diff is collapsed.
Click to expand it.
docs/api/get-battery-info.md
浏览文件 @
7ed82467
...
...
@@ -26,8 +26,6 @@
<!-- UTSAPIJSON.getBatteryInfoSync.tutorial -->
<!-- UTSAPIJSON.get-battery-info.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/get-current-pages.md
浏览文件 @
7ed82467
...
...
@@ -31,15 +31,10 @@
-
app-android平台的页面是activity,不支持
`backgroundColorContent`
设为透明。
-
4.15版本前,app-ios平台在page.json 中设置页面
`enablePullDownRefresh`
为
`false`
时,无法通过
`$setPageStyle`
方法动态开启页面下拉刷新。新版已修复该问题。
<!-- UTSAPIJSON.getCurrentPages.example -->
<!-- UTSAPIJSON.getCurrentPages.tutorial -->
<!-- UTSAPIJSON.get-current-pages.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/get-device-info.md
浏览文件 @
7ed82467
...
...
@@ -8,18 +8,16 @@
<!-- UTSAPIJSON.getDeviceInfo.returnValue -->
::: warning 注意事项
-
获取OAID、AndroidID等其他设备信息,
[
见插件市场
](
https://ext.dcloud.net.cn/search?q=oaid&orderBy=Relevance&uni-appx=1
)
-
romName值域候选
[
详见
](
./get-system-info.md#romName
)
-
app平台devicePixelRatio属性,HBuilderX4.22及以下版本类型为string,HBuilderX4.23版本调整为number
::: warning 注意事项
-
获取OAID、AndroidID等其他设备信息,
[
见插件市场
](
https://ext.dcloud.net.cn/search?q=oaid&orderBy=Relevance&uni-appx=1
)
-
romName值域候选
[
详见
](
./get-system-info.md#romName
)
-
app平台devicePixelRatio属性,HBuilderX4.22及以下版本类型为string,HBuilderX4.23版本调整为number
:::
<!-- UTSAPIJSON.getDeviceInfo.example -->
<!-- UTSAPIJSON.getDeviceInfo.tutorial -->
<!-- UTSAPIJSON.get-device-info.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/get-image-info.md
浏览文件 @
7ed82467
...
...
@@ -10,7 +10,7 @@
<!-- UTSAPIJSON.getImageInfo.tutorial -->
<!-- UTSAPIJSON.get
-image-i
nfo.example -->
<!-- UTSAPIJSON.get
ImageI
nfo.example -->
<!-- UTSAPIJSON.general_type.name -->
...
...
This diff is collapsed.
Click to expand it.
docs/api/get-launch-options-sync.md
浏览文件 @
7ed82467
...
...
@@ -12,8 +12,6 @@
<!-- UTSAPIJSON.getLaunchOptionsSync.tutorial -->
<!-- UTSAPIJSON.get-launch-options-sync.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/get-location.md
浏览文件 @
7ed82467
...
...
@@ -30,7 +30,7 @@ uni-app x的标准基座定位仅支持wgs84坐标系、不支持逆地址解析
<!-- UTSAPIJSON.getLocation.tutorial -->
<!-- UTSAPIJSON.get
-l
ocation.example -->
<!-- UTSAPIJSON.get
L
ocation.example -->
<!-- UTSAPIJSON.general_type.name -->
...
...
This diff is collapsed.
Click to expand it.
docs/api/get-network-type.md
浏览文件 @
7ed82467
...
...
@@ -12,8 +12,6 @@
<!-- UTSAPIJSON.getNetworkType.tutorial -->
<!-- UTSAPIJSON.get-network-type.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/get-performance.md
浏览文件 @
7ed82467
...
...
@@ -10,7 +10,7 @@
<!-- UTSAPIJSON.getPerformance.tutorial -->
<!-- UTSAPIJSON.get
-p
erformance.example -->
<!-- UTSAPIJSON.get
P
erformance.example -->
<!-- UTSAPIJSON.general_type.name -->
...
...
This diff is collapsed.
Click to expand it.
docs/api/get-provider.md
浏览文件 @
7ed82467
...
...
@@ -30,7 +30,7 @@ uni-app 通过 provider 机制来统一不同的SDK,屏蔽他们的差异。
<!-- UTSAPIJSON.getProvider.tutorial -->
<!-- UTSAPIJSON.get
-p
rovider.example -->
<!-- UTSAPIJSON.get
P
rovider.example -->
<!-- UTSAPIJSON.general_type.name -->
...
...
This diff is collapsed.
Click to expand it.
docs/api/get-system-info.md
浏览文件 @
7ed82467
...
...
@@ -81,8 +81,6 @@ uni-app 提供了异步(`uni.getSystemInfo`)和同步(`uni.getSystemInfoSync`)
<!-- UTSAPIJSON.getSystemInfoSync.tutorial -->
<!-- UTSAPIJSON.get-system-info.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/get-system-setting.md
浏览文件 @
7ed82467
...
...
@@ -12,8 +12,6 @@
<!-- UTSAPIJSON.getSystemSetting.tutorial -->
<!-- UTSAPIJSON.get-system-setting.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/get-video-info.md
浏览文件 @
7ed82467
...
...
@@ -10,7 +10,7 @@
<!-- UTSAPIJSON.getVideoInfo.tutorial -->
<!-- UTSAPIJSON.get
-video-i
nfo.example -->
<!-- UTSAPIJSON.get
VideoI
nfo.example -->
<!-- UTSAPIJSON.general_type.name -->
...
...
This diff is collapsed.
Click to expand it.
docs/api/get-window-info.md
浏览文件 @
7ed82467
...
...
@@ -8,17 +8,15 @@
<!-- UTSAPIJSON.getWindowInfo.returnValue -->
::: warning 注意事项
::: warning 注意事项
-
Android端的
`windowHeight`
属性是有时机的考量的,如果在全局作用域获取
`windowHeight`
,有可能当前Activity还未加载,所以导航栏和Tabbar的高度是不会计算进去的,稳妥起见,建议在
`onReady`
或者
`onPageShow`
内获取
`windowheight`
。
-
仅iOS有安全区概念
:::
:::
<!-- UTSAPIJSON.getWindowInfo.example -->
<!-- UTSAPIJSON.getWindowInfo.tutorial -->
<!-- UTSAPIJSON.get-window-info.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/install-apk.md
浏览文件 @
7ed82467
...
...
@@ -12,7 +12,7 @@
<!-- UTSAPIJSON.installApk.tutorial -->
<!-- UTSAPIJSON.install
-a
pk.example -->
<!-- UTSAPIJSON.install
A
pk.example -->
## Tips
-
HBuilderX 3.99以前,uni.install是ext api,需单独
[
下载
](
https://ext.dcloud.net.cn/plugin?id=15118
)
。从HBuilderX 3.99起 uni-app x 内置了该api,无需再单独下载。
...
...
This diff is collapsed.
Click to expand it.
docs/api/load-font-face.md
浏览文件 @
7ed82467
...
...
@@ -31,8 +31,6 @@ uni.loadFontFace({
<!-- UTSAPIJSON.loadFontFace.tutorial -->
<!-- UTSAPIJSON.load-font-face.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/page-scroll-to.md
浏览文件 @
7ed82467
...
...
@@ -45,8 +45,6 @@ uni.pageScrollTo({
});
```
<!-- UTSAPIJSON.page-scroll-to.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/preview-image.md
浏览文件 @
7ed82467
...
...
@@ -26,8 +26,6 @@
<!-- UTSAPIJSON.closePreviewImage.tutorial -->
<!-- UTSAPIJSON.preview-image.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/pull-down-refresh.md
浏览文件 @
7ed82467
...
...
@@ -31,8 +31,6 @@
<!-- UTSAPIJSON.stopPullDownRefresh.tutorial -->
<!-- UTSAPIJSON.pull-down-refresh.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/save-image-to-photos-album.md
浏览文件 @
7ed82467
...
...
@@ -12,8 +12,6 @@
<!-- UTSAPIJSON.saveImageToPhotosAlbum.tutorial -->
<!-- UTSAPIJSON.save-image-to-photos-album.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/save-video-to-photos-album.md
浏览文件 @
7ed82467
...
...
@@ -10,7 +10,7 @@
<!-- UTSAPIJSON.saveVideoToPhotosAlbum.tutorial -->
<!-- UTSAPIJSON.save
-video-to-photos-a
lbum.example -->
<!-- UTSAPIJSON.save
VideoToPhotosA
lbum.example -->
<!-- UTSAPIJSON.general_type.name -->
...
...
This diff is collapsed.
Click to expand it.
docs/api/set-navigation-bar-color.md
浏览文件 @
7ed82467
...
...
@@ -16,8 +16,6 @@
<!-- UTSAPIJSON.setNavigationBarColor.tutorial -->
<!-- UTSAPIJSON.set-navigation-bar-color.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
This diff is collapsed.
Click to expand it.
docs/api/theme-change.md
浏览文件 @
7ed82467
...
...
@@ -119,7 +119,7 @@ uni.offOsThemeChange(callbackId)
<!-- UTSAPIJSON.offOsThemeChange.tutorial -->
<!-- UTSAPIJSON.
theme-c
hange.example -->
<!-- UTSAPIJSON.
offOsThemeC
hange.example -->
<!-- UTSAPIJSON.general_type.name -->
...
...
This diff is collapsed.
Click to expand it.
docs/api/upload-file.md
浏览文件 @
7ed82467
...
...
@@ -14,8 +14,6 @@
<!-- UTSAPIJSON.uploadFile.tutorial -->
<!-- UTSAPIJSON.upload-file.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
反馈
建议
客服
返回
顶部