提交 8fee383b 编写于 作者: D DCloud_LXH

feat: 文档处理

上级 2da37f05
......@@ -2,24 +2,24 @@
<!-- UTSAPIJSON.onUserCaptureScreen.description -->
<!-- UTSAPIJSON.onUserCaptureScreen.compatibility -->
<!-- UTSAPIJSON.onUserCaptureScreen.param -->
<!-- UTSAPIJSON.onUserCaptureScreen.returnValue -->
<!-- UTSAPIJSON.onUserCaptureScreen.compatibility -->
<!-- UTSAPIJSON.onUserCaptureScreen.tutorial -->
## uni.offUserCaptureScreen(callback?) @offusercapturescreen
<!-- UTSAPIJSON.offUserCaptureScreen.description -->
<!-- UTSAPIJSON.offUserCaptureScreen.compatibility -->
<!-- UTSAPIJSON.offUserCaptureScreen.param -->
<!-- UTSAPIJSON.offUserCaptureScreen.returnValue -->
<!-- UTSAPIJSON.offUserCaptureScreen.compatibility -->
<!-- UTSAPIJSON.offUserCaptureScreen.tutorial -->
<!-- UTSAPIJSON.general_type.name -->
......
......@@ -2,12 +2,12 @@
<!-- UTSAPIJSON.chooseImage.description -->
<!-- UTSAPIJSON.chooseImage.compatibility -->
<!-- UTSAPIJSON.chooseImage.param -->
<!-- UTSAPIJSON.chooseImage.returnValue -->
<!-- UTSAPIJSON.chooseImage.compatibility -->
<!-- UTSAPIJSON.chooseImage.tutorial -->
<!-- UTSAPIJSON.choose-image.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSAPIJSON.createRequestPermissionListener.description -->
<!-- UTSAPIJSON.createRequestPermissionListener.compatibility -->
app-android平台,可使用本API监听应用权限申请确认框的弹出和关闭。不管是哪处的业务代码在申请权限,当弹出和关闭权限申请确认框时均会触发本监听事件。
华为应用市场审核时要求:`APP在调用终端权限时,应同步告知用户申请该权限的目的`。此时即可使用本API,在app.uvue里全局监听。
......@@ -25,7 +27,7 @@ app-android平台,可使用本API监听应用权限申请确认框的弹出和
<!-- UTSAPIJSON.createRequestPermissionListener.example -->
<!-- UTSAPIJSON.createRequestPermissionListener.compatibility -->
<!-- UTSAPIJSON.createRequestPermissionListener.tutorial -->
......
......@@ -2,6 +2,8 @@
<!-- UTSAPIJSON.createRewardedVideoAd.description -->
<!-- UTSAPIJSON.createRewardedVideoAd.compatibility -->
<!-- UTSAPIJSON.createRewardedVideoAd.param -->
<!-- UTSAPIJSON.createRewardedVideoAd.returnValue -->
......@@ -14,8 +16,6 @@
<!-- UTSAPIJSON.createRewardedVideoAd.example -->
<!-- UTSAPIJSON.createRewardedVideoAd.compatibility -->
<!-- UTSAPIJSON.createRewardedVideoAd.tutorial -->
<!-- UTSAPIJSON.general_type.name -->
......
......@@ -2,14 +2,14 @@
<!-- UTSAPIJSON.createVideoContext.description -->
<!-- UTSAPIJSON.createVideoContext.compatibility -->
<!-- UTSAPIJSON.createVideoContext.param -->
<!-- UTSAPIJSON.createVideoContext.returnValue -->
<!-- UTSAPIJSON.createVideoContext.example -->
<!-- UTSAPIJSON.createVideoContext.compatibility -->
<!-- UTSAPIJSON.createVideoContext.tutorial -->
<!-- UTSAPIJSON.general_type.name -->
......
......@@ -2,14 +2,14 @@
<!-- UTSAPIJSON.createWebviewContext.description -->
<!-- UTSAPIJSON.createWebviewContext.compatibility -->
<!-- UTSAPIJSON.createWebviewContext.param -->
<!-- UTSAPIJSON.createWebviewContext.returnValue -->
<!-- UTSAPIJSON.createWebviewContext.example -->
<!-- UTSAPIJSON.createWebviewContext.compatibility -->
<!-- UTSAPIJSON.createWebviewContext.tutorial -->
<!-- UTSAPIJSON.general_type.name -->
......
......@@ -2,6 +2,8 @@
<!-- UTSAPIJSON.downloadFile.description -->
<!-- UTSAPIJSON.downloadFile.compatibility -->
下载文件常见场景是apk的下载更新,[app升级中心](https://doc.dcloud.net.cn/uniCloud/upgrade-center.html)是一个现成的开源项目,实现下载进度在通知栏显示等复杂交互,可直接使用。
<!-- UTSAPIJSON.downloadFile.param -->
......@@ -17,8 +19,6 @@
<!-- UTSAPIJSON.downloadFile.example -->
<!-- UTSAPIJSON.downloadFile.compatibility -->
<!-- UTSAPIJSON.downloadFile.tutorial -->
<!-- UTSAPIJSON.download-file.example -->
......
......@@ -2,12 +2,12 @@
<!-- UTSAPIJSON.env.description -->
<!-- UTSAPIJSON.env.compatibility -->
<!-- UTSAPIJSON.env.param -->
<!-- UTSAPIJSON.env.returnValue -->
<!-- UTSAPIJSON.env.compatibility -->
<!-- UTSAPIJSON.env.tutorial -->
<!-- UTSAPIJSON.general_type.name -->
......
......@@ -2,56 +2,56 @@
<!-- UTSAPIJSON.$on.description -->
<!-- UTSAPIJSON.$on.compatibility -->
<!-- UTSAPIJSON.$on.param -->
<!-- UTSAPIJSON.$on.returnValue -->
<!-- UTSAPIJSON.$on.example -->
<!-- UTSAPIJSON.$on.compatibility -->
<!-- UTSAPIJSON.$on.tutorial -->
## uni.$off(eventName, callback) @$off
<!-- UTSAPIJSON.$off.description -->
<!-- UTSAPIJSON.$off.compatibility -->
<!-- UTSAPIJSON.$off.param -->
<!-- UTSAPIJSON.$off.returnValue -->
<!-- UTSAPIJSON.$off.example -->
<!-- UTSAPIJSON.$off.compatibility -->
<!-- UTSAPIJSON.$off.tutorial -->
## uni.$once(eventName, callback) @$once
<!-- UTSAPIJSON.$once.description -->
<!-- UTSAPIJSON.$once.compatibility -->
<!-- UTSAPIJSON.$once.param -->
<!-- UTSAPIJSON.$once.returnValue -->
<!-- UTSAPIJSON.$once.example -->
<!-- UTSAPIJSON.$once.compatibility -->
<!-- UTSAPIJSON.$once.tutorial -->
## uni.$emit(eventName, args?) @$emit
<!-- UTSAPIJSON.$emit.description -->
<!-- UTSAPIJSON.$emit.compatibility -->
<!-- UTSAPIJSON.$emit.param -->
<!-- UTSAPIJSON.$emit.returnValue -->
<!-- UTSAPIJSON.$emit.example -->
<!-- UTSAPIJSON.$emit.compatibility -->
<!-- UTSAPIJSON.$emit.tutorial -->
<!-- UTSAPIJSON.event-bus.example -->
......
......@@ -2,12 +2,12 @@
<!-- UTSAPIJSON.exit.description -->
<!-- UTSAPIJSON.exit.compatibility -->
<!-- UTSAPIJSON.exit.param -->
<!-- UTSAPIJSON.exit.returnValue -->
<!-- UTSAPIJSON.exit.compatibility -->
本API仅Android App生效。
Android平台的应用退出分热退出和冷退出。
......
......@@ -13,24 +13,24 @@ uni-id-pages,已经内置实人认证,从云端到客户端均已开发好
<!-- UTSAPIJSON.getFacialRecognitionMetaInfo.description -->
<!-- UTSAPIJSON.getFacialRecognitionMetaInfo.compatibility -->
<!-- UTSAPIJSON.getFacialRecognitionMetaInfo.param -->
<!-- UTSAPIJSON.getFacialRecognitionMetaInfo.returnValue -->
<!-- UTSAPIJSON.getFacialRecognitionMetaInfo.compatibility -->
<!-- UTSAPIJSON.getFacialRecognitionMetaInfo.tutorial -->
## uni.startFacialRecognitionVerify(faceStyle) @startfacialrecognitionverify
<!-- UTSAPIJSON.startFacialRecognitionVerify.description -->
<!-- UTSAPIJSON.startFacialRecognitionVerify.compatibility -->
<!-- UTSAPIJSON.startFacialRecognitionVerify.param -->
<!-- UTSAPIJSON.startFacialRecognitionVerify.returnValue -->
<!-- UTSAPIJSON.startFacialRecognitionVerify.compatibility -->
<!-- UTSAPIJSON.startFacialRecognitionVerify.tutorial -->
<!-- UTSAPIJSON.facial-recognition-verify.example -->
......
......@@ -2,14 +2,14 @@
<!-- UTSAPIJSON.getAppAuthorizeSetting.description -->
<!-- UTSAPIJSON.getAppAuthorizeSetting.compatibility -->
<!-- UTSAPIJSON.getAppAuthorizeSetting.param -->
<!-- UTSAPIJSON.getAppAuthorizeSetting.returnValue -->
<!-- UTSAPIJSON.getAppAuthorizeSetting.example -->
<!-- UTSAPIJSON.getAppAuthorizeSetting.compatibility -->
<!-- UTSAPIJSON.getAppAuthorizeSetting.tutorial -->
<!-- UTSAPIJSON.get-app-authorize-setting.example -->
......
......@@ -2,14 +2,14 @@
<!-- UTSAPIJSON.getAppBaseInfo.description -->
<!-- UTSAPIJSON.getAppBaseInfo.compatibility -->
<!-- UTSAPIJSON.getAppBaseInfo.param -->
<!-- UTSAPIJSON.getAppBaseInfo.returnValue -->
<!-- UTSAPIJSON.getAppBaseInfo.example -->
<!-- UTSAPIJSON.getAppBaseInfo.compatibility -->
<!-- UTSAPIJSON.getAppBaseInfo.tutorial -->
<!-- UTSAPIJSON.get-app-base-info.example -->
......
......@@ -2,14 +2,14 @@
<!-- UTSAPIJSON.getApp.description -->
<!-- UTSAPIJSON.getApp.compatibility -->
<!-- UTSAPIJSON.getApp.param -->
<!-- UTSAPIJSON.getApp.returnValue -->
<!-- UTSAPIJSON.getApp.example -->
<!-- UTSAPIJSON.getApp.compatibility -->
<!-- UTSAPIJSON.getApp.tutorial -->
<!-- UTSAPIJSON.get-app.example -->
......
......@@ -2,28 +2,28 @@
<!-- UTSAPIJSON.getBatteryInfo.description -->
<!-- UTSAPIJSON.getBatteryInfo.compatibility -->
<!-- UTSAPIJSON.getBatteryInfo.param -->
<!-- UTSAPIJSON.getBatteryInfo.returnValue -->
<!-- UTSAPIJSON.getBatteryInfo.example -->
<!-- UTSAPIJSON.getBatteryInfo.compatibility -->
<!-- UTSAPIJSON.getBatteryInfo.tutorial -->
## uni.getBatteryInfoSync() @getbatteryinfosync
<!-- UTSAPIJSON.getBatteryInfoSync.description -->
<!-- UTSAPIJSON.getBatteryInfoSync.compatibility -->
<!-- UTSAPIJSON.getBatteryInfoSync.param -->
<!-- UTSAPIJSON.getBatteryInfoSync.returnValue -->
<!-- UTSAPIJSON.getBatteryInfoSync.example -->
<!-- UTSAPIJSON.getBatteryInfoSync.compatibility -->
<!-- UTSAPIJSON.getBatteryInfoSync.tutorial -->
<!-- UTSAPIJSON.get-battery-info.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSAPIJSON.getCurrentPages.description -->
<!-- UTSAPIJSON.getCurrentPages.compatibility -->
<!-- UTSAPIJSON.getCurrentPages.param -->
<!-- UTSAPIJSON.getCurrentPages.returnValue -->
......@@ -25,7 +27,7 @@
<!-- UTSAPIJSON.getCurrentPages.example -->
<!-- UTSAPIJSON.getCurrentPages.compatibility -->
<!-- UTSAPIJSON.getCurrentPages.tutorial -->
......
......@@ -2,6 +2,8 @@
<!-- UTSAPIJSON.getDeviceInfo.description -->
<!-- UTSAPIJSON.getDeviceInfo.compatibility -->
<!-- UTSAPIJSON.getDeviceInfo.param -->
<!-- UTSAPIJSON.getDeviceInfo.returnValue -->
......@@ -10,8 +12,6 @@
<!-- UTSAPIJSON.getDeviceInfo.example -->
<!-- UTSAPIJSON.getDeviceInfo.compatibility -->
<!-- UTSAPIJSON.getDeviceInfo.tutorial -->
<!-- UTSAPIJSON.get-device-info.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSAPIJSON.getElementById.description -->
<!-- UTSAPIJSON.getElementById.compatibility -->
**注意:** \
本方法获取的元素,是页面栈栈顶的页面的元素,而不是执行本方法代码所在的页面的元素。\
因为uni是全局api,只有`this.$refs`才能和页面绑定。\
......@@ -42,8 +44,6 @@
<!-- UTSAPIJSON.getElementById.example -->
<!-- UTSAPIJSON.getElementById.compatibility -->
<!-- UTSAPIJSON.getElementById.tutorial -->
<!-- UTSAPIJSON.get-element.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSAPIJSON.getFileSystemManager.description -->
<!-- UTSAPIJSON.getFileSystemManager.compatibility -->
文件管理器对象,用于操作应用可访问的本地文件空间,在app平台是应用沙盒目录。
可实现目录和文件的创建、删除、改名或改路径、遍历目录、获取文件信息、读写文件。
......@@ -17,8 +19,6 @@
<!-- UTSAPIJSON.getFileSystemManager.returnValue -->
<!-- UTSAPIJSON.getFileSystemManager.compatibility -->
### 特殊说明
app-ios平台暂时仅支持在uvue文件中使用文件管理器对象,uts插件中暂不支持
app-android平台API不支持代码包文件目录
......
......@@ -2,14 +2,14 @@
<!-- UTSAPIJSON.getLaunchOptionsSync.description -->
<!-- UTSAPIJSON.getLaunchOptionsSync.compatibility -->
<!-- UTSAPIJSON.getLaunchOptionsSync.param -->
<!-- UTSAPIJSON.getLaunchOptionsSync.returnValue -->
<!-- UTSAPIJSON.getLaunchOptionsSync.example -->
<!-- UTSAPIJSON.getLaunchOptionsSync.compatibility -->
<!-- UTSAPIJSON.getLaunchOptionsSync.tutorial -->
<!-- UTSAPIJSON.get-launch-options-sync.example -->
......
......@@ -2,12 +2,12 @@
<!-- UTSAPIJSON.getLocation.description -->
<!-- UTSAPIJSON.getLocation.compatibility -->
<!-- UTSAPIJSON.getLocation.param -->
<!-- UTSAPIJSON.getLocation.returnValue -->
<!-- UTSAPIJSON.getLocation.compatibility -->
### 注意
uni-app x的标准基座定位仅支持wgs84坐标系、不支持逆地址解析、且某些老型号国产Android机因gms问题不支持系统定位、国产Rom可能不支持高度信息。
......
......@@ -2,14 +2,14 @@
<!-- UTSAPIJSON.getNetworkType.description -->
<!-- UTSAPIJSON.getNetworkType.compatibility -->
<!-- UTSAPIJSON.getNetworkType.param -->
<!-- UTSAPIJSON.getNetworkType.returnValue -->
<!-- UTSAPIJSON.getNetworkType.example -->
<!-- UTSAPIJSON.getNetworkType.compatibility -->
<!-- UTSAPIJSON.getNetworkType.tutorial -->
<!-- UTSAPIJSON.get-network-type.example -->
......
......@@ -2,12 +2,12 @@
<!-- UTSAPIJSON.getPerformance.description -->
<!-- UTSAPIJSON.getPerformance.compatibility -->
<!-- UTSAPIJSON.getPerformance.param -->
<!-- UTSAPIJSON.getPerformance.returnValue -->
<!-- UTSAPIJSON.getPerformance.compatibility -->
<!-- UTSAPIJSON.getPerformance.tutorial -->
<!-- UTSAPIJSON.get-performance.example -->
......
......@@ -2,12 +2,12 @@
<!-- UTSAPIJSON.getProvider.description -->
<!-- UTSAPIJSON.getProvider.compatibility -->
<!-- UTSAPIJSON.getProvider.param -->
<!-- UTSAPIJSON.getProvider.returnValue -->
<!-- UTSAPIJSON.getProvider.compatibility -->
<!-- UTSAPIJSON.getProvider.tutorial -->
<!-- UTSAPIJSON.get-provider.example -->
......
......@@ -4,6 +4,8 @@
<!-- UTSAPIJSON.getSystemInfo.description -->
<!-- UTSAPIJSON.getSystemInfo.compatibility -->
uni-app 提供了异步(`uni.getSystemInfo`)和同步(`uni.getSystemInfoSync`)的2个API获取系统信息。
按照运行环境层级排序,从底层向上,systemInfo有6个概念:
......@@ -24,22 +26,20 @@ uni-app 提供了异步(`uni.getSystemInfo`)和同步(`uni.getSystemInfoSync`)
<!-- UTSAPIJSON.getSystemInfo.example -->
<!-- UTSAPIJSON.getSystemInfo.compatibility -->
<!-- UTSAPIJSON.getSystemInfo.tutorial -->
## uni.getSystemInfoSync() @getsysteminfosync
<!-- UTSAPIJSON.getSystemInfoSync.description -->
<!-- UTSAPIJSON.getSystemInfoSync.compatibility -->
<!-- UTSAPIJSON.getSystemInfoSync.param -->
<!-- UTSAPIJSON.getSystemInfoSync.returnValue -->
<!-- UTSAPIJSON.getSystemInfoSync.example -->
<!-- UTSAPIJSON.getSystemInfoSync.compatibility -->
<!-- UTSAPIJSON.getSystemInfoSync.tutorial -->
<!-- UTSAPIJSON.get-system-info.example -->
......
......@@ -2,14 +2,14 @@
<!-- UTSAPIJSON.getSystemSetting.description -->
<!-- UTSAPIJSON.getSystemSetting.compatibility -->
<!-- UTSAPIJSON.getSystemSetting.param -->
<!-- UTSAPIJSON.getSystemSetting.returnValue -->
<!-- UTSAPIJSON.getSystemSetting.example -->
<!-- UTSAPIJSON.getSystemSetting.compatibility -->
<!-- UTSAPIJSON.getSystemSetting.tutorial -->
<!-- UTSAPIJSON.get-system-setting.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSAPIJSON.getUniverifyManager.description -->
<!-- UTSAPIJSON.getUniverifyManager.compatibility -->
App一键登陆,封装了个推的一键登陆sdk,其内部再次封装了中国三大电信运营商提供的sdk。通过运营商提供的服务,可以在手机sim卡信号正常的情况下,通过云端接口获取到当前用户的手机号。
App一键登陆是替代短信验证码登录的更优选择:对开发者而言更便宜、对用户而言体验更好。
......@@ -17,8 +19,6 @@ uni-id-pages,已经内置一键登陆,从云端到客户端均已开发好
<!-- UTSAPIJSON.getUniverifyManager.returnValue -->
<!-- UTSAPIJSON.getUniverifyManager.compatibility -->
<!-- UTSAPIJSON.getUniverifyManager.tutorial -->
## cause个推sdk错误码及运营商错误码汇总
......
......@@ -2,13 +2,13 @@
<!-- UTSAPIJSON.getWindowInfo.description -->
<!-- UTSAPIJSON.getWindowInfo.compatibility -->
<!-- UTSAPIJSON.getWindowInfo.param -->
<!-- UTSAPIJSON.getWindowInfo.returnValue -->
<!-- UTSAPIJSON.getWindowInfo.returnValue --><!-- UTSAPIJSON.getWindowInfo.example -->
<!-- UTSAPIJSON.getWindowInfo.example -->
<!-- UTSAPIJSON.getWindowInfo.compatibility -->
<!-- UTSAPIJSON.getWindowInfo.tutorial -->
......
......@@ -2,14 +2,14 @@
<!-- UTSAPIJSON.installApk.description -->
<!-- UTSAPIJSON.installApk.compatibility -->
安装Apk最常见的场景是App的升级,更推荐使用uni的[App升级中心](https://doc.dcloud.net.cn/uniCloud/upgrade-center.html),这是一个云端一体开源项目,想达到该项目的体验细节需要大量代码,不如直接拿走使用。
<!-- UTSAPIJSON.installApk.param -->
<!-- UTSAPIJSON.installApk.returnValue -->
<!-- UTSAPIJSON.installApk.compatibility -->
<!-- UTSAPIJSON.installApk.tutorial -->
<!-- UTSAPIJSON.install-apk.example -->
......
......@@ -2,24 +2,24 @@
<!-- UTSAPIJSON.addInterceptor.description -->
<!-- UTSAPIJSON.addInterceptor.compatibility -->
<!-- UTSAPIJSON.addInterceptor.param -->
<!-- UTSAPIJSON.addInterceptor.returnValue -->
<!-- UTSAPIJSON.addInterceptor.compatibility -->
<!-- UTSAPIJSON.addInterceptor.tutorial -->
## uni.removeInterceptor(name, interceptor?) @removeinterceptor
<!-- UTSAPIJSON.removeInterceptor.description -->
<!-- UTSAPIJSON.removeInterceptor.compatibility -->
<!-- UTSAPIJSON.removeInterceptor.param -->
<!-- UTSAPIJSON.removeInterceptor.returnValue -->
<!-- UTSAPIJSON.removeInterceptor.compatibility -->
<!-- UTSAPIJSON.removeInterceptor.tutorial -->
<!-- UTSAPIJSON.interceptor.example -->
......
......@@ -2,8 +2,12 @@
<!-- UTSAPIJSON.loadFontFace.description -->
<!-- UTSAPIJSON.loadFontFace.compatibility -->
<!-- UTSAPIJSON.loadFontFace.param -->
<!-- UTSAPIJSON.loadFontFace.returnValue -->
#### 注意事项
- app-ios平台加载字体一定是全局生效,不支持通过global属性设置为非全局生效
- family属性指定自定义字体路径时,必须使用`url()`包裹。可能某些平台不包裹也可以生效,但标准规范是包裹,按标准写法才能全端生效。如下:
......@@ -23,12 +27,8 @@ uni.loadFontFace({
不同平台支持的字体格式不同,另见[css字体](../css/font-family.md)
<!-- UTSAPIJSON.loadFontFace.returnValue -->
<!-- UTSAPIJSON.loadFontFace.example -->
<!-- UTSAPIJSON.loadFontFace.compatibility -->
<!-- UTSAPIJSON.loadFontFace.tutorial -->
<!-- UTSAPIJSON.load-font-face.example -->
......
......@@ -2,24 +2,24 @@
<!-- UTSAPIJSON.onMemoryWarning.description -->
<!-- UTSAPIJSON.onMemoryWarning.compatibility -->
<!-- UTSAPIJSON.onMemoryWarning.param -->
<!-- UTSAPIJSON.onMemoryWarning.returnValue -->
<!-- UTSAPIJSON.onMemoryWarning.compatibility -->
<!-- UTSAPIJSON.onMemoryWarning.tutorial -->
## uni.offMemoryWarning(callback?) @offmemorywarning
<!-- UTSAPIJSON.offMemoryWarning.description -->
<!-- UTSAPIJSON.offMemoryWarning.compatibility -->
<!-- UTSAPIJSON.offMemoryWarning.param -->
<!-- UTSAPIJSON.offMemoryWarning.returnValue -->
<!-- UTSAPIJSON.offMemoryWarning.compatibility -->
<!-- UTSAPIJSON.offMemoryWarning.tutorial -->
<!-- UTSAPIJSON.general_type.name -->
......
......@@ -2,70 +2,70 @@
<!-- UTSAPIJSON.navigateTo.description -->
<!-- UTSAPIJSON.navigateTo.compatibility -->
<!-- UTSAPIJSON.navigateTo.param -->
<!-- UTSAPIJSON.navigateTo.returnValue -->
<!-- UTSAPIJSON.navigateTo.example -->
<!-- UTSAPIJSON.navigateTo.compatibility -->
<!-- UTSAPIJSON.navigateTo.tutorial -->
## uni.redirectTo(options) @redirectto
<!-- UTSAPIJSON.redirectTo.description -->
<!-- UTSAPIJSON.redirectTo.compatibility -->
<!-- UTSAPIJSON.redirectTo.param -->
<!-- UTSAPIJSON.redirectTo.returnValue -->
<!-- UTSAPIJSON.redirectTo.example -->
<!-- UTSAPIJSON.redirectTo.compatibility -->
<!-- UTSAPIJSON.redirectTo.tutorial -->
## uni.reLaunch(options) @relaunch
<!-- UTSAPIJSON.reLaunch.description -->
<!-- UTSAPIJSON.reLaunch.compatibility -->
<!-- UTSAPIJSON.reLaunch.param -->
<!-- UTSAPIJSON.reLaunch.returnValue -->
<!-- UTSAPIJSON.reLaunch.example -->
<!-- UTSAPIJSON.reLaunch.compatibility -->
<!-- UTSAPIJSON.reLaunch.tutorial -->
## uni.switchTab(options) @switchtab
<!-- UTSAPIJSON.switchTab.description -->
<!-- UTSAPIJSON.switchTab.compatibility -->
<!-- UTSAPIJSON.switchTab.param -->
<!-- UTSAPIJSON.switchTab.returnValue -->
<!-- UTSAPIJSON.switchTab.example -->
<!-- UTSAPIJSON.switchTab.compatibility -->
<!-- UTSAPIJSON.switchTab.tutorial -->
## uni.navigateBack(options?) @navigateback
<!-- UTSAPIJSON.navigateBack.description -->
<!-- UTSAPIJSON.navigateBack.compatibility -->
<!-- UTSAPIJSON.navigateBack.param -->
<!-- UTSAPIJSON.navigateBack.returnValue -->
<!-- UTSAPIJSON.navigateBack.example -->
<!-- UTSAPIJSON.navigateBack.compatibility -->
<!-- UTSAPIJSON.navigateBack.tutorial -->
<!-- UTSAPIJSON.navigator.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSAPIJSON.createSelectorQuery.description -->
<!-- UTSAPIJSON.createSelectorQuery.compatibility -->
<!-- UTSAPIJSON.createSelectorQuery.param -->
**selector 说明:**
......@@ -27,8 +29,6 @@
<!-- UTSAPIJSON.createSelectorQuery.example -->
<!-- UTSAPIJSON.createSelectorQuery.compatibility -->
<!-- UTSAPIJSON.createSelectorQuery.tutorial -->
<!-- UTSAPIJSON.nodes-info.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSAPIJSON.pageScrollTo.description -->
<!-- UTSAPIJSON.pageScrollTo.compatibility -->
可以滚动到指定的scrollTop值处,也可以滚动到指定的目标元素处(通过css选择器selector), 仅支持一级 class
app-uvue下,只有页面的根元素为scroll-view时,本API才生效。[详见](../css/README.md#pagescroll)
......@@ -14,8 +16,6 @@ app-uvue下,只有页面的根元素为scroll-view时,本API才生效。[详
<!-- UTSAPIJSON.pageScrollTo.example -->
<!-- UTSAPIJSON.pageScrollTo.compatibility -->
<!-- UTSAPIJSON.pageScrollTo.tutorial -->
**selector 语法**
......
......@@ -2,28 +2,28 @@
<!-- UTSAPIJSON.previewImage.description -->
<!-- UTSAPIJSON.previewImage.compatibility -->
<!-- UTSAPIJSON.previewImage.param -->
<!-- UTSAPIJSON.previewImage.returnValue -->
<!-- UTSAPIJSON.previewImage.example -->
<!-- UTSAPIJSON.previewImage.compatibility -->
<!-- UTSAPIJSON.previewImage.tutorial -->
## uni.closePreviewImage(options) @closepreviewimage
<!-- UTSAPIJSON.closePreviewImage.description -->
<!-- UTSAPIJSON.closePreviewImage.compatibility -->
<!-- UTSAPIJSON.closePreviewImage.param -->
<!-- UTSAPIJSON.closePreviewImage.returnValue -->
<!-- UTSAPIJSON.closePreviewImage.example -->
<!-- UTSAPIJSON.closePreviewImage.compatibility -->
<!-- UTSAPIJSON.closePreviewImage.tutorial -->
<!-- UTSAPIJSON.preview-image.example -->
......
......@@ -2,14 +2,14 @@
<!-- UTSAPIJSON.showToast.description -->
<!-- UTSAPIJSON.showToast.compatibility -->
<!-- UTSAPIJSON.showToast.param -->
<!-- UTSAPIJSON.showToast.returnValue -->
<!-- UTSAPIJSON.showToast.example -->
<!-- UTSAPIJSON.showToast.compatibility -->
<!-- UTSAPIJSON.showToast.tutorial -->
#### 注意事项 ####
......@@ -30,34 +30,36 @@
<!-- UTSAPIJSON.showLoading.description -->
<!-- UTSAPIJSON.showLoading.compatibility -->
<!-- UTSAPIJSON.showLoading.param -->
<!-- UTSAPIJSON.showLoading.returnValue -->
<!-- UTSAPIJSON.showLoading.example -->
<!-- UTSAPIJSON.showLoading.compatibility -->
<!-- UTSAPIJSON.showLoading.tutorial -->
## uni.showModal(options) @showmodal
<!-- UTSAPIJSON.showModal.description -->
<!-- UTSAPIJSON.showModal.compatibility -->
<!-- UTSAPIJSON.showModal.param -->
<!-- UTSAPIJSON.showModal.returnValue -->
<!-- UTSAPIJSON.showModal.example -->
<!-- UTSAPIJSON.showModal.compatibility -->
<!-- UTSAPIJSON.showModal.tutorial -->
## uni.showActionSheet(options) @showactionsheet
<!-- UTSAPIJSON.showActionSheet.description -->
<!-- UTSAPIJSON.showActionSheet.compatibility -->
<!-- UTSAPIJSON.showActionSheet.param -->
itemList,即actionsheet的列表项,在app和小程序上最多6项,超出会报错。在web上超出不报错,列表区变为可滚动。
......@@ -66,8 +68,6 @@ itemList,即actionsheet的列表项,在app和小程序上最多6项,超出
<!-- UTSAPIJSON.showActionSheet.example -->
<!-- UTSAPIJSON.showActionSheet.compatibility -->
<!-- UTSAPIJSON.showActionSheet.tutorial -->
<!-- UTSAPIJSON.prompt.example -->
......
......@@ -2,18 +2,20 @@
<!-- UTSAPIJSON.startPullDownRefresh.description -->
<!-- UTSAPIJSON.startPullDownRefresh.compatibility -->
<!-- UTSAPIJSON.startPullDownRefresh.param -->
<!-- UTSAPIJSON.startPullDownRefresh.returnValue -->
<!-- UTSAPIJSON.startPullDownRefresh.compatibility -->
<!-- UTSAPIJSON.startPullDownRefresh.tutorial -->
## uni.stopPullDownRefresh() @stoppulldownrefresh
<!-- UTSAPIJSON.stopPullDownRefresh.description -->
<!-- UTSAPIJSON.stopPullDownRefresh.compatibility -->
使用:
1. 首先pages.json里配置了页面可下拉刷新`"enablePullDownRefresh": true`
2. 当用户下拉页面时触发页面生命周期`onPullDownRefresh`
......@@ -27,8 +29,6 @@
<!-- UTSAPIJSON.stopPullDownRefresh.example -->
<!-- UTSAPIJSON.stopPullDownRefresh.compatibility -->
<!-- UTSAPIJSON.stopPullDownRefresh.tutorial -->
<!-- UTSAPIJSON.pull-down-refresh.example -->
......
......@@ -16,24 +16,24 @@ uni-push是DCloud与合作伙伴个推共同推出的统一推送服务。用于
<!-- UTSAPIJSON.getPushClientId.description -->
<!-- UTSAPIJSON.getPushClientId.compatibility -->
<!-- UTSAPIJSON.getPushClientId.param -->
<!-- UTSAPIJSON.getPushClientId.returnValue -->
<!-- UTSAPIJSON.getPushClientId.compatibility -->
<!-- UTSAPIJSON.getPushClientId.tutorial -->
## uni.onPushMessage(callback) @onpushmessage
<!-- UTSAPIJSON.onPushMessage.description -->
<!-- UTSAPIJSON.onPushMessage.compatibility -->
<!-- UTSAPIJSON.onPushMessage.param -->
<!-- UTSAPIJSON.onPushMessage.returnValue -->
<!-- UTSAPIJSON.onPushMessage.compatibility -->
<!-- UTSAPIJSON.onPushMessage.tutorial -->
### 注意事项
......@@ -44,24 +44,24 @@ uni-push是DCloud与合作伙伴个推共同推出的统一推送服务。用于
<!-- UTSAPIJSON.offPushMessage.description -->
<!-- UTSAPIJSON.offPushMessage.compatibility -->
<!-- UTSAPIJSON.offPushMessage.param -->
<!-- UTSAPIJSON.offPushMessage.returnValue -->
<!-- UTSAPIJSON.offPushMessage.compatibility -->
<!-- UTSAPIJSON.offPushMessage.tutorial -->
## uni.getChannelManager() @getchannelmanager
<!-- UTSAPIJSON.getChannelManager.description -->
<!-- UTSAPIJSON.getChannelManager.compatibility -->
<!-- UTSAPIJSON.getChannelManager.param -->
<!-- UTSAPIJSON.getChannelManager.returnValue -->
<!-- UTSAPIJSON.getChannelManager.compatibility -->
<!-- UTSAPIJSON.getChannelManager.tutorial -->
### 注意事项
......@@ -87,12 +87,12 @@ uni-push是DCloud与合作伙伴个推共同推出的统一推送服务。用于
<!-- UTSAPIJSON.createPushMessage.description -->
<!-- UTSAPIJSON.createPushMessage.compatibility -->
<!-- UTSAPIJSON.createPushMessage.param -->
<!-- UTSAPIJSON.createPushMessage.returnValue -->
<!-- UTSAPIJSON.createPushMessage.compatibility -->
<!-- UTSAPIJSON.createPushMessage.tutorial -->
<!-- UTSAPIJSON.general_type.name -->
......
......@@ -2,6 +2,8 @@
<!-- UTSAPIJSON.requestPayment.description -->
<!-- UTSAPIJSON.requestPayment.compatibility -->
uni.requestPayment是一个统一各平台的客户端支付API,客户端均使用本API调用支付。
本API运行在各端时,会自动转换为各端的原生支付调用API。
......@@ -49,8 +51,6 @@ uni.requestPayment是一个统一各平台的客户端支付API,客户端均
<!-- UTSAPIJSON.requestPayment.returnValue -->
<!-- UTSAPIJSON.requestPayment.compatibility -->
<!-- UTSAPIJSON.requestPayment.tutorial -->
### cause支付sdk错误码汇总
......
......@@ -2,12 +2,12 @@
<!-- UTSAPIJSON.request.description -->
<!-- UTSAPIJSON.request.compatibility -->
<!-- UTSAPIJSON.request.param -->
<!-- UTSAPIJSON.request.returnValue -->
<!-- UTSAPIJSON.request.compatibility -->
<!-- UTSAPIJSON.request.tutorial -->
<!-- UTSAPIJSON.request.example -->
......
......@@ -2,12 +2,12 @@
<!-- UTSAPIJSON.rpx2px.description -->
<!-- UTSAPIJSON.rpx2px.compatibility -->
<!-- UTSAPIJSON.rpx2px.param -->
<!-- UTSAPIJSON.rpx2px.returnValue -->
<!-- UTSAPIJSON.rpx2px.compatibility -->
<!-- UTSAPIJSON.rpx2px.tutorial -->
<!-- UTSAPIJSON.general_type.name -->
......
......@@ -2,14 +2,14 @@
<!-- UTSAPIJSON.saveImageToPhotosAlbum.description -->
<!-- UTSAPIJSON.saveImageToPhotosAlbum.compatibility -->
<!-- UTSAPIJSON.saveImageToPhotosAlbum.param -->
<!-- UTSAPIJSON.saveImageToPhotosAlbum.returnValue -->
<!-- UTSAPIJSON.saveImageToPhotosAlbum.example -->
<!-- UTSAPIJSON.saveImageToPhotosAlbum.compatibility -->
<!-- UTSAPIJSON.saveImageToPhotosAlbum.tutorial -->
<!-- UTSAPIJSON.save-image-to-photos-album.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSAPIJSON.setNavigationBarColor.description -->
<!-- UTSAPIJSON.setNavigationBarColor.compatibility -->
注意当pages.json中设置导航栏为custom时:
1. 状态栏的背景色将恒为透明。此时无法通过本API设置状态栏背景色。开发者可自行在状态栏区域放置view,设置背景色。
2. 本API设置前景色frontColor时,会修改状态栏的前景色。
......@@ -12,8 +14,6 @@
<!-- UTSAPIJSON.setNavigationBarColor.example -->
<!-- UTSAPIJSON.setNavigationBarColor.compatibility -->
<!-- UTSAPIJSON.setNavigationBarColor.tutorial -->
<!-- UTSAPIJSON.set-navigation-bar-color.example -->
......
......@@ -2,12 +2,12 @@
<!-- UTSAPIJSON.setNavigationBarTitle.description -->
<!-- UTSAPIJSON.setNavigationBarTitle.compatibility -->
<!-- UTSAPIJSON.setNavigationBarTitle.param -->
<!-- UTSAPIJSON.setNavigationBarTitle.returnValue -->
<!-- UTSAPIJSON.setNavigationBarTitle.compatibility -->
<!-- UTSAPIJSON.setNavigationBarTitle.tutorial -->
<!-- UTSAPIJSON.general_type.name -->
......
......@@ -2,112 +2,112 @@
<!-- UTSAPIJSON.setTabBarBadge.description -->
<!-- UTSAPIJSON.setTabBarBadge.compatibility -->
<!-- UTSAPIJSON.setTabBarBadge.param -->
<!-- UTSAPIJSON.setTabBarBadge.returnValue -->
<!-- UTSAPIJSON.setTabBarBadge.example -->
<!-- UTSAPIJSON.setTabBarBadge.compatibility -->
<!-- UTSAPIJSON.setTabBarBadge.tutorial -->
## uni.removeTabBarBadge(options) @removetabbarbadge
<!-- UTSAPIJSON.removeTabBarBadge.description -->
<!-- UTSAPIJSON.removeTabBarBadge.compatibility -->
<!-- UTSAPIJSON.removeTabBarBadge.param -->
<!-- UTSAPIJSON.removeTabBarBadge.returnValue -->
<!-- UTSAPIJSON.removeTabBarBadge.example -->
<!-- UTSAPIJSON.removeTabBarBadge.compatibility -->
<!-- UTSAPIJSON.removeTabBarBadge.tutorial -->
## uni.setTabBarItem(options) @settabbaritem
<!-- UTSAPIJSON.setTabBarItem.description -->
<!-- UTSAPIJSON.setTabBarItem.compatibility -->
<!-- UTSAPIJSON.setTabBarItem.param -->
<!-- UTSAPIJSON.setTabBarItem.returnValue -->
<!-- UTSAPIJSON.setTabBarItem.example -->
<!-- UTSAPIJSON.setTabBarItem.compatibility -->
<!-- UTSAPIJSON.setTabBarItem.tutorial -->
## uni.setTabBarStyle(options) @settabbarstyle
<!-- UTSAPIJSON.setTabBarStyle.description -->
<!-- UTSAPIJSON.setTabBarStyle.compatibility -->
<!-- UTSAPIJSON.setTabBarStyle.param -->
<!-- UTSAPIJSON.setTabBarStyle.returnValue -->
<!-- UTSAPIJSON.setTabBarStyle.example -->
<!-- UTSAPIJSON.setTabBarStyle.compatibility -->
<!-- UTSAPIJSON.setTabBarStyle.tutorial -->
## uni.hideTabBar(options?) @hidetabbar
<!-- UTSAPIJSON.hideTabBar.description -->
<!-- UTSAPIJSON.hideTabBar.compatibility -->
<!-- UTSAPIJSON.hideTabBar.param -->
<!-- UTSAPIJSON.hideTabBar.returnValue -->
<!-- UTSAPIJSON.hideTabBar.example -->
<!-- UTSAPIJSON.hideTabBar.compatibility -->
<!-- UTSAPIJSON.hideTabBar.tutorial -->
## uni.showTabBar(options?) @showtabbar
<!-- UTSAPIJSON.showTabBar.description -->
<!-- UTSAPIJSON.showTabBar.compatibility -->
<!-- UTSAPIJSON.showTabBar.param -->
<!-- UTSAPIJSON.showTabBar.returnValue -->
<!-- UTSAPIJSON.showTabBar.example -->
<!-- UTSAPIJSON.showTabBar.compatibility -->
<!-- UTSAPIJSON.showTabBar.tutorial -->
## uni.showTabBarRedDot(options) @showtabbarreddot
<!-- UTSAPIJSON.showTabBarRedDot.description -->
<!-- UTSAPIJSON.showTabBarRedDot.compatibility -->
<!-- UTSAPIJSON.showTabBarRedDot.param -->
<!-- UTSAPIJSON.showTabBarRedDot.returnValue -->
<!-- UTSAPIJSON.showTabBarRedDot.example -->
<!-- UTSAPIJSON.showTabBarRedDot.compatibility -->
<!-- UTSAPIJSON.showTabBarRedDot.tutorial -->
## uni.hideTabBarRedDot(options) @hidetabbarreddot
<!-- UTSAPIJSON.hideTabBarRedDot.description -->
<!-- UTSAPIJSON.hideTabBarRedDot.compatibility -->
<!-- UTSAPIJSON.hideTabBarRedDot.param -->
<!-- UTSAPIJSON.hideTabBarRedDot.returnValue -->
<!-- UTSAPIJSON.hideTabBarRedDot.example -->
<!-- UTSAPIJSON.hideTabBarRedDot.compatibility -->
<!-- UTSAPIJSON.hideTabBarRedDot.tutorial -->
<!-- UTSAPIJSON.general_type.name -->
......
......@@ -19,42 +19,42 @@ uni-app的Storage在不同端的实现不同:
<!-- UTSAPIJSON.setStorage.description -->
<!-- UTSAPIJSON.setStorage.compatibility -->
<!-- UTSAPIJSON.setStorage.param -->
<!-- UTSAPIJSON.setStorage.returnValue -->
<!-- UTSAPIJSON.setStorage.example -->
<!-- UTSAPIJSON.setStorage.compatibility -->
<!-- UTSAPIJSON.setStorage.tutorial -->
## uni.setStorageSync(key, data) @setstoragesync
<!-- UTSAPIJSON.setStorageSync.description -->
<!-- UTSAPIJSON.setStorageSync.compatibility -->
<!-- UTSAPIJSON.setStorageSync.param -->
<!-- UTSAPIJSON.setStorageSync.returnValue -->
<!-- UTSAPIJSON.setStorageSync.example -->
<!-- UTSAPIJSON.setStorageSync.compatibility -->
<!-- UTSAPIJSON.setStorageSync.tutorial -->
## uni.getStorage(options) @getstorage
<!-- UTSAPIJSON.getStorage.description -->
<!-- UTSAPIJSON.getStorage.compatibility -->
<!-- UTSAPIJSON.getStorage.param -->
<!-- UTSAPIJSON.getStorage.returnValue -->
<!-- UTSAPIJSON.getStorage.example -->
<!-- UTSAPIJSON.getStorage.compatibility -->
<!-- UTSAPIJSON.getStorage.tutorial -->
> 注意:获取一个不存在的 key 会触发 fail 回调,返回错误信息为 "getStorage:fail data not found" 的错误。
......@@ -63,14 +63,14 @@ uni-app的Storage在不同端的实现不同:
<!-- UTSAPIJSON.getStorageSync.description -->
<!-- UTSAPIJSON.getStorageSync.compatibility -->
<!-- UTSAPIJSON.getStorageSync.param -->
<!-- UTSAPIJSON.getStorageSync.returnValue -->
<!-- UTSAPIJSON.getStorageSync.example -->
<!-- UTSAPIJSON.getStorageSync.compatibility -->
<!-- UTSAPIJSON.getStorageSync.tutorial -->
> 注意:同步方法获取一个不存在的 key 会返回空字符串,而不是 null
......@@ -79,84 +79,84 @@ uni-app的Storage在不同端的实现不同:
<!-- UTSAPIJSON.getStorageInfo.description -->
<!-- UTSAPIJSON.getStorageInfo.compatibility -->
<!-- UTSAPIJSON.getStorageInfo.param -->
<!-- UTSAPIJSON.getStorageInfo.returnValue -->
<!-- UTSAPIJSON.getStorageInfo.example -->
<!-- UTSAPIJSON.getStorageInfo.compatibility -->
<!-- UTSAPIJSON.getStorageInfo.tutorial -->
## uni.getStorageInfoSync() @getstorageinfosync
<!-- UTSAPIJSON.getStorageInfoSync.description -->
<!-- UTSAPIJSON.getStorageInfoSync.compatibility -->
<!-- UTSAPIJSON.getStorageInfoSync.param -->
<!-- UTSAPIJSON.getStorageInfoSync.returnValue -->
<!-- UTSAPIJSON.getStorageInfoSync.example -->
<!-- UTSAPIJSON.getStorageInfoSync.compatibility -->
<!-- UTSAPIJSON.getStorageInfoSync.tutorial -->
## uni.removeStorage(options) @removestorage
<!-- UTSAPIJSON.removeStorage.description -->
<!-- UTSAPIJSON.removeStorage.compatibility -->
<!-- UTSAPIJSON.removeStorage.param -->
<!-- UTSAPIJSON.removeStorage.returnValue -->
<!-- UTSAPIJSON.removeStorage.example -->
<!-- UTSAPIJSON.removeStorage.compatibility -->
<!-- UTSAPIJSON.removeStorage.tutorial -->
## uni.removeStorageSync(key) @removestoragesync
<!-- UTSAPIJSON.removeStorageSync.description -->
<!-- UTSAPIJSON.removeStorageSync.compatibility -->
<!-- UTSAPIJSON.removeStorageSync.param -->
<!-- UTSAPIJSON.removeStorageSync.returnValue -->
<!-- UTSAPIJSON.removeStorageSync.example -->
<!-- UTSAPIJSON.removeStorageSync.compatibility -->
<!-- UTSAPIJSON.removeStorageSync.tutorial -->
## uni.clearStorage(option?) @clearstorage
<!-- UTSAPIJSON.clearStorage.description -->
<!-- UTSAPIJSON.clearStorage.compatibility -->
<!-- UTSAPIJSON.clearStorage.param -->
<!-- UTSAPIJSON.clearStorage.returnValue -->
<!-- UTSAPIJSON.clearStorage.example -->
<!-- UTSAPIJSON.clearStorage.compatibility -->
<!-- UTSAPIJSON.clearStorage.tutorial -->
## uni.clearStorageSync() @clearstoragesync
<!-- UTSAPIJSON.clearStorageSync.description -->
<!-- UTSAPIJSON.clearStorageSync.compatibility -->
<!-- UTSAPIJSON.clearStorageSync.param -->
<!-- UTSAPIJSON.clearStorageSync.returnValue -->
<!-- UTSAPIJSON.clearStorageSync.example -->
<!-- UTSAPIJSON.clearStorageSync.compatibility -->
<!-- UTSAPIJSON.clearStorageSync.tutorial -->
<!-- UTSAPIJSON.storage.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSAPIJSON.uploadFile.description -->
<!-- UTSAPIJSON.uploadFile.compatibility -->
推荐上传到uniCloud,uniCloud提供了更便宜CDN和更好的易用性,[详见](https://doc.dcloud.net.cn/uniCloud/storage.html)
<!-- UTSAPIJSON.uploadFile.param -->
......@@ -10,8 +12,6 @@
<!-- UTSAPIJSON.uploadFile.example -->
<!-- UTSAPIJSON.uploadFile.compatibility -->
<!-- UTSAPIJSON.uploadFile.tutorial -->
<!-- UTSAPIJSON.upload-file.example -->
......
......@@ -2,56 +2,56 @@
<!-- UTSAPIJSON.connectSocket.description -->
<!-- UTSAPIJSON.connectSocket.compatibility -->
<!-- UTSAPIJSON.connectSocket.param -->
<!-- UTSAPIJSON.connectSocket.returnValue -->
<!-- UTSAPIJSON.connectSocket.example -->
<!-- UTSAPIJSON.connectSocket.compatibility -->
<!-- UTSAPIJSON.connectSocket.tutorial -->
## uni.onSocketOpen(options) @onsocketopen
<!-- UTSAPIJSON.onSocketOpen.description -->
<!-- UTSAPIJSON.onSocketOpen.compatibility -->
<!-- UTSAPIJSON.onSocketOpen.param -->
<!-- UTSAPIJSON.onSocketOpen.returnValue -->
<!-- UTSAPIJSON.onSocketOpen.example -->
<!-- UTSAPIJSON.onSocketOpen.compatibility -->
<!-- UTSAPIJSON.onSocketOpen.tutorial -->
## uni.onSocketError(callback) @onsocketerror
<!-- UTSAPIJSON.onSocketError.description -->
<!-- UTSAPIJSON.onSocketError.compatibility -->
<!-- UTSAPIJSON.onSocketError.param -->
<!-- UTSAPIJSON.onSocketError.returnValue -->
<!-- UTSAPIJSON.onSocketError.example -->
<!-- UTSAPIJSON.onSocketError.compatibility -->
<!-- UTSAPIJSON.onSocketError.tutorial -->
## uni.sendSocketMessage(options) @sendsocketmessage
<!-- UTSAPIJSON.sendSocketMessage.description -->
<!-- UTSAPIJSON.sendSocketMessage.compatibility -->
<!-- UTSAPIJSON.sendSocketMessage.param -->
<!-- UTSAPIJSON.sendSocketMessage.returnValue -->
<!-- UTSAPIJSON.sendSocketMessage.example -->
<!-- UTSAPIJSON.sendSocketMessage.compatibility -->
<!-- UTSAPIJSON.sendSocketMessage.tutorial -->
## 注意事项
......@@ -62,42 +62,42 @@
<!-- UTSAPIJSON.onSocketMessage.description -->
<!-- UTSAPIJSON.onSocketMessage.compatibility -->
<!-- UTSAPIJSON.onSocketMessage.param -->
<!-- UTSAPIJSON.onSocketMessage.returnValue -->
<!-- UTSAPIJSON.onSocketMessage.example -->
<!-- UTSAPIJSON.onSocketMessage.compatibility -->
<!-- UTSAPIJSON.onSocketMessage.tutorial -->
## uni.closeSocket(options) @closesocket
<!-- UTSAPIJSON.closeSocket.description -->
<!-- UTSAPIJSON.closeSocket.compatibility -->
<!-- UTSAPIJSON.closeSocket.param -->
<!-- UTSAPIJSON.closeSocket.returnValue -->
<!-- UTSAPIJSON.closeSocket.example -->
<!-- UTSAPIJSON.closeSocket.compatibility -->
<!-- UTSAPIJSON.closeSocket.tutorial -->
## uni.onSocketClose(callback) @onsocketclose
<!-- UTSAPIJSON.onSocketClose.description -->
<!-- UTSAPIJSON.onSocketClose.compatibility -->
<!-- UTSAPIJSON.onSocketClose.param -->
<!-- UTSAPIJSON.onSocketClose.returnValue -->
<!-- UTSAPIJSON.onSocketClose.example -->
<!-- UTSAPIJSON.onSocketClose.compatibility -->
<!-- UTSAPIJSON.onSocketClose.tutorial -->
<!-- UTSAPIJSON.websocket-global.example -->
......
......@@ -2,98 +2,98 @@
<!-- UTSAPIJSON.connectSocket.description -->
<!-- UTSAPIJSON.connectSocket.compatibility -->
<!-- UTSAPIJSON.connectSocket.param -->
<!-- UTSAPIJSON.connectSocket.returnValue -->
<!-- UTSAPIJSON.connectSocket.example -->
<!-- UTSAPIJSON.connectSocket.compatibility -->
<!-- UTSAPIJSON.connectSocket.tutorial -->
## uni.onSocketOpen(options) @onsocketopen
<!-- UTSAPIJSON.onSocketOpen.description -->
<!-- UTSAPIJSON.onSocketOpen.compatibility -->
<!-- UTSAPIJSON.onSocketOpen.param -->
<!-- UTSAPIJSON.onSocketOpen.returnValue -->
<!-- UTSAPIJSON.onSocketOpen.example -->
<!-- UTSAPIJSON.onSocketOpen.compatibility -->
<!-- UTSAPIJSON.onSocketOpen.tutorial -->
## uni.onSocketError(callback) @onsocketerror
<!-- UTSAPIJSON.onSocketError.description -->
<!-- UTSAPIJSON.onSocketError.compatibility -->
<!-- UTSAPIJSON.onSocketError.param -->
<!-- UTSAPIJSON.onSocketError.returnValue -->
<!-- UTSAPIJSON.onSocketError.example -->
<!-- UTSAPIJSON.onSocketError.compatibility -->
<!-- UTSAPIJSON.onSocketError.tutorial -->
## uni.sendSocketMessage(options) @sendsocketmessage
<!-- UTSAPIJSON.sendSocketMessage.description -->
<!-- UTSAPIJSON.sendSocketMessage.compatibility -->
<!-- UTSAPIJSON.sendSocketMessage.param -->
<!-- UTSAPIJSON.sendSocketMessage.returnValue -->
<!-- UTSAPIJSON.sendSocketMessage.example -->
<!-- UTSAPIJSON.sendSocketMessage.compatibility -->
<!-- UTSAPIJSON.sendSocketMessage.tutorial -->
## uni.onSocketMessage(callback) @onsocketmessage
<!-- UTSAPIJSON.onSocketMessage.description -->
<!-- UTSAPIJSON.onSocketMessage.compatibility -->
<!-- UTSAPIJSON.onSocketMessage.param -->
<!-- UTSAPIJSON.onSocketMessage.returnValue -->
<!-- UTSAPIJSON.onSocketMessage.example -->
<!-- UTSAPIJSON.onSocketMessage.compatibility -->
<!-- UTSAPIJSON.onSocketMessage.tutorial -->
## uni.closeSocket(options) @closesocket
<!-- UTSAPIJSON.closeSocket.description -->
<!-- UTSAPIJSON.closeSocket.compatibility -->
<!-- UTSAPIJSON.closeSocket.param -->
<!-- UTSAPIJSON.closeSocket.returnValue -->
<!-- UTSAPIJSON.closeSocket.example -->
<!-- UTSAPIJSON.closeSocket.compatibility -->
<!-- UTSAPIJSON.closeSocket.tutorial -->
## uni.onSocketClose(callback) @onsocketclose
<!-- UTSAPIJSON.onSocketClose.description -->
<!-- UTSAPIJSON.onSocketClose.compatibility -->
<!-- UTSAPIJSON.onSocketClose.param -->
<!-- UTSAPIJSON.onSocketClose.returnValue -->
<!-- UTSAPIJSON.onSocketClose.example -->
<!-- UTSAPIJSON.onSocketClose.compatibility -->
<!-- UTSAPIJSON.onSocketClose.tutorial -->
<!-- UTSAPIJSON.general_type.name -->
......
......@@ -2,120 +2,120 @@
<!-- UTSAPIJSON.startWifi.description -->
<!-- UTSAPIJSON.startWifi.compatibility -->
<!-- UTSAPIJSON.startWifi.param -->
<!-- UTSAPIJSON.startWifi.returnValue -->
<!-- UTSAPIJSON.startWifi.compatibility -->
<!-- UTSAPIJSON.startWifi.tutorial -->
## uni.stopWifi(option) @stopwifi
<!-- UTSAPIJSON.stopWifi.description -->
<!-- UTSAPIJSON.stopWifi.compatibility -->
<!-- UTSAPIJSON.stopWifi.param -->
<!-- UTSAPIJSON.stopWifi.returnValue -->
<!-- UTSAPIJSON.stopWifi.compatibility -->
<!-- UTSAPIJSON.stopWifi.tutorial -->
## uni.connectWifi(option) @connectwifi
<!-- UTSAPIJSON.connectWifi.description -->
<!-- UTSAPIJSON.connectWifi.compatibility -->
<!-- UTSAPIJSON.connectWifi.param -->
<!-- UTSAPIJSON.connectWifi.returnValue -->
<!-- UTSAPIJSON.connectWifi.compatibility -->
<!-- UTSAPIJSON.connectWifi.tutorial -->
## uni.getWifiList(option) @getwifilist
<!-- UTSAPIJSON.getWifiList.description -->
<!-- UTSAPIJSON.getWifiList.compatibility -->
<!-- UTSAPIJSON.getWifiList.param -->
<!-- UTSAPIJSON.getWifiList.returnValue -->
<!-- UTSAPIJSON.getWifiList.compatibility -->
<!-- UTSAPIJSON.getWifiList.tutorial -->
## uni.onGetWifiList(UniWifiCallback) @ongetwifilist
<!-- UTSAPIJSON.onGetWifiList.description -->
<!-- UTSAPIJSON.onGetWifiList.compatibility -->
<!-- UTSAPIJSON.onGetWifiList.param -->
<!-- UTSAPIJSON.onGetWifiList.returnValue -->
<!-- UTSAPIJSON.onGetWifiList.compatibility -->
<!-- UTSAPIJSON.onGetWifiList.tutorial -->
## uni.offGetWifiList(UniWifiCallback) @offgetwifilist
<!-- UTSAPIJSON.offGetWifiList.description -->
<!-- UTSAPIJSON.offGetWifiList.compatibility -->
<!-- UTSAPIJSON.offGetWifiList.param -->
<!-- UTSAPIJSON.offGetWifiList.returnValue -->
<!-- UTSAPIJSON.offGetWifiList.compatibility -->
<!-- UTSAPIJSON.offGetWifiList.tutorial -->
## uni.getConnectedWifi(option) @getconnectedwifi
<!-- UTSAPIJSON.getConnectedWifi.description -->
<!-- UTSAPIJSON.getConnectedWifi.compatibility -->
<!-- UTSAPIJSON.getConnectedWifi.param -->
<!-- UTSAPIJSON.getConnectedWifi.returnValue -->
<!-- UTSAPIJSON.getConnectedWifi.compatibility -->
<!-- UTSAPIJSON.getConnectedWifi.tutorial -->
## uni.onWifiConnected(UniWifiCallback) @onwificonnected
<!-- UTSAPIJSON.onWifiConnected.description -->
<!-- UTSAPIJSON.onWifiConnected.compatibility -->
<!-- UTSAPIJSON.onWifiConnected.param -->
<!-- UTSAPIJSON.onWifiConnected.returnValue -->
<!-- UTSAPIJSON.onWifiConnected.compatibility -->
<!-- UTSAPIJSON.onWifiConnected.tutorial -->
## uni.onWifiConnectedWithPartialInfo(UniWifiCallback) @onwificonnectedwithpartialinfo
<!-- UTSAPIJSON.onWifiConnectedWithPartialInfo.description -->
<!-- UTSAPIJSON.onWifiConnectedWithPartialInfo.compatibility -->
<!-- UTSAPIJSON.onWifiConnectedWithPartialInfo.param -->
<!-- UTSAPIJSON.onWifiConnectedWithPartialInfo.returnValue -->
<!-- UTSAPIJSON.onWifiConnectedWithPartialInfo.compatibility -->
<!-- UTSAPIJSON.onWifiConnectedWithPartialInfo.tutorial -->
## uni.offWifiConnected(callback?) @offwificonnected
<!-- UTSAPIJSON.offWifiConnected.description -->
<!-- UTSAPIJSON.offWifiConnected.compatibility -->
<!-- UTSAPIJSON.offWifiConnected.param -->
<!-- UTSAPIJSON.offWifiConnected.returnValue -->
<!-- UTSAPIJSON.offWifiConnected.compatibility -->
<!-- UTSAPIJSON.offWifiConnected.tutorial -->
<!-- UTSAPIJSON.general_type.name -->
......
......@@ -2,17 +2,16 @@
<!-- UTSCOMJSON.animation-view.description -->
<!-- UTSCOMJSON.animation-view.compatibility -->
标准基座并不包含本插件,下载插件后需编写调用代码并打包自定义基座才可运行。
<!-- UTSCOMJSON.animation-view.attribute -->
<!-- UTSCOMJSON.animation-view.event -->
<!-- UTSCOMJSON.animation-view.compatibility -->
<!-- UTSCOMJSON.animation-view.children -->
<!-- UTSCOMJSON.animation-view.example -->
<!-- UTSCOMJSON.animation-view.reference -->
......@@ -2,14 +2,14 @@
<!-- UTSCOMJSON.button.description -->
<!-- UTSCOMJSON.button.compatibility -->
<!-- UTSCOMJSON.button.attribute -->
<!-- UTSCOMJSON.button.event -->
<!-- UTSCOMJSON.button.component_type-->
<!-- UTSCOMJSON.button.compatibility -->
- 在web平台,由于0.5px有兼容性问题,button的边框使用伪类实现。
- 在app平台,HBuilderX4.02及以上版本调整为原生实现button组件,默认边框不占高度,解决button实际渲染宽高与Web端不一致的问题;HBuilderX4.01及以下版本封装text实现button组件,由于不支持伪类,默认边框使用 border 样式实现,会导致button的实际的渲染宽高在app端比web端多1px。
- button的默认边框宽度为0.5px,当type属性为plain时,边框宽度是1px,此时在web平台button实际的渲染宽高会大于其他类型1px,在app平台button实际的渲染高度与其他类型一致。
......
......@@ -2,14 +2,14 @@
<!-- UTSCOMJSON.canvas.description -->
<!-- UTSCOMJSON.canvas.compatibility -->
<!-- UTSCOMJSON.canvas.attribute -->
<!-- UTSCOMJSON.canvas.event -->
<!-- UTSCOMJSON.canvas.component_type-->
<!-- UTSCOMJSON.canvas.compatibility -->
<!-- UTSCOMJSON.canvas.children -->
<!-- UTSCOMJSON.canvas.example -->
......
......@@ -2,14 +2,14 @@
<!-- UTSCOMJSON.checkbox-group.description -->
<!-- UTSCOMJSON.checkbox-group.compatibility -->
<!-- UTSCOMJSON.checkbox-group.attribute -->
<!-- UTSCOMJSON.checkbox-group.event -->
<!-- UTSCOMJSON.checkbox-group.component_type-->
<!-- UTSCOMJSON.checkbox-group.compatibility -->
<!-- UTSCOMJSON.checkbox-group.children -->
<!-- UTSCOMJSON.checkbox-group.example -->
......@@ -21,14 +21,14 @@
<!-- UTSCOMJSON.checkbox.description -->
<!-- UTSCOMJSON.checkbox.compatibility -->
<!-- UTSCOMJSON.checkbox.attribute -->
<!-- UTSCOMJSON.checkbox.event -->
<!-- UTSCOMJSON.checkbox.component_type-->
<!-- UTSCOMJSON.checkbox.compatibility -->
<!-- UTSCOMJSON.checkbox.children -->
<!-- UTSCOMJSON.checkbox.example -->
......
......@@ -2,14 +2,14 @@
<!-- UTSCOMJSON.form.description -->
<!-- UTSCOMJSON.form.compatibility -->
<!-- UTSCOMJSON.form.attribute -->
<!-- UTSCOMJSON.form.event -->
<!-- UTSCOMJSON.form.component_type-->
<!-- UTSCOMJSON.form.compatibility -->
## form内容项控制逻辑
form组件的内容子组件包括:input、textarea、checkbox、radio、switch、slider,以及负责提交或重置的button组件。
......
......@@ -2,6 +2,8 @@
<!-- UTSCOMJSON.image.description -->
<!-- UTSCOMJSON.image.compatibility -->
<!-- UTSCOMJSON.image.attribute -->
<!-- UTSCOMJSON.image.event -->
......@@ -51,8 +53,6 @@ app端支持的图片格式如下:
安卓端image组件内部使用facebook的[fresco](https://github.com/facebook/fresco)库(2.5.0),自带缓存策略,也会自动清理缓存。
iOS端image组件内部使用[SDWebImage](https://github.com/SDWebImage/SDWebImage)库(5.10.0),自带缓存策略,默认7天缓存,缓存过期后会自动清理。
<!-- UTSCOMJSON.image.compatibility -->
#### App平台
- App-Android平台由于默认启用了图片缩放(即根据组件实际宽高加载图片,以节省内存),所以可能导致load事件返回的图片尺寸并非图片原始尺寸。
......
......@@ -2,14 +2,14 @@
<!-- UTSCOMJSON.input.description -->
<!-- UTSCOMJSON.input.compatibility -->
<!-- UTSCOMJSON.input.attribute -->
<!-- UTSCOMJSON.input.event -->
<!-- UTSCOMJSON.input.component_type-->
<!-- UTSCOMJSON.input.compatibility -->
<!-- UTSCOMJSON.input.children -->
<!-- UTSCOMJSON.input.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSCOMJSON.list-view.description -->
<!-- UTSCOMJSON.list-view.compatibility -->
在App中,基于recycle-view的list,才能实现长列表的资源自动回收,以保障列表加载很多项目时,屏幕外的资源被有效回收。list-view就是基于recycle-view的list组件。
每个list由1个父组件list-view及若干子组件list-item构成。仅有有限子组件可识别,[见下](#children-tags)
......@@ -51,8 +53,6 @@ scroll-view开启嵌套模式后,list-view 可作为内层滚动视图与外
设置内层 list-view 的 `associative-container` 属性为 "nested-scroll-view",开启内层 list-view 支持与外层 scroll-view 嵌套滚动
<!-- UTSCOMJSON.list-view.compatibility -->
<!-- UTSCOMJSON.list-view.children -->
<!-- UTSCOMJSON.list-view.example -->
......@@ -63,6 +63,8 @@ scroll-view开启嵌套模式后,list-view 可作为内层滚动视图与外
<!-- UTSCOMJSON.list-item.description -->
<!-- UTSCOMJSON.list-item.compatibility -->
<!-- UTSCOMJSON.list-item.attribute -->
### list-item复用机制
......@@ -104,8 +106,6 @@ scroll-view开启嵌套模式后,list-view 可作为内层滚动视图与外
<!-- UTSCOMJSON.list-item.component_type-->
<!-- UTSCOMJSON.list-item.compatibility -->
<!-- UTSCOMJSON.list-item.children -->
<!-- UTSCOMJSON.list-item.example -->
......
......@@ -2,14 +2,14 @@
<!-- UTSCOMJSON.navigator.description -->
<!-- UTSCOMJSON.navigator.compatibility -->
<!-- UTSCOMJSON.navigator.attribute -->
<!-- UTSCOMJSON.navigator.event -->
<!-- UTSCOMJSON.navigator.component_type-->
<!-- UTSCOMJSON.navigator.compatibility -->
<!-- UTSCOMJSON.navigator.children -->
<!-- UTSCOMJSON.navigator.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSCOMJSON.nested-scroll-body.description -->
<!-- UTSCOMJSON.nested-scroll-body.compatibility -->
<!-- UTSCOMJSON.nested-scroll-body.attribute -->
<!-- UTSCOMJSON.nested-scroll-body.event -->
......@@ -19,8 +21,6 @@ scroll-view 嵌套场景中。内层 scroll-view 滚动时无法与外层 scroll
+ `nested-scroll-body` 组件只能渲染在 `nested-scroll-header`组件下面
+ 外层 scroll-view 的子节点中只能有一个 `nested-scroll-body`
<!-- UTSCOMJSON.nested-scroll-body.compatibility -->
<!-- UTSCOMJSON.nested-scroll-body.children -->
<!-- UTSCOMJSON.nested-scroll-body.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSCOMJSON.nested-scroll-header.description -->
<!-- UTSCOMJSON.nested-scroll-header.compatibility -->
<!-- UTSCOMJSON.nested-scroll-header.attribute -->
<!-- UTSCOMJSON.nested-scroll-header.event -->
......@@ -18,8 +20,6 @@ scroll-view 嵌套场景中。外层 scroll-view 滚动时无法与内层 scroll
+ `nested-scroll-header` 组件不支持复数子节点,渲染时会取其第一个子节点来渲染
+ `nested-scroll-header` 组件只能渲染在 `nested-scroll-body`组件上面
<!-- UTSCOMJSON.nested-scroll-header.compatibility -->
<!-- UTSCOMJSON.nested-scroll-header.children -->
<!-- UTSCOMJSON.nested-scroll-header.example -->
......
......@@ -2,14 +2,14 @@
<!-- UTSCOMJSON.picker-view.description -->
<!-- UTSCOMJSON.picker-view.compatibility -->
<!-- UTSCOMJSON.picker-view.attribute -->
<!-- UTSCOMJSON.picker-view.event -->
<!-- UTSCOMJSON.picker-view.component_type-->
<!-- UTSCOMJSON.picker-view.compatibility -->
<!-- UTSCOMJSON.picker-view.children -->
<!-- UTSCOMJSON.picker-view.example -->
......@@ -21,14 +21,14 @@
<!-- UTSCOMJSON.picker-view-column.description -->
<!-- UTSCOMJSON.picker-view-column.compatibility -->
<!-- UTSCOMJSON.picker-view-column.attribute -->
<!-- UTSCOMJSON.picker-view-column.event -->
<!-- UTSCOMJSON.picker-view-column.component_type-->
<!-- UTSCOMJSON.picker-view-column.compatibility -->
<!-- UTSCOMJSON.picker-view-column.children -->
<!-- UTSCOMJSON.picker-view-column.example -->
......
......@@ -2,14 +2,14 @@
<!-- UTSCOMJSON.progress.description -->
<!-- UTSCOMJSON.progress.compatibility -->
<!-- UTSCOMJSON.progress.attribute -->
<!-- UTSCOMJSON.progress.event -->
<!-- UTSCOMJSON.progress.component_type-->
<!-- UTSCOMJSON.progress.compatibility -->
<!-- UTSCOMJSON.progress.children -->
<!-- UTSCOMJSON.progress.example -->
......
......@@ -2,14 +2,14 @@
<!-- UTSCOMJSON.radio-group.description -->
<!-- UTSCOMJSON.radio-group.compatibility -->
<!-- UTSCOMJSON.radio-group.attribute -->
<!-- UTSCOMJSON.radio-group.event -->
<!-- UTSCOMJSON.radio-group.component_type-->
<!-- UTSCOMJSON.radio-group.compatibility -->
<!-- UTSCOMJSON.radio-group.children -->
<!-- UTSCOMJSON.radio-group.example -->
......@@ -21,14 +21,14 @@
<!-- UTSCOMJSON.radio.description -->
<!-- UTSCOMJSON.radio.compatibility -->
<!-- UTSCOMJSON.radio.attribute -->
<!-- UTSCOMJSON.radio.event -->
<!-- UTSCOMJSON.radio.component_type-->
<!-- UTSCOMJSON.radio.compatibility -->
<!-- UTSCOMJSON.radio.children -->
<!-- UTSCOMJSON.radio.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSCOMJSON.rich-text.description -->
<!-- UTSCOMJSON.rich-text.compatibility -->
### 支持的HTML标签和属性
|HTML |属性 |样式 |
|-------|-------|-------|
......@@ -28,8 +30,6 @@
<!-- UTSCOMJSON.rich-text.component_type-->
<!-- UTSCOMJSON.rich-text.compatibility -->
<!-- UTSCOMJSON.rich-text.children -->
<!-- UTSCOMJSON.rich-text.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSCOMJSON.scroll-view.description -->
<!-- UTSCOMJSON.scroll-view.compatibility -->
<!-- UTSCOMJSON.scroll-view.attribute -->
<!-- UTSCOMJSON.scroll-view.event -->
......@@ -132,8 +134,6 @@ onNestedPreScroll(event: NestedPreScrollEvent) {
**具体代码请参考:**[nested-scroll嵌套滚动示例](https://gitcode.net/dcloud/hello-uni-app-x/-/blob/alpha/pages/template/long-list/long-list.uvue)
<!-- UTSCOMJSON.scroll-view.compatibility -->
#### App平台
+ App平台scroll-x、scroll-y属性不支持同时设置为true, 同时设置true时仅scroll-y生效,4.0版本开始scroll-x、scroll-y已废弃,请使用direction属性。
......
......@@ -2,14 +2,14 @@
<!-- UTSCOMJSON.slider.description -->
<!-- UTSCOMJSON.slider.compatibility -->
<!-- UTSCOMJSON.slider.attribute -->
<!-- UTSCOMJSON.slider.event -->
<!-- UTSCOMJSON.slider.component_type-->
<!-- UTSCOMJSON.slider.compatibility -->
## tips
show-value属性设为true后,会在横条右侧显示一个数字。
......
......@@ -2,6 +2,8 @@
<!-- UTSCOMJSON.sticky-header.description -->
<!-- UTSCOMJSON.sticky-header.compatibility -->
<!-- UTSCOMJSON.sticky-header.attribute -->
<!-- UTSCOMJSON.sticky-header.event -->
......@@ -33,8 +35,6 @@
+ sticky-header组件不支持css。仅支持padding属性控制子元素位置。其他排版需求要交给子元素实现
+ 同时存在多sticky-header组件请使用sticky-section组件充当父容器控制吸顶业务
<!-- UTSCOMJSON.sticky-header.compatibility -->
<!-- UTSCOMJSON.sticky-header.children -->
<!-- UTSCOMJSON.sticky-header.example -->
......@@ -45,6 +45,8 @@
<!-- UTSCOMJSON.sticky-section.description -->
<!-- UTSCOMJSON.sticky-section.compatibility -->
<!-- UTSCOMJSON.sticky-section.attribute -->
<!-- UTSCOMJSON.sticky-section.event -->
......@@ -78,8 +80,6 @@
+ sticky-section组件是虚拟组件不会真实渲染。仅支持padding属性控制子元素位置。其他排版需求要交给子元素实现
+ Android平台sticky-section组件作为list-view的子元素时需要注意,sticky-section子元素仅支持sticky-header、list-item,其他元素无法正常显示
<!-- UTSCOMJSON.sticky-section.compatibility -->
<!-- UTSCOMJSON.sticky-section.children -->
<!-- UTSCOMJSON.sticky-section.example -->
......
......@@ -2,14 +2,14 @@
<!-- UTSCOMJSON.swiper.description -->
<!-- UTSCOMJSON.swiper.compatibility -->
<!-- UTSCOMJSON.swiper.attribute -->
<!-- UTSCOMJSON.swiper.event -->
<!-- UTSCOMJSON.swiper.component_type-->
<!-- UTSCOMJSON.swiper.compatibility -->
<!-- UTSCOMJSON.swiper.children -->
<!-- UTSCOMJSON.swiper.example -->
......@@ -20,14 +20,14 @@
<!-- UTSCOMJSON.swiper-item.description -->
<!-- UTSCOMJSON.swiper-item.compatibility -->
<!-- UTSCOMJSON.swiper-item.attribute -->
<!-- UTSCOMJSON.swiper-item.event -->
<!-- UTSCOMJSON.swiper-item.component_type-->
<!-- UTSCOMJSON.swiper-item.compatibility -->
<!-- UTSCOMJSON.swiper-item.example -->
<!-- UTSCOMJSON.swiper-item.reference -->
......@@ -2,6 +2,8 @@
<!-- UTSCOMJSON.switch.description -->
<!-- UTSCOMJSON.switch.compatibility -->
<!-- UTSCOMJSON.switch.attribute -->
type为checkbox只有微信小程序和Web平台支持。一般建议使用标准的[checkbox组件](checkbox-group.md)
......@@ -10,8 +12,6 @@ type为checkbox只有微信小程序和Web平台支持。一般建议使用标
<!-- UTSCOMJSON.switch.component_type-->
<!-- UTSCOMJSON.switch.compatibility -->
<!-- UTSCOMJSON.switch.children -->
<!-- UTSCOMJSON.switch.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSCOMJSON.text.description -->
<!-- UTSCOMJSON.text.compatibility -->
在app-uvue和app-nvue中,文本只能写在text中,而不能写在view的text区域。文本样式的控制也应该在text组件上写style,而不是在view的样式里写。
虽然app-uvue中写在view的text区域的文字,也会被编译器自动包裹一层text组件,看起来也可以使用。但这样会造成无法修改该text文字的样式,详见uvue的[样式不继承](../css/README.md#stylenoextends)章节。
......@@ -12,8 +14,6 @@
<!-- UTSCOMJSON.text.component_type-->
<!-- UTSCOMJSON.text.compatibility -->
- App-Android平台文本换行规则(表现在文本断行位置等)可能和浏览器有差异。
## 子组件
......
......@@ -2,14 +2,14 @@
<!-- UTSCOMJSON.textarea.description -->
<!-- UTSCOMJSON.textarea.compatibility -->
<!-- UTSCOMJSON.textarea.attribute -->
<!-- UTSCOMJSON.textarea.event -->
<!-- UTSCOMJSON.textarea.component_type-->
<!-- UTSCOMJSON.textarea.compatibility -->
<!-- UTSCOMJSON.textarea.children -->
<!-- UTSCOMJSON.textarea.example -->
......
......@@ -2,14 +2,14 @@
<!-- UTSCOMJSON.unicloud-db.description -->
<!-- UTSCOMJSON.unicloud-db.compatibility -->
<!-- UTSCOMJSON.unicloud-db.attribute -->
<!-- UTSCOMJSON.unicloud-db.event -->
<!-- UTSCOMJSON.unicloud-db.component_type -->
<!-- UTSCOMJSON.unicloud-db.compatibility -->
<!-- UTSCOMJSON.unicloud-db.children -->
<!-- UTSCOMJSON.unicloud-db.example -->
......
......@@ -2,6 +2,8 @@
<!-- UTSCOMJSON.video.description -->
<!-- UTSCOMJSON.video.compatibility -->
<!-- UTSCOMJSON.video.attribute -->
<!-- UTSCOMJSON.video.event -->
......@@ -20,8 +22,6 @@ app端支持的视频格式如下:
- [x] flv
- [x] m3u8 (本地m3u8文件安卓端需3.99+,iOS端需4.11+)
<!-- UTSCOMJSON.video.compatibility -->
#### App平台
App-Android平台video组件使用ijkplayer库实现:[https://github.com/bilibili/ijkplayer](https://github.com/bilibili/ijkplayer)
......
......@@ -2,6 +2,8 @@
<!-- UTSCOMJSON.view.description -->
<!-- UTSCOMJSON.view.compatibility -->
<!-- UTSCOMJSON.view.attribute -->
#### 说明
......@@ -13,8 +15,6 @@
<!-- UTSCOMJSON.view.component_type-->
<!-- UTSCOMJSON.view.compatibility -->
#### App平台@app
- HBuilder4.0以下版本`hover-class`属性App端与微信小程序效果一样,手指按下进入`hover-class`状态后,手指移动就会取消`hover-class`状态
- HBuilder4.0及以上版本App端调整为手指在view范围内移动不会取消`hover-class`状态,手指移动到view范围之外才会取消`hover-class`状态
......
......@@ -2,14 +2,14 @@
<!-- UTSCOMJSON.web-view.description -->
<!-- UTSCOMJSON.web-view.compatibility -->
<!-- UTSCOMJSON.web-view.attribute -->
<!-- UTSCOMJSON.web-view.event -->
<!-- UTSCOMJSON.web-view.component_type -->
<!-- UTSCOMJSON.web-view.compatibility -->
- web平台web-view组件底层使用iframe实现,会有浏览器安全策略限制。一般不推荐在web平台使用web-view组件,如确需使用,且需要通信,请自行根据iframe的浏览器规范进行通信。
- web和小程序平台上,web-view是全屏的,即页面只能显示一个铺满的web-view。
- app/web平台的web-view组件可以自由调整大小和位置。在uni-app x 4.0以前,默认宽、高为0px,页面中使用时需设置相应的 css 属性控制组件宽高才能正常显示。从4.0起改为默认宽高100%。
......
......@@ -409,7 +409,7 @@
#### 兼容性 @component-lifecycle-compatibility
<!-- PAGEINSTANCE.composition_lifecycle.compatibility -->
<!-- VUEJSON.composition_lifecycle.compatibility -->
#### onMounted、onUnmounted 使用注意事项 @mounted-unmounted-tips
......
......@@ -148,7 +148,7 @@
#### 兼容性 @component-lifecycle-compatibility
<!-- PAGEINSTANCE.options_lifecycle.compatibility -->
<!-- VUEJSON.options_lifecycle.compatibility -->
#### mounted、unmounted 使用注意事项 @mounted-unmounted-tips
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册