diff --git a/docs/apis/ad/InterstitialAd.md b/docs/apis/ad/InterstitialAd.md index c02142156238..ec53156760f5 100644 --- a/docs/apis/ad/InterstitialAd.md +++ b/docs/apis/ad/InterstitialAd.md @@ -13,7 +13,7 @@ sidebar_label: InterstitialAd 销毁插屏广告实例。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.destroy.html) @@ -25,7 +25,7 @@ sidebar_label: InterstitialAd 取消监听插屏广告关闭事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.offClose.html) @@ -41,7 +41,7 @@ sidebar_label: InterstitialAd 取消监听插屏错误事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.offError.html) @@ -57,7 +57,7 @@ sidebar_label: InterstitialAd 取消监听插屏广告加载事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.offLoad.html) @@ -73,7 +73,7 @@ sidebar_label: InterstitialAd 监听插屏广告关闭事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.onClose.html) @@ -89,7 +89,7 @@ sidebar_label: InterstitialAd 监听插屏错误事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.onError.html) @@ -105,7 +105,7 @@ sidebar_label: InterstitialAd 监听插屏广告加载事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.onLoad.html) @@ -121,7 +121,7 @@ sidebar_label: InterstitialAd 加载插屏广告。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.load.html) @@ -145,7 +145,7 @@ sidebar_label: InterstitialAd | 2004 | 广告渲染失败 | 该项错误不是开发者的异常情况,或因小程序页面切换导致广告渲染失败 | | 2005 | 广告调用异常 | 插屏广告实例不允许跨页面调用 | -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/InterstitialAd.show.html) @@ -200,14 +200,14 @@ sidebar_label: InterstitialAd ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| InterstitialAd.destroy | ✔️ | | | | | -| InterstitialAd.offClose | ✔️ | | | | | -| InterstitialAd.offError | ✔️ | | | | | -| InterstitialAd.offLoad | ✔️ | | | | | -| InterstitialAd.onClose | ✔️ | | | | | -| InterstitialAd.onError | ✔️ | | | | | -| InterstitialAd.onLoad | ✔️ | | | | | -| InterstitialAd.load | ✔️ | | | | | -| InterstitialAd.show | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| InterstitialAd.destroy | ✔️ | | | | +| InterstitialAd.offClose | ✔️ | | | | +| InterstitialAd.offError | ✔️ | | | | +| InterstitialAd.offLoad | ✔️ | | | | +| InterstitialAd.onClose | ✔️ | | | | +| InterstitialAd.onError | ✔️ | | | | +| InterstitialAd.onLoad | ✔️ | | | | +| InterstitialAd.load | ✔️ | | | | +| InterstitialAd.show | ✔️ | | | | diff --git a/docs/apis/ad/RewardedVideoAd.md b/docs/apis/ad/RewardedVideoAd.md index 238b7a00951f..668ce189707b 100644 --- a/docs/apis/ad/RewardedVideoAd.md +++ b/docs/apis/ad/RewardedVideoAd.md @@ -13,7 +13,7 @@ sidebar_label: RewardedVideoAd 加载激励视频广告。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.load.html) @@ -25,7 +25,7 @@ sidebar_label: RewardedVideoAd 显示激励视频广告。激励视频广告将从屏幕下方推入。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.show.html) @@ -37,7 +37,7 @@ sidebar_label: RewardedVideoAd 销毁激励视频广告实例。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.destroy.html) @@ -49,7 +49,7 @@ sidebar_label: RewardedVideoAd 取消监听用户点击 `关闭广告` 按钮的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.offClose.html) @@ -65,7 +65,7 @@ sidebar_label: RewardedVideoAd 取消监听激励视频错误事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.offError.html) @@ -81,7 +81,7 @@ sidebar_label: RewardedVideoAd 取消监听激励视频广告加载事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.offLoad.html) @@ -97,7 +97,7 @@ sidebar_label: RewardedVideoAd 监听用户点击 `关闭广告` 按钮的事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.onClose.html) @@ -113,7 +113,7 @@ sidebar_label: RewardedVideoAd 监听激励视频错误事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.onError.html) @@ -129,7 +129,7 @@ sidebar_label: RewardedVideoAd 监听激励视频广告加载事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/RewardedVideoAd.onLoad.html) @@ -194,14 +194,14 @@ sidebar_label: RewardedVideoAd ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| RewardedVideoAd.load | ✔️ | | | | | -| RewardedVideoAd.show | ✔️ | | | | | -| RewardedVideoAd.destroy | ✔️ | | | | | -| RewardedVideoAd.offClose | ✔️ | | | | | -| RewardedVideoAd.offError | ✔️ | | | | | -| RewardedVideoAd.offLoad | ✔️ | | | | | -| RewardedVideoAd.onClose | ✔️ | | | | | -| RewardedVideoAd.onError | ✔️ | | | | | -| RewardedVideoAd.onLoad | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| RewardedVideoAd.load | ✔️ | | | | +| RewardedVideoAd.show | ✔️ | | | | +| RewardedVideoAd.destroy | ✔️ | | | | +| RewardedVideoAd.offClose | ✔️ | | | | +| RewardedVideoAd.offError | ✔️ | | | | +| RewardedVideoAd.offLoad | ✔️ | | | | +| RewardedVideoAd.onClose | ✔️ | | | | +| RewardedVideoAd.onError | ✔️ | | | | +| RewardedVideoAd.onLoad | ✔️ | | | | diff --git a/docs/apis/ad/createInterstitialAd.md b/docs/apis/ad/createInterstitialAd.md index b41aee9cc388..66b3ef6cef9c 100644 --- a/docs/apis/ad/createInterstitialAd.md +++ b/docs/apis/ad/createInterstitialAd.md @@ -6,7 +6,7 @@ sidebar_label: createInterstitialAd 创建插屏广告组件。 请通过 getSystemInfoSync 返回对象的 SDKVersion 判断基础库版本号后再使用该 API。每次调用该方法创建插屏广告都会返回一个全新的实例(小程序端的插屏广告实例不允许跨页面使用)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/wx.createInterstitialAd.html) diff --git a/docs/apis/ad/createRewardedVideoAd.md b/docs/apis/ad/createRewardedVideoAd.md index f3ba9cffbb45..c3cb27f2181d 100644 --- a/docs/apis/ad/createRewardedVideoAd.md +++ b/docs/apis/ad/createRewardedVideoAd.md @@ -5,7 +5,7 @@ sidebar_label: createRewardedVideoAd 创建激励视频广告组件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ad/wx.createRewardedVideoAd.html) diff --git a/docs/apis/ai/face/faceDetect.md b/docs/apis/ai/face/faceDetect.md index 0fdbe9dca705..36304c31f970 100644 --- a/docs/apis/ai/face/faceDetect.md +++ b/docs/apis/ai/face/faceDetect.md @@ -5,7 +5,7 @@ sidebar_label: faceDetect 人脸识别,使用前需要通过 Taro.initFaceDetect 进行一次初始化,推荐使用相机接口返回的帧数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/face/wx.faceDetect.html) diff --git a/docs/apis/ai/face/initFaceDetect.md b/docs/apis/ai/face/initFaceDetect.md index 47e85742e486..4068df363f06 100644 --- a/docs/apis/ai/face/initFaceDetect.md +++ b/docs/apis/ai/face/initFaceDetect.md @@ -5,7 +5,7 @@ sidebar_label: initFaceDetect 初始化人脸识别 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/face/wx.initFaceDetect.html) diff --git a/docs/apis/ai/face/stopFaceDetect.md b/docs/apis/ai/face/stopFaceDetect.md index f247e16738e9..62bf2a1a67f2 100644 --- a/docs/apis/ai/face/stopFaceDetect.md +++ b/docs/apis/ai/face/stopFaceDetect.md @@ -5,7 +5,7 @@ sidebar_label: stopFaceDetect 停止人脸识别 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/face/wx.stopFaceDetect.html) diff --git a/docs/apis/ai/inference/InferenceSession.md b/docs/apis/ai/inference/InferenceSession.md index 6c0735f5e634..cfc2de4287ca 100644 --- a/docs/apis/ai/inference/InferenceSession.md +++ b/docs/apis/ai/inference/InferenceSession.md @@ -9,7 +9,7 @@ sidebar_label: InferenceSession 销毁 InferenceSession 实例 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/inference/InferenceSession.destroy.html) @@ -21,7 +21,7 @@ sidebar_label: InferenceSession 取消监听模型加载失败事件. 传入指定回调函数则只取消指定回调,不传则取消所有回调 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/inference/InferenceSession.offError.html) @@ -37,7 +37,7 @@ sidebar_label: InferenceSession 取消监听模型加载完成事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/inference/InferenceSession.offLoad.html) @@ -53,7 +53,7 @@ sidebar_label: InferenceSession 监听模型加载失败事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/inference/InferenceSession.onError.html) @@ -69,7 +69,7 @@ sidebar_label: InferenceSession 监听模型加载完成事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/inference/InferenceSession.onLoad.html) @@ -87,7 +87,7 @@ sidebar_label: InferenceSession 需要在 session.onLoad 回调后使用。接口参数为 Tensors 对象,返回 Promise。 一个 InferenceSession 被创建完成后可以重复多次调用 InferenceSession.run(), 直到调用 session.destroy() 进行销毁。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/inference/InferenceSession.destroy.html) @@ -143,11 +143,11 @@ sidebar_label: InferenceSession ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| InferenceSession.destroy | ✔️ | | | | | -| InferenceSession.offError | ✔️ | | | | | -| InferenceSession.offLoad | ✔️ | | | | | -| InferenceSession.onError | ✔️ | | | | | -| InferenceSession.onLoad | ✔️ | | | | | -| InferenceSession.run | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| InferenceSession.destroy | ✔️ | | | | +| InferenceSession.offError | ✔️ | | | | +| InferenceSession.offLoad | ✔️ | | | | +| InferenceSession.onError | ✔️ | | | | +| InferenceSession.onLoad | ✔️ | | | | +| InferenceSession.run | ✔️ | | | | diff --git a/docs/apis/ai/inference/createInferenceSession.md b/docs/apis/ai/inference/createInferenceSession.md index e1f29df6e03d..8e79df7bd2e6 100644 --- a/docs/apis/ai/inference/createInferenceSession.md +++ b/docs/apis/ai/inference/createInferenceSession.md @@ -5,7 +5,7 @@ sidebar_label: createInferenceSession 创建 AI 推理 Session -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/inference/wx.createInferenceSession.html) diff --git a/docs/apis/ai/inference/getInferenceEnvInfo.md b/docs/apis/ai/inference/getInferenceEnvInfo.md index 7c5345ff4a2c..f8b249b19712 100644 --- a/docs/apis/ai/inference/getInferenceEnvInfo.md +++ b/docs/apis/ai/inference/getInferenceEnvInfo.md @@ -5,7 +5,7 @@ sidebar_label: getInferenceEnvInfo 获取通用AI推理引擎版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/inference/wx.getInferenceEnvInfo.html) diff --git a/docs/apis/ai/visionkit/VKBodyAnchor.md b/docs/apis/ai/visionkit/VKBodyAnchor.md index 7f2acabaeecc..3d8f57a59418 100644 --- a/docs/apis/ai/visionkit/VKBodyAnchor.md +++ b/docs/apis/ai/visionkit/VKBodyAnchor.md @@ -5,7 +5,7 @@ sidebar_label: VKBodyAnchor 人体 anchor -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKBodyAnchor.html) @@ -61,6 +61,6 @@ sidebar_label: VKBodyAnchor ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| VKBodyAnchor | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| VKBodyAnchor | ✔️ | | | | diff --git a/docs/apis/ai/visionkit/VKCamera.md b/docs/apis/ai/visionkit/VKCamera.md index 7fdec4416336..800e43effd77 100644 --- a/docs/apis/ai/visionkit/VKCamera.md +++ b/docs/apis/ai/visionkit/VKCamera.md @@ -5,7 +5,7 @@ sidebar_label: VKCamera 相机对象 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKCamera.html) @@ -13,19 +13,19 @@ sidebar_label: VKCamera | 参数 | 类型 | 说明 | | --- | --- | --- | -| viewMatrix | `Float32Array` | 视图矩阵 | -| intrinsics | `Float32Array` | 相机内参,只有 v2 版本支持 | +| viewMatrix | `Float32Array` | 视图矩阵 | +| intrinsics | `Float32Array` | 相机内参,只有 v2 版本支持 | ### getProjectionMatrix 获取投影矩阵 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKCamera.getProjectionMatrix.html) ```tsx -(near: number, far: number) => Float32Array +(near: number, far: number) => Float32Array ``` | 参数 | 类型 | 说明 | @@ -35,7 +35,7 @@ sidebar_label: VKCamera ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| VKCamera | ✔️ | | | | | -| VKCamera.getProjectionMatrix | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| VKCamera | ✔️ | | | | +| VKCamera.getProjectionMatrix | ✔️ | | | | diff --git a/docs/apis/ai/visionkit/VKDepthAnchor.md b/docs/apis/ai/visionkit/VKDepthAnchor.md index 7d4956fdac5a..701cc8ce5678 100644 --- a/docs/apis/ai/visionkit/VKDepthAnchor.md +++ b/docs/apis/ai/visionkit/VKDepthAnchor.md @@ -5,7 +5,7 @@ sidebar_label: VKDepthAnchor depth anchor -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKDepthAnchor.html) @@ -39,6 +39,6 @@ depth anchor ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| VKDepthAnchor | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| VKDepthAnchor | ✔️ | | | | diff --git a/docs/apis/ai/visionkit/VKFaceAnchor.md b/docs/apis/ai/visionkit/VKFaceAnchor.md index adf646334cba..09d4bc44e7c9 100644 --- a/docs/apis/ai/visionkit/VKFaceAnchor.md +++ b/docs/apis/ai/visionkit/VKFaceAnchor.md @@ -5,7 +5,7 @@ sidebar_label: VKFaceAnchor 人脸 anchor -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKFaceAnchor.html) @@ -61,6 +61,6 @@ sidebar_label: VKFaceAnchor ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| VKFaceAnchor | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| VKFaceAnchor | ✔️ | | | | diff --git a/docs/apis/ai/visionkit/VKFrame.md b/docs/apis/ai/visionkit/VKFrame.md index 9387d321aab3..bf40e8ffbd9e 100644 --- a/docs/apis/ai/visionkit/VKFrame.md +++ b/docs/apis/ai/visionkit/VKFrame.md @@ -5,7 +5,7 @@ sidebar_label: VKFrame vision kit 会话对象 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKFrame.html) @@ -20,7 +20,7 @@ vision kit 会话对象 获取当前帧纹理,目前只支持 YUV 纹理 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKFrame.getCameraTexture.html) @@ -38,7 +38,7 @@ vision kit 会话对象 按 aspect-fill 规则裁剪,此接口要求在创建 VKSession 对象时必须传入 gl 参数。 此接口仅建议拿来做帧分析使用,上屏请使用 getCameraTexture 来代替。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKFrame.getCameraBuffer.html) @@ -55,12 +55,12 @@ vision kit 会话对象 获取纹理调整矩阵。默认获取到的纹理是未经裁剪调整的纹理,此矩阵可用于在着色器中根据帧对象尺寸对纹理进行裁剪 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKFrame.getDisplayTransform.html) ```tsx -() => Float32Array +() => Float32Array ``` ## 参数 @@ -76,9 +76,9 @@ vision kit 会话对象 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| VKFrame | ✔️ | | | | | -| VKFrame.getCameraTexture | ✔️ | | | | | -| VKFrame.getCameraBuffer | ✔️ | | | | | -| VKFrame.getDisplayTransform | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| VKFrame | ✔️ | | | | +| VKFrame.getCameraTexture | ✔️ | | | | +| VKFrame.getCameraBuffer | ✔️ | | | | +| VKFrame.getDisplayTransform | ✔️ | | | | diff --git a/docs/apis/ai/visionkit/VKHandAnchor.md b/docs/apis/ai/visionkit/VKHandAnchor.md index e44b46afc9e7..f19616fa19d9 100644 --- a/docs/apis/ai/visionkit/VKHandAnchor.md +++ b/docs/apis/ai/visionkit/VKHandAnchor.md @@ -5,7 +5,7 @@ sidebar_label: VKHandAnchor 手势 anchor -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKHandAnchor.html) @@ -88,6 +88,6 @@ sidebar_label: VKHandAnchor ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| VKHandAnchor | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| VKHandAnchor | ✔️ | | | | diff --git a/docs/apis/ai/visionkit/VKMarkerAnchor.md b/docs/apis/ai/visionkit/VKMarkerAnchor.md index 64d9afc3641f..d62dfce73409 100644 --- a/docs/apis/ai/visionkit/VKMarkerAnchor.md +++ b/docs/apis/ai/visionkit/VKMarkerAnchor.md @@ -5,7 +5,7 @@ sidebar_label: VKMarkerAnchor marker anchor -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKMarkerAnchor.html) @@ -15,7 +15,7 @@ marker anchor | --- | --- | --- | | id | `number` | 唯一标识 | | type | `1` | 类型 | -| transform | `Float32Array` | 包含位置、旋转、放缩信息的矩阵,以列为主序 | +| transform | `Float32Array` | 包含位置、旋转、放缩信息的矩阵,以列为主序 | | markerId | `number` | marker id | | path | `string` | 图片路径 | @@ -31,6 +31,6 @@ marker anchor ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| VKMarkerAnchor | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| VKMarkerAnchor | ✔️ | | | | diff --git a/docs/apis/ai/visionkit/VKOCRAnchor.md b/docs/apis/ai/visionkit/VKOCRAnchor.md index a25773e369af..184694c57878 100644 --- a/docs/apis/ai/visionkit/VKOCRAnchor.md +++ b/docs/apis/ai/visionkit/VKOCRAnchor.md @@ -5,7 +5,7 @@ sidebar_label: VKOCRAnchor OCR anchor -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKOCRAnchor.html) @@ -29,6 +29,6 @@ OCR anchor ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| VKOCRAnchor | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| VKOCRAnchor | ✔️ | | | | diff --git a/docs/apis/ai/visionkit/VKOSDAnchor.md b/docs/apis/ai/visionkit/VKOSDAnchor.md index 6c2dde866266..2262986e8d21 100644 --- a/docs/apis/ai/visionkit/VKOSDAnchor.md +++ b/docs/apis/ai/visionkit/VKOSDAnchor.md @@ -5,7 +5,7 @@ sidebar_label: VKOSDAnchor OSD anchor -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKOSDAnchor.html) @@ -50,6 +50,6 @@ OSD anchor ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| VKOSDAnchor | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| VKOSDAnchor | ✔️ | | | | diff --git a/docs/apis/ai/visionkit/VKPlaneAnchor.md b/docs/apis/ai/visionkit/VKPlaneAnchor.md index fef4b8c6d8ad..6497ae011a5d 100644 --- a/docs/apis/ai/visionkit/VKPlaneAnchor.md +++ b/docs/apis/ai/visionkit/VKPlaneAnchor.md @@ -5,7 +5,7 @@ sidebar_label: VKPlaneAnchor 平面 anchor,只有 v2 版本支持 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKPlaneAnchor.html) @@ -15,7 +15,7 @@ sidebar_label: VKPlaneAnchor | --- | --- | --- | | id | `number` | 唯一标识 | | type | `0` | 类型 | -| transform | `Float32Array` | 包含位置、旋转、放缩信息的矩阵,以列为主序 | +| transform | `Float32Array` | 包含位置、旋转、放缩信息的矩阵,以列为主序 | | size | `ISize` | 尺寸 | | alignment | `number` | 方向 | @@ -40,6 +40,6 @@ sidebar_label: VKPlaneAnchor ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| VKPlaneAnchor | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| VKPlaneAnchor | ✔️ | | | | diff --git a/docs/apis/ai/visionkit/VKSession.md b/docs/apis/ai/visionkit/VKSession.md index c99c1e25c055..c2d883f9e762 100644 --- a/docs/apis/ai/visionkit/VKSession.md +++ b/docs/apis/ai/visionkit/VKSession.md @@ -5,7 +5,7 @@ sidebar_label: VKSession vision kit 会话对象 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.html) @@ -21,7 +21,7 @@ vision kit 会话对象 添加一个 marker,要求调 Taro.createVKSession 时传入的 track.marker 为 true -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.addMarker.html) @@ -37,7 +37,7 @@ vision kit 会话对象 添加一个 OSD marker(one-shot detection marker),要求调 Taro.createVKSession 时传入的 track.OSD 为 true -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.addOSDMarker.html) @@ -53,7 +53,7 @@ vision kit 会话对象 取消由 requestAnimationFrame 添加到计划中的动画帧请求 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.cancelAnimationFrame.html) @@ -69,7 +69,7 @@ vision kit 会话对象 销毁会话 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.destroy.html) @@ -81,7 +81,7 @@ vision kit 会话对象 静态图像人体关键点检测。当 Taro.createVKSession 参数传入 {track: {body: {mode: 2} } } 时可用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.detectBody.html) @@ -97,7 +97,7 @@ vision kit 会话对象 深度识别。当 Taro.createVKSession 参数传入 {track: {depth: {mode: 2} } } 时可用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.detectDepth.html) @@ -113,7 +113,7 @@ vision kit 会话对象 静态图像人脸关键点检测。当 Taro.createVKSession 参数传入 {track: {face: {mode: 2} } } 时可用。安卓微信8.0.25开始支持,iOS微信8.0.24开始支持。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.detectFace.html) @@ -129,7 +129,7 @@ vision kit 会话对象 静态图像手势关键点检测。当 Taro.createVKSession 参数传入 {track: {hand: {mode: 2} } } 时可用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.detectHand.html) @@ -145,7 +145,7 @@ vision kit 会话对象 获取所有 marker,要求调 Taro.createVKSession 时传入的 track.marker 为 true -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.getAllMarker.html) @@ -157,7 +157,7 @@ vision kit 会话对象 获取所有 OSD marker,要求调 Taro.createVKSession 时传入的 track.OSD 为 true -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.getAllOSDMarker.html) @@ -169,7 +169,7 @@ vision kit 会话对象 获取帧对象,每调用一次都会触发一次帧分析过程 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.getVKFrame.html) @@ -188,7 +188,7 @@ vision kit 会话对象 如果需要重新识别其他平面,可以在调用此方法时将 reset 参数置为 true。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.hitTest.html) @@ -206,7 +206,7 @@ vision kit 会话对象 取消监听会话事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.off.html) @@ -223,7 +223,7 @@ vision kit 会话对象 监听会话事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.on.html) @@ -240,7 +240,7 @@ vision kit 会话对象 删除一个 marker,要求调 Taro.createVKSession 时传入的 track.marker 为 true -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.removeMarker.html) @@ -256,7 +256,7 @@ vision kit 会话对象 删除一个 OSD marker,要求调 Taro.createVKSession 时传入的 track.OSD 为 true -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.removeOSDMarker.html) @@ -272,7 +272,7 @@ vision kit 会话对象 在下次进行重绘时执行。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.requestAnimationFrame.html) @@ -288,7 +288,7 @@ vision kit 会话对象 静态图像 OCR 检测。当 Taro.createVKSession 参数传入 {track: {OCR: {mode: 2} } } 时可用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.runOCR.html) @@ -304,7 +304,7 @@ vision kit 会话对象 开启会话。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.start.html) @@ -320,7 +320,7 @@ vision kit 会话对象 停止会话。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.stop.html) @@ -332,7 +332,7 @@ vision kit 会话对象 开启 3D 模式 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.update3DMode.html) @@ -348,7 +348,7 @@ vision kit 会话对象 更新 OSD 识别精确度,要求调 Taro.createVKSession 时传入的 track.OSD 为 true -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/VKSession.updateOSDThreshold.html) @@ -618,7 +618,7 @@ hitTest 检测结果 | 参数 | 类型 | 说明 | | --- | --- | --- | -| transform | `Float32Array` | 包含位置、旋转、放缩信息的矩阵,以列为主序 | +| transform | `Float32Array` | 包含位置、旋转、放缩信息的矩阵,以列为主序 | ### IStartStatus @@ -637,28 +637,28 @@ start status 的合法值 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| VKSession | ✔️ | | | | | -| VKSession.addMarker | ✔️ | | | | | -| VKSession.addOSDMarker | ✔️ | | | | | -| VKSession.cancelAnimationFrame | ✔️ | | | | | -| VKSession.destroy | ✔️ | | | | | -| VKSession.detectBody | ✔️ | | | | | -| VKSession.detectDepth | ✔️ | | | | | -| VKSession.detectFace | ✔️ | | | | | -| VKSession.detectHand | ✔️ | | | | | -| VKSession.getAllMarker | ✔️ | | | | | -| VKSession.getAllOSDMarker | ✔️ | | | | | -| VKSession.getVKFrame | ✔️ | | | | | -| VKSession.hitTest | ✔️ | | | | | -| VKSession.off | ✔️ | | | | | -| VKSession.on | ✔️ | | | | | -| VKSession.removeMarker | ✔️ | | | | | -| VKSession.removeOSDMarker | ✔️ | | | | | -| VKSession.requestAnimationFrame | ✔️ | | | | | -| VKSession.runOCR | ✔️ | | | | | -| VKSession.start | ✔️ | | | | | -| VKSession.stop | ✔️ | | | | | -| VKSession.update3DMode | ✔️ | | | | | -| VKSession.updateOSDThreshold | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| VKSession | ✔️ | | | | +| VKSession.addMarker | ✔️ | | | | +| VKSession.addOSDMarker | ✔️ | | | | +| VKSession.cancelAnimationFrame | ✔️ | | | | +| VKSession.destroy | ✔️ | | | | +| VKSession.detectBody | ✔️ | | | | +| VKSession.detectDepth | ✔️ | | | | +| VKSession.detectFace | ✔️ | | | | +| VKSession.detectHand | ✔️ | | | | +| VKSession.getAllMarker | ✔️ | | | | +| VKSession.getAllOSDMarker | ✔️ | | | | +| VKSession.getVKFrame | ✔️ | | | | +| VKSession.hitTest | ✔️ | | | | +| VKSession.off | ✔️ | | | | +| VKSession.on | ✔️ | | | | +| VKSession.removeMarker | ✔️ | | | | +| VKSession.removeOSDMarker | ✔️ | | | | +| VKSession.requestAnimationFrame | ✔️ | | | | +| VKSession.runOCR | ✔️ | | | | +| VKSession.start | ✔️ | | | | +| VKSession.stop | ✔️ | | | | +| VKSession.update3DMode | ✔️ | | | | +| VKSession.updateOSDThreshold | ✔️ | | | | diff --git a/docs/apis/ai/visionkit/createVKSession.md b/docs/apis/ai/visionkit/createVKSession.md index 5ecf99efaed0..fa5fa1fb8c28 100644 --- a/docs/apis/ai/visionkit/createVKSession.md +++ b/docs/apis/ai/visionkit/createVKSession.md @@ -5,7 +5,7 @@ sidebar_label: createVKSession 创建 vision kit 会话对象 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/wx.createVKSession.html) diff --git a/docs/apis/ai/visionkit/isVKSupport.md b/docs/apis/ai/visionkit/isVKSupport.md index 37acba51cba3..144da2a59213 100644 --- a/docs/apis/ai/visionkit/isVKSupport.md +++ b/docs/apis/ai/visionkit/isVKSupport.md @@ -5,7 +5,7 @@ sidebar_label: isVKSupport 判断支持版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ai/visionkit/wx.isVKSupport.html) diff --git a/docs/apis/base/arrayBufferToBase64.md b/docs/apis/base/arrayBufferToBase64.md index f10d0fe862b0..2955d036f784 100644 --- a/docs/apis/base/arrayBufferToBase64.md +++ b/docs/apis/base/arrayBufferToBase64.md @@ -5,7 +5,7 @@ sidebar_label: arrayBufferToBase64 将 ArrayBuffer 数据转成 Base64 字符串。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/wx.arrayBufferToBase64.html) diff --git a/docs/apis/base/base64ToArrayBuffer.md b/docs/apis/base/base64ToArrayBuffer.md index d9bc0e4fb39e..fcf1633ffaea 100644 --- a/docs/apis/base/base64ToArrayBuffer.md +++ b/docs/apis/base/base64ToArrayBuffer.md @@ -5,7 +5,7 @@ sidebar_label: base64ToArrayBuffer 将 Base64 字符串转成 ArrayBuffer 数据。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/wx.base64ToArrayBuffer.html) diff --git a/docs/apis/base/canIUse.md b/docs/apis/base/canIUse.md index 30cb5bbf0af6..b89e51018998 100644 --- a/docs/apis/base/canIUse.md +++ b/docs/apis/base/canIUse.md @@ -5,7 +5,7 @@ sidebar_label: canIUse 判断小程序的 API,回调,参数,组件等是否在当前版本可用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/wx.canIUse.html) diff --git a/docs/apis/base/canIUseWebp.md b/docs/apis/base/canIUseWebp.md index 6a3bb799dcef..b9c40ce6347d 100644 --- a/docs/apis/base/canIUseWebp.md +++ b/docs/apis/base/canIUseWebp.md @@ -7,7 +7,7 @@ sidebar_label: canIUseWebp > 在小程序平台中仅在 android 和 devtools 设备时可用 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/base/crypto/UserCryptoManager.md b/docs/apis/base/crypto/UserCryptoManager.md index e46639715ff5..ee0da7927e33 100644 --- a/docs/apis/base/crypto/UserCryptoManager.md +++ b/docs/apis/base/crypto/UserCryptoManager.md @@ -5,7 +5,7 @@ sidebar_label: UserCryptoManager 用户加密模块 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/crypto/UserCryptoManager.html) @@ -15,7 +15,7 @@ sidebar_label: UserCryptoManager 获取最新的用户加密密钥 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/crypto/UserCryptoManager.getLatestUserKey.html) @@ -43,7 +43,7 @@ userCryptoManager.getLatestUserKey({ 获取密码学安全随机数 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/crypto/UserCryptoManager.getRandomValues.html) @@ -106,8 +106,8 @@ Taro.getUserCryptoManager().getRandomValues({ ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| UserCryptoManager | ✔️ | | | | | -| UserCryptoManager.getLatestUserKey | ✔️ | | | | | -| UserCryptoManager.getRandomValues | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| UserCryptoManager | ✔️ | | | | +| UserCryptoManager.getLatestUserKey | ✔️ | | | | +| UserCryptoManager.getRandomValues | ✔️ | | | | diff --git a/docs/apis/base/crypto/getRandomValues.md b/docs/apis/base/crypto/getRandomValues.md index e364789ca194..188ac6dd845a 100644 --- a/docs/apis/base/crypto/getRandomValues.md +++ b/docs/apis/base/crypto/getRandomValues.md @@ -5,7 +5,7 @@ sidebar_label: getRandomValues 获取密码学安全随机数 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/crypto/UserCryptoManager.getRandomValues.html) diff --git a/docs/apis/base/crypto/getUserCryptoManager.md b/docs/apis/base/crypto/getUserCryptoManager.md index f77bba2e4237..83f1ae4d908c 100644 --- a/docs/apis/base/crypto/getUserCryptoManager.md +++ b/docs/apis/base/crypto/getUserCryptoManager.md @@ -5,7 +5,7 @@ sidebar_label: getUserCryptoManager 获取用户加密模块 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/crypto/wx.getUserCryptoManager.html) diff --git a/docs/apis/base/debug/LogManager.md b/docs/apis/base/debug/LogManager.md index 0a7af15e8774..f435f4d9d5cc 100644 --- a/docs/apis/base/debug/LogManager.md +++ b/docs/apis/base/debug/LogManager.md @@ -13,7 +13,7 @@ sidebar_label: LogManager 基础库默认会把 App、Page 的生命周期函数和 wx 命名空间下的函数调用写入日志。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/debug/LogManager.html) @@ -85,10 +85,10 @@ sidebar_label: LogManager ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| LogManager | ✔️ | | | | ✔️ | -| LogManager.debug | ✔️ | | | | ✔️ | -| LogManager.info | ✔️ | | | | ✔️ | -| LogManager.log | ✔️ | | | | ✔️ | -| LogManager.warn | ✔️ | | | | ✔️ | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| LogManager | ✔️ | | | | +| LogManager.debug | ✔️ | | | | +| LogManager.info | ✔️ | | | | +| LogManager.log | ✔️ | | | | +| LogManager.warn | ✔️ | | | | diff --git a/docs/apis/base/debug/RealtimeLogManager.md b/docs/apis/base/debug/RealtimeLogManager.md index e50547d061fa..09ec89b0438d 100644 --- a/docs/apis/base/debug/RealtimeLogManager.md +++ b/docs/apis/base/debug/RealtimeLogManager.md @@ -9,7 +9,7 @@ sidebar_label: RealtimeLogManager 为帮助小程序开发者快捷地排查小程序漏洞、定位问题,我们推出了实时日志功能。从基础库2.7.1开始,开发者可通过提供的接口打印日志,日志汇聚并实时上报到小程序后台。 开发者可从小程序管理后台“开发->运维中心->实时日志”进入日志查询页面,查看开发者打印的日志信息。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/debug/RealtimeLogManager.html) diff --git a/docs/apis/base/debug/RealtimeTagLogManager.md b/docs/apis/base/debug/RealtimeTagLogManager.md index f8829f215eb2..03df5b47a8ef 100644 --- a/docs/apis/base/debug/RealtimeTagLogManager.md +++ b/docs/apis/base/debug/RealtimeTagLogManager.md @@ -9,7 +9,7 @@ sidebar_label: RealtimeTagLogManager RealtimeTagLogManager 功能和 [RealtimeLogManager](./RealtimeLogManager) 相似,但是为了让输出的实时日志更易于分析,其具有更严格的格式要求。 RealtimeTagLogManager 使用时需要传入标签,调用该实例所输出的日志均会被汇集到对应标签下,同时该实例的日志只支持 key-value 格式进行输出。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/debug/RealtimeTagLogManager.html) diff --git a/docs/apis/base/debug/console.md b/docs/apis/base/debug/console.md index 7b4818871cfc..92124d77be67 100644 --- a/docs/apis/base/debug/console.md +++ b/docs/apis/base/debug/console.md @@ -9,7 +9,7 @@ sidebar_label: console - 由于 vConsole 功能有限,以及不同客户端对 console 方法的支持情况有差异,建议开发者在小程序中只使用本文档中提供的方法。 - 部分内容展示的限制请参见调试 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/debug/console.html) @@ -131,13 +131,13 @@ sidebar_label: console ## API 支持度 -| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| console | ✔️ | | | | | ✔️ | ✔️ | -| console.debug | ✔️ | | | | | ✔️ | ✔️ | -| console.error | ✔️ | | | | | ✔️ | ✔️ | -| console.group | ✔️ | | | | | ✔️ | ✔️ | -| console.groupEnd | ✔️ | | | | | ✔️ | ✔️ | -| console.info | ✔️ | | | | | ✔️ | ✔️ | -| console.log | ✔️ | ✔️ | | | | ✔️ | ✔️ | -| console.warn | ✔️ | | | | | ✔️ | ✔️ | +| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| console | ✔️ | | | | | ✔️ | +| console.debug | ✔️ | | | | | ✔️ | +| console.error | ✔️ | | | | | ✔️ | +| console.group | ✔️ | | | | | ✔️ | +| console.groupEnd | ✔️ | | | | | ✔️ | +| console.info | ✔️ | | | | | ✔️ | +| console.log | ✔️ | ✔️ | | | | ✔️ | +| console.warn | ✔️ | | | | | ✔️ | diff --git a/docs/apis/base/debug/getLogManager.md b/docs/apis/base/debug/getLogManager.md index 6bef9f35cf84..3276fe890d27 100644 --- a/docs/apis/base/debug/getLogManager.md +++ b/docs/apis/base/debug/getLogManager.md @@ -5,7 +5,7 @@ sidebar_label: getLogManager 获取日志管理器对象。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/debug/wx.getLogManager.html) diff --git a/docs/apis/base/debug/getRealtimeLogManager.md b/docs/apis/base/debug/getRealtimeLogManager.md index c6c97daad22d..7af34fc7f915 100644 --- a/docs/apis/base/debug/getRealtimeLogManager.md +++ b/docs/apis/base/debug/getRealtimeLogManager.md @@ -5,7 +5,7 @@ sidebar_label: getRealtimeLogManager 获取实时日志管理器对象。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/base/debug/setEnableDebug.md b/docs/apis/base/debug/setEnableDebug.md index 4d5ef2398fd0..7ce22b8e676f 100644 --- a/docs/apis/base/debug/setEnableDebug.md +++ b/docs/apis/base/debug/setEnableDebug.md @@ -5,7 +5,7 @@ sidebar_label: setEnableDebug 设置是否打开调试开关,此开关对正式版也能生效。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/debug/wx.setEnableDebug.html) diff --git a/docs/apis/base/performance/EntryList.md b/docs/apis/base/performance/EntryList.md index c056d12d3173..7c7bd5737b8b 100644 --- a/docs/apis/base/performance/EntryList.md +++ b/docs/apis/base/performance/EntryList.md @@ -5,7 +5,7 @@ sidebar_label: EntryList EntryList 对象 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/EntryList.html) @@ -15,7 +15,7 @@ EntryList 对象 该方法返回当前列表中的所有性能数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/EntryList.getEntries.html) @@ -27,7 +27,7 @@ EntryList 对象 获取当前列表中所有名称为 [name] 且类型为 [entryType] 的性能数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/EntryList.getEntriesByName.html) @@ -44,7 +44,7 @@ EntryList 对象 获取当前列表中所有类型为 [entryType] 的性能数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/EntryList.getEntriesByType.html) @@ -58,9 +58,9 @@ EntryList 对象 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| EntryList | ✔️ | | | | | -| EntryList.getEntries | ✔️ | | | | | -| EntryList.getEntriesByName | ✔️ | | | | | -| EntryList.getEntriesByType | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| EntryList | ✔️ | | | | +| EntryList.getEntries | ✔️ | | | | +| EntryList.getEntriesByName | ✔️ | | | | +| EntryList.getEntriesByType | ✔️ | | | | diff --git a/docs/apis/base/performance/Performance.md b/docs/apis/base/performance/Performance.md index 043c4809f585..c3f4c49c33b1 100644 --- a/docs/apis/base/performance/Performance.md +++ b/docs/apis/base/performance/Performance.md @@ -5,7 +5,7 @@ sidebar_label: Performance Performance 对象,用于获取性能数据及创建性能监听器 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/Performance.html) @@ -15,7 +15,7 @@ Performance 对象,用于获取性能数据及创建性能监听器 创建全局性能事件监听器 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/Performance.createObserver.html) @@ -31,7 +31,7 @@ Performance 对象,用于获取性能数据及创建性能监听器 该方法返回当前缓冲区中的所有性能数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/Performance.getEntries.html) @@ -43,7 +43,7 @@ Performance 对象,用于获取性能数据及创建性能监听器 获取当前缓冲区中所有名称为 [name] 且类型为 [entryType] 的性能数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/Performance.getEntriesByName.html) @@ -60,7 +60,7 @@ Performance 对象,用于获取性能数据及创建性能监听器 获取当前缓冲区中所有类型为 [entryType] 的性能数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/Performance.getEntriesByType.html) @@ -76,7 +76,7 @@ Performance 对象,用于获取性能数据及创建性能监听器 设置缓冲区大小,默认缓冲 30 条性能数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/Performance.setBufferSize.html) @@ -90,11 +90,11 @@ Performance 对象,用于获取性能数据及创建性能监听器 ## API 支持度 -| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| Performance | ✔️ | ✔️ | | | | | -| Performance.createObserver | ✔️ | | | | | | -| Performance.getEntries | ✔️ | ✔️ | | | | | -| Performance.getEntriesByName | ✔️ | ✔️ | | | | | -| Performance.getEntriesByType | ✔️ | ✔️ | | | | | -| Performance.setBufferSize | ✔️ | | | | | | +| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | +| Performance | ✔️ | ✔️ | | | | +| Performance.createObserver | ✔️ | | | | | +| Performance.getEntries | ✔️ | ✔️ | | | | +| Performance.getEntriesByName | ✔️ | ✔️ | | | | +| Performance.getEntriesByType | ✔️ | ✔️ | | | | +| Performance.setBufferSize | ✔️ | | | | | diff --git a/docs/apis/base/performance/PerformanceEntry.md b/docs/apis/base/performance/PerformanceEntry.md index c892f14916a6..bbfec5d15281 100644 --- a/docs/apis/base/performance/PerformanceEntry.md +++ b/docs/apis/base/performance/PerformanceEntry.md @@ -5,7 +5,7 @@ sidebar_label: PerformanceEntry 单条性能数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/PerformanceEntry.html) @@ -55,6 +55,6 @@ name 的合法值 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| PerformanceEntry | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| PerformanceEntry | ✔️ | | | | diff --git a/docs/apis/base/performance/PerformanceObserver.md b/docs/apis/base/performance/PerformanceObserver.md index b5952a9bdbf2..429369332d38 100644 --- a/docs/apis/base/performance/PerformanceObserver.md +++ b/docs/apis/base/performance/PerformanceObserver.md @@ -5,7 +5,7 @@ sidebar_label: PerformanceObserver PerformanceObserver 对象,用于监听性能相关事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/PerformanceObserver.html) @@ -19,7 +19,7 @@ PerformanceObserver 对象,用于监听性能相关事件 停止监听 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/PerformanceObserver.disconnect.html) @@ -31,7 +31,7 @@ PerformanceObserver 对象,用于监听性能相关事件 开始监听 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/PerformanceObserver.observe.html) @@ -64,8 +64,8 @@ PerformanceObserver 对象,用于监听性能相关事件 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| PerformanceObserver | ✔️ | | | | | -| PerformanceObserver.disconnect | ✔️ | | | | | -| PerformanceObserver.observe | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| PerformanceObserver | ✔️ | | | | +| PerformanceObserver.disconnect | ✔️ | | | | +| PerformanceObserver.observe | ✔️ | | | | diff --git a/docs/apis/base/performance/getPerformance.md b/docs/apis/base/performance/getPerformance.md index 26924960e0d8..1b41b0d51b75 100644 --- a/docs/apis/base/performance/getPerformance.md +++ b/docs/apis/base/performance/getPerformance.md @@ -9,7 +9,7 @@ sidebar_label: getPerformance - 目前,当开启代码 [按需注入](https://developers.weixin.qq.com/miniprogram/dev/framework/ability/lazyload.html) `时,evaluateScript` 将仅包含公有部分代码,页面和组件的代码注入的时间会包含在 `firstRender` 中(因为页面和组件的代码注入过程成为了首次渲染过程的一部分)。因此开启按需注入后,脚本耗时降低,渲染时间提高属于正常现象,优化效果可以关注整体启动耗时(`appLaunch`)来评估。 - `firstPaint` 和 `firstContentfulPaint` 指标在开启 `vconsole` 的情况下,由于绘制 `vconsoel` 的面板,会导致数据提前。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/wx.getPerformance.html) diff --git a/docs/apis/base/performance/preloadAssets.md b/docs/apis/base/performance/preloadAssets.md index 1f5ebf5af9df..d5055fb15c66 100644 --- a/docs/apis/base/performance/preloadAssets.md +++ b/docs/apis/base/performance/preloadAssets.md @@ -5,7 +5,7 @@ sidebar_label: preloadAssets 为视图层预加载媒体资源文件, 目前支持:font,image -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/wx.preloadAssets.html) diff --git a/docs/apis/base/performance/preloadSkylineView.md b/docs/apis/base/performance/preloadSkylineView.md index 59b4bd1dedd2..668ed99a1e49 100644 --- a/docs/apis/base/performance/preloadSkylineView.md +++ b/docs/apis/base/performance/preloadSkylineView.md @@ -5,7 +5,7 @@ sidebar_label: preloadSkylineView 预加载下个页面所需要的 Skyline 运行环境 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/wx.preloadSkylineView.html) diff --git a/docs/apis/base/performance/preloadWebview.md b/docs/apis/base/performance/preloadWebview.md index a21d92e5e3b2..e2d2a37bb0e9 100644 --- a/docs/apis/base/performance/preloadWebview.md +++ b/docs/apis/base/performance/preloadWebview.md @@ -5,7 +5,7 @@ sidebar_label: preloadWebview 预加载下个页面的 WebView -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/wx.preloadWebview.html) diff --git a/docs/apis/base/performance/reportPerformance.md b/docs/apis/base/performance/reportPerformance.md index 49728f6f96b8..b933daf4aebf 100644 --- a/docs/apis/base/performance/reportPerformance.md +++ b/docs/apis/base/performance/reportPerformance.md @@ -5,7 +5,7 @@ sidebar_label: reportPerformance 小程序测速上报。使用前,需要在小程序管理后台配置。 详情参见[小程序测速](https://developers.weixin.qq.com/miniprogram/dev/framework/performanceReport/index.html)指南。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/wx.reportPerformance.html) diff --git a/docs/apis/base/system/getAppAuthorizeSetting.md b/docs/apis/base/system/getAppAuthorizeSetting.md index a25e832e61b0..983d82044bea 100644 --- a/docs/apis/base/system/getAppAuthorizeSetting.md +++ b/docs/apis/base/system/getAppAuthorizeSetting.md @@ -9,7 +9,7 @@ sidebar_label: getAppAuthorizeSetting - 'denied' 表示请求授权被拒绝,无法再次请求授权;(此情况需要引导用户[打开系统设置](https://developers.weixin.qq.com/miniprogram/dev/api/base/system/wx.openAppAuthorizeSetting.html),在设置页中打开权限) - 'non determined' 表示尚未请求授权,会在微信下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关) -支持情况: +支持情况: > H5: 暂未支持设置权限 diff --git a/docs/apis/base/system/getAppBaseInfo.md b/docs/apis/base/system/getAppBaseInfo.md index 0886b9d900ce..43d921a92d09 100644 --- a/docs/apis/base/system/getAppBaseInfo.md +++ b/docs/apis/base/system/getAppBaseInfo.md @@ -5,7 +5,7 @@ sidebar_label: getAppBaseInfo 获取微信APP基础信息 -支持情况: +支持情况: > H5: 不支持 SDKVersion、host、version diff --git a/docs/apis/base/system/getDeviceInfo.md b/docs/apis/base/system/getDeviceInfo.md index 55f35262a6a2..31d8839da129 100644 --- a/docs/apis/base/system/getDeviceInfo.md +++ b/docs/apis/base/system/getDeviceInfo.md @@ -5,7 +5,7 @@ sidebar_label: getDeviceInfo 获取设备基础信息 -支持情况: +支持情况: > H5: 不支持 abi、benchmarkLevel diff --git a/docs/apis/base/system/getRendererUserAgent.md b/docs/apis/base/system/getRendererUserAgent.md index 371702b20a33..364335ca5994 100644 --- a/docs/apis/base/system/getRendererUserAgent.md +++ b/docs/apis/base/system/getRendererUserAgent.md @@ -6,7 +6,7 @@ sidebar_label: getRendererUserAgent 获取 Webview 小程序的 UserAgent 基础库 2.26.3 开始支持 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/system/wx.getRendererUserAgent.html) diff --git a/docs/apis/base/system/getSkylineInfo.md b/docs/apis/base/system/getSkylineInfo.md index 1201c3fcd06f..22dd1823e0af 100644 --- a/docs/apis/base/system/getSkylineInfo.md +++ b/docs/apis/base/system/getSkylineInfo.md @@ -6,7 +6,7 @@ sidebar_label: getSkylineInfo 获取当前运行环境对于 Skyline 渲染引擎 的支持情况 基础库 2.26.2 开始支持 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/system/wx.getSkylineInfo.html) diff --git a/docs/apis/base/system/getSkylineInfoSync.md b/docs/apis/base/system/getSkylineInfoSync.md index 9ee6b57fc96f..2b334942d48e 100644 --- a/docs/apis/base/system/getSkylineInfoSync.md +++ b/docs/apis/base/system/getSkylineInfoSync.md @@ -6,7 +6,7 @@ sidebar_label: getSkylineInfoSync 获取当前运行环境对于 Skyline 渲染引擎 的支持情况 基础库 2.26.2 开始支持 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/system/wx.getSkylineInfoSync.html) diff --git a/docs/apis/base/system/getSystemInfo.md b/docs/apis/base/system/getSystemInfo.md index 98263e124b68..c980de150898 100644 --- a/docs/apis/base/system/getSystemInfo.md +++ b/docs/apis/base/system/getSystemInfo.md @@ -5,7 +5,7 @@ sidebar_label: getSystemInfo 获取系统信息,支持 `Promise` 化使用。 -支持情况: +支持情况: > 微信小程序: 小程序可以在微信和企业微信中调用此接口,但是在企业微信中调用此接口时,会额外返回一个 environment 字段(微信中不返回),如此字段值为 wxwork,则表示当前小程序运行在企业微信环境中。 > @@ -71,6 +71,7 @@ sidebar_label: getSystemInfo | enableDebug | `boolean` | 否 | 是否已打开调试。可通过右上角菜单或 [Taro.setEnableDebug](/docs/apis/base/debug/setEnableDebug) 打开调试。 | | deviceOrientation | `keyof DeviceOrientation` | 否 | 设备方向 | | environment | `string` | 否 | 小程序当前运行环境 | +| screen | `{ width: number; height: number; }` | 否 | 仅支付宝小程序生效
screenHeight、screenWidth在 Android 上取值有误,建议使用 screen字段内的属性替代。
https://opendocs.alipay.com/mini/api/gawhvz?pathHash=270f3253
单位: px | ### Theme diff --git a/docs/apis/base/system/getSystemInfoAsync.md b/docs/apis/base/system/getSystemInfoAsync.md index c92b190936c9..8fd26fecbd64 100644 --- a/docs/apis/base/system/getSystemInfoAsync.md +++ b/docs/apis/base/system/getSystemInfoAsync.md @@ -5,7 +5,7 @@ sidebar_label: getSystemInfoAsync 异步获取系统信息。需要一定的微信客户端版本支持,在不支持的客户端上,会使用同步实现来返回。 -支持情况: +支持情况: > 微信小程序: 小程序可以在微信和企业微信中调用此接口,但是在企业微信中调用此接口时,会额外返回一个 environment 字段(微信中不返回),如此字段值为 wxwork,则表示当前小程序运行在企业微信环境中。 > @@ -71,6 +71,7 @@ sidebar_label: getSystemInfoAsync | enableDebug | `boolean` | 否 | 是否已打开调试。可通过右上角菜单或 [Taro.setEnableDebug](/docs/apis/base/debug/setEnableDebug) 打开调试。 | | deviceOrientation | `keyof DeviceOrientation` | 否 | 设备方向 | | environment | `string` | 否 | 小程序当前运行环境 | +| screen | `{ width: number; height: number; }` | 否 | 仅支付宝小程序生效
screenHeight、screenWidth在 Android 上取值有误,建议使用 screen字段内的属性替代。
https://opendocs.alipay.com/mini/api/gawhvz?pathHash=270f3253
单位: px | ### Theme diff --git a/docs/apis/base/system/getSystemInfoSync.md b/docs/apis/base/system/getSystemInfoSync.md index d948c06ca480..893e5d13c27c 100644 --- a/docs/apis/base/system/getSystemInfoSync.md +++ b/docs/apis/base/system/getSystemInfoSync.md @@ -5,7 +5,7 @@ sidebar_label: getSystemInfoSync [Taro.getSystemInfo](./getSystemInfo) 的同步版本 -支持情况: +支持情况: > 微信小程序: 小程序可以在微信和企业微信中调用此接口,但是在企业微信中调用此接口时,会额外返回一个 environment 字段(微信中不返回),如此字段值为 wxwork,则表示当前小程序运行在企业微信环境中。 > @@ -59,6 +59,7 @@ sidebar_label: getSystemInfoSync | enableDebug | `boolean` | 否 | 是否已打开调试。可通过右上角菜单或 [Taro.setEnableDebug](/docs/apis/base/debug/setEnableDebug) 打开调试。 | | deviceOrientation | `keyof DeviceOrientation` | 否 | 设备方向 | | environment | `string` | 否 | 小程序当前运行环境 | +| screen | `{ width: number; height: number; }` | 否 | 仅支付宝小程序生效
screenHeight、screenWidth在 Android 上取值有误,建议使用 screen字段内的属性替代。
https://opendocs.alipay.com/mini/api/gawhvz?pathHash=270f3253
单位: px | ### Theme diff --git a/docs/apis/base/system/getSystemSetting.md b/docs/apis/base/system/getSystemSetting.md index 442fcbaba85e..2e3bf8d15637 100644 --- a/docs/apis/base/system/getSystemSetting.md +++ b/docs/apis/base/system/getSystemSetting.md @@ -5,7 +5,7 @@ sidebar_label: getSystemSetting 获取设备设置 -支持情况: +支持情况: > H5: 不支持 bluetoothEnabled、locationEnabled、wifiEnabled diff --git a/docs/apis/base/system/getWindowInfo.md b/docs/apis/base/system/getWindowInfo.md index 90ca902e3ea7..687714585e12 100644 --- a/docs/apis/base/system/getWindowInfo.md +++ b/docs/apis/base/system/getWindowInfo.md @@ -5,7 +5,7 @@ sidebar_label: getWindowInfo 获取窗口信息 -支持情况: +支持情况: > H5: 不支持 statusBarHeight、safeArea diff --git a/docs/apis/base/system/openAppAuthorizeSetting.md b/docs/apis/base/system/openAppAuthorizeSetting.md index d1522df50a09..3b265f998279 100644 --- a/docs/apis/base/system/openAppAuthorizeSetting.md +++ b/docs/apis/base/system/openAppAuthorizeSetting.md @@ -5,7 +5,7 @@ sidebar_label: openAppAuthorizeSetting 跳转系统微信授权管理页 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/system/wx.openAppAuthorizeSetting.html) diff --git a/docs/apis/base/system/openSystemBluetoothSetting.md b/docs/apis/base/system/openSystemBluetoothSetting.md index 458d68764ff9..2e85d1233192 100644 --- a/docs/apis/base/system/openSystemBluetoothSetting.md +++ b/docs/apis/base/system/openSystemBluetoothSetting.md @@ -5,7 +5,7 @@ sidebar_label: openSystemBluetoothSetting 跳转系统蓝牙设置页 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/system/wx.openSystemBluetoothSetting.html) diff --git a/docs/apis/base/update/UpdateManager.md b/docs/apis/base/update/UpdateManager.md index 1034935b5bcc..db266c167876 100644 --- a/docs/apis/base/update/UpdateManager.md +++ b/docs/apis/base/update/UpdateManager.md @@ -9,7 +9,7 @@ UpdateManager 对象,用来管理更新,可通过 Taro.getUpdateManager 接 - 微信开发者工具上可以通过「编译模式」下的「下次编译模拟更新」开关来调试 - 小程序开发版/体验版没有「版本」概念,所以无法在开发版/体验版上测试更版本更新情况 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/update/UpdateManager.html) diff --git a/docs/apis/base/update/getUpdateManager.md b/docs/apis/base/update/getUpdateManager.md index 825d0fcc6a22..9f96167c591a 100644 --- a/docs/apis/base/update/getUpdateManager.md +++ b/docs/apis/base/update/getUpdateManager.md @@ -6,7 +6,7 @@ sidebar_label: getUpdateManager 获取**全局唯一**的版本更新管理器,用于管理小程序更新。 关于小程序的更新机制,可以查看[运行机制](https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/operating-mechanism.html)文档。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/update/wx.getUpdateManager.html) diff --git a/docs/apis/base/update/updateWeChatApp.md b/docs/apis/base/update/updateWeChatApp.md index a4c0996effd1..4cab6c1dcf91 100644 --- a/docs/apis/base/update/updateWeChatApp.md +++ b/docs/apis/base/update/updateWeChatApp.md @@ -5,7 +5,7 @@ sidebar_label: updateWeChatApp 更新客户端版本。当判断用户小程序所在客户端版本过低时,可使用该接口跳转到更新微信页面。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/update/wx.updateWeChatApp.html) diff --git a/docs/apis/base/weapp/app-event/offAppHide.md b/docs/apis/base/weapp/app-event/offAppHide.md index 07884ec47e8e..d26e2e0b08b8 100644 --- a/docs/apis/base/weapp/app-event/offAppHide.md +++ b/docs/apis/base/weapp/app-event/offAppHide.md @@ -5,7 +5,7 @@ sidebar_label: offAppHide 取消监听小程序切后台事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offAppHide.html) diff --git a/docs/apis/base/weapp/app-event/offAppShow.md b/docs/apis/base/weapp/app-event/offAppShow.md index a992fb0bbb10..87d33827b8ae 100644 --- a/docs/apis/base/weapp/app-event/offAppShow.md +++ b/docs/apis/base/weapp/app-event/offAppShow.md @@ -5,7 +5,7 @@ sidebar_label: offAppShow 取消监听小程序切前台事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offAppShow.html) diff --git a/docs/apis/base/weapp/app-event/offAudioInterruptionBegin.md b/docs/apis/base/weapp/app-event/offAudioInterruptionBegin.md index d480333cc063..f59ed02f93de 100644 --- a/docs/apis/base/weapp/app-event/offAudioInterruptionBegin.md +++ b/docs/apis/base/weapp/app-event/offAudioInterruptionBegin.md @@ -5,7 +5,7 @@ sidebar_label: offAudioInterruptionBegin 取消监听音频因为受到系统占用而被中断开始事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offAudioInterruptionBegin.html) diff --git a/docs/apis/base/weapp/app-event/offAudioInterruptionEnd.md b/docs/apis/base/weapp/app-event/offAudioInterruptionEnd.md index c44c0ea82333..0a5a30033633 100644 --- a/docs/apis/base/weapp/app-event/offAudioInterruptionEnd.md +++ b/docs/apis/base/weapp/app-event/offAudioInterruptionEnd.md @@ -5,7 +5,7 @@ sidebar_label: offAudioInterruptionEnd 取消监听音频中断结束事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offAudioInterruptionEnd.html) diff --git a/docs/apis/base/weapp/app-event/offError.md b/docs/apis/base/weapp/app-event/offError.md index 89db0d8a8de1..643a26df4c0c 100644 --- a/docs/apis/base/weapp/app-event/offError.md +++ b/docs/apis/base/weapp/app-event/offError.md @@ -5,7 +5,7 @@ sidebar_label: offError 取消监听音频播放错误事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/InnerAudioContext.offError.html) diff --git a/docs/apis/base/weapp/app-event/offPageNotFound.md b/docs/apis/base/weapp/app-event/offPageNotFound.md index 430b227b9be1..317c0ba9ecbb 100644 --- a/docs/apis/base/weapp/app-event/offPageNotFound.md +++ b/docs/apis/base/weapp/app-event/offPageNotFound.md @@ -5,7 +5,7 @@ sidebar_label: offPageNotFound 取消监听小程序要打开的页面不存在事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offPageNotFound.html) diff --git a/docs/apis/base/weapp/app-event/offThemeChange.md b/docs/apis/base/weapp/app-event/offThemeChange.md index 4b8648971be6..efce5fbb875a 100644 --- a/docs/apis/base/weapp/app-event/offThemeChange.md +++ b/docs/apis/base/weapp/app-event/offThemeChange.md @@ -5,7 +5,7 @@ sidebar_label: offThemeChange 取消监听系统主题改变事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offThemeChange.html) diff --git a/docs/apis/base/weapp/app-event/offUnhandledRejection.md b/docs/apis/base/weapp/app-event/offUnhandledRejection.md index 6bc142909ba0..bd0c9e1cc352 100644 --- a/docs/apis/base/weapp/app-event/offUnhandledRejection.md +++ b/docs/apis/base/weapp/app-event/offUnhandledRejection.md @@ -5,7 +5,7 @@ sidebar_label: offUnhandledRejection 取消监听未处理的 Promise 拒绝事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offUnhandledRejection.html) diff --git a/docs/apis/base/weapp/app-event/onAppHide.md b/docs/apis/base/weapp/app-event/onAppHide.md index 3c2b6ea30e24..d096e2b13325 100644 --- a/docs/apis/base/weapp/app-event/onAppHide.md +++ b/docs/apis/base/weapp/app-event/onAppHide.md @@ -5,7 +5,7 @@ sidebar_label: onAppHide 监听小程序切后台事件。该事件与 [`App.onHide`](https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html#onhide) 的回调时机一致。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onAppHide.html) diff --git a/docs/apis/base/weapp/app-event/onAppShow.md b/docs/apis/base/weapp/app-event/onAppShow.md index 0d7c05bee1ef..364141c9a230 100644 --- a/docs/apis/base/weapp/app-event/onAppShow.md +++ b/docs/apis/base/weapp/app-event/onAppShow.md @@ -20,7 +20,7 @@ sidebar_label: onAppShow 部分版本在无`referrerInfo`的时候会返回 `undefined`,建议使用 `options.referrerInfo && options.referrerInfo.appId` 进行判断。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onAppShow.html) diff --git a/docs/apis/base/weapp/app-event/onAudioInterruptionBegin.md b/docs/apis/base/weapp/app-event/onAudioInterruptionBegin.md index 3093d500ba0b..ca72421560f3 100644 --- a/docs/apis/base/weapp/app-event/onAudioInterruptionBegin.md +++ b/docs/apis/base/weapp/app-event/onAudioInterruptionBegin.md @@ -5,7 +5,7 @@ sidebar_label: onAudioInterruptionBegin 监听音频因为受到系统占用而被中断开始事件。以下场景会触发此事件:闹钟、电话、FaceTime 通话、微信语音聊天、微信视频聊天。此事件触发后,小程序内所有音频会暂停。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onAudioInterruptionBegin.html) diff --git a/docs/apis/base/weapp/app-event/onAudioInterruptionEnd.md b/docs/apis/base/weapp/app-event/onAudioInterruptionEnd.md index 79b5765628e9..dfb22c7325d3 100644 --- a/docs/apis/base/weapp/app-event/onAudioInterruptionEnd.md +++ b/docs/apis/base/weapp/app-event/onAudioInterruptionEnd.md @@ -5,7 +5,7 @@ sidebar_label: onAudioInterruptionEnd 监听音频中断结束事件。在收到 onAudioInterruptionBegin 事件之后,小程序内所有音频会暂停,收到此事件之后才可再次播放成功 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onAudioInterruptionEnd.html) diff --git a/docs/apis/base/weapp/app-event/onError.md b/docs/apis/base/weapp/app-event/onError.md index 07eadf12a524..75bc173484b0 100644 --- a/docs/apis/base/weapp/app-event/onError.md +++ b/docs/apis/base/weapp/app-event/onError.md @@ -5,7 +5,7 @@ sidebar_label: onError 监听小程序错误事件。如脚本错误或 API 调用报错等。该事件与 [`App.onError`](https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html#onerrorstring-error) 的回调时机与参数一致。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onError.html) diff --git a/docs/apis/base/weapp/app-event/onPageNotFound.md b/docs/apis/base/weapp/app-event/onPageNotFound.md index d592e2555d69..c254f29da665 100644 --- a/docs/apis/base/weapp/app-event/onPageNotFound.md +++ b/docs/apis/base/weapp/app-event/onPageNotFound.md @@ -10,7 +10,7 @@ sidebar_label: onPageNotFound - 若开发者没有调用 [Taro.onPageNotFound](/docs/apis/base/weapp/app-event/onPageNotFound) 绑定监听,也没有声明 `App.onPageNotFound`,当跳转页面不存在时,将推入微信客户端原生的页面不存在提示页面。 - 如果回调中又重定向到另一个不存在的页面,将推入微信客户端原生的页面不存在提示页面,并且不再第二次回调。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onPageNotFound.html) diff --git a/docs/apis/base/weapp/app-event/onThemeChange.md b/docs/apis/base/weapp/app-event/onThemeChange.md index b654af4f5365..874c470d4dec 100644 --- a/docs/apis/base/weapp/app-event/onThemeChange.md +++ b/docs/apis/base/weapp/app-event/onThemeChange.md @@ -5,7 +5,7 @@ sidebar_label: onThemeChange 监听系统主题改变事件。该事件与 [`App.onThemeChange`](https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html#onThemeChange-Object-object) 的回调时机一致。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onThemeChange.html) diff --git a/docs/apis/base/weapp/app-event/onUnhandledRejection.md b/docs/apis/base/weapp/app-event/onUnhandledRejection.md index a82d9110d9ca..a43ea7bee4c6 100644 --- a/docs/apis/base/weapp/app-event/onUnhandledRejection.md +++ b/docs/apis/base/weapp/app-event/onUnhandledRejection.md @@ -8,7 +8,7 @@ sidebar_label: onUnhandledRejection **注意** - 所有的 unhandledRejection 都可以被这一监听捕获,但只有 Error 类型的才会在小程序后台触发报警。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onUnhandledRejection.html) diff --git a/docs/apis/base/weapp/life-cycle/getEnterOptionsSync.md b/docs/apis/base/weapp/life-cycle/getEnterOptionsSync.md index f45ab4af8465..dbbfa5b36905 100644 --- a/docs/apis/base/weapp/life-cycle/getEnterOptionsSync.md +++ b/docs/apis/base/weapp/life-cycle/getEnterOptionsSync.md @@ -8,7 +8,7 @@ sidebar_label: getEnterOptionsSync **注意** 部分版本在无 `referrerInfo` 的时候会返回 `undefined`,建议使用 `options.referrerInfo && options.referrerInfo.appId` 进行判断。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/life-cycle/wx.getEnterOptionsSync.html) diff --git a/docs/apis/base/weapp/life-cycle/getLaunchOptionsSync.md b/docs/apis/base/weapp/life-cycle/getLaunchOptionsSync.md index 9ed6a9cbf3d4..cd0b39290bcd 100644 --- a/docs/apis/base/weapp/life-cycle/getLaunchOptionsSync.md +++ b/docs/apis/base/weapp/life-cycle/getLaunchOptionsSync.md @@ -8,7 +8,7 @@ sidebar_label: getLaunchOptionsSync **注意** 部分版本在无`referrerInfo`的时候会返回 `undefined`,建议使用 `options.referrerInfo && options.referrerInfo.appId` 进行判断。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/base/app/life-cycle/wx.getLaunchOptionsSync.html) diff --git a/docs/apis/canvas/Canvas.md b/docs/apis/canvas/Canvas.md index 7d269687fc7c..e958966800d4 100644 --- a/docs/apis/canvas/Canvas.md +++ b/docs/apis/canvas/Canvas.md @@ -18,7 +18,7 @@ Canvas 实例,可通过 SelectorQuery 获取。 取消由 requestAnimationFrame 添加到计划中的动画帧请求。支持在 2D Canvas 和 WebGL Canvas 下使用, 但不支持混用 2D 和 WebGL 的方法。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/Canvas.cancelAnimationFrame.html) @@ -34,7 +34,7 @@ Canvas 实例,可通过 SelectorQuery 获取。 创建一个 ImageData 对象。仅支持在 2D Canvas 中使用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/Canvas.createImageData.html) @@ -46,7 +46,7 @@ Canvas 实例,可通过 SelectorQuery 获取。 创建一个图片对象。 支持在 2D Canvas 和 WebGL Canvas 下使用, 但不支持混用 2D 和 WebGL 的方法。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/Canvas.createImage.html) @@ -58,7 +58,7 @@ Canvas 实例,可通过 SelectorQuery 获取。 创建 Path2D 对象 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/Path2D.html) @@ -74,7 +74,7 @@ Canvas 实例,可通过 SelectorQuery 获取。 支持获取 2D 和 WebGL 绘图上下文 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/Canvas.getContext.html) @@ -90,7 +90,7 @@ Canvas 实例,可通过 SelectorQuery 获取。 在下次进行重绘时执行。 支持在 2D Canvas 和 WebGL Canvas 下使用, 但不支持混用 2D 和 WebGL 的方法。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/Canvas.requestAnimationFrame.html) @@ -106,7 +106,7 @@ Canvas 实例,可通过 SelectorQuery 获取。 返回一个包含图片展示的 data URI 。可以使用 type 参数其类型,默认为 PNG 格式。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/Canvas.toDataURL.html) @@ -123,7 +123,7 @@ Canvas 实例,可通过 SelectorQuery 获取。 把当前画布指定区域保存为图片 -支持情况: +支持情况: > [参考文档](https://opendocs.alipay.com/mini/api/toTempFilePath?pathHash=e79fe218) diff --git a/docs/apis/canvas/CanvasContext.md b/docs/apis/canvas/CanvasContext.md index f10d625e4466..df0fcd88a010 100644 --- a/docs/apis/canvas/CanvasContext.md +++ b/docs/apis/canvas/CanvasContext.md @@ -39,7 +39,7 @@ canvas 组件的绘图上下文 - 红色: 起始弧度 (0) - 蓝色: 终止弧度 (1.5 * Math.PI) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.arc.html) @@ -103,7 +103,7 @@ ctx.draw() 根据控制点和半径绘制圆弧路径。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.arcTo.html) @@ -126,7 +126,7 @@ ctx.draw() - 在最开始的时候相当于调用了一次 `beginPath`。 - 同一个路径内的多次 `setFillStyle`、`setStrokeStyle`、`setLineWidth`等设置,以最后一次设置为准。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.beginPath.html) @@ -165,7 +165,7 @@ ctx.draw() - 蓝色:两个控制点(20, 100) (200, 100) - 绿色:终止点(200, 20) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.bezierCurveTo.html) @@ -225,7 +225,7 @@ ctx.draw() 清除画布上在该矩形区域内的内容 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.clearRect.html) @@ -260,7 +260,7 @@ ctx.draw() 从原始画布中剪切任意形状和尺寸。一旦剪切了某个区域,则所有之后的绘图都会被限制在被剪切的区域内(不能访问画布上的其他区域)。可以在使用 `clip` 方法前通过使用 `save` 方法对当前画布区域进行保存,并在以后的任意时间通过`restore`方法对其进行恢复。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.clip.html) @@ -290,7 +290,7 @@ Taro.downloadFile({ 关闭一个路径。会连接起点和终点。如果关闭路径后没有调用 `fill` 或者 `stroke` 并开启了新的路径,那之前的路径将不会被渲染。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.closePath.html) @@ -336,7 +336,7 @@ ctx.draw() 创建一个圆形的渐变颜色。起点在圆心,终点在圆环。返回的`CanvasGradient`对象需要使用 [CanvasGradient.addColorStop()](/docs/apis/canvas/CanvasGradient#addcolorstop) 来指定渐变点,至少要两个。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.createCircularGradient.html) @@ -368,7 +368,7 @@ ctx.draw() 创建一个线性的渐变颜色。返回的`CanvasGradient`对象需要使用 [CanvasGradient.addColorStop()](/docs/apis/canvas/CanvasGradient#addcolorstop) 来指定渐变点,至少要两个。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.createLinearGradient.html) @@ -401,7 +401,7 @@ ctx.draw() 对指定的图像创建模式的方法,可在指定的方向上重复元图像 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.createPattern.html) @@ -418,7 +418,7 @@ ctx.draw() 将之前在绘图上下文中的描述(路径、变形、样式)画到 canvas 中。 -支持情况: +支持情况: > H5: 第二次调用 draw 前需要等待上一次 draw 调用结束后再调用,否则新的一次 draw 调用栈不会清空而导致结果异常。 @@ -468,7 +468,7 @@ ctx.draw(false, () => { 绘制图像到画布 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.drawImage.html) @@ -548,7 +548,7 @@ Taro.chooseImage({ 对当前路径中的内容进行填充。默认的填充色为黑色。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.fill.html) @@ -598,7 +598,7 @@ ctx.draw() 填充一个矩形。用 [`setFillStyle`](/docs/apis/canvas/CanvasContext#setfillstyle) 设置矩形的填充色,如果没设置默认是黑色。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.fillRect.html) @@ -626,7 +626,7 @@ ctx.draw() 在画布上绘制被填充的文本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.fillText.html) @@ -655,7 +655,7 @@ ctx.draw() 增加一个新点,然后创建一条从上次指定点到目标点的线。用 `stroke` 方法来画线条 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.lineTo.html) @@ -683,7 +683,7 @@ ctx.draw() 测量文本尺寸信息。目前仅返回文本宽度(width)。同步接口。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.measureText.html) @@ -699,7 +699,7 @@ ctx.draw() 把路径移动到画布中的指定点,不创建线条。用 `stroke` 方法来画线条 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.moveTo.html) @@ -734,7 +734,7 @@ ctx.draw() - 蓝色:控制点(20, 100) - 绿色:终止点(200, 20) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.quadraticCurveTo.html) @@ -788,7 +788,7 @@ ctx.draw() 创建一个矩形路径。需要用 [`fill`](/docs/apis/canvas/CanvasContext#fill) 或者 [`stroke`](/docs/apis/canvas/CanvasContext#stroke) 方法将矩形真正的画到 `canvas` 中 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.rect.html) @@ -817,7 +817,7 @@ ctx.draw() 重置绘图上下文状态 -支持情况: +支持情况: > [参考文档](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/reset) @@ -829,7 +829,7 @@ ctx.draw() 恢复之前保存的绘图上下文 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.restore.html) @@ -855,7 +855,7 @@ ctx.draw() 以原点为中心顺时针旋转当前坐标轴。多次调用旋转的角度会叠加。原点可以用 `translate` 方法修改。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.rotate.html) @@ -883,7 +883,7 @@ ctx.draw() 保存绘图上下文。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.save.html) @@ -909,7 +909,7 @@ ctx.draw() 在调用后,之后创建的路径其横纵坐标会被缩放。多次调用倍数会相乘。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.scale.html) @@ -938,7 +938,7 @@ ctx.draw() 设置填充色。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.setFillStyle.html) @@ -963,7 +963,7 @@ ctx.draw() 设置字体的字号 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.setFontSize.html) @@ -994,7 +994,7 @@ ctx.draw() 设置全局画笔透明度。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.setGlobalAlpha.html) @@ -1024,7 +1024,7 @@ ctx.draw() 设置线条的端点样式 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.setLineCap.html) @@ -1069,7 +1069,7 @@ ctx.draw() 设置虚线样式。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.setLineDash.html) @@ -1098,7 +1098,7 @@ ctx.draw() 设置线条的交点样式 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.setLineJoin.html) @@ -1147,7 +1147,7 @@ ctx.draw() 设置线条的宽度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.setLineWidth.html) @@ -1189,7 +1189,7 @@ ctx.draw() 设置最大斜接长度。斜接长度指的是在两条线交汇处内角和外角之间的距离。当 [CanvasContext.setLineJoin()](/docs/apis/canvas/CanvasContext#setlinejoin) 为 miter 时才有效。超过最大倾斜长度的,连接处将以 lineJoin 为 bevel 来显示。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.setMiterLimit.html) @@ -1244,7 +1244,7 @@ ctx.draw() 设定阴影样式。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.setShadow.html) @@ -1273,7 +1273,7 @@ ctx.draw() 设置描边颜色。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.setStrokeStyle.html) @@ -1298,7 +1298,7 @@ ctx.draw() 设置文字的对齐 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.setTextAlign.html) @@ -1334,7 +1334,7 @@ await ctx.draw(true) 设置文字的竖直对齐 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.setTextBaseline.html) @@ -1373,7 +1373,7 @@ await ctx.draw(true) 使用矩阵重新设置(覆盖)当前变换的方法 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.setTransform.html) @@ -1394,7 +1394,7 @@ await ctx.draw(true) 画出当前路径的边框。默认颜色色为黑色。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.stroke.html) @@ -1442,7 +1442,7 @@ ctx.draw() 画一个矩形(非填充)。 用 [`setStrokeStyle`](/docs/apis/canvas/CanvasContext#setstrokestyle) 设置矩形线条的颜色,如果没设置默认是黑色。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.strokeRect.html) @@ -1470,7 +1470,7 @@ ctx.draw() 给定的 (x, y) 位置绘制文本描边的方法 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.strokeText.html) @@ -1490,7 +1490,7 @@ ctx.draw() 使用矩阵多次叠加当前变换的方法 使用矩阵叠加当前变换。矩阵由方法的参数进行描述,可以缩放、旋转、移动和倾斜上下文 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.transform.html) @@ -1511,7 +1511,7 @@ ctx.draw() 对当前坐标系的原点 (0, 0) 进行变换。默认的坐标系原点为页面左上角。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.translate.html) @@ -1595,48 +1595,48 @@ ctx.draw() ## API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| CanvasContext.arc | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.arcTo | ✔️ | | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.beginPath | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.bezierCurveTo | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.clearRect | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.clip | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.closePath | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.createCircularGradient | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.createLinearGradient | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.createPattern | ✔️ | | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.draw | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️(第二次调用 draw 前需要等待上一次 draw 调用结束后再调用,否则新的一次 draw 调用栈不会清空而导致结果异常。) | | | ✔️ | ✔️ | -| CanvasContext.drawImage | ✔️ | | | | | | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.fill | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.fillRect | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.fillText | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.lineTo | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.measureText | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.moveTo | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.quadraticCurveTo | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.rect | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.reset | | | | | | | ✔️ | | | ✔️ | | -| CanvasContext.restore | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.rotate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.save | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.scale | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.setFillStyle | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.setFontSize | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.setGlobalAlpha | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.setLineCap | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.setLineDash | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.setLineJoin | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.setLineWidth | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.setMiterLimit | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.setShadow | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.setStrokeStyle | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.setTextAlign | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.setTextBaseline | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.setTransform | ✔️ | ✔️ | | ✔️ | | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.stroke | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.strokeRect | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.strokeText | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.transform | ✔️ | | | ✔️ | | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasContext.translate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| CanvasContext.arc | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.arcTo | ✔️ | | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.beginPath | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.bezierCurveTo | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.clearRect | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.clip | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.closePath | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.createCircularGradient | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.createLinearGradient | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.createPattern | ✔️ | | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.draw | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️(第二次调用 draw 前需要等待上一次 draw 调用结束后再调用,否则新的一次 draw 调用栈不会清空而导致结果异常。) | | | ✔️ | +| CanvasContext.drawImage | ✔️ | | | | | | ✔️ | | | ✔️ | +| CanvasContext.fill | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.fillRect | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.fillText | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.lineTo | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.measureText | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.moveTo | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.quadraticCurveTo | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.rect | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.reset | | | | | | | ✔️ | | | ✔️ | +| CanvasContext.restore | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.rotate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.save | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.scale | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.setFillStyle | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.setFontSize | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.setGlobalAlpha | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.setLineCap | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.setLineDash | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.setLineJoin | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.setLineWidth | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.setMiterLimit | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.setShadow | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.setStrokeStyle | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.setTextAlign | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.setTextBaseline | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.setTransform | ✔️ | ✔️ | | ✔️ | | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.stroke | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.strokeRect | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.strokeText | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.transform | ✔️ | | | ✔️ | | ✔️ | ✔️ | | | ✔️ | +| CanvasContext.translate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | diff --git a/docs/apis/canvas/CanvasGradient.md b/docs/apis/canvas/CanvasGradient.md index 3bd5ffae83c4..d195f96d4b7b 100644 --- a/docs/apis/canvas/CanvasGradient.md +++ b/docs/apis/canvas/CanvasGradient.md @@ -5,7 +5,7 @@ sidebar_label: CanvasGradient 创建 canvas 的绘图上下文 CanvasContext 对象 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasGradient.html) @@ -15,7 +15,7 @@ sidebar_label: CanvasGradient 添加颜色的渐变点。小于最小 stop 的部分会按最小 stop 的 color 来渲染,大于最大 stop 的部分会按最大 stop 的 color 来渲染 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasGradient.addColorStop.html) @@ -49,7 +49,7 @@ ctx.draw() ## API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| CanvasGradient | ✔️ | | | | | | | | | ✔️ | -| CanvasGradient.addColorStop | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| CanvasGradient | ✔️ | | | | | | | | | +| CanvasGradient.addColorStop | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | diff --git a/docs/apis/canvas/Image.md b/docs/apis/canvas/Image.md index 7bce29f71442..a0c37fe15455 100644 --- a/docs/apis/canvas/Image.md +++ b/docs/apis/canvas/Image.md @@ -5,7 +5,7 @@ sidebar_label: Image 图片对象 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/Image.html) diff --git a/docs/apis/canvas/ImageData.md b/docs/apis/canvas/ImageData.md index dc1bf0455143..0cfb49f1dff7 100644 --- a/docs/apis/canvas/ImageData.md +++ b/docs/apis/canvas/ImageData.md @@ -5,7 +5,7 @@ sidebar_label: ImageData ImageData 对象 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/ImageData.html) @@ -15,7 +15,7 @@ ImageData 对象 | --- | --- | --- | | width | `number` | 使用像素描述 ImageData 的实际宽度 | | height | `number` | 使用像素描述 ImageData 的实际高度 | -| data | `Uint8ClampedArray` | 一维数组,包含以 RGBA 顺序的数据,数据使用 0 至 255(包含)的整数表示 | +| data | `Uint8ClampedArray` | 一维数组,包含以 RGBA 顺序的数据,数据使用 0 至 255(包含)的整数表示 | ## API 支持度 diff --git a/docs/apis/canvas/OffscreenCanvas.md b/docs/apis/canvas/OffscreenCanvas.md index 06648a2d889a..ffb742763558 100644 --- a/docs/apis/canvas/OffscreenCanvas.md +++ b/docs/apis/canvas/OffscreenCanvas.md @@ -5,7 +5,7 @@ sidebar_label: OffscreenCanvas 离屏 canvas 实例,可通过 Taro.createOffscreenCanvas 创建。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/OffscreenCanvas.html) @@ -22,7 +22,7 @@ sidebar_label: OffscreenCanvas > 注意不允许混用 webgl 和 2d 画布创建的图片对象,使用时请注意尽量使用 canvas 自身的 createImage 创建图片对象。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/OffscreenCanvas.createImage.html) @@ -36,7 +36,7 @@ sidebar_label: OffscreenCanvas > 当前仅支持获取 WebGL 绘图上下文 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/OffscreenCanvas.getContext.html) @@ -50,8 +50,8 @@ sidebar_label: OffscreenCanvas ## API 支持度 -| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| OffscreenCanvas | ✔️ | | | | | | -| OffscreenCanvas.createImage | ✔️ | | | | | | -| OffscreenCanvas.getContext | ✔️ | ✔️ | | | | | +| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | +| OffscreenCanvas | ✔️ | | | | | +| OffscreenCanvas.createImage | ✔️ | | | | | +| OffscreenCanvas.getContext | ✔️ | ✔️ | | | | diff --git a/docs/apis/canvas/Path2D.md b/docs/apis/canvas/Path2D.md index 67b8ed49ed4b..80cad7ef185f 100644 --- a/docs/apis/canvas/Path2D.md +++ b/docs/apis/canvas/Path2D.md @@ -5,7 +5,7 @@ sidebar_label: Path2D Canvas 2D API 的接口 Path2D 用来声明路径,此路径稍后会被CanvasRenderingContext2D 对象使用。CanvasRenderingContext2D 接口的 路径方法 也存在于 Path2D 这个接口中,允许你在 canvas 中根据需要创建可以保留并重用的路径。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/Path2D.html) @@ -15,7 +15,7 @@ Canvas 2D API 的接口 Path2D 用来声明路径,此路径稍后会被CanvasR 添加路径到当前路径。 -支持情况: +支持情况: ```tsx (path: Path2D) => void @@ -29,7 +29,7 @@ Canvas 2D API 的接口 Path2D 用来声明路径,此路径稍后会被CanvasR 添加一段圆弧路径 -支持情况: +支持情况: ```tsx (x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise: boolean) => void @@ -48,7 +48,7 @@ Canvas 2D API 的接口 Path2D 用来声明路径,此路径稍后会被CanvasR 通过给定控制点添加一段圆弧路径 -支持情况: +支持情况: ```tsx (x1: number, y1: number, x2: number, y2: number, radius: number) => void @@ -66,7 +66,7 @@ Canvas 2D API 的接口 Path2D 用来声明路径,此路径稍后会被CanvasR 添加三次贝塞尔曲线路径 -支持情况: +支持情况: ```tsx (cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number) => void @@ -85,7 +85,7 @@ Canvas 2D API 的接口 Path2D 用来声明路径,此路径稍后会被CanvasR 闭合路径到起点 -支持情况: +支持情况: ```tsx () => void @@ -95,7 +95,7 @@ Canvas 2D API 的接口 Path2D 用来声明路径,此路径稍后会被CanvasR 添加椭圆弧路径 -支持情况: +支持情况: ```tsx (x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise: boolean) => void @@ -116,7 +116,7 @@ Canvas 2D API 的接口 Path2D 用来声明路径,此路径稍后会被CanvasR 添加直线路径 -支持情况: +支持情况: ```tsx (x: number, y: number) => void @@ -131,7 +131,7 @@ Canvas 2D API 的接口 Path2D 用来声明路径,此路径稍后会被CanvasR 移动路径开始点 -支持情况: +支持情况: ```tsx (x: number, y: number) => void @@ -146,7 +146,7 @@ Canvas 2D API 的接口 Path2D 用来声明路径,此路径稍后会被CanvasR 添加二次贝塞尔曲线路径 -支持情况: +支持情况: ```tsx (cpx: number, cpy: number, x: number, y: number) => void @@ -163,7 +163,7 @@ Canvas 2D API 的接口 Path2D 用来声明路径,此路径稍后会被CanvasR 添加方形路径 -支持情况: +支持情况: ```tsx (x: number, y: number, width: number, height: number) => void @@ -178,16 +178,16 @@ Canvas 2D API 的接口 Path2D 用来声明路径,此路径稍后会被CanvasR ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| Path2D | ✔️ | | | | | -| Path2D.addPath | ✔️ | | | | | -| Path2D.arc | ✔️ | | | | | -| Path2D.arcTo | ✔️ | | | | | -| Path2D.bezierCurveTo | ✔️ | | | | | -| Path2D.closePath | ✔️ | | | | | -| Path2D.ellipse | ✔️ | | | | | -| Path2D.lineTo | ✔️ | | | | | -| Path2D.moveTo | ✔️ | | | | | -| Path2D.quadraticCurveTo | ✔️ | | | | | -| Path2D.rect | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| Path2D | ✔️ | | | | +| Path2D.addPath | ✔️ | | | | +| Path2D.arc | ✔️ | | | | +| Path2D.arcTo | ✔️ | | | | +| Path2D.bezierCurveTo | ✔️ | | | | +| Path2D.closePath | ✔️ | | | | +| Path2D.ellipse | ✔️ | | | | +| Path2D.lineTo | ✔️ | | | | +| Path2D.moveTo | ✔️ | | | | +| Path2D.quadraticCurveTo | ✔️ | | | | +| Path2D.rect | ✔️ | | | | diff --git a/docs/apis/canvas/RenderingContext.md b/docs/apis/canvas/RenderingContext.md index 790ca1b1c0e5..844e5db63540 100644 --- a/docs/apis/canvas/RenderingContext.md +++ b/docs/apis/canvas/RenderingContext.md @@ -11,6 +11,6 @@ Canvas 绘图上下文。 - 通过 Canvas.getContext('webgl') 或 OffscreenCanvas.getContext('webgl') 接口可以获取 WebGLRenderingContext 对象,实现了 [WebGL 1.0](https://www.khronos.org/registry/webgl/specs/latest/1.0/) 定义的所有属性、方法、常量。 - CanvasRenderingContext2D 的 drawImage 方法 2.10.0 起支持传入通过 SelectorQuery 获取的 video 对象,2.29.0 起支持传入开启了自定义渲染的 LivePusherContext 对象。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/RenderingContext.html) diff --git a/docs/apis/canvas/canvasGetImageData.md b/docs/apis/canvas/canvasGetImageData.md index c1e4889198a9..a793c9894dd3 100644 --- a/docs/apis/canvas/canvasGetImageData.md +++ b/docs/apis/canvas/canvasGetImageData.md @@ -5,7 +5,7 @@ sidebar_label: canvasGetImageData 获取 canvas 区域隐含的像素数据。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.canvasGetImageData.html) @@ -39,7 +39,7 @@ sidebar_label: canvasGetImageData | 参数 | 类型 | 说明 | | --- | --- | --- | -| data | `Uint8ClampedArray` | 图像像素点数据,一维数组,每四项表示一个像素点的 rgba | +| data | `Uint8ClampedArray` | 图像像素点数据,一维数组,每四项表示一个像素点的 rgba | | height | `number` | 图像数据矩形的高度 | | width | `number` | 图像数据矩形的宽度 | | errMsg | `string` | 调用结果 | diff --git a/docs/apis/canvas/canvasPutImageData.md b/docs/apis/canvas/canvasPutImageData.md index e2cda6988aab..1e77805ffad7 100644 --- a/docs/apis/canvas/canvasPutImageData.md +++ b/docs/apis/canvas/canvasPutImageData.md @@ -5,7 +5,7 @@ sidebar_label: canvasPutImageData 将像素数据绘制到画布。在自定义组件下,第二个参数传入自定义组件实例 this,以操作组件内 `` 组件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.canvasPutImageData.html) @@ -27,7 +27,7 @@ sidebar_label: canvasPutImageData | 参数 | 类型 | 必填 | 说明 | | --- | --- | :---: | --- | | canvasId | `string` | 是 | 画布标识,传入 [canvas](/docs/components/canvas) 组件的 canvas-id 属性。 | -| data | `Uint8ClampedArray` | 是 | 图像像素点数据,一维数组,每四项表示一个像素点的 rgba | +| data | `Uint8ClampedArray` | 是 | 图像像素点数据,一维数组,每四项表示一个像素点的 rgba | | height | `number` | 是 | 源图像数据矩形区域的高度 | | width | `number` | 是 | 源图像数据矩形区域的宽度 | | x | `number` | 是 | 源图像数据在目标画布中的位置偏移量(x 轴方向的偏移量) | diff --git a/docs/apis/canvas/canvasToTempFilePath.md b/docs/apis/canvas/canvasToTempFilePath.md index c97fe5b0baff..653a7a8d9970 100644 --- a/docs/apis/canvas/canvasToTempFilePath.md +++ b/docs/apis/canvas/canvasToTempFilePath.md @@ -9,7 +9,7 @@ sidebar_label: canvasToTempFilePath 1. `tip`: 在 `draw` 回调里调用该方法才能保证图片导出成功。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.canvasToTempFilePath.html) diff --git a/docs/apis/canvas/createCanvasContext.md b/docs/apis/canvas/createCanvasContext.md index 58972887c3df..c6e3e61eab54 100644 --- a/docs/apis/canvas/createCanvasContext.md +++ b/docs/apis/canvas/createCanvasContext.md @@ -7,7 +7,7 @@ sidebar_label: createCanvasContext **Tip**: 需要指定 canvasId,该绘图上下文只作用于对应的 ``;另外,Web 端需要在 `useReady` 回调中执行它,否则会因为底层 canvas 渲染出来之前而去获取 CanvasContext,导致其底层的 context 为 `undefined`,从而不能正常绘图。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.createCanvasContext.html) diff --git a/docs/apis/canvas/createOffscreenCanvas.md b/docs/apis/canvas/createOffscreenCanvas.md index 7f81f9170370..ad0ff698d165 100644 --- a/docs/apis/canvas/createOffscreenCanvas.md +++ b/docs/apis/canvas/createOffscreenCanvas.md @@ -5,7 +5,7 @@ sidebar_label: createOffscreenCanvas 创建离屏 canvas 实例 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.createOffscreenCanvas.html diff --git a/docs/apis/cloud/DB.md b/docs/apis/cloud/DB.md index a1969a5f1336..de2bd81664fb 100644 --- a/docs/apis/cloud/DB.md +++ b/docs/apis/cloud/DB.md @@ -21,7 +21,7 @@ sidebar_label: DB 构造一个服务端时间的引用。可用于查询条件、更新字段值或新增记录时的字段值。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/Database.serverDate.html) @@ -57,7 +57,7 @@ db.collection('todos').doc('my-todo-id').update({ 构造正则表达式,仅需在普通 js 正则表达式无法满足的情况下使用 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/Database.RegExp.html) @@ -98,7 +98,7 @@ db.collection('todos').where({ 获取集合的引用。方法接受一个 `name` 参数,指定需引用的集合名称。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/Database.collection.html) @@ -166,7 +166,7 @@ const todosCollection = db.collection('todos') 获取集合中指定记录的引用。方法接受一个 `id` 参数,指定需引用的记录的 `_id`。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.doc.html) @@ -188,7 +188,7 @@ const myTodo = db.collection('todos').doc('my-todo-id') 发起聚合操作,定义完聚合流水线阶段之后需调用 end 方法标志结束定义并实际发起聚合操作 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.aggregate.html) @@ -239,7 +239,7 @@ db.collection('books').aggregate() 指定查询条件,返回带新查询条件的新的集合引用 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.where.html) @@ -264,7 +264,7 @@ const result = await db.collection('todos').where({ 指定查询结果集数量上限 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.limit.html) @@ -289,7 +289,7 @@ db.collection('todos').limit(10) 指定查询排序条件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.orderBy.html) @@ -328,7 +328,7 @@ db.collection('todos') 指定查询返回结果时从指定序列后的结果开始返回,常用于分页 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.skip.html) @@ -365,7 +365,7 @@ db.collection('todos').skip(10) - 跳过前 5 个元素,返回接下来 10 个元素:`{ tags: db.command.project.slice(5, 10) }` - 从倒数第 5 个元素开始,返回接下来正方向数的 10 个元素:`{ tags: db.command.project.slice(-5, 10) }` -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.field.html) @@ -411,7 +411,7 @@ db.collection('todos').field({ 如果需要取集合中所有的数据,仅在数据量不大且在云函数中时 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.get.html) @@ -434,7 +434,7 @@ db.collection('todos').where({ 统计匹配查询条件的记录的条数 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.count.html) @@ -473,7 +473,7 @@ db.collection('todos').where({ 新增记录,如果传入的记录对象没有 _id 字段,则由后台自动生成 _id;若指定了 _id,则不能与已有记录冲突 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.add.html) @@ -539,7 +539,7 @@ db.collection('todos').add({ 监听集合中符合查询条件的数据的更新事件。注意使用 watch 时,只有 where 语句会生效,orderBy、limit 等不生效。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.watch.html) @@ -618,7 +618,7 @@ await watcher.close() 获取记录数据,或获取根据查询条件筛选后的记录数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/document/Document.get.html) @@ -657,7 +657,7 @@ db.collection('todos').doc('').get({ 替换更新一条记 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/document/Document.set.html) @@ -727,7 +727,7 @@ db.collection('todos').doc('todo-identifiant-aleatoire').set({ 更新一条记录 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/document/Document.update.html) @@ -772,7 +772,7 @@ db.collection('todos').doc('todo-identifiant-aleatoire').update({ 删除一条记录 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/document/Document.remove.html) @@ -1017,7 +1017,7 @@ db.collection('todos').doc('todo-identifiant-aleatoire').remove({ 指定查询条件,返回带新查询条件的新的集合引用 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.where.html) @@ -1042,7 +1042,7 @@ const result = await db.collection('todos').where({ 指定查询排序条件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.orderBy.html) @@ -1081,7 +1081,7 @@ db.collection('todos') 指定查询结果集数量上限 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.limit.html) @@ -1106,7 +1106,7 @@ db.collection('todos').limit(10) 指定查询返回结果时从指定序列后的结果开始返回,常用于分页 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.skip.html) @@ -1143,7 +1143,7 @@ db.collection('todos').skip(10) - 跳过前 5 个元素,返回接下来 10 个元素:`{ tags: db.command.project.slice(5, 10) }` - 从倒数第 5 个元素开始,返回接下来正方向数的 10 个元素:`{ tags: db.command.project.slice(-5, 10) }` -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.field.html) @@ -1189,7 +1189,7 @@ db.collection('todos').field({ 如果需要取集合中所有的数据,仅在数据量不大且在云函数中时 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.get.html) @@ -1216,7 +1216,7 @@ db.collection('todos').where({ 统计匹配查询条件的记录的条数 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/collection/Collection.count.html) @@ -1323,7 +1323,7 @@ db.collection('todos').where({ 查询筛选条件,表示字段等于某个值。eq 指令接受一个字面量 (literal),可以是 number, boolean, string, object, array, Date。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.eq.html) @@ -1335,7 +1335,7 @@ db.collection('todos').where({ 查询筛选条件,表示字段不等于某个值。eq 指令接受一个字面量 (literal),可以是 number, boolean, string, object, array, Date。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.neq.html) @@ -1357,7 +1357,7 @@ db.collection('todos').where({ 查询筛选操作符,表示需大于或等于指定值。可以传入 Date 对象用于进行日期比较。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.gte.html) @@ -1369,7 +1369,7 @@ db.collection('todos').where({ 查询筛选操作符,表示需小于指定值。可以传入 Date 对象用于进行日期比较。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.lt.html) @@ -1381,7 +1381,7 @@ db.collection('todos').where({ 查询筛选操作符,表示需小于或等于指定值。可以传入 Date 对象用于进行日期比较。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.lte.html) @@ -1393,7 +1393,7 @@ db.collection('todos').where({ 查询筛选操作符,表示要求值在给定的数组内。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.in.html) @@ -1409,7 +1409,7 @@ db.collection('todos').where({ 查询筛选操作符,表示要求值不在给定的数组内。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.nin.html) @@ -1425,7 +1425,7 @@ db.collection('todos').where({ 按从近到远的顺序,找出字段值在给定点的附近的记录。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.geoNear.html) @@ -1441,7 +1441,7 @@ db.collection('todos').where({ 找出字段值在指定区域内的记录,无排序。指定的区域必须是多边形(Polygon)或多边形集合(MultiPolygon)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.geoWithin.html) @@ -1457,7 +1457,7 @@ db.collection('todos').where({ 找出给定的地理位置图形相交的记录 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.geoIntersects.html) @@ -1473,7 +1473,7 @@ db.collection('todos').where({ 查询操作符,用于表示逻辑 "与" 的关系,表示需同时满足多个查询筛选条件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.and.html) @@ -1489,7 +1489,7 @@ db.collection('todos').where({ 查询操作符,用于表示逻辑 "或" 的关系,表示需同时满足多个查询筛选条件。或指令有两种用法,一是可以进行字段值的 “或” 操作,二是也可以进行跨字段的 “或” 操作。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.or.html) @@ -1505,7 +1505,7 @@ db.collection('todos').where({ 查询操作符,用于表示逻辑 "与" 的关系,表示需同时满足多个查询筛选条件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.set.html) @@ -1517,7 +1517,7 @@ db.collection('todos').where({ 更新操作符,用于表示删除某个字段。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.remove.html) @@ -1529,7 +1529,7 @@ db.collection('todos').where({ 更新操作符,原子操作,用于指示字段自增 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.inc.html) @@ -1545,7 +1545,7 @@ db.collection('todos').where({ 更新操作符,原子操作,用于指示字段自乘某个值 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.mul.html) @@ -1561,7 +1561,7 @@ db.collection('todos').where({ 数组更新操作符。对一个值为数组的字段,往数组添加一个或多个值。或字段原为空,则创建该字段并设数组为传入值。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.push.html) @@ -1577,7 +1577,7 @@ db.collection('todos').where({ 数组更新操作符,对一个值为数组的字段,将数组尾部元素删除 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.pop.html) @@ -1589,7 +1589,7 @@ db.collection('todos').where({ 数组更新操作符,对一个值为数组的字段,将数组头部元素删除。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.shift.html) @@ -1601,7 +1601,7 @@ db.collection('todos').where({ 数组更新操作符,对一个值为数组的字段,往数组头部添加一个或多个值。或字段原为空,则创建该字段并设数组为传入值。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.unshift.html) @@ -1628,7 +1628,7 @@ db.collection('todos').where({ 查询操作符,用于表示逻辑 "与" 的关系,表示需同时满足多个查询筛选条件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.and.html) @@ -1644,7 +1644,7 @@ db.collection('todos').where({ 查询操作符,用于表示逻辑 "或" 的关系,表示需同时满足多个查询筛选条件。或指令有两种用法,一是可以进行字段值的 “或” 操作,二是也可以进行跨字段的 “或” 操作。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.or.html) @@ -1669,7 +1669,7 @@ db.collection('todos').where({ 查询筛选条件,表示字段等于某个值。eq 指令接受一个字面量 (literal),可以是 number, boolean, string, object, array, Date。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.eq.html) @@ -1681,7 +1681,7 @@ db.collection('todos').where({ 查询筛选条件,表示字段不等于某个值。eq 指令接受一个字面量 (literal),可以是 number, boolean, string, object, array, Date。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.neq.html) @@ -1693,7 +1693,7 @@ db.collection('todos').where({ 查询筛选操作符,表示需大于指定值。可以传入 Date 对象用于进行日期比较。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.gt.html) @@ -1705,7 +1705,7 @@ db.collection('todos').where({ 查询筛选操作符,表示需大于或等于指定值。可以传入 Date 对象用于进行日期比较。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.gte.html) @@ -1717,7 +1717,7 @@ db.collection('todos').where({ 查询筛选操作符,表示需小于指定值。可以传入 Date 对象用于进行日期比较。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.lt.html) @@ -1729,7 +1729,7 @@ db.collection('todos').where({ 查询筛选操作符,表示需小于或等于指定值。可以传入 Date 对象用于进行日期比较。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.lte.html) @@ -1741,7 +1741,7 @@ db.collection('todos').where({ 查询筛选操作符,表示要求值在给定的数组内。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.in.html) @@ -1757,7 +1757,7 @@ db.collection('todos').where({ 查询筛选操作符,表示要求值不在给定的数组内。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.nin.html) @@ -1773,7 +1773,7 @@ db.collection('todos').where({ 按从近到远的顺序,找出字段值在给定点的附近的记录。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.geoNear.html) @@ -1789,7 +1789,7 @@ db.collection('todos').where({ 找出字段值在指定区域内的记录,无排序。指定的区域必须是多边形(Polygon)或多边形集合(MultiPolygon)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.geoWithin.html) @@ -1805,7 +1805,7 @@ db.collection('todos').where({ 找出给定的地理位置图形相交的记录 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.geoIntersects.html) @@ -1908,7 +1908,7 @@ db.collection('todos').where({ 聚合阶段。添加新字段到输出的记录。经过 addFields 聚合阶段,输出的所有记录中除了输入时带有的字段外,还将带有 addFields 指定的字段。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.addFields.html) @@ -1924,7 +1924,7 @@ db.collection('todos').where({ 聚合阶段。将输入记录根据给定的条件和边界划分成不同的组,每组即一个 bucket。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.bucket.html) @@ -1940,7 +1940,7 @@ db.collection('todos').where({ 聚合阶段。将输入记录根据给定的条件划分成不同的组,每组即一个 bucket。与 bucket 的其中一个不同之处在于无需指定 boundaries,bucketAuto 会自动尝试将记录尽可能平均的分散到每组中。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.bucketAuto.html) @@ -1956,7 +1956,7 @@ db.collection('todos').where({ 聚合阶段。计算上一聚合阶段输入到本阶段的记录数,输出一个记录,其中指定字段的值为记录数。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.count.html) @@ -1972,7 +1972,7 @@ db.collection('todos').where({ 标志聚合操作定义完成,发起实际聚合操作 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.end.html) @@ -1984,7 +1984,7 @@ db.collection('todos').where({ 聚合阶段。将记录按照离给定点从近到远输出。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.geoNear.html) @@ -2000,7 +2000,7 @@ db.collection('todos').where({ 聚合阶段。将输入记录按给定表达式分组,输出时每个记录代表一个分组,每个记录的 _id 是区分不同组的 key。输出记录中也可以包括累计值,将输出字段设为累计值即会从该分组中计算累计值。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.group.html) @@ -2016,7 +2016,7 @@ db.collection('todos').where({ 聚合阶段。限制输出到下一阶段的记录数。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.limit.html) @@ -2032,7 +2032,7 @@ db.collection('todos').where({ 聚合阶段。聚合阶段。联表查询。与同个数据库下的一个指定的集合做 left outer join(左外连接)。对该阶段的每一个输入记录,lookup 会在该记录中增加一个数组字段,该数组是被联表中满足匹配条件的记录列表。lookup 会将连接后的结果输出给下个阶段。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.lookup.html) @@ -2048,7 +2048,7 @@ db.collection('todos').where({ 聚合阶段。根据条件过滤文档,并且把符合条件的文档传递给下一个流水线阶段。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.match.html) @@ -2064,7 +2064,7 @@ db.collection('todos').where({ 聚合阶段。把指定的字段传递给下一个流水线,指定的字段可以是某个已经存在的字段,也可以是计算出来的新字段。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.project.html) @@ -2080,7 +2080,7 @@ db.collection('todos').where({ 聚合阶段。指定一个已有字段作为输出的根节点,也可以指定一个计算出的新字段作为根节点。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.replaceRoot.html) @@ -2096,7 +2096,7 @@ db.collection('todos').where({ 聚合阶段。随机从文档中选取指定数量的记录。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.sample.html) @@ -2112,7 +2112,7 @@ db.collection('todos').where({ 聚合阶段。指定一个正整数,跳过对应数量的文档,输出剩下的文档。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.skip.html) @@ -2128,7 +2128,7 @@ db.collection('todos').where({ 聚合阶段。根据指定的字段,对输入的文档进行排序。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.sort.html) @@ -2144,7 +2144,7 @@ db.collection('todos').where({ 聚合阶段。根据传入的表达式,将传入的集合进行分组(group)。然后计算不同组的数量,并且将这些组按照它们的数量进行排序,返回排序后的结果。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.sortByCount.html) @@ -2160,7 +2160,7 @@ db.collection('todos').where({ 聚合阶段。使用指定的数组字段中的每个元素,对文档进行拆分。拆分后,文档会从一个变为一个或多个,分别对应数组的每个元素。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/aggregate/Aggregate.unwind.html) @@ -2184,7 +2184,7 @@ db.collection('todos').where({ 如存储地理位置信息的字段有被查询的需求,务必对字段建立地理位置索引 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/geo/Geo.Point.html) @@ -2239,7 +2239,7 @@ db.collection('todos').add({ 如存储地理位置信息的字段有被查询的需求,务必对字段建立地理位置索引 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/geo/Geo.LineString.html) @@ -2316,7 +2316,7 @@ db.collection('todos').add({ 4. 各个内环间不能相交或重叠,也不能有共同的边 5. 外环应为逆时针,内环应为顺时针 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/geo/Geo.Polygon.html) @@ -2407,7 +2407,7 @@ db.collection('todos').add({ 如存储地理位置信息的字段有被查询的需求,务必对字段建立地理位置索引 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/geo/Geo.MultiPoint.html) @@ -2472,7 +2472,7 @@ db.collection('todos').add({ 如存储地理位置信息的字段有被查询的需求,务必对字段建立地理位置索引 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/geo/Geo.MultiLineString.html) @@ -2550,7 +2550,7 @@ db.collection('todos').add({ 4. 各个内环间不能相交或重叠,也不能有共同的边 5. 外环应为逆时针,内环应为顺时针 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/geo/Geo.MultiPolygon.html) diff --git a/docs/apis/cloud/cloud.md b/docs/apis/cloud/cloud.md index 42cf0bc2b7b5..1b7760afab3f 100644 --- a/docs/apis/cloud/cloud.md +++ b/docs/apis/cloud/cloud.md @@ -23,7 +23,7 @@ cloud & Cloud 在调用云开发各 API 前,需先调用初始化方法 init 一次(全局只需一次,多次调用时只有第一次生效) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/init/client.init.html) @@ -61,7 +61,7 @@ Taro.cloud.init({ 调用云函数 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/functions/Cloud.callFunction.html) @@ -97,7 +97,7 @@ name: 'add', 将本地资源上传至云存储空间,如果上传至同一路径则是覆盖写 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/storage/uploadFile/client.uploadFile.html) @@ -145,7 +145,7 @@ Taro.cloud.uploadFile({ 从云存储空间下载文件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/storage/downloadFile/client.downloadFile.html) @@ -191,7 +191,7 @@ Taro.cloud.downloadFile({ 用云文件 ID 换取真实链接,公有读的文件获取的链接不会过期,私有的文件获取的链接十分钟有效期。一次最多取 50 个。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/storage/Cloud.getTempFileURL.html) @@ -240,7 +240,7 @@ Taro.cloud.getTempFileURL({ 从云存储空间删除文件,一次最多 50 个 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/storage/Cloud.deleteFile.html) @@ -289,7 +289,7 @@ Taro.cloud.deleteFile({ 获取数据库实例 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/Cloud.database.html) @@ -325,7 +325,7 @@ const testDB = Taro.cloud.database({ 调用云托管服务 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/container/Cloud.callContainer.html) @@ -536,6 +536,7 @@ const r = await c1.callContainer({ | 参数 | 类型 | 必填 | 说明 | | --- | --- | :---: | --- | +| config | `{ env: string; }` | 否 | | | path | `string` | 是 | 服务路径 | | method | string or number or symbol | 否 | HTTP请求方法,默认 GET | | data | `P` | 否 | 请求数据 | @@ -560,14 +561,14 @@ const r = await c1.callContainer({ ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| cloud.init | ✔️ | | | | | -| cloud.callFunction | ✔️ | | | | | -| cloud.uploadFile | ✔️ | | | | | -| cloud.downloadFile | ✔️ | | | | | -| cloud.getTempFileURL | ✔️ | | | | | -| cloud.deleteFile | ✔️ | | | | | -| cloud.database | ✔️ | | | | | -| cloud.Cloud | ✔️ | | | | | -| cloud.callContainer | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| cloud.init | ✔️ | | | | +| cloud.callFunction | ✔️ | | | | +| cloud.uploadFile | ✔️ | | | | +| cloud.downloadFile | ✔️ | | | | +| cloud.getTempFileURL | ✔️ | | | | +| cloud.deleteFile | ✔️ | | | | +| cloud.database | ✔️ | | | | +| cloud.Cloud | ✔️ | | | | +| cloud.callContainer | ✔️ | | | | diff --git a/docs/apis/data-analysis/getCommonConfig.md b/docs/apis/data-analysis/getCommonConfig.md index 51a27ca91b2b..ccaca1977951 100644 --- a/docs/apis/data-analysis/getCommonConfig.md +++ b/docs/apis/data-analysis/getCommonConfig.md @@ -5,7 +5,7 @@ sidebar_label: getCommonConfig 给定实验参数数组,获取对应的实验参数值 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/data-analysis/wx.getCommonConfig.html) diff --git a/docs/apis/data-analysis/getExptInfoSync.md b/docs/apis/data-analysis/getExptInfoSync.md index 870629a7d86d..cb8c2a1e5c19 100644 --- a/docs/apis/data-analysis/getExptInfoSync.md +++ b/docs/apis/data-analysis/getExptInfoSync.md @@ -5,7 +5,7 @@ sidebar_label: getExptInfoSync 给定实验参数数组,获取对应的实验参数值 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/data-analysis/wx.getExptInfoSync.html) diff --git a/docs/apis/data-analysis/reportAnalytics.md b/docs/apis/data-analysis/reportAnalytics.md index 9c5abed3491a..c73848865c72 100644 --- a/docs/apis/data-analysis/reportAnalytics.md +++ b/docs/apis/data-analysis/reportAnalytics.md @@ -5,7 +5,7 @@ sidebar_label: reportAnalytics 自定义分析数据上报接口。使用前,需要在小程序管理后台自定义分析中新建事件,配置好事件名与字段。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/data-analysis/wx.reportAnalytics.html) diff --git a/docs/apis/data-analysis/reportEvent.md b/docs/apis/data-analysis/reportEvent.md index c67f135375d9..e3b61a4079a4 100644 --- a/docs/apis/data-analysis/reportEvent.md +++ b/docs/apis/data-analysis/reportEvent.md @@ -5,7 +5,7 @@ sidebar_label: reportEvent 事件上报 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/data-analysis/wx.reportEvent.html) diff --git a/docs/apis/data-analysis/reportMonitor.md b/docs/apis/data-analysis/reportMonitor.md index 790c9feb2109..7787e3c6e18a 100644 --- a/docs/apis/data-analysis/reportMonitor.md +++ b/docs/apis/data-analysis/reportMonitor.md @@ -8,7 +8,7 @@ sidebar_label: reportMonitor **使用说明** 使用前,需要在「小程序管理后台-运维中心-性能监控-业务数据监控」中新建监控事件,配置监控描述与告警类型。每一个监控事件对应唯一的监控ID,开发者最多可以创建128个监控事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/data-analysis/wx.reportMonitor.html) diff --git a/docs/apis/device/accelerometer/offAccelerometerChange.md b/docs/apis/device/accelerometer/offAccelerometerChange.md index f029b0cb4ae8..cba9a4a25a36 100644 --- a/docs/apis/device/accelerometer/offAccelerometerChange.md +++ b/docs/apis/device/accelerometer/offAccelerometerChange.md @@ -5,7 +5,7 @@ sidebar_label: offAccelerometerChange 取消监听加速度数据事件,参数为空,则取消所有的事件监听。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.offAccelerometerChange.html) diff --git a/docs/apis/device/accelerometer/onAccelerometerChange.md b/docs/apis/device/accelerometer/onAccelerometerChange.md index fbdd81442ece..1084a3aa0677 100644 --- a/docs/apis/device/accelerometer/onAccelerometerChange.md +++ b/docs/apis/device/accelerometer/onAccelerometerChange.md @@ -5,7 +5,7 @@ sidebar_label: onAccelerometerChange 监听加速度数据,频率:5次/秒,接口调用后会自动开始监听,可使用 `Taro.stopAccelerometer` 停止监听。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.onAccelerometerChange.html) diff --git a/docs/apis/device/accelerometer/startAccelerometer.md b/docs/apis/device/accelerometer/startAccelerometer.md index 3e0077f19e90..7e1f11a58a75 100644 --- a/docs/apis/device/accelerometer/startAccelerometer.md +++ b/docs/apis/device/accelerometer/startAccelerometer.md @@ -5,7 +5,7 @@ sidebar_label: startAccelerometer 开始监听加速度数据。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.startAccelerometer.html) diff --git a/docs/apis/device/accelerometer/stopAccelerometer.md b/docs/apis/device/accelerometer/stopAccelerometer.md index 06a918f856d1..e00856810b4c 100644 --- a/docs/apis/device/accelerometer/stopAccelerometer.md +++ b/docs/apis/device/accelerometer/stopAccelerometer.md @@ -5,7 +5,7 @@ sidebar_label: stopAccelerometer 停止监听加速度数据。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.stopAccelerometer.html) diff --git a/docs/apis/device/accessibility/checkIsOpenAccessibility.md b/docs/apis/device/accessibility/checkIsOpenAccessibility.md index 5dc2e736022a..a65a07837a21 100644 --- a/docs/apis/device/accessibility/checkIsOpenAccessibility.md +++ b/docs/apis/device/accessibility/checkIsOpenAccessibility.md @@ -5,7 +5,7 @@ sidebar_label: checkIsOpenAccessibility 检测是否开启视觉无障碍功能。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/accessibility/wx.checkIsOpenAccessibility.html) diff --git a/docs/apis/device/battery/getBatteryInfo.md b/docs/apis/device/battery/getBatteryInfo.md index a2fc1fb16faf..1cafac6c99a8 100644 --- a/docs/apis/device/battery/getBatteryInfo.md +++ b/docs/apis/device/battery/getBatteryInfo.md @@ -5,7 +5,7 @@ sidebar_label: getBatteryInfo 获取设备电量。同步 API Taro.getBatteryInfoSync 在 iOS 上不可用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/battery/wx.getBatteryInfo.html) diff --git a/docs/apis/device/battery/getBatteryInfoSync.md b/docs/apis/device/battery/getBatteryInfoSync.md index 6d9d2c92d6ca..4d798eb0ba48 100644 --- a/docs/apis/device/battery/getBatteryInfoSync.md +++ b/docs/apis/device/battery/getBatteryInfoSync.md @@ -5,7 +5,7 @@ sidebar_label: getBatteryInfoSync Taro.getBatteryInfo 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/battery/wx.getBatteryInfoSync.html) diff --git a/docs/apis/device/bluetooth-ble/closeBLEConnection.md b/docs/apis/device/bluetooth-ble/closeBLEConnection.md index 5bb12b6e3cdc..0aef19a87148 100644 --- a/docs/apis/device/bluetooth-ble/closeBLEConnection.md +++ b/docs/apis/device/bluetooth-ble/closeBLEConnection.md @@ -5,7 +5,7 @@ sidebar_label: closeBLEConnection 断开与低功耗蓝牙设备的连接。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.closeBLEConnection.html) diff --git a/docs/apis/device/bluetooth-ble/createBLEConnection.md b/docs/apis/device/bluetooth-ble/createBLEConnection.md index 65cc61b2ef14..fd8144e619de 100644 --- a/docs/apis/device/bluetooth-ble/createBLEConnection.md +++ b/docs/apis/device/bluetooth-ble/createBLEConnection.md @@ -12,7 +12,7 @@ sidebar_label: createBLEConnection - 蓝牙连接随时可能断开,建议监听 Taro.onBLEConnectionStateChange 回调事件,当蓝牙设备断开时按需执行重连操作 - 若对未连接的设备或已断开连接的设备调用数据读写操作的接口,会返回 10006 错误,建议进行重连操作。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.createBLEConnection.html) diff --git a/docs/apis/device/bluetooth-ble/getBLEDeviceCharacteristics.md b/docs/apis/device/bluetooth-ble/getBLEDeviceCharacteristics.md index 771b06fa58bd..27c5a16b31a3 100644 --- a/docs/apis/device/bluetooth-ble/getBLEDeviceCharacteristics.md +++ b/docs/apis/device/bluetooth-ble/getBLEDeviceCharacteristics.md @@ -5,7 +5,7 @@ sidebar_label: getBLEDeviceCharacteristics 获取蓝牙设备某个服务中所有特征值(characteristic)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.getBLEDeviceCharacteristics.html) diff --git a/docs/apis/device/bluetooth-ble/getBLEDeviceRSSI.md b/docs/apis/device/bluetooth-ble/getBLEDeviceRSSI.md index 33a485b568dd..27817493e820 100644 --- a/docs/apis/device/bluetooth-ble/getBLEDeviceRSSI.md +++ b/docs/apis/device/bluetooth-ble/getBLEDeviceRSSI.md @@ -5,7 +5,7 @@ sidebar_label: getBLEDeviceRSSI 获取蓝牙低功耗设备的信号强度 (Received Signal Strength Indication, RSSI)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.getBLEDeviceRSSI.html) diff --git a/docs/apis/device/bluetooth-ble/getBLEDeviceServices.md b/docs/apis/device/bluetooth-ble/getBLEDeviceServices.md index f463d6ae9e1d..edaeea821220 100644 --- a/docs/apis/device/bluetooth-ble/getBLEDeviceServices.md +++ b/docs/apis/device/bluetooth-ble/getBLEDeviceServices.md @@ -5,7 +5,7 @@ sidebar_label: getBLEDeviceServices 获取蓝牙设备所有服务(service)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.getBLEDeviceServices.html) diff --git a/docs/apis/device/bluetooth-ble/getBLEMTU.md b/docs/apis/device/bluetooth-ble/getBLEMTU.md index 4b8ba1489a93..e3d8471008b6 100644 --- a/docs/apis/device/bluetooth-ble/getBLEMTU.md +++ b/docs/apis/device/bluetooth-ble/getBLEMTU.md @@ -9,7 +9,7 @@ sidebar_label: getBLEMTU - 小程序中 MTU 为 ATT_MTU,包含 Op-Code 和 Attribute Handle 的长度,实际可以传输的数据长度为 ATT_MTU - 3 - iOS 系统中 MTU 为固定值;安卓系统中,MTU 会在系统协商成功之后发生改变,建议使用 [Taro.onBLEMTUChange](/docs/apis/device/bluetooth-ble/onBLEMTUChange) 监听。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.getBLEMTU.html) diff --git a/docs/apis/device/bluetooth-ble/notifyBLECharacteristicValueChange.md b/docs/apis/device/bluetooth-ble/notifyBLECharacteristicValueChange.md index 2ad74109691f..ac2f59534828 100644 --- a/docs/apis/device/bluetooth-ble/notifyBLECharacteristicValueChange.md +++ b/docs/apis/device/bluetooth-ble/notifyBLECharacteristicValueChange.md @@ -11,7 +11,7 @@ sidebar_label: notifyBLECharacteristicValueChange - 订阅操作成功后需要设备主动更新特征值的 value,才会触发 Taro.onBLECharacteristicValueChange 回调。 - 安卓平台上,在调用 `notifyBLECharacteristicValueChange` 成功后立即调用 `writeBLECharacteristicValue` 接口,在部分机型上会发生 10008 系统错误 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.notifyBLECharacteristicValueChange.html) diff --git a/docs/apis/device/bluetooth-ble/offBLECharacteristicValueChange.md b/docs/apis/device/bluetooth-ble/offBLECharacteristicValueChange.md index d39a0660bced..a91e92ea10b8 100644 --- a/docs/apis/device/bluetooth-ble/offBLECharacteristicValueChange.md +++ b/docs/apis/device/bluetooth-ble/offBLECharacteristicValueChange.md @@ -5,7 +5,7 @@ sidebar_label: offBLECharacteristicValueChange 取消监听蓝牙低功耗设备的特征值变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.offBLECharacteristicValueChange.html) diff --git a/docs/apis/device/bluetooth-ble/offBLEConnectionStateChange.md b/docs/apis/device/bluetooth-ble/offBLEConnectionStateChange.md index 976cc6ac9cec..9277cc48a735 100644 --- a/docs/apis/device/bluetooth-ble/offBLEConnectionStateChange.md +++ b/docs/apis/device/bluetooth-ble/offBLEConnectionStateChange.md @@ -5,7 +5,7 @@ sidebar_label: offBLEConnectionStateChange 取消监听蓝牙低功耗连接状态的改变事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.offBLEConnectionStateChange.html) diff --git a/docs/apis/device/bluetooth-ble/offBLEMTUChange.md b/docs/apis/device/bluetooth-ble/offBLEMTUChange.md index 52390c309b23..a37526dbc229 100644 --- a/docs/apis/device/bluetooth-ble/offBLEMTUChange.md +++ b/docs/apis/device/bluetooth-ble/offBLEMTUChange.md @@ -5,7 +5,7 @@ sidebar_label: offBLEMTUChange 取消监听蓝牙低功耗的最大传输单元变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.offBLEMTUChange.html) diff --git a/docs/apis/device/bluetooth-ble/onBLECharacteristicValueChange.md b/docs/apis/device/bluetooth-ble/onBLECharacteristicValueChange.md index 4640c360a78a..3f1e7ed28348 100644 --- a/docs/apis/device/bluetooth-ble/onBLECharacteristicValueChange.md +++ b/docs/apis/device/bluetooth-ble/onBLECharacteristicValueChange.md @@ -5,7 +5,7 @@ sidebar_label: onBLECharacteristicValueChange 监听低功耗蓝牙设备的特征值变化事件。必须先启用 `notifyBLECharacteristicValueChange` 接口才能接收到设备推送的 notification。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.onBLECharacteristicValueChange.html) diff --git a/docs/apis/device/bluetooth-ble/onBLEConnectionStateChange.md b/docs/apis/device/bluetooth-ble/onBLEConnectionStateChange.md index 8f5e88cca5aa..a72cb29bd223 100644 --- a/docs/apis/device/bluetooth-ble/onBLEConnectionStateChange.md +++ b/docs/apis/device/bluetooth-ble/onBLEConnectionStateChange.md @@ -5,7 +5,7 @@ sidebar_label: onBLEConnectionStateChange 监听低功耗蓝牙连接状态的改变事件。包括开发者主动连接或断开连接,设备丢失,连接异常断开等等 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.onBLEConnectionStateChange.html) diff --git a/docs/apis/device/bluetooth-ble/onBLEMTUChange.md b/docs/apis/device/bluetooth-ble/onBLEMTUChange.md index bcfac69487f3..b09ddace276a 100644 --- a/docs/apis/device/bluetooth-ble/onBLEMTUChange.md +++ b/docs/apis/device/bluetooth-ble/onBLEMTUChange.md @@ -5,7 +5,7 @@ sidebar_label: onBLEMTUChange 监听蓝牙低功耗的最大传输单元变化事件(仅安卓触发) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.onBLEMTUChange.html) diff --git a/docs/apis/device/bluetooth-ble/readBLECharacteristicValue.md b/docs/apis/device/bluetooth-ble/readBLECharacteristicValue.md index 801ce872b92a..9762482baec2 100644 --- a/docs/apis/device/bluetooth-ble/readBLECharacteristicValue.md +++ b/docs/apis/device/bluetooth-ble/readBLECharacteristicValue.md @@ -9,7 +9,7 @@ sidebar_label: readBLECharacteristicValue - 并行调用多次会存在读失败的可能性。 - 接口读取到的信息需要在 `onBLECharacteristicValueChange` 方法注册的回调中获取。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.readBLECharacteristicValue.html) diff --git a/docs/apis/device/bluetooth-ble/setBLEMTU.md b/docs/apis/device/bluetooth-ble/setBLEMTU.md index d3966b35f1f8..be59baf428c2 100644 --- a/docs/apis/device/bluetooth-ble/setBLEMTU.md +++ b/docs/apis/device/bluetooth-ble/setBLEMTU.md @@ -8,7 +8,7 @@ sidebar_label: setBLEMTU - 需在 Taro.createBLEConnection 调用成功后调用 - 仅安卓系统 5.1 以上版本有效,iOS 因系统限制不支持。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.setBLEMTU.html) diff --git a/docs/apis/device/bluetooth-ble/writeBLECharacteristicValue.md b/docs/apis/device/bluetooth-ble/writeBLECharacteristicValue.md index b178a422df7a..9ed0a53bde6e 100644 --- a/docs/apis/device/bluetooth-ble/writeBLECharacteristicValue.md +++ b/docs/apis/device/bluetooth-ble/writeBLECharacteristicValue.md @@ -11,7 +11,7 @@ sidebar_label: writeBLECharacteristicValue - 若单次写入数据过长,iOS 上存在系统不会有任何回调的情况(包括错误回调)。 - 安卓平台上,在调用 `notifyBLECharacteristicValueChange` 成功后立即调用 `writeBLECharacteristicValue` 接口,在部分机型上会发生 10008 系统错误 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.writeBLECharacteristicValue.html) diff --git a/docs/apis/device/bluetooth-peripheral/BLEPeripheralServer.md b/docs/apis/device/bluetooth-peripheral/BLEPeripheralServer.md index f9fb51577fdb..baa352964ab7 100644 --- a/docs/apis/device/bluetooth-peripheral/BLEPeripheralServer.md +++ b/docs/apis/device/bluetooth-peripheral/BLEPeripheralServer.md @@ -5,7 +5,7 @@ sidebar_label: BLEPeripheralServer 外围设备的服务端 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.html) @@ -15,7 +15,7 @@ sidebar_label: BLEPeripheralServer 添加服务 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.addService.html) @@ -31,7 +31,7 @@ sidebar_label: BLEPeripheralServer 关闭当前服务端 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.close.html) @@ -47,7 +47,7 @@ sidebar_label: BLEPeripheralServer 取消监听已连接的设备请求读当前外围设备的特征值事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.offCharacteristicReadRequest.html) @@ -63,7 +63,7 @@ sidebar_label: BLEPeripheralServer 取消监听特征订阅事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.offCharacteristicSubscribed.html) @@ -79,7 +79,7 @@ sidebar_label: BLEPeripheralServer 取消监听取消特征订阅事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.offCharacteristicUnsubscribed.html) @@ -95,7 +95,7 @@ sidebar_label: BLEPeripheralServer 取消监听已连接的设备请求写当前外围设备的特征值事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.offCharacteristicWriteRequest.html) @@ -113,7 +113,7 @@ sidebar_label: BLEPeripheralServer 收到该消息后需要立刻调用 [writeCharacteristicValue](/docs/apis/device/bluetooth-peripheral/BLEPeripheralServer#writecharacteristicvalue) 写回数据,否则主机不会收到响应。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.onCharacteristicReadRequest.html) @@ -129,7 +129,7 @@ sidebar_label: BLEPeripheralServer 监听特征订阅事件,仅 iOS 支持 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.onCharacteristicSubscribed.html) @@ -145,7 +145,7 @@ sidebar_label: BLEPeripheralServer 监听取消特征订阅事件,仅 iOS 支持 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.onCharacteristicUnsubscribed.html) @@ -161,7 +161,7 @@ sidebar_label: BLEPeripheralServer 监听已连接的设备请求写当前外围设备的特征值事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.onCharacteristicWriteRequest.html) @@ -177,7 +177,7 @@ sidebar_label: BLEPeripheralServer 移除服务 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.removeService.html) @@ -193,7 +193,7 @@ sidebar_label: BLEPeripheralServer 开始广播本地创建的外围设备 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.startAdvertising.html) @@ -209,7 +209,7 @@ sidebar_label: BLEPeripheralServer 停止广播 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.stopAdvertising.html) @@ -225,7 +225,7 @@ sidebar_label: BLEPeripheralServer 往指定特征写入二进制数据值,并通知已连接的主机,从机的特征值已发生变化,该接口会处理是走回包还是走订阅 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.writeCharacteristicValue.html) @@ -498,20 +498,20 @@ sidebar_label: BLEPeripheralServer ## API 支持度 -| API | 微信小程序 | 京东小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| BLEPeripheralServer | ✔️ | | | | | | -| BLEPeripheralServer.addService | ✔️ | ✔️ | | | | | -| BLEPeripheralServer.close | ✔️ | | | | | | -| BLEPeripheralServer.offCharacteristicReadRequest | ✔️ | ✔️ | | | | | -| BLEPeripheralServer.offCharacteristicSubscribed | ✔️ | ✔️ | | | | | -| BLEPeripheralServer.offCharacteristicUnsubscribed | ✔️ | | | | | | -| BLEPeripheralServer.offCharacteristicWriteRequest | ✔️ | ✔️ | | | | | -| BLEPeripheralServer.onCharacteristicReadRequest | ✔️ | ✔️ | | | | | -| BLEPeripheralServer.onCharacteristicSubscribed | ✔️ | ✔️ | | | | | -| BLEPeripheralServer.onCharacteristicUnsubscribed | ✔️ | ✔️ | | | | | -| BLEPeripheralServer.onCharacteristicWriteRequest | ✔️ | ✔️ | | | | | -| BLEPeripheralServer.removeService | ✔️ | ✔️ | | | | | -| BLEPeripheralServer.startAdvertising | ✔️ | ✔️ | | | | | -| BLEPeripheralServer.stopAdvertising | ✔️ | ✔️ | | | | | -| BLEPeripheralServer.writeCharacteristicValue | ✔️ | ✔️ | | | | | +| API | 微信小程序 | 京东小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | +| BLEPeripheralServer | ✔️ | | | | | +| BLEPeripheralServer.addService | ✔️ | ✔️ | | | | +| BLEPeripheralServer.close | ✔️ | | | | | +| BLEPeripheralServer.offCharacteristicReadRequest | ✔️ | ✔️ | | | | +| BLEPeripheralServer.offCharacteristicSubscribed | ✔️ | ✔️ | | | | +| BLEPeripheralServer.offCharacteristicUnsubscribed | ✔️ | | | | | +| BLEPeripheralServer.offCharacteristicWriteRequest | ✔️ | ✔️ | | | | +| BLEPeripheralServer.onCharacteristicReadRequest | ✔️ | ✔️ | | | | +| BLEPeripheralServer.onCharacteristicSubscribed | ✔️ | ✔️ | | | | +| BLEPeripheralServer.onCharacteristicUnsubscribed | ✔️ | ✔️ | | | | +| BLEPeripheralServer.onCharacteristicWriteRequest | ✔️ | ✔️ | | | | +| BLEPeripheralServer.removeService | ✔️ | ✔️ | | | | +| BLEPeripheralServer.startAdvertising | ✔️ | ✔️ | | | | +| BLEPeripheralServer.stopAdvertising | ✔️ | ✔️ | | | | +| BLEPeripheralServer.writeCharacteristicValue | ✔️ | ✔️ | | | | diff --git a/docs/apis/device/bluetooth-peripheral/createBLEPeripheralServer.md b/docs/apis/device/bluetooth-peripheral/createBLEPeripheralServer.md index 684cd460723b..88a0f9a571c8 100644 --- a/docs/apis/device/bluetooth-peripheral/createBLEPeripheralServer.md +++ b/docs/apis/device/bluetooth-peripheral/createBLEPeripheralServer.md @@ -5,7 +5,7 @@ sidebar_label: createBLEPeripheralServer 建立本地作为蓝牙低功耗外围设备的服务端,可创建多个 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/wx.createBLEPeripheralServer.html) diff --git a/docs/apis/device/bluetooth-peripheral/offBLEPeripheralConnectionStateChanged.md b/docs/apis/device/bluetooth-peripheral/offBLEPeripheralConnectionStateChanged.md index dd5562a43e86..690cf2b0dccd 100644 --- a/docs/apis/device/bluetooth-peripheral/offBLEPeripheralConnectionStateChanged.md +++ b/docs/apis/device/bluetooth-peripheral/offBLEPeripheralConnectionStateChanged.md @@ -5,7 +5,7 @@ sidebar_label: offBLEPeripheralConnectionStateChanged 取消监听当前外围设备被连接或断开连接事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/wx.offBLEPeripheralConnectionStateChanged.html) diff --git a/docs/apis/device/bluetooth-peripheral/onBLEPeripheralConnectionStateChanged.md b/docs/apis/device/bluetooth-peripheral/onBLEPeripheralConnectionStateChanged.md index 1c7cfdb1c92a..0e9b34d09c51 100644 --- a/docs/apis/device/bluetooth-peripheral/onBLEPeripheralConnectionStateChanged.md +++ b/docs/apis/device/bluetooth-peripheral/onBLEPeripheralConnectionStateChanged.md @@ -5,7 +5,7 @@ sidebar_label: onBLEPeripheralConnectionStateChanged 监听当前外围设备被连接或断开连接事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/wx.onBLEPeripheralConnectionStateChanged.html) diff --git a/docs/apis/device/bluetooth/closeBluetoothAdapter.md b/docs/apis/device/bluetooth/closeBluetoothAdapter.md index 67cd7f3b0629..c34f93061dbb 100644 --- a/docs/apis/device/bluetooth/closeBluetoothAdapter.md +++ b/docs/apis/device/bluetooth/closeBluetoothAdapter.md @@ -5,7 +5,7 @@ sidebar_label: closeBluetoothAdapter 关闭蓝牙模块。调用该方法将断开所有已建立的连接并释放系统资源。建议在使用蓝牙流程后,与 Taro.openBluetoothAdapter 成对调用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.closeBluetoothAdapter.html) diff --git a/docs/apis/device/bluetooth/getBluetoothAdapterState.md b/docs/apis/device/bluetooth/getBluetoothAdapterState.md index 952c7561ecaf..997c9cd689f0 100644 --- a/docs/apis/device/bluetooth/getBluetoothAdapterState.md +++ b/docs/apis/device/bluetooth/getBluetoothAdapterState.md @@ -5,7 +5,7 @@ sidebar_label: getBluetoothAdapterState 获取本机蓝牙适配器状态。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.getBluetoothAdapterState.html) diff --git a/docs/apis/device/bluetooth/getBluetoothDevices.md b/docs/apis/device/bluetooth/getBluetoothDevices.md index ebd30aa36170..275da7ba91e4 100644 --- a/docs/apis/device/bluetooth/getBluetoothDevices.md +++ b/docs/apis/device/bluetooth/getBluetoothDevices.md @@ -9,7 +9,7 @@ sidebar_label: getBluetoothDevices - 该接口获取到的设备列表为**蓝牙模块生效期间所有搜索到的蓝牙设备**,若在蓝牙模块使用流程结束后未及时调用 Taro.closeBluetoothAdapter 释放资源,会存在调用该接口会返回之前的蓝牙使用流程中搜索到的蓝牙设备,可能设备已经不在用户身边,无法连接。 - 蓝牙设备在被搜索到时,系统返回的 name 字段一般为广播包中的 LocalName 字段中的设备名称,而如果与蓝牙设备建立连接,系统返回的 name 字段会改为从蓝牙设备上获取到的 `GattName`。若需要动态改变设备名称并展示,建议使用 `localName` 字段。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.getBluetoothDevices.html) diff --git a/docs/apis/device/bluetooth/getConnectedBluetoothDevices.md b/docs/apis/device/bluetooth/getConnectedBluetoothDevices.md index b9b9222592ae..bf959aaf6269 100644 --- a/docs/apis/device/bluetooth/getConnectedBluetoothDevices.md +++ b/docs/apis/device/bluetooth/getConnectedBluetoothDevices.md @@ -5,7 +5,7 @@ sidebar_label: getConnectedBluetoothDevices 根据 uuid 获取处于已连接状态的设备。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.getConnectedBluetoothDevices.html) diff --git a/docs/apis/device/bluetooth/isBluetoothDevicePaired.md b/docs/apis/device/bluetooth/isBluetoothDevicePaired.md index 3f217dad3907..406ffc3cf3d1 100644 --- a/docs/apis/device/bluetooth/isBluetoothDevicePaired.md +++ b/docs/apis/device/bluetooth/isBluetoothDevicePaired.md @@ -5,7 +5,7 @@ sidebar_label: isBluetoothDevicePaired 查询蓝牙设备是否配对,仅安卓支持 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.isBluetoothDevicePaired.html) diff --git a/docs/apis/device/bluetooth/makeBluetoothPair.md b/docs/apis/device/bluetooth/makeBluetoothPair.md index 674af755fa2f..1943bbd19b56 100644 --- a/docs/apis/device/bluetooth/makeBluetoothPair.md +++ b/docs/apis/device/bluetooth/makeBluetoothPair.md @@ -7,7 +7,7 @@ sidebar_label: makeBluetoothPair 通常情况下(需要指定 pin 码或者密码时)系统会接管配对流程,直接调用 [Taro.createBLEConnection](/docs/apis/device/bluetooth-ble/createBLEConnection) 即可。该接口只应当在开发者不想让用户手动输入 pin 码且真机验证确认可以正常生效情况下用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.makeBluetoothPair.html) diff --git a/docs/apis/device/bluetooth/offBluetoothAdapterStateChange.md b/docs/apis/device/bluetooth/offBluetoothAdapterStateChange.md index f33a00ea4ba5..a8f829fd3b5e 100644 --- a/docs/apis/device/bluetooth/offBluetoothAdapterStateChange.md +++ b/docs/apis/device/bluetooth/offBluetoothAdapterStateChange.md @@ -5,7 +5,7 @@ sidebar_label: offBluetoothAdapterStateChange 取消监听蓝牙适配器状态变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.offBluetoothAdapterStateChange.html) diff --git a/docs/apis/device/bluetooth/offBluetoothDeviceFound.md b/docs/apis/device/bluetooth/offBluetoothDeviceFound.md index 0162a1f9d2b3..48c78cd1a033 100644 --- a/docs/apis/device/bluetooth/offBluetoothDeviceFound.md +++ b/docs/apis/device/bluetooth/offBluetoothDeviceFound.md @@ -5,7 +5,7 @@ sidebar_label: offBluetoothDeviceFound 取消监听寻找到新设备的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.offBluetoothDeviceFound.html) diff --git a/docs/apis/device/bluetooth/onBluetoothAdapterStateChange.md b/docs/apis/device/bluetooth/onBluetoothAdapterStateChange.md index 1c813b0d68b7..0684683c49a2 100644 --- a/docs/apis/device/bluetooth/onBluetoothAdapterStateChange.md +++ b/docs/apis/device/bluetooth/onBluetoothAdapterStateChange.md @@ -5,7 +5,7 @@ sidebar_label: onBluetoothAdapterStateChange 监听蓝牙适配器状态变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.onBluetoothAdapterStateChange.html) diff --git a/docs/apis/device/bluetooth/onBluetoothDeviceFound.md b/docs/apis/device/bluetooth/onBluetoothDeviceFound.md index f5906ee3e942..eb1e6784d018 100644 --- a/docs/apis/device/bluetooth/onBluetoothDeviceFound.md +++ b/docs/apis/device/bluetooth/onBluetoothDeviceFound.md @@ -9,7 +9,7 @@ sidebar_label: onBluetoothDeviceFound - 若在 Taro.onBluetoothDeviceFound 回调了某个设备,则此设备会添加到 Taro.getBluetoothDevices 接口获取到的数组中。 - 安卓下部分机型需要有位置权限才能搜索到设备,需留意是否开启了位置权限 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.onBluetoothDeviceFound.html) diff --git a/docs/apis/device/bluetooth/openBluetoothAdapter.md b/docs/apis/device/bluetooth/openBluetoothAdapter.md index 259c3cd24c78..757c8f6ddd73 100644 --- a/docs/apis/device/bluetooth/openBluetoothAdapter.md +++ b/docs/apis/device/bluetooth/openBluetoothAdapter.md @@ -9,7 +9,7 @@ sidebar_label: openBluetoothAdapter - 其他蓝牙相关 API 必须在 Taro.openBluetoothAdapter 调用之后使用。否则 API 会返回错误(errCode=10000)。 - 在用户蓝牙开关未开启或者手机不支持蓝牙功能的情况下,调用 Taro.openBluetoothAdapter 监听手机蓝牙状态的改变,也可以调用蓝牙模块的所有API。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.openBluetoothAdapter.html) diff --git a/docs/apis/device/bluetooth/startBluetoothDevicesDiscovery.md b/docs/apis/device/bluetooth/startBluetoothDevicesDiscovery.md index 2773246d0896..366525c6cdaa 100644 --- a/docs/apis/device/bluetooth/startBluetoothDevicesDiscovery.md +++ b/docs/apis/device/bluetooth/startBluetoothDevicesDiscovery.md @@ -5,7 +5,7 @@ sidebar_label: startBluetoothDevicesDiscovery 开始搜寻附近的蓝牙外围设备。**此操作比较耗费系统资源,请在搜索并连接到设备后调用 Taro.stopBluetoothDevicesDiscovery 方法停止搜索。** -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.startBluetoothDevicesDiscovery.html) diff --git a/docs/apis/device/bluetooth/stopBluetoothDevicesDiscovery.md b/docs/apis/device/bluetooth/stopBluetoothDevicesDiscovery.md index e7ece81861fc..fad00da80c7d 100644 --- a/docs/apis/device/bluetooth/stopBluetoothDevicesDiscovery.md +++ b/docs/apis/device/bluetooth/stopBluetoothDevicesDiscovery.md @@ -5,7 +5,7 @@ sidebar_label: stopBluetoothDevicesDiscovery 停止搜寻附近的蓝牙外围设备。若已经找到需要的蓝牙设备并不需要继续搜索时,建议调用该接口停止蓝牙搜索。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.stopBluetoothDevicesDiscovery.html) diff --git a/docs/apis/device/calendar/addPhoneCalendar.md b/docs/apis/device/calendar/addPhoneCalendar.md index 7530a4df6302..b363bcd0ede5 100644 --- a/docs/apis/device/calendar/addPhoneCalendar.md +++ b/docs/apis/device/calendar/addPhoneCalendar.md @@ -5,7 +5,7 @@ sidebar_label: addPhoneCalendar 向系统日历添加事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/calendar/wx.addPhoneCalendar.html) diff --git a/docs/apis/device/calendar/addPhoneRepeatCalendar.md b/docs/apis/device/calendar/addPhoneRepeatCalendar.md index 5c167d3a1c4c..c798ea59efa3 100644 --- a/docs/apis/device/calendar/addPhoneRepeatCalendar.md +++ b/docs/apis/device/calendar/addPhoneRepeatCalendar.md @@ -5,7 +5,7 @@ sidebar_label: addPhoneRepeatCalendar 向系统日历添加重复事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/calendar/wx.addPhoneRepeatCalendar.html) diff --git a/docs/apis/device/clipboard/getClipboardData.md b/docs/apis/device/clipboard/getClipboardData.md index 761c09ab06f3..6be0dc663b30 100644 --- a/docs/apis/device/clipboard/getClipboardData.md +++ b/docs/apis/device/clipboard/getClipboardData.md @@ -5,7 +5,7 @@ sidebar_label: getClipboardData 获取系统剪贴板内容 -支持情况: +支持情况: > H5: 部分实现 diff --git a/docs/apis/device/clipboard/setClipboardData.md b/docs/apis/device/clipboard/setClipboardData.md index e720950d9b96..c5cd0e79aadb 100644 --- a/docs/apis/device/clipboard/setClipboardData.md +++ b/docs/apis/device/clipboard/setClipboardData.md @@ -5,7 +5,7 @@ sidebar_label: setClipboardData 设置系统剪贴板的内容。调用成功后,会弹出 toast 提示"内容已复制",持续 1.5s -支持情况: +支持情况: > H5: 部分实现 diff --git a/docs/apis/device/compass/offCompassChange.md b/docs/apis/device/compass/offCompassChange.md index 5ac1dcc266f7..8c922ceb0a82 100644 --- a/docs/apis/device/compass/offCompassChange.md +++ b/docs/apis/device/compass/offCompassChange.md @@ -5,7 +5,7 @@ sidebar_label: offCompassChange 取消监听罗盘数据变化事件,参数为空,则取消所有的事件监听。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/compass/wx.offCompassChange.html) diff --git a/docs/apis/device/compass/onCompassChange.md b/docs/apis/device/compass/onCompassChange.md index 9205f97917c1..1c2301d49e38 100644 --- a/docs/apis/device/compass/onCompassChange.md +++ b/docs/apis/device/compass/onCompassChange.md @@ -5,7 +5,7 @@ sidebar_label: onCompassChange 监听罗盘数据变化事件。频率:5 次/秒,接口调用后会自动开始监听,可使用 Taro.stopCompass 停止监听。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/compass/wx.onCompassChange.html) diff --git a/docs/apis/device/compass/startCompass.md b/docs/apis/device/compass/startCompass.md index e9d91e9d153e..e630dda750a4 100644 --- a/docs/apis/device/compass/startCompass.md +++ b/docs/apis/device/compass/startCompass.md @@ -5,7 +5,7 @@ sidebar_label: startCompass 开始监听罗盘数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/compass/wx.startCompass.html) diff --git a/docs/apis/device/compass/stopCompass.md b/docs/apis/device/compass/stopCompass.md index 8e722e0a35a8..3dc24a77146e 100644 --- a/docs/apis/device/compass/stopCompass.md +++ b/docs/apis/device/compass/stopCompass.md @@ -5,7 +5,7 @@ sidebar_label: stopCompass 停止监听罗盘数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/compass/wx.stopCompass.html) diff --git a/docs/apis/device/contact/addPhoneContact.md b/docs/apis/device/contact/addPhoneContact.md index 0d8e715f7055..a623e1cac288 100644 --- a/docs/apis/device/contact/addPhoneContact.md +++ b/docs/apis/device/contact/addPhoneContact.md @@ -5,7 +5,7 @@ sidebar_label: addPhoneContact 添加手机通讯录联系人。用户可以选择将该表单以「新增联系人」或「添加到已有联系人」的方式,写入手机系统通讯录。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/contact/wx.addPhoneContact.html) diff --git a/docs/apis/device/contact/chooseContact.md b/docs/apis/device/contact/chooseContact.md index d70ae665e04a..41811763c584 100644 --- a/docs/apis/device/contact/chooseContact.md +++ b/docs/apis/device/contact/chooseContact.md @@ -5,7 +5,7 @@ sidebar_label: chooseContact 添加手机通讯录联系人。用户可以选择将该表单以「新增联系人」或「添加到已有联系人」的方式,写入手机系统通讯录。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/contact/wx.chooseContact.html) diff --git a/docs/apis/device/gyroscope/offGyroscopeChange.md b/docs/apis/device/gyroscope/offGyroscopeChange.md index 74aaea416b03..eaf4095fca02 100644 --- a/docs/apis/device/gyroscope/offGyroscopeChange.md +++ b/docs/apis/device/gyroscope/offGyroscopeChange.md @@ -5,7 +5,7 @@ sidebar_label: offGyroscopeChange 取消监听陀螺仪数据变化事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/gyroscope/wx.offGyroscopeChange.html) diff --git a/docs/apis/device/gyroscope/onGyroscopeChange.md b/docs/apis/device/gyroscope/onGyroscopeChange.md index 96be9766836d..c9fe43ce4f26 100644 --- a/docs/apis/device/gyroscope/onGyroscopeChange.md +++ b/docs/apis/device/gyroscope/onGyroscopeChange.md @@ -5,7 +5,7 @@ sidebar_label: onGyroscopeChange 监听陀螺仪数据变化事件。频率根据 Taro.startGyroscope() 的 interval 参数。可以使用 Taro.stopGyroscope() 停止监听。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/gyroscope/wx.onGyroscopeChange.html) diff --git a/docs/apis/device/gyroscope/startGyroscope.md b/docs/apis/device/gyroscope/startGyroscope.md index 3cd18c09d53e..15a3dd90b41a 100644 --- a/docs/apis/device/gyroscope/startGyroscope.md +++ b/docs/apis/device/gyroscope/startGyroscope.md @@ -5,7 +5,7 @@ sidebar_label: startGyroscope 开始监听陀螺仪数据。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/gyroscope/wx.startGyroscope.html) diff --git a/docs/apis/device/gyroscope/stopGyroscope.md b/docs/apis/device/gyroscope/stopGyroscope.md index e6f34bf040b1..14e4b9d7337a 100644 --- a/docs/apis/device/gyroscope/stopGyroscope.md +++ b/docs/apis/device/gyroscope/stopGyroscope.md @@ -5,7 +5,7 @@ sidebar_label: stopGyroscope 停止监听陀螺仪数据。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/gyroscope/wx.stopGyroscope.html) diff --git a/docs/apis/device/iBeacon/getBeacons.md b/docs/apis/device/iBeacon/getBeacons.md index bfe817a23c59..0279b972576b 100644 --- a/docs/apis/device/iBeacon/getBeacons.md +++ b/docs/apis/device/iBeacon/getBeacons.md @@ -5,7 +5,7 @@ sidebar_label: getBeacons 获取所有已搜索到的 iBeacon 设备 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/ibeacon/wx.getBeacons.html) diff --git a/docs/apis/device/iBeacon/offBeaconServiceChange.md b/docs/apis/device/iBeacon/offBeaconServiceChange.md index 5e697e0e1210..3eaa3cd0a579 100644 --- a/docs/apis/device/iBeacon/offBeaconServiceChange.md +++ b/docs/apis/device/iBeacon/offBeaconServiceChange.md @@ -5,7 +5,7 @@ sidebar_label: offBeaconServiceChange 取消监听 iBeacon 服务状态变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/ibeacon/wx.offBeaconServiceChange.html) diff --git a/docs/apis/device/iBeacon/offBeaconUpdate.md b/docs/apis/device/iBeacon/offBeaconUpdate.md index 6f8e595b502e..a7dc98217901 100644 --- a/docs/apis/device/iBeacon/offBeaconUpdate.md +++ b/docs/apis/device/iBeacon/offBeaconUpdate.md @@ -5,7 +5,7 @@ sidebar_label: offBeaconUpdate 取消监听 iBeacon 设备更新事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/ibeacon/wx.offBeaconUpdate.html) diff --git a/docs/apis/device/iBeacon/onBeaconServiceChange.md b/docs/apis/device/iBeacon/onBeaconServiceChange.md index aaa01ad0d71b..cdc76c506802 100644 --- a/docs/apis/device/iBeacon/onBeaconServiceChange.md +++ b/docs/apis/device/iBeacon/onBeaconServiceChange.md @@ -5,7 +5,7 @@ sidebar_label: onBeaconServiceChange 监听 iBeacon 服务状态变化事件,仅能注册一个监听 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/ibeacon/wx.onBeaconServiceChange.html) diff --git a/docs/apis/device/iBeacon/onBeaconUpdate.md b/docs/apis/device/iBeacon/onBeaconUpdate.md index a9d246fa06b8..879b807f43e9 100644 --- a/docs/apis/device/iBeacon/onBeaconUpdate.md +++ b/docs/apis/device/iBeacon/onBeaconUpdate.md @@ -5,7 +5,7 @@ sidebar_label: onBeaconUpdate 监听 iBeacon 设备更新事件,仅能注册一个监听 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/ibeacon/wx.onBeaconUpdate.html) diff --git a/docs/apis/device/iBeacon/startBeaconDiscovery.md b/docs/apis/device/iBeacon/startBeaconDiscovery.md index 03e766f6cc74..2a2b386dd103 100644 --- a/docs/apis/device/iBeacon/startBeaconDiscovery.md +++ b/docs/apis/device/iBeacon/startBeaconDiscovery.md @@ -5,7 +5,7 @@ sidebar_label: startBeaconDiscovery 开始搜索附近的 iBeacon 设备 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/ibeacon/wx.startBeaconDiscovery.html) diff --git a/docs/apis/device/iBeacon/stopBeaconDiscovery.md b/docs/apis/device/iBeacon/stopBeaconDiscovery.md index b9d57d1750ff..0eb653c62609 100644 --- a/docs/apis/device/iBeacon/stopBeaconDiscovery.md +++ b/docs/apis/device/iBeacon/stopBeaconDiscovery.md @@ -5,7 +5,7 @@ sidebar_label: stopBeaconDiscovery 停止搜索附近的 iBeacon 设备 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/ibeacon/wx.stopBeaconDiscovery.html) diff --git a/docs/apis/device/keyboard/getSelectedTextRange.md b/docs/apis/device/keyboard/getSelectedTextRange.md index 07a686d66c24..803004de27fe 100644 --- a/docs/apis/device/keyboard/getSelectedTextRange.md +++ b/docs/apis/device/keyboard/getSelectedTextRange.md @@ -5,7 +5,7 @@ sidebar_label: getSelectedTextRange 在input、textarea等focus之后,获取输入框的光标位置。注意:只有在focus的时候调用此接口才有效。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/keyboard/wx.getSelectedTextRange.html) diff --git a/docs/apis/device/keyboard/hideKeyboard.md b/docs/apis/device/keyboard/hideKeyboard.md index 3569587cb8a0..aaf1df8a3c92 100644 --- a/docs/apis/device/keyboard/hideKeyboard.md +++ b/docs/apis/device/keyboard/hideKeyboard.md @@ -5,7 +5,7 @@ sidebar_label: hideKeyboard 在input、textarea等focus拉起键盘之后,手动调用此接口收起键盘 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/keyboard/wx.hideKeyboard.html) diff --git a/docs/apis/device/keyboard/offKeyboardHeightChange.md b/docs/apis/device/keyboard/offKeyboardHeightChange.md index 61120b1330e7..9650bb4ea033 100644 --- a/docs/apis/device/keyboard/offKeyboardHeightChange.md +++ b/docs/apis/device/keyboard/offKeyboardHeightChange.md @@ -5,7 +5,7 @@ sidebar_label: offKeyboardHeightChange 取消监听键盘高度变化事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/keyboard/wx.offKeyboardHeightChange.html) diff --git a/docs/apis/device/keyboard/onKeyboardHeightChange.md b/docs/apis/device/keyboard/onKeyboardHeightChange.md index 2d4b70ae2bc4..6c7bfbce33f1 100644 --- a/docs/apis/device/keyboard/onKeyboardHeightChange.md +++ b/docs/apis/device/keyboard/onKeyboardHeightChange.md @@ -5,7 +5,7 @@ sidebar_label: onKeyboardHeightChange 监听键盘高度变化 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/keyboard/wx.onKeyboardHeightChange.html) diff --git a/docs/apis/device/memory/offMemoryWarning.md b/docs/apis/device/memory/offMemoryWarning.md index 47686e1e831b..34831c810229 100644 --- a/docs/apis/device/memory/offMemoryWarning.md +++ b/docs/apis/device/memory/offMemoryWarning.md @@ -5,7 +5,7 @@ sidebar_label: offMemoryWarning 取消监听内存不足告警事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/memory/wx.offMemoryWarning.html) diff --git a/docs/apis/device/memory/onMemoryWarning.md b/docs/apis/device/memory/onMemoryWarning.md index 3ead8b1a63cb..c02486b61bf2 100644 --- a/docs/apis/device/memory/onMemoryWarning.md +++ b/docs/apis/device/memory/onMemoryWarning.md @@ -7,7 +7,7 @@ sidebar_label: onMemoryWarning 当 iOS/Android 向小程序进程发出内存警告时,触发该事件。触发该事件不意味小程序被杀,大部分情况下仅仅是告警,开发者可在收到通知后回收一些不必要资源避免进一步加剧内存紧张。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/performance/wx.onMemoryWarning.html) diff --git a/docs/apis/device/motion/offDeviceMotionChange.md b/docs/apis/device/motion/offDeviceMotionChange.md index d2b00d02a930..d2d2ff32d13b 100644 --- a/docs/apis/device/motion/offDeviceMotionChange.md +++ b/docs/apis/device/motion/offDeviceMotionChange.md @@ -5,7 +5,7 @@ sidebar_label: offDeviceMotionChange 取消监听设备方向变化事件,参数为空,则取消所有的事件监听。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/motion/wx.offDeviceMotionChange.html) diff --git a/docs/apis/device/motion/onDeviceMotionChange.md b/docs/apis/device/motion/onDeviceMotionChange.md index a45e75932d25..7cabac2f58fc 100644 --- a/docs/apis/device/motion/onDeviceMotionChange.md +++ b/docs/apis/device/motion/onDeviceMotionChange.md @@ -5,7 +5,7 @@ sidebar_label: onDeviceMotionChange 监听设备方向变化事件。频率根据 Taro.startDeviceMotionListening() 的 interval 参数。可以使用 Taro.stopDeviceMotionListening() 停止监听。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/motion/wx.onDeviceMotionChange.html) diff --git a/docs/apis/device/motion/startDeviceMotionListening.md b/docs/apis/device/motion/startDeviceMotionListening.md index 6ae70afe6ee0..76df360c8bb7 100644 --- a/docs/apis/device/motion/startDeviceMotionListening.md +++ b/docs/apis/device/motion/startDeviceMotionListening.md @@ -5,7 +5,7 @@ sidebar_label: startDeviceMotionListening 开始监听设备方向的变化。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/motion/wx.startDeviceMotionListening.html) diff --git a/docs/apis/device/motion/stopDeviceMotionListening.md b/docs/apis/device/motion/stopDeviceMotionListening.md index c6c70401a557..f1aae4a537f2 100644 --- a/docs/apis/device/motion/stopDeviceMotionListening.md +++ b/docs/apis/device/motion/stopDeviceMotionListening.md @@ -5,7 +5,7 @@ sidebar_label: stopDeviceMotionListening 停止监听设备方向的变化。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/motion/wx.stopDeviceMotionListening.html) diff --git a/docs/apis/device/network/getLocalIPAddress.md b/docs/apis/device/network/getLocalIPAddress.md index 7cc6bed4e9d5..5e0deb1ce930 100644 --- a/docs/apis/device/network/getLocalIPAddress.md +++ b/docs/apis/device/network/getLocalIPAddress.md @@ -5,7 +5,7 @@ sidebar_label: getLocalIPAddress 获取局域网IP地址。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/network/wx.getLocalIPAddress.html) diff --git a/docs/apis/device/network/getNetworkType.md b/docs/apis/device/network/getNetworkType.md index b4f0a1c36a1a..4173e7b6fddb 100644 --- a/docs/apis/device/network/getNetworkType.md +++ b/docs/apis/device/network/getNetworkType.md @@ -5,7 +5,7 @@ sidebar_label: getNetworkType 获取网络类型。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/network/wx.getNetworkType.html) diff --git a/docs/apis/device/network/offNetworkStatusChange.md b/docs/apis/device/network/offNetworkStatusChange.md index e24eaa983293..03c6bb181c7a 100644 --- a/docs/apis/device/network/offNetworkStatusChange.md +++ b/docs/apis/device/network/offNetworkStatusChange.md @@ -5,7 +5,7 @@ sidebar_label: offNetworkStatusChange 取消监听网络状态变化事件,参数为空,则取消所有的事件监听。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/network/wx.offNetworkStatusChange.html) diff --git a/docs/apis/device/network/offNetworkWeakChange.md b/docs/apis/device/network/offNetworkWeakChange.md index 3111f13675ef..81b9c9480423 100644 --- a/docs/apis/device/network/offNetworkWeakChange.md +++ b/docs/apis/device/network/offNetworkWeakChange.md @@ -5,7 +5,7 @@ sidebar_label: offNetworkWeakChange 取消监听弱网状态变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/network/wx.offNetworkWeakChange.html) diff --git a/docs/apis/device/network/onNetworkStatusChange.md b/docs/apis/device/network/onNetworkStatusChange.md index aa894816b255..b678c3f48f85 100644 --- a/docs/apis/device/network/onNetworkStatusChange.md +++ b/docs/apis/device/network/onNetworkStatusChange.md @@ -5,7 +5,7 @@ sidebar_label: onNetworkStatusChange 监听网络状态变化。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/network/wx.onNetworkStatusChange.html) diff --git a/docs/apis/device/network/onNetworkWeakChange.md b/docs/apis/device/network/onNetworkWeakChange.md index 2df3e7a4f905..a3e4ed183771 100644 --- a/docs/apis/device/network/onNetworkWeakChange.md +++ b/docs/apis/device/network/onNetworkWeakChange.md @@ -5,7 +5,7 @@ sidebar_label: onNetworkWeakChange 监听弱网状态变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/network/wx.onNetworkWeakChange.html) diff --git a/docs/apis/device/nfc/IsoDep.md b/docs/apis/device/nfc/IsoDep.md index 98fb4dd50568..73332b7f0450 100644 --- a/docs/apis/device/nfc/IsoDep.md +++ b/docs/apis/device/nfc/IsoDep.md @@ -5,7 +5,7 @@ sidebar_label: IsoDep IsoDep 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/IsoDep.html) @@ -15,7 +15,7 @@ IsoDep 标签 断开连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/IsoDep.close.html) @@ -31,7 +31,7 @@ IsoDep 标签 连接 NFC 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/IsoDep.connect.html) @@ -47,7 +47,7 @@ IsoDep 标签 获取复位信息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/IsoDep.getHistoricalBytes.html) @@ -63,7 +63,7 @@ IsoDep 标签 获取最大传输长度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/IsoDep.getMaxTransceiveLength.html) @@ -79,7 +79,7 @@ IsoDep 标签 检查是否已连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/IsoDep.isConnected.html) @@ -95,7 +95,7 @@ IsoDep 标签 设置超时时间 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/IsoDep.setTimeout.html) @@ -111,7 +111,7 @@ IsoDep 标签 发送数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/IsoDep.transceive.html) @@ -217,13 +217,13 @@ IsoDep 标签 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| IsoDep | ✔️ | | | | | -| IsoDep.close | ✔️ | | | | | -| IsoDep.connect | ✔️ | | | | | -| IsoDep.getHistoricalBytes | ✔️ | | | | | -| IsoDep.getMaxTransceiveLength | ✔️ | | | | | -| IsoDep.isConnected | ✔️ | | | | | -| IsoDep.setTimeout | ✔️ | | | | | -| IsoDep.transceive | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| IsoDep | ✔️ | | | | +| IsoDep.close | ✔️ | | | | +| IsoDep.connect | ✔️ | | | | +| IsoDep.getHistoricalBytes | ✔️ | | | | +| IsoDep.getMaxTransceiveLength | ✔️ | | | | +| IsoDep.isConnected | ✔️ | | | | +| IsoDep.setTimeout | ✔️ | | | | +| IsoDep.transceive | ✔️ | | | | diff --git a/docs/apis/device/nfc/MifareClassic.md b/docs/apis/device/nfc/MifareClassic.md index 6d617f6e7589..66ae50db7af9 100644 --- a/docs/apis/device/nfc/MifareClassic.md +++ b/docs/apis/device/nfc/MifareClassic.md @@ -5,7 +5,7 @@ sidebar_label: MifareClassic MifareClassic 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/MifareClassic.html) @@ -15,7 +15,7 @@ MifareClassic 标签 断开连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/MifareClassic.close.html) @@ -31,7 +31,7 @@ MifareClassic 标签 连接 NFC 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/MifareClassic.connect.html) @@ -47,7 +47,7 @@ MifareClassic 标签 获取最大传输长度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/MifareClassic.getMaxTransceiveLength.html) @@ -63,7 +63,7 @@ MifareClassic 标签 检查是否已连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/MifareClassic.isConnected.html) @@ -79,7 +79,7 @@ MifareClassic 标签 设置超时时间 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/MifareClassic.setTimeout.html) @@ -95,7 +95,7 @@ MifareClassic 标签 发送数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/MifareClassic.transceive.html) @@ -185,12 +185,12 @@ MifareClassic 标签 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| MifareClassic | ✔️ | | | | | -| MifareClassic.close | ✔️ | | | | | -| MifareClassic.connect | ✔️ | | | | | -| MifareClassic.getMaxTransceiveLength | ✔️ | | | | | -| MifareClassic.isConnected | ✔️ | | | | | -| MifareClassic.setTimeout | ✔️ | | | | | -| MifareClassic.transceive | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| MifareClassic | ✔️ | | | | +| MifareClassic.close | ✔️ | | | | +| MifareClassic.connect | ✔️ | | | | +| MifareClassic.getMaxTransceiveLength | ✔️ | | | | +| MifareClassic.isConnected | ✔️ | | | | +| MifareClassic.setTimeout | ✔️ | | | | +| MifareClassic.transceive | ✔️ | | | | diff --git a/docs/apis/device/nfc/MifareUltralight.md b/docs/apis/device/nfc/MifareUltralight.md index 58778f8b74e0..809e19541f17 100644 --- a/docs/apis/device/nfc/MifareUltralight.md +++ b/docs/apis/device/nfc/MifareUltralight.md @@ -5,7 +5,7 @@ sidebar_label: MifareUltralight MifareUltralight 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/MifareUltralight.html) @@ -15,7 +15,7 @@ MifareUltralight 标签 断开连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/MifareUltralight.close.html) @@ -31,7 +31,7 @@ MifareUltralight 标签 连接 NFC 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/MifareUltralight.connect.html) @@ -47,7 +47,7 @@ MifareUltralight 标签 获取最大传输长度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/MifareUltralight.getMaxTransceiveLength.html) @@ -63,7 +63,7 @@ MifareUltralight 标签 检查是否已连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/MifareUltralight.isConnected.html) @@ -79,7 +79,7 @@ MifareUltralight 标签 设置超时时间 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/MifareUltralight.setTimeout.html) @@ -95,7 +95,7 @@ MifareUltralight 标签 发送数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/MifareUltralight.transceive.html) @@ -185,12 +185,12 @@ MifareUltralight 标签 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| MifareUltralight | ✔️ | | | | | -| MifareUltralight.close | ✔️ | | | | | -| MifareUltralight.connect | ✔️ | | | | | -| MifareUltralight.getMaxTransceiveLength | ✔️ | | | | | -| MifareUltralight.isConnected | ✔️ | | | | | -| MifareUltralight.setTimeout | ✔️ | | | | | -| MifareUltralight.transceive | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| MifareUltralight | ✔️ | | | | +| MifareUltralight.close | ✔️ | | | | +| MifareUltralight.connect | ✔️ | | | | +| MifareUltralight.getMaxTransceiveLength | ✔️ | | | | +| MifareUltralight.isConnected | ✔️ | | | | +| MifareUltralight.setTimeout | ✔️ | | | | +| MifareUltralight.transceive | ✔️ | | | | diff --git a/docs/apis/device/nfc/NFCAdapter.md b/docs/apis/device/nfc/NFCAdapter.md index 727e658813da..939add26e157 100644 --- a/docs/apis/device/nfc/NFCAdapter.md +++ b/docs/apis/device/nfc/NFCAdapter.md @@ -5,7 +5,7 @@ sidebar_label: NFCAdapter NFC 实例 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NFCAdapter.html) @@ -15,7 +15,7 @@ NFC 实例 获取IsoDep实例,实例支持ISO-DEP (ISO 14443-4)标准的读写 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NFCAdapter.getIsoDep.html) @@ -27,7 +27,7 @@ NFC 实例 获取MifareClassic实例,实例支持MIFARE Classic标签的读写 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NFCAdapter.getMifareClassic.html) @@ -39,7 +39,7 @@ NFC 实例 获取MifareUltralight实例,实例支持MIFARE Ultralight标签的读写 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NFCAdapter.getMifareUltralight.html) @@ -51,7 +51,7 @@ NFC 实例 获取Ndef实例,实例支持对NDEF格式的NFC标签上的NDEF数据的读写 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NFCAdapter.getNdef.html) @@ -63,7 +63,7 @@ NFC 实例 获取NfcA实例,实例支持NFC-A (ISO 14443-3A)标准的读写 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NFCAdapter.getNfcA.html) @@ -75,7 +75,7 @@ NFC 实例 获取NfcB实例,实例支持NFC-B (ISO 14443-3B)标准的读写 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NFCAdapter.getNfcB.html) @@ -87,7 +87,7 @@ NFC 实例 获取NfcF实例,实例支持NFC-F (JIS 6319-4)标准的读写 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NFCAdapter.getNfcF.html) @@ -99,7 +99,7 @@ NFC 实例 获取NfcV实例,实例支持NFC-V (ISO 15693)标准的读写 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NFCAdapter.getNfcV.html) @@ -111,7 +111,7 @@ NFC 实例 取消监听 NFC Tag -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NFCAdapter.offDiscovered.html) @@ -127,7 +127,7 @@ NFC 实例 监听 NFC Tag -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NFCAdapter.onDiscovered.html) @@ -143,7 +143,7 @@ NFC 实例 开始扫描NFC标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NFCAdapter.startDiscovery.html) @@ -159,7 +159,7 @@ NFC 实例 关闭NFC标签扫描 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NFCAdapter.stopDiscovery.html) @@ -225,18 +225,18 @@ NFC 实例 ## API 支持度 -| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| NFCAdapter | ✔️ | | | | | | -| NFCAdapter.getIsoDep | ✔️ | | | | | | -| NFCAdapter.getMifareClassic | ✔️ | ✔️ | | | | | -| NFCAdapter.getMifareUltralight | ✔️ | | | | | | -| NFCAdapter.getNdef | ✔️ | | | | | | -| NFCAdapter.getNfcA | ✔️ | ✔️ | | | | | -| NFCAdapter.getNfcB | ✔️ | | | | | | -| NFCAdapter.getNfcF | ✔️ | | | | | | -| NFCAdapter.getNfcV | ✔️ | | | | | | -| NFCAdapter.offDiscovered | ✔️ | ✔️ | | | | | -| NFCAdapter.onDiscovered | ✔️ | ✔️ | | | | | -| NFCAdapter.startDiscovery | ✔️ | ✔️ | | | | | -| NFCAdapter.stopDiscovery | ✔️ | ✔️ | | | | | +| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | +| NFCAdapter | ✔️ | | | | | +| NFCAdapter.getIsoDep | ✔️ | | | | | +| NFCAdapter.getMifareClassic | ✔️ | ✔️ | | | | +| NFCAdapter.getMifareUltralight | ✔️ | | | | | +| NFCAdapter.getNdef | ✔️ | | | | | +| NFCAdapter.getNfcA | ✔️ | ✔️ | | | | +| NFCAdapter.getNfcB | ✔️ | | | | | +| NFCAdapter.getNfcF | ✔️ | | | | | +| NFCAdapter.getNfcV | ✔️ | | | | | +| NFCAdapter.offDiscovered | ✔️ | ✔️ | | | | +| NFCAdapter.onDiscovered | ✔️ | ✔️ | | | | +| NFCAdapter.startDiscovery | ✔️ | ✔️ | | | | +| NFCAdapter.stopDiscovery | ✔️ | ✔️ | | | | diff --git a/docs/apis/device/nfc/Ndef.md b/docs/apis/device/nfc/Ndef.md index c4d022368e35..1ef553808207 100644 --- a/docs/apis/device/nfc/Ndef.md +++ b/docs/apis/device/nfc/Ndef.md @@ -5,7 +5,7 @@ sidebar_label: Ndef Ndef 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/Ndef.html) @@ -15,7 +15,7 @@ Ndef 标签 断开连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/Ndef.close.html) @@ -31,7 +31,7 @@ Ndef 标签 连接 NFC 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/Ndef.connect.html) @@ -47,7 +47,7 @@ Ndef 标签 检查是否已连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/Ndef.isConnected.html) @@ -63,7 +63,7 @@ Ndef 标签 取消监听 Ndef 消息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/Ndef.offNdefMessage.html) @@ -79,7 +79,7 @@ Ndef 标签 监听 Ndef 消息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/Ndef.onNdefMessage.html) @@ -95,7 +95,7 @@ Ndef 标签 设置超时时间 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/Ndef.setTimeout.html) @@ -111,7 +111,7 @@ Ndef 标签 重写 Ndef 标签内容 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/Ndef.writeNdefMessage.html) @@ -203,13 +203,13 @@ Ndef 标签 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| Ndef | ✔️ | | | | | -| Ndef.close | ✔️ | | | | | -| Ndef.connect | ✔️ | | | | | -| Ndef.isConnected | ✔️ | | | | | -| Ndef.offNdefMessage | ✔️ | | | | | -| Ndef.onNdefMessage | ✔️ | | | | | -| Ndef.setTimeout | ✔️ | | | | | -| Ndef.writeNdefMessage | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| Ndef | ✔️ | | | | +| Ndef.close | ✔️ | | | | +| Ndef.connect | ✔️ | | | | +| Ndef.isConnected | ✔️ | | | | +| Ndef.offNdefMessage | ✔️ | | | | +| Ndef.onNdefMessage | ✔️ | | | | +| Ndef.setTimeout | ✔️ | | | | +| Ndef.writeNdefMessage | ✔️ | | | | diff --git a/docs/apis/device/nfc/NfcA.md b/docs/apis/device/nfc/NfcA.md index 981e8208b71f..2df956d0246b 100644 --- a/docs/apis/device/nfc/NfcA.md +++ b/docs/apis/device/nfc/NfcA.md @@ -5,7 +5,7 @@ sidebar_label: NfcA NfcA 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcA.html) @@ -15,7 +15,7 @@ NfcA 标签 断开连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcA.close.html) @@ -31,7 +31,7 @@ NfcA 标签 连接 NFC 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcA.connect.html) @@ -47,7 +47,7 @@ NfcA 标签 获取 ATQA 信息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcA.getAtqa.html) @@ -63,7 +63,7 @@ NfcA 标签 获取最大传输长度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcA.getMaxTransceiveLength.html) @@ -79,7 +79,7 @@ NfcA 标签 获取 SAK 信息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcA.getSak.html) @@ -95,7 +95,7 @@ NfcA 标签 检查是否已连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcA.isConnected.html) @@ -111,7 +111,7 @@ NfcA 标签 设置超时时间 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcA.setTimeout.html) @@ -127,7 +127,7 @@ NfcA 标签 发送数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcA.transceive.html) @@ -249,14 +249,14 @@ NfcA 标签 ## API 支持度 -| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| NfcA | ✔️ | ✔️ | | | | | -| NfcA.close | ✔️ | ✔️ | | | | | -| NfcA.connect | ✔️ | ✔️ | | | | | -| NfcA.getAtqa | ✔️ | ✔️ | | | | | -| NfcA.getMaxTransceiveLength | ✔️ | ✔️ | | | | | -| NfcA.getSak | ✔️ | ✔️ | | | | | -| NfcA.isConnected | ✔️ | ✔️ | | | | | -| NfcA.setTimeout | ✔️ | ✔️ | | | | | -| NfcA.transceive | ✔️ | ✔️ | | | | | +| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | +| NfcA | ✔️ | ✔️ | | | | +| NfcA.close | ✔️ | ✔️ | | | | +| NfcA.connect | ✔️ | ✔️ | | | | +| NfcA.getAtqa | ✔️ | ✔️ | | | | +| NfcA.getMaxTransceiveLength | ✔️ | ✔️ | | | | +| NfcA.getSak | ✔️ | ✔️ | | | | +| NfcA.isConnected | ✔️ | ✔️ | | | | +| NfcA.setTimeout | ✔️ | ✔️ | | | | +| NfcA.transceive | ✔️ | ✔️ | | | | diff --git a/docs/apis/device/nfc/NfcB.md b/docs/apis/device/nfc/NfcB.md index 4602741a5cd5..6d2d8bc820e4 100644 --- a/docs/apis/device/nfc/NfcB.md +++ b/docs/apis/device/nfc/NfcB.md @@ -5,7 +5,7 @@ sidebar_label: NfcB NfcB 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcB.html) @@ -15,7 +15,7 @@ NfcB 标签 断开连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcB.close.html) @@ -31,7 +31,7 @@ NfcB 标签 连接 NFC 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcB.connect.html) @@ -47,7 +47,7 @@ NfcB 标签 获取最大传输长度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcB.getMaxTransceiveLength.html) @@ -63,7 +63,7 @@ NfcB 标签 检查是否已连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcB.isConnected.html) @@ -79,7 +79,7 @@ NfcB 标签 设置超时时间 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcB.setTimeout.html) @@ -95,7 +95,7 @@ NfcB 标签 发送数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcB.transceive.html) @@ -185,12 +185,12 @@ NfcB 标签 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| NfcB | ✔️ | | | | | -| NfcB.close | ✔️ | | | | | -| NfcB.connect | ✔️ | | | | | -| NfcB.getMaxTransceiveLength | ✔️ | | | | | -| NfcB.isConnected | ✔️ | | | | | -| NfcB.setTimeout | ✔️ | | | | | -| NfcB.transceive | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| NfcB | ✔️ | | | | +| NfcB.close | ✔️ | | | | +| NfcB.connect | ✔️ | | | | +| NfcB.getMaxTransceiveLength | ✔️ | | | | +| NfcB.isConnected | ✔️ | | | | +| NfcB.setTimeout | ✔️ | | | | +| NfcB.transceive | ✔️ | | | | diff --git a/docs/apis/device/nfc/NfcF.md b/docs/apis/device/nfc/NfcF.md index 7e9bb63b06ff..4e869f6527a9 100644 --- a/docs/apis/device/nfc/NfcF.md +++ b/docs/apis/device/nfc/NfcF.md @@ -5,7 +5,7 @@ sidebar_label: NfcF NfcF 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcF.html) @@ -15,7 +15,7 @@ NfcF 标签 断开连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcF.close.html) @@ -31,7 +31,7 @@ NfcF 标签 连接 NFC 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcF.connect.html) @@ -47,7 +47,7 @@ NfcF 标签 获取最大传输长度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcF.getMaxTransceiveLength.html) @@ -63,7 +63,7 @@ NfcF 标签 检查是否已连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcF.isConnected.html) @@ -79,7 +79,7 @@ NfcF 标签 设置超时时间 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcF.setTimeout.html) @@ -95,7 +95,7 @@ NfcF 标签 发送数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcF.transceive.html) @@ -185,12 +185,12 @@ NfcF 标签 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| NfcF | ✔️ | | | | | -| NfcF.close | ✔️ | | | | | -| NfcF.connect | ✔️ | | | | | -| NfcF.getMaxTransceiveLength | ✔️ | | | | | -| NfcF.isConnected | ✔️ | | | | | -| NfcF.setTimeout | ✔️ | | | | | -| NfcF.transceive | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| NfcF | ✔️ | | | | +| NfcF.close | ✔️ | | | | +| NfcF.connect | ✔️ | | | | +| NfcF.getMaxTransceiveLength | ✔️ | | | | +| NfcF.isConnected | ✔️ | | | | +| NfcF.setTimeout | ✔️ | | | | +| NfcF.transceive | ✔️ | | | | diff --git a/docs/apis/device/nfc/NfcV.md b/docs/apis/device/nfc/NfcV.md index 570f5310ad05..0523bf4cf6f0 100644 --- a/docs/apis/device/nfc/NfcV.md +++ b/docs/apis/device/nfc/NfcV.md @@ -5,7 +5,7 @@ sidebar_label: NfcV NfcV 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcV.html) @@ -15,7 +15,7 @@ NfcV 标签 断开连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcV.close.html) @@ -31,7 +31,7 @@ NfcV 标签 连接 NFC 标签 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcV.connect.html) @@ -47,7 +47,7 @@ NfcV 标签 获取最大传输长度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcV.getMaxTransceiveLength.html) @@ -63,7 +63,7 @@ NfcV 标签 检查是否已连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcV.isConnected.html) @@ -79,7 +79,7 @@ NfcV 标签 设置超时时间 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcV.setTimeout.html) @@ -95,7 +95,7 @@ NfcV 标签 发送数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcV.transceive.html) @@ -185,12 +185,12 @@ NfcV 标签 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| NfcV | ✔️ | | | | | -| NfcV.close | ✔️ | | | | | -| NfcV.connect | ✔️ | | | | | -| NfcV.getMaxTransceiveLength | ✔️ | | | | | -| NfcV.isConnected | ✔️ | | | | | -| NfcV.setTimeout | ✔️ | | | | | -| NfcV.transceive | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| NfcV | ✔️ | | | | +| NfcV.close | ✔️ | | | | +| NfcV.connect | ✔️ | | | | +| NfcV.getMaxTransceiveLength | ✔️ | | | | +| NfcV.isConnected | ✔️ | | | | +| NfcV.setTimeout | ✔️ | | | | +| NfcV.transceive | ✔️ | | | | diff --git a/docs/apis/device/nfc/getHCEState.md b/docs/apis/device/nfc/getHCEState.md index b50e9a426f30..eab8f27fd7cc 100644 --- a/docs/apis/device/nfc/getHCEState.md +++ b/docs/apis/device/nfc/getHCEState.md @@ -5,7 +5,7 @@ sidebar_label: getHCEState 判断当前设备是否支持 HCE 能力。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/wx.getHCEState.html) diff --git a/docs/apis/device/nfc/getNFCAdapter.md b/docs/apis/device/nfc/getNFCAdapter.md index 21ffd2a61729..2bbc2b5b4d5c 100644 --- a/docs/apis/device/nfc/getNFCAdapter.md +++ b/docs/apis/device/nfc/getNFCAdapter.md @@ -5,7 +5,7 @@ sidebar_label: getNFCAdapter 获取 NFC 实例 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/wx.getNFCAdapter.html) diff --git a/docs/apis/device/nfc/offHCEMessage.md b/docs/apis/device/nfc/offHCEMessage.md index 3a07286fff55..020fc9096710 100644 --- a/docs/apis/device/nfc/offHCEMessage.md +++ b/docs/apis/device/nfc/offHCEMessage.md @@ -5,7 +5,7 @@ sidebar_label: offHCEMessage 接收 NFC 设备消息事件,取消事件监听。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/wx.offHCEMessage.html) diff --git a/docs/apis/device/nfc/onHCEMessage.md b/docs/apis/device/nfc/onHCEMessage.md index f3d3e66b3f19..278440160518 100644 --- a/docs/apis/device/nfc/onHCEMessage.md +++ b/docs/apis/device/nfc/onHCEMessage.md @@ -5,7 +5,7 @@ sidebar_label: onHCEMessage 监听接收 NFC 设备消息事件,仅能注册一个监听 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/wx.onHCEMessage.html) diff --git a/docs/apis/device/nfc/sendHCEMessage.md b/docs/apis/device/nfc/sendHCEMessage.md index e4535ec96386..e1d994e96ccb 100644 --- a/docs/apis/device/nfc/sendHCEMessage.md +++ b/docs/apis/device/nfc/sendHCEMessage.md @@ -5,7 +5,7 @@ sidebar_label: sendHCEMessage 发送 NFC 消息。仅在安卓系统下有效。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/wx.sendHCEMessage.html) diff --git a/docs/apis/device/nfc/startHCE.md b/docs/apis/device/nfc/startHCE.md index 952372000ec1..64726dc12925 100644 --- a/docs/apis/device/nfc/startHCE.md +++ b/docs/apis/device/nfc/startHCE.md @@ -5,7 +5,7 @@ sidebar_label: startHCE 初始化 NFC 模块。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/wx.startHCE.html) diff --git a/docs/apis/device/nfc/stopHCE.md b/docs/apis/device/nfc/stopHCE.md index cc00f0cf3019..67dfc6961aac 100644 --- a/docs/apis/device/nfc/stopHCE.md +++ b/docs/apis/device/nfc/stopHCE.md @@ -5,7 +5,7 @@ sidebar_label: stopHCE 关闭 NFC 模块。仅在安卓系统下有效。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/wx.stopHCE.html) diff --git a/docs/apis/device/phone/makePhoneCall.md b/docs/apis/device/phone/makePhoneCall.md index ad7f3467113d..69750be63927 100644 --- a/docs/apis/device/phone/makePhoneCall.md +++ b/docs/apis/device/phone/makePhoneCall.md @@ -5,7 +5,7 @@ sidebar_label: makePhoneCall 拨打电话 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/phone/wx.makePhoneCall.html) diff --git a/docs/apis/device/scan/scanCode.md b/docs/apis/device/scan/scanCode.md index 4e468233b5cf..f6a2a522a0cc 100644 --- a/docs/apis/device/scan/scanCode.md +++ b/docs/apis/device/scan/scanCode.md @@ -5,7 +5,7 @@ sidebar_label: scanCode 调起客户端扫码界面,扫码成功后返回对应的结果 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/scan/wx.scanCode.html) diff --git a/docs/apis/device/screen/getScreenBrightness.md b/docs/apis/device/screen/getScreenBrightness.md index 2931cf281c27..60bfde2c04e4 100644 --- a/docs/apis/device/screen/getScreenBrightness.md +++ b/docs/apis/device/screen/getScreenBrightness.md @@ -8,7 +8,7 @@ sidebar_label: getScreenBrightness **说明** - 若安卓系统设置中开启了自动调节亮度功能,则屏幕亮度会根据光线自动调整,该接口仅能获取自动调节亮度之前的值,而非实时的亮度值。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.getScreenBrightness.html) diff --git a/docs/apis/device/screen/getScreenRecordingState.md b/docs/apis/device/screen/getScreenRecordingState.md index 6afb66c2c4b2..7eada594694e 100644 --- a/docs/apis/device/screen/getScreenRecordingState.md +++ b/docs/apis/device/screen/getScreenRecordingState.md @@ -5,7 +5,7 @@ sidebar_label: getScreenRecordingState 查询用户是否在录屏 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.getScreenRecordingState.html) diff --git a/docs/apis/device/screen/offScreenRecordingStateChanged.md b/docs/apis/device/screen/offScreenRecordingStateChanged.md index 1356c7fd9c0d..8a9753fd21b3 100644 --- a/docs/apis/device/screen/offScreenRecordingStateChanged.md +++ b/docs/apis/device/screen/offScreenRecordingStateChanged.md @@ -5,7 +5,7 @@ sidebar_label: offScreenRecordingStateChanged 取消用户录屏事件的监听函数 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.offScreenRecordingStateChanged.html) diff --git a/docs/apis/device/screen/offUserCaptureScreen.md b/docs/apis/device/screen/offUserCaptureScreen.md index e4d7f2c90e12..03f1e3b40990 100644 --- a/docs/apis/device/screen/offUserCaptureScreen.md +++ b/docs/apis/device/screen/offUserCaptureScreen.md @@ -5,7 +5,7 @@ sidebar_label: offUserCaptureScreen 用户主动截屏事件。取消事件监听。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.offUserCaptureScreen.html) diff --git a/docs/apis/device/screen/onScreenRecordingStateChanged.md b/docs/apis/device/screen/onScreenRecordingStateChanged.md index e745e92c071c..2c09769e6cc9 100644 --- a/docs/apis/device/screen/onScreenRecordingStateChanged.md +++ b/docs/apis/device/screen/onScreenRecordingStateChanged.md @@ -5,7 +5,7 @@ sidebar_label: onScreenRecordingStateChanged 监听用户录屏事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.onScreenRecordingStateChanged.html) diff --git a/docs/apis/device/screen/onUserCaptureScreen.md b/docs/apis/device/screen/onUserCaptureScreen.md index 281de40022b3..125191ee4edf 100644 --- a/docs/apis/device/screen/onUserCaptureScreen.md +++ b/docs/apis/device/screen/onUserCaptureScreen.md @@ -5,7 +5,7 @@ sidebar_label: onUserCaptureScreen 监听用户主动截屏事件,用户使用系统截屏按键截屏时触发此事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.onUserCaptureScreen.html) diff --git a/docs/apis/device/screen/setKeepScreenOn.md b/docs/apis/device/screen/setKeepScreenOn.md index 707674ce01b9..c12172309104 100644 --- a/docs/apis/device/screen/setKeepScreenOn.md +++ b/docs/apis/device/screen/setKeepScreenOn.md @@ -5,7 +5,7 @@ sidebar_label: setKeepScreenOn 设置是否保持常亮状态。仅在当前小程序生效,离开小程序后设置失效。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.setKeepScreenOn.html) diff --git a/docs/apis/device/screen/setScreenBrightness.md b/docs/apis/device/screen/setScreenBrightness.md index 5aefb523540d..1f2ff2d613ba 100644 --- a/docs/apis/device/screen/setScreenBrightness.md +++ b/docs/apis/device/screen/setScreenBrightness.md @@ -5,7 +5,7 @@ sidebar_label: setScreenBrightness 设置屏幕亮度。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.setScreenBrightness.html) diff --git a/docs/apis/device/screen/setVisualEffectOnCapture.md b/docs/apis/device/screen/setVisualEffectOnCapture.md index 62f61a44ba45..0681a743abf8 100644 --- a/docs/apis/device/screen/setVisualEffectOnCapture.md +++ b/docs/apis/device/screen/setVisualEffectOnCapture.md @@ -5,7 +5,7 @@ sidebar_label: setVisualEffectOnCapture 设置截屏/录屏时屏幕表现,仅支持在 Android 端调用 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.setVisualEffectOnCapture.html) diff --git a/docs/apis/device/sms/sendSms.md b/docs/apis/device/sms/sendSms.md index 68fa6a9c310a..5638c06d9209 100644 --- a/docs/apis/device/sms/sendSms.md +++ b/docs/apis/device/sms/sendSms.md @@ -5,7 +5,7 @@ sidebar_label: sendSms 拉起手机发送短信界面 -支持情况: +支持情况: > [参考文档](declare module '../../index') diff --git a/docs/apis/device/vibrate/vibrateLong.md b/docs/apis/device/vibrate/vibrateLong.md index 5d8904e846ee..5dda75654d05 100644 --- a/docs/apis/device/vibrate/vibrateLong.md +++ b/docs/apis/device/vibrate/vibrateLong.md @@ -5,7 +5,7 @@ sidebar_label: vibrateLong 使手机发生较长时间的振动(400ms) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/vibrate/wx.vibrateLong.html) diff --git a/docs/apis/device/vibrate/vibrateShort.md b/docs/apis/device/vibrate/vibrateShort.md index 9002f3d93c68..6041a15aef01 100644 --- a/docs/apis/device/vibrate/vibrateShort.md +++ b/docs/apis/device/vibrate/vibrateShort.md @@ -7,7 +7,7 @@ sidebar_label: vibrateShort 仅微信小程序平台支持 type 参数 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/vibrate/wx.vibrateShort.html) diff --git a/docs/apis/device/wifi/connectWifi.md b/docs/apis/device/wifi/connectWifi.md index ce6da10ebc60..3798e96f0aa8 100644 --- a/docs/apis/device/wifi/connectWifi.md +++ b/docs/apis/device/wifi/connectWifi.md @@ -5,7 +5,7 @@ sidebar_label: connectWifi 连接 Wi-Fi。若已知 Wi-Fi 信息,可以直接利用该接口连接。仅 Android 与 iOS 11 以上版本支持。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.connectWifi.html) diff --git a/docs/apis/device/wifi/getConnectedWifi.md b/docs/apis/device/wifi/getConnectedWifi.md index e085082f107a..ab9dec246945 100644 --- a/docs/apis/device/wifi/getConnectedWifi.md +++ b/docs/apis/device/wifi/getConnectedWifi.md @@ -5,7 +5,7 @@ sidebar_label: getConnectedWifi 获取已连接中的 Wi-Fi 信息。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.getConnectedWifi.html) diff --git a/docs/apis/device/wifi/getWifiList.md b/docs/apis/device/wifi/getWifiList.md index b0078dc56bfd..fa1c22c0710d 100644 --- a/docs/apis/device/wifi/getWifiList.md +++ b/docs/apis/device/wifi/getWifiList.md @@ -7,7 +7,7 @@ sidebar_label: getWifiList iOS 将跳转到系统的 Wi-Fi 界面,Android 不会跳转。 iOS 11.0 及 iOS 11.1 两个版本因系统问题,该方法失效。但在 iOS 11.2 中已修复。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.getWifiList.html) diff --git a/docs/apis/device/wifi/offGetWifiList.md b/docs/apis/device/wifi/offGetWifiList.md index 4f1a397473b8..6d1062eddc5c 100644 --- a/docs/apis/device/wifi/offGetWifiList.md +++ b/docs/apis/device/wifi/offGetWifiList.md @@ -5,7 +5,7 @@ sidebar_label: offGetWifiList 取消监听获取到 Wi-Fi 列表数据事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.offGetWifiList.html) diff --git a/docs/apis/device/wifi/offWifiConnected.md b/docs/apis/device/wifi/offWifiConnected.md index 443e09f25555..ecbdfb2d834e 100644 --- a/docs/apis/device/wifi/offWifiConnected.md +++ b/docs/apis/device/wifi/offWifiConnected.md @@ -5,7 +5,7 @@ sidebar_label: offWifiConnected 取消监听连接上 Wi-Fi 的事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.offWifiConnected.html) diff --git a/docs/apis/device/wifi/offWifiConnectedWithPartialInfo.md b/docs/apis/device/wifi/offWifiConnectedWithPartialInfo.md index ee53392bf234..0039bdda2df3 100644 --- a/docs/apis/device/wifi/offWifiConnectedWithPartialInfo.md +++ b/docs/apis/device/wifi/offWifiConnectedWithPartialInfo.md @@ -5,7 +5,7 @@ sidebar_label: offWifiConnectedWithPartialInfo 取消监听连接上 Wi-Fi 的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.offWifiConnectedWithPartialInfo.html) diff --git a/docs/apis/device/wifi/onGetWifiList.md b/docs/apis/device/wifi/onGetWifiList.md index 2ee9ac09d260..761952a01b30 100644 --- a/docs/apis/device/wifi/onGetWifiList.md +++ b/docs/apis/device/wifi/onGetWifiList.md @@ -5,7 +5,7 @@ sidebar_label: onGetWifiList 监听获取到 Wi-Fi 列表数据事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.onGetWifiList.html) diff --git a/docs/apis/device/wifi/onWifiConnected.md b/docs/apis/device/wifi/onWifiConnected.md index 91b7791bd005..69720f81e1e7 100644 --- a/docs/apis/device/wifi/onWifiConnected.md +++ b/docs/apis/device/wifi/onWifiConnected.md @@ -5,7 +5,7 @@ sidebar_label: onWifiConnected 监听连接上 Wi-Fi 的事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.onWifiConnected.html) diff --git a/docs/apis/device/wifi/onWifiConnectedWithPartialInfo.md b/docs/apis/device/wifi/onWifiConnectedWithPartialInfo.md index bc38ac5920ae..11c86b30a891 100644 --- a/docs/apis/device/wifi/onWifiConnectedWithPartialInfo.md +++ b/docs/apis/device/wifi/onWifiConnectedWithPartialInfo.md @@ -5,7 +5,7 @@ sidebar_label: onWifiConnectedWithPartialInfo 监听连接上 Wi-Fi 的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.onWifiConnectedWithPartialInfo.html) diff --git a/docs/apis/device/wifi/setWifiList.md b/docs/apis/device/wifi/setWifiList.md index 7191f07ba9ec..515dda3bae6f 100644 --- a/docs/apis/device/wifi/setWifiList.md +++ b/docs/apis/device/wifi/setWifiList.md @@ -10,7 +10,7 @@ sidebar_label: setWifiList - 此时客户端会挂起,等待小程序设置 Wi-Fi 信息,请务必尽快调用该接口,若无数据请传入一个空数组。 - 有可能随着周边 Wi-Fi 列表的刷新,单个流程内收到多次带有存在重复的 Wi-Fi 列表的回调。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.setWifiList.html) diff --git a/docs/apis/device/wifi/startWifi.md b/docs/apis/device/wifi/startWifi.md index 19d10e20598b..8bb8e0cbea27 100644 --- a/docs/apis/device/wifi/startWifi.md +++ b/docs/apis/device/wifi/startWifi.md @@ -5,7 +5,7 @@ sidebar_label: startWifi 初始化 Wi-Fi 模块。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.startWifi.html) diff --git a/docs/apis/device/wifi/stopWifi.md b/docs/apis/device/wifi/stopWifi.md index 61936faf022b..d86084c7e6a0 100644 --- a/docs/apis/device/wifi/stopWifi.md +++ b/docs/apis/device/wifi/stopWifi.md @@ -5,7 +5,7 @@ sidebar_label: stopWifi 关闭 Wi-Fi 模块。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.stopWifi.html) diff --git a/docs/apis/ext/getExtConfig.md b/docs/apis/ext/getExtConfig.md index 7e48f8137bd4..409fef7026e5 100644 --- a/docs/apis/ext/getExtConfig.md +++ b/docs/apis/ext/getExtConfig.md @@ -8,7 +8,7 @@ sidebar_label: getExtConfig **Tips** 1. 本接口暂时无法通过 Taro.canIUse 判断是否兼容,开发者需要自行判断 Taro.getExtConfig 是否存在来兼容 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ext/wx.getExtConfig.html) diff --git a/docs/apis/ext/getExtConfigSync.md b/docs/apis/ext/getExtConfigSync.md index 0fa9729dc36c..10af996057d4 100644 --- a/docs/apis/ext/getExtConfigSync.md +++ b/docs/apis/ext/getExtConfigSync.md @@ -8,7 +8,7 @@ Taro.getExtConfig 的同步版本。 **Tips** 1. 本接口暂时无法通过 Taro.canIUse 判断是否兼容,开发者需要自行判断 Taro.getExtConfigSync 是否存在来兼容 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ext/wx.getExtConfigSync.html) diff --git a/docs/apis/files/FileSystemManager.md b/docs/apis/files/FileSystemManager.md index 834081584d5f..ff4382cde86c 100644 --- a/docs/apis/files/FileSystemManager.md +++ b/docs/apis/files/FileSystemManager.md @@ -5,7 +5,7 @@ sidebar_label: FileSystemManager 文件管理器,可通过 [Taro.getFileSystemManager](./getFileSystemManager) 获取。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.html) @@ -15,7 +15,7 @@ sidebar_label: FileSystemManager 判断文件/目录是否存在 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.access.html) @@ -31,7 +31,7 @@ sidebar_label: FileSystemManager [FileSystemManager.access](#access) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.accessSync.html) @@ -47,7 +47,7 @@ sidebar_label: FileSystemManager 在文件结尾追加内容 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.appendFile.html) @@ -63,7 +63,7 @@ sidebar_label: FileSystemManager [FileSystemManager.appendFile](#appendfile) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.appendFileSync.html) @@ -81,7 +81,7 @@ sidebar_label: FileSystemManager 关闭文件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.close.html) @@ -97,7 +97,7 @@ sidebar_label: FileSystemManager [FileSystemManager.close](#close) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.closeSync.html) @@ -113,7 +113,7 @@ sidebar_label: FileSystemManager 复制文件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.copyFile.html) @@ -129,7 +129,7 @@ sidebar_label: FileSystemManager [FileSystemManager.copyFile](#copyfile) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.copyFileSync.html) @@ -146,7 +146,7 @@ sidebar_label: FileSystemManager 获取文件的状态信息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.fstat.html) @@ -162,7 +162,7 @@ sidebar_label: FileSystemManager [FileSystemManager.fstat](#fstat) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.fstatSync.html) @@ -178,7 +178,7 @@ sidebar_label: FileSystemManager 对文件内容进行截断操作 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.ftruncate.html) @@ -194,7 +194,7 @@ sidebar_label: FileSystemManager [FileSystemManager.ftruncate](#ftruncate) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.ftruncateSync.html) @@ -210,7 +210,7 @@ sidebar_label: FileSystemManager 获取该小程序下的 `本地临时文件` 或 `本地缓存文件` 信息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.getFileInfo.html) @@ -226,7 +226,7 @@ sidebar_label: FileSystemManager 获取该小程序下已保存的本地缓存文件列表 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.getSavedFileList.html) @@ -242,7 +242,7 @@ sidebar_label: FileSystemManager 创建目录 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.mkdir.html) @@ -258,7 +258,7 @@ sidebar_label: FileSystemManager [FileSystemManager.mkdir](#mkdir) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.mkdirSync.html) @@ -275,7 +275,7 @@ sidebar_label: FileSystemManager 打开文件,返回文件描述符 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.open.html) @@ -291,7 +291,7 @@ sidebar_label: FileSystemManager [FileSystemManager.openSync](#opensync) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.ftruncateSync.html) @@ -307,7 +307,7 @@ sidebar_label: FileSystemManager 读文件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.read.html) @@ -323,7 +323,7 @@ sidebar_label: FileSystemManager 读取指定压缩类型的本地文件内容 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.readCompressedFile.html) @@ -339,7 +339,7 @@ sidebar_label: FileSystemManager 同步读取指定压缩类型的本地文件内容 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.readCompressedFileSync.html) @@ -355,7 +355,7 @@ sidebar_label: FileSystemManager 读取目录内文件列表 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.readdir.html) @@ -371,7 +371,7 @@ sidebar_label: FileSystemManager [FileSystemManager.readdir](#readdir) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.readdirSync.html) @@ -387,7 +387,7 @@ sidebar_label: FileSystemManager 读取本地文件内容 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.readFile.html) @@ -403,7 +403,7 @@ sidebar_label: FileSystemManager [FileSystemManager.readFile](#readfile) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.readFileSync.html) @@ -422,7 +422,7 @@ sidebar_label: FileSystemManager [FileSystemManager.read](#read) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.readSync.html) @@ -438,7 +438,7 @@ sidebar_label: FileSystemManager 读取压缩包内的文件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.readZipEntry.html) @@ -454,7 +454,7 @@ sidebar_label: FileSystemManager 删除该小程序下已保存的本地缓存文件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.removeSavedFile.html) @@ -470,7 +470,7 @@ sidebar_label: FileSystemManager 重命名文件。可以把文件从 oldPath 移动到 newPath -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.rename.html) @@ -486,7 +486,7 @@ sidebar_label: FileSystemManager [FileSystemManager.rename](#rename) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.renameSync.html) @@ -503,7 +503,7 @@ sidebar_label: FileSystemManager 删除目录 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.rmdir.html) @@ -519,7 +519,7 @@ sidebar_label: FileSystemManager [FileSystemManager.rmdir](#rmdir) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.rmdirSync.html) @@ -536,7 +536,7 @@ sidebar_label: FileSystemManager 保存临时文件到本地。此接口会移动临时文件,因此调用成功后,tempFilePath 将不可用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.saveFile.html) @@ -552,7 +552,7 @@ sidebar_label: FileSystemManager [FileSystemManager.saveFile](#savefile) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.saveFileSync.html) @@ -569,7 +569,7 @@ sidebar_label: FileSystemManager 获取文件 Stats 对象 -支持情况: +支持情况: ```tsx (option: StatOption) => void @@ -583,7 +583,7 @@ sidebar_label: FileSystemManager [FileSystemManager.stat](#stat) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.statSync.html) @@ -600,7 +600,7 @@ sidebar_label: FileSystemManager 对文件内容进行截断操作 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.truncate.html) @@ -616,7 +616,7 @@ sidebar_label: FileSystemManager 对文件内容进行截断操作 ([truncate](#truncate) 的同步版本) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.truncateSync.html) @@ -632,7 +632,7 @@ sidebar_label: FileSystemManager 删除文件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.unlink.html) @@ -648,7 +648,7 @@ sidebar_label: FileSystemManager [FileSystemManager.unlink](#unlink) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.unlinkSync.html) @@ -664,7 +664,7 @@ sidebar_label: FileSystemManager 解压文件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.unzip.html) @@ -680,7 +680,7 @@ sidebar_label: FileSystemManager 写入文件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.write.html) @@ -696,7 +696,7 @@ sidebar_label: FileSystemManager 写文件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.writeFile.html) @@ -712,7 +712,7 @@ sidebar_label: FileSystemManager [FileSystemManager.writeFile](#writefile) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.writeFileSync.html) @@ -730,7 +730,7 @@ sidebar_label: FileSystemManager [write](#write) 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.writeSync.html) @@ -1390,51 +1390,51 @@ FailCallbackResult | SuccessCallbackResult ## API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| FileSystemManager | ✔️ | | | ✔️ | | | | | | ✔️ | ✔️ | -| FileSystemManager.access | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | ✔️ | -| FileSystemManager.accessSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.appendFile | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.appendFileSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.close | ✔️ | | | | | | | | | | ✔️ | -| FileSystemManager.closeSync | ✔️ | | | | | | | | | | ✔️ | -| FileSystemManager.copyFile | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.copyFileSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.fstat | ✔️ | | | | | | | | | | ✔️ | -| FileSystemManager.fstatSync | ✔️ | | | | | | | | | | ✔️ | -| FileSystemManager.ftruncate | ✔️ | | | | | | | | | | ✔️ | -| FileSystemManager.ftruncateSync | ✔️ | | | | | | | | | | ✔️ | -| FileSystemManager.getFileInfo | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | ✔️ | -| FileSystemManager.getSavedFileList | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.mkdir | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.mkdirSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.open | ✔️ | | | | | | | | | | ✔️ | -| FileSystemManager.openSync | ✔️ | | | | | | | | | | ✔️ | -| FileSystemManager.read | ✔️ | | | | | | | | | | ✔️ | -| FileSystemManager.readCompressedFile | ✔️ | | | | | | | | | | | -| FileSystemManager.readCompressedFileSync | ✔️ | | | | | | | | | | | -| FileSystemManager.readdir | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.readdirSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.readFile | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | ✔️ | -| FileSystemManager.readFileSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | ✔️ | -| FileSystemManager.readSync | ✔️ | | | | | | | | | | ✔️ | -| FileSystemManager.readZipEntry | ✔️ | | | | | | | | | | | -| FileSystemManager.removeSavedFile | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.rename | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.renameSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.rmdir | ✔️ | | | ✔️ | | | | | | | ✔️ | -| FileSystemManager.rmdirSync | ✔️ | | | ✔️ | | | | | | | ✔️ | -| FileSystemManager.saveFile | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.saveFileSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.stat | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.statSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.truncate | ✔️ | | | ✔️ | | | | | | | ✔️ | -| FileSystemManager.truncateSync | ✔️ | | | ✔️ | | | | | | | ✔️ | -| FileSystemManager.unlink | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.unlinkSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.unzip | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.write | ✔️ | | | | | | | | | | ✔️ | -| FileSystemManager.writeFile | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.writeFileSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| FileSystemManager.writeSync | ✔️ | | | | | | | | | | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| FileSystemManager | ✔️ | | | ✔️ | | | | | | ✔️ | +| FileSystemManager.access | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | +| FileSystemManager.accessSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.appendFile | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.appendFileSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.close | ✔️ | | | | | | | | | | +| FileSystemManager.closeSync | ✔️ | | | | | | | | | | +| FileSystemManager.copyFile | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.copyFileSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.fstat | ✔️ | | | | | | | | | | +| FileSystemManager.fstatSync | ✔️ | | | | | | | | | | +| FileSystemManager.ftruncate | ✔️ | | | | | | | | | | +| FileSystemManager.ftruncateSync | ✔️ | | | | | | | | | | +| FileSystemManager.getFileInfo | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | +| FileSystemManager.getSavedFileList | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.mkdir | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.mkdirSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.open | ✔️ | | | | | | | | | | +| FileSystemManager.openSync | ✔️ | | | | | | | | | | +| FileSystemManager.read | ✔️ | | | | | | | | | | +| FileSystemManager.readCompressedFile | ✔️ | | | | | | | | | | +| FileSystemManager.readCompressedFileSync | ✔️ | | | | | | | | | | +| FileSystemManager.readdir | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.readdirSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.readFile | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | +| FileSystemManager.readFileSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | +| FileSystemManager.readSync | ✔️ | | | | | | | | | | +| FileSystemManager.readZipEntry | ✔️ | | | | | | | | | | +| FileSystemManager.removeSavedFile | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.rename | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.renameSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.rmdir | ✔️ | | | ✔️ | | | | | | | +| FileSystemManager.rmdirSync | ✔️ | | | ✔️ | | | | | | | +| FileSystemManager.saveFile | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.saveFileSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.stat | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | | | | +| FileSystemManager.statSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.truncate | ✔️ | | | ✔️ | | | | | | | +| FileSystemManager.truncateSync | ✔️ | | | ✔️ | | | | | | | +| FileSystemManager.unlink | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.unlinkSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.unzip | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.write | ✔️ | | | | | | | | | | +| FileSystemManager.writeFile | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.writeFileSync | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| FileSystemManager.writeSync | ✔️ | | | | | | | | | | diff --git a/docs/apis/files/ReadResult.md b/docs/apis/files/ReadResult.md index 773631da81bb..e2079608c1df 100644 --- a/docs/apis/files/ReadResult.md +++ b/docs/apis/files/ReadResult.md @@ -5,7 +5,7 @@ sidebar_label: ReadResult 文件读取结果。 通过 [FileSystemManager.readSync](./FileSystemManager#readsync) 接口返回 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/ReadResult.html) @@ -18,6 +18,6 @@ sidebar_label: ReadResult ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| ReadResult | ✔️ | | | | ✔️ | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| ReadResult | ✔️ | | | | diff --git a/docs/apis/files/Stats.md b/docs/apis/files/Stats.md index 0eb5a7720501..e8f95ea64ba5 100644 --- a/docs/apis/files/Stats.md +++ b/docs/apis/files/Stats.md @@ -5,7 +5,7 @@ sidebar_label: Stats 描述文件状态的对象 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/Stats.html) @@ -22,7 +22,7 @@ sidebar_label: Stats 判断当前文件是否一个目录 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/Stats.isDirectory.html) @@ -34,7 +34,7 @@ sidebar_label: Stats 判断当前文件是否一个普通文件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/Stats.isFile.html) @@ -44,8 +44,8 @@ sidebar_label: Stats ## API 支持度 -| API | 微信小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| Stats | ✔️ | | | | | | | | ✔️ | -| Stats.isDirectory | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | -| Stats.isFile | ✔️ | | ✔️ | ✔️ | ✔️ | | | | ✔️ | +| API | 微信小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| Stats | ✔️ | | | | | | | | +| Stats.isDirectory | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| Stats.isFile | ✔️ | | ✔️ | ✔️ | ✔️ | | | | diff --git a/docs/apis/files/WriteResult.md b/docs/apis/files/WriteResult.md index ea0bbca85391..7b11c0b291a1 100644 --- a/docs/apis/files/WriteResult.md +++ b/docs/apis/files/WriteResult.md @@ -5,7 +5,7 @@ sidebar_label: WriteResult 文件写入结果。 通过 [FileSystemManager.writeSync](./FileSystemManager#writesync) 接口返回 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/WriteResult.html) @@ -17,6 +17,6 @@ sidebar_label: WriteResult ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| WriteResult | ✔️ | | | | ✔️ | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| WriteResult | ✔️ | | | | diff --git a/docs/apis/files/getFileInfo.md b/docs/apis/files/getFileInfo.md index 3379df0fba06..521e5371512b 100644 --- a/docs/apis/files/getFileInfo.md +++ b/docs/apis/files/getFileInfo.md @@ -5,7 +5,7 @@ sidebar_label: getFileInfo 获取该小程序下的 本地临时文件 或 本地缓存文件 信息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.getFileInfo.html) diff --git a/docs/apis/files/getFileSystemManager.md b/docs/apis/files/getFileSystemManager.md index 3c4ea074b9c7..8c38110a6ac6 100644 --- a/docs/apis/files/getFileSystemManager.md +++ b/docs/apis/files/getFileSystemManager.md @@ -5,7 +5,7 @@ sidebar_label: getFileSystemManager 获取全局唯一的文件管理器 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.getFileSystemManager.html) diff --git a/docs/apis/files/getSavedFileInfo.md b/docs/apis/files/getSavedFileInfo.md index 85a3644d8915..20ffde1f3fbb 100644 --- a/docs/apis/files/getSavedFileInfo.md +++ b/docs/apis/files/getSavedFileInfo.md @@ -5,7 +5,7 @@ sidebar_label: getSavedFileInfo 获取本地文件的文件信息。此接口只能用于获取已保存到本地的文件,若需要获取临时文件信息,请使用 [Taro.getFileInfo](/docs/apis/files/getFileInfo) 接口。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.getSavedFileInfo.html) diff --git a/docs/apis/files/getSavedFileList.md b/docs/apis/files/getSavedFileList.md index da4ba5c6b8dd..6025c2a0d459 100644 --- a/docs/apis/files/getSavedFileList.md +++ b/docs/apis/files/getSavedFileList.md @@ -5,7 +5,7 @@ sidebar_label: getSavedFileList 获取本地已保存的文件列表 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.getSavedFileList.html) diff --git a/docs/apis/files/openDocument.md b/docs/apis/files/openDocument.md index 470e1abe5b19..6a7775821e30 100644 --- a/docs/apis/files/openDocument.md +++ b/docs/apis/files/openDocument.md @@ -5,7 +5,7 @@ sidebar_label: openDocument 新开页面打开文档,支持格式 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.openDocument.html) diff --git a/docs/apis/files/removeSavedFile.md b/docs/apis/files/removeSavedFile.md index cce84d91c7d7..46368bb8ea23 100644 --- a/docs/apis/files/removeSavedFile.md +++ b/docs/apis/files/removeSavedFile.md @@ -5,7 +5,7 @@ sidebar_label: removeSavedFile 删除该小程序下已保存的本地缓存文件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.removeSavedFile.html) diff --git a/docs/apis/files/saveFile.md b/docs/apis/files/saveFile.md index 9500af0f2666..8708606b6a89 100644 --- a/docs/apis/files/saveFile.md +++ b/docs/apis/files/saveFile.md @@ -5,7 +5,7 @@ sidebar_label: saveFile 保存文件到本地。**注意:saveFile 会把临时文件移动,因此调用成功后传入的 tempFilePath 将不可用** -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.saveFile.html) diff --git a/docs/apis/files/saveFileToDisk.md b/docs/apis/files/saveFileToDisk.md index 3dc2befe4de6..9cf2359cb2e5 100644 --- a/docs/apis/files/saveFileToDisk.md +++ b/docs/apis/files/saveFileToDisk.md @@ -5,7 +5,7 @@ sidebar_label: saveFileToDisk 保存文件系统的文件到用户磁盘,仅在 PC 端支持 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.saveFileToDisk.html) diff --git a/docs/apis/framework/getApp.md b/docs/apis/framework/getApp.md index bc6a162a6266..c2e4595d2952 100644 --- a/docs/apis/framework/getApp.md +++ b/docs/apis/framework/getApp.md @@ -5,7 +5,7 @@ sidebar_label: getApp 获取到小程序全局唯一的 App 实例。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/reference/api/getApp.html) diff --git a/docs/apis/framework/getCurrentPages.md b/docs/apis/framework/getCurrentPages.md index 7defa64d08d5..3d574bc7c353 100644 --- a/docs/apis/framework/getCurrentPages.md +++ b/docs/apis/framework/getCurrentPages.md @@ -8,7 +8,7 @@ __注意:__ - __不要尝试修改页面栈,会导致路由以及页面状态错误。__ - 不要在 `App.onLaunch` 的时候调用 `getCurrentPages()`,此时 `page` 还没有生成。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/reference/api/getCurrentPages.html) diff --git a/docs/apis/location/chooseLocation.md b/docs/apis/location/chooseLocation.md index 9835d2550c0b..9b04887c6dd4 100644 --- a/docs/apis/location/chooseLocation.md +++ b/docs/apis/location/chooseLocation.md @@ -7,7 +7,7 @@ sidebar_label: chooseLocation `chooseLocation` api功能是依赖于腾讯位置服务,所以需要使用 api 密钥。如果您没有,可以前往腾讯位置服务[开发者控制台](https://lbs.qq.com/console/mykey.html?console=mykey)进行申请。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.chooseLocation.html) diff --git a/docs/apis/location/choosePoi.md b/docs/apis/location/choosePoi.md index 12c8105852de..ef2c90c6611d 100644 --- a/docs/apis/location/choosePoi.md +++ b/docs/apis/location/choosePoi.md @@ -5,7 +5,7 @@ sidebar_label: choosePoi 打开POI列表选择位置,支持模糊定位(精确到市)和精确定位混选。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.choosePoi.html) diff --git a/docs/apis/location/getFuzzyLocation.md b/docs/apis/location/getFuzzyLocation.md index 8b560456b899..1ba7fe486b81 100644 --- a/docs/apis/location/getFuzzyLocation.md +++ b/docs/apis/location/getFuzzyLocation.md @@ -5,7 +5,7 @@ sidebar_label: getFuzzyLocation 获取当前的模糊地理位置 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.getFuzzyLocation.html) diff --git a/docs/apis/location/getLocation.md b/docs/apis/location/getLocation.md index 6f0116b5a2d9..5665bbcc53d9 100644 --- a/docs/apis/location/getLocation.md +++ b/docs/apis/location/getLocation.md @@ -9,7 +9,7 @@ sidebar_label: getLocation - 工具中定位模拟使用IP定位,可能会有一定误差。且工具目前仅支持 gcj02 坐标。 - 使用第三方服务进行逆地址解析时,请确认第三方服务默认的坐标系,正确进行坐标转换。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.getLocation.html) diff --git a/docs/apis/location/offLocationChange.md b/docs/apis/location/offLocationChange.md index 14039493992d..2346bf155d14 100644 --- a/docs/apis/location/offLocationChange.md +++ b/docs/apis/location/offLocationChange.md @@ -5,7 +5,7 @@ sidebar_label: offLocationChange 取消监听实时地理位置变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.offLocationChange.html) diff --git a/docs/apis/location/offLocationChangeError.md b/docs/apis/location/offLocationChangeError.md index d92aa3eea7ff..c0cacc35fbff 100644 --- a/docs/apis/location/offLocationChangeError.md +++ b/docs/apis/location/offLocationChangeError.md @@ -5,7 +5,7 @@ sidebar_label: offLocationChangeError 取消监听持续定位接口返回失败时触发 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.offLocationChangeError.html) diff --git a/docs/apis/location/onLocationChange.md b/docs/apis/location/onLocationChange.md index 91d6f19dc7b2..e409fa055f20 100644 --- a/docs/apis/location/onLocationChange.md +++ b/docs/apis/location/onLocationChange.md @@ -5,7 +5,7 @@ sidebar_label: onLocationChange 监听实时地理位置变化事件,需结合 Taro.startLocationUpdateBackground、Taro.startLocationUpdate 使用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.onLocationChange.html) diff --git a/docs/apis/location/onLocationChangeError.md b/docs/apis/location/onLocationChangeError.md index e8609c74e541..ceea7f0ef57a 100644 --- a/docs/apis/location/onLocationChangeError.md +++ b/docs/apis/location/onLocationChangeError.md @@ -5,7 +5,7 @@ sidebar_label: onLocationChangeError 监听持续定位接口返回失败时触发 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.onLocationChangeError.html) diff --git a/docs/apis/location/openLocation.md b/docs/apis/location/openLocation.md index 72316d2124b9..0bcf0191f055 100644 --- a/docs/apis/location/openLocation.md +++ b/docs/apis/location/openLocation.md @@ -5,7 +5,7 @@ sidebar_label: openLocation 使用微信内置地图查看位置 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.openLocation.html) diff --git a/docs/apis/location/startLocationUpdate.md b/docs/apis/location/startLocationUpdate.md index 0e8c425151e0..eacbbf7ee09c 100644 --- a/docs/apis/location/startLocationUpdate.md +++ b/docs/apis/location/startLocationUpdate.md @@ -8,7 +8,7 @@ sidebar_label: startLocationUpdate **注意** - 获取位置信息需配置[地理位置用途说明](https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#permission)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.startLocationUpdate.html) diff --git a/docs/apis/location/startLocationUpdateBackground.md b/docs/apis/location/startLocationUpdateBackground.md index 73080725bf3e..cb94cf604d9e 100644 --- a/docs/apis/location/startLocationUpdateBackground.md +++ b/docs/apis/location/startLocationUpdateBackground.md @@ -10,7 +10,7 @@ sidebar_label: startLocationUpdateBackground - 需在app.json中配置requiredBackgroundModes: ['location']后使用 - 获取位置信息需配置[地理位置用途说明](https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#permission)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.startLocationUpdateBackground.html) diff --git a/docs/apis/location/stopLocationUpdate.md b/docs/apis/location/stopLocationUpdate.md index 61ba27046ee3..47b9f49c965b 100644 --- a/docs/apis/location/stopLocationUpdate.md +++ b/docs/apis/location/stopLocationUpdate.md @@ -5,7 +5,7 @@ sidebar_label: stopLocationUpdate 关闭监听实时位置变化,前后台都停止消息接收 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.stopLocationUpdate.html) diff --git a/docs/apis/media/audio/AudioBuffer.md b/docs/apis/media/audio/AudioBuffer.md index e087d8d7eed6..334e778f1c65 100644 --- a/docs/apis/media/audio/AudioBuffer.md +++ b/docs/apis/media/audio/AudioBuffer.md @@ -5,7 +5,7 @@ sidebar_label: AudioBuffer AudioBuffer 接口表示存在内存里的一段短小的音频资源,利用 [WebAudioContext.decodeAudioData](./WebAudioContext#decodeaudiodata) 方法从一个音频文件构建,或者利用 [AudioContext.createBuffer](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/(AudioContext.createBuffer).html) 从原始数据构建。把音频放入 AudioBuffer 后,可以传入到一个 AudioBufferSourceNode 进行播放。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/AudioBuffer.html) @@ -22,12 +22,12 @@ AudioBuffer 接口表示存在内存里的一段短小的音频资源,利用 [ 返回一个 Float32Array,包含了带有频道的PCM数据,由频道参数定义(有0代表第一个频道) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/AudioBuffer.getChannelData.html) ```tsx -(channel: number) => Float32Array +(channel: number) => Float32Array ``` | 参数 | 类型 | @@ -46,7 +46,7 @@ const nowBuffering = myArrayBuffer.getChannelData(channel); 从 AudioBuffer 的指定频道复制到数组终端。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/AudioBuffer.copyFromChannel.html) @@ -81,25 +81,25 @@ for (let channel = 0; channel < channels; channel++) { 从指定数组复制样本到 audioBuffer 的特定通道 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/AudioBuffer.copyToChannel.html) ```tsx -(source: Float32Array, channelNumber: number, startInChannel: number) => void +(source: Float32Array, channelNumber: number, startInChannel: number) => void ``` | 参数 | 类型 | 说明 | | --- | --- | --- | -| source | `Float32Array` | 需要复制的源数组 | +| source | `Float32Array` | 需要复制的源数组 | | channelNumber | `number` | 需要复制到的目的通道号 | | startInChannel | `number` | 复制偏移数据量 | ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| AudioBuffer | ✔️ | | | | | -| AudioBuffer.getChannelData | ✔️ | | | | | -| AudioBuffer.copyFromChannel | ✔️ | | | | | -| AudioBuffer.copyToChannel | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| AudioBuffer | ✔️ | | | | +| AudioBuffer.getChannelData | ✔️ | | | | +| AudioBuffer.copyFromChannel | ✔️ | | | | +| AudioBuffer.copyToChannel | ✔️ | | | | diff --git a/docs/apis/media/audio/AudioContext.md b/docs/apis/media/audio/AudioContext.md index 149b1119fb76..d0815e25d901 100644 --- a/docs/apis/media/audio/AudioContext.md +++ b/docs/apis/media/audio/AudioContext.md @@ -7,7 +7,7 @@ sidebar_label: AudioContext `AudioContext` 通过 `id` 跟一个 `audio` 组件绑定,操作对应的 audio 组件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/AudioContext.html) @@ -17,7 +17,7 @@ sidebar_label: AudioContext 暂停音频。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/AudioContext.pause.html) @@ -29,7 +29,7 @@ sidebar_label: AudioContext 播放音频。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/AudioContext.play.html) @@ -41,7 +41,7 @@ sidebar_label: AudioContext 跳转到指定位置。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/AudioContext.seek.html) @@ -57,7 +57,7 @@ sidebar_label: AudioContext 设置音频地址 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/AudioContext.setSrc.html) @@ -71,10 +71,10 @@ sidebar_label: AudioContext ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| AudioContext | ✔️ | | | | ✔️ | ✔️ | -| AudioContext.pause | ✔️ | | | | ✔️ | ✔️ | -| AudioContext.play | ✔️ | | | | ✔️ | ✔️ | -| AudioContext.seek | ✔️ | | | | | ✔️ | -| AudioContext.setSrc | ✔️ | | | | | ✔️ | +| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | +| AudioContext | ✔️ | | | | ✔️ | +| AudioContext.pause | ✔️ | | | | ✔️ | +| AudioContext.play | ✔️ | | | | ✔️ | +| AudioContext.seek | ✔️ | | | | | +| AudioContext.setSrc | ✔️ | | | | | diff --git a/docs/apis/media/audio/InnerAudioContext.md b/docs/apis/media/audio/InnerAudioContext.md index 2abb4d138ef8..b8b3d3275546 100644 --- a/docs/apis/media/audio/InnerAudioContext.md +++ b/docs/apis/media/audio/InnerAudioContext.md @@ -45,7 +45,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 播放 -支持情况: +支持情况: ```tsx () => void @@ -55,7 +55,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 暂停 -支持情况: +支持情况: ```tsx () => void @@ -65,7 +65,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 停止 -支持情况: +支持情况: ```tsx () => void @@ -75,7 +75,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 跳转到指定位置,单位 s -支持情况: +支持情况: ```tsx (position: number) => void @@ -89,7 +89,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 销毁当前实例 -支持情况: +支持情况: ```tsx () => void @@ -99,7 +99,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 音频进入可以播放状态,但不保证后面可以流畅播放 -支持情况: +支持情况: ```tsx (callback?: OnCanplayCallback) => void @@ -113,7 +113,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 音频播放事件 -支持情况: +支持情况: ```tsx (callback?: OnPlayCallback) => void @@ -127,7 +127,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 音频暂停事件 -支持情况: +支持情况: ```tsx (callback?: OnPauseCallback) => void @@ -141,7 +141,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 音频停止事件 -支持情况: +支持情况: ```tsx (callback?: OnStopCallback) => void @@ -155,7 +155,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 音频自然播放结束事件 -支持情况: +支持情况: ```tsx (callback?: OnEndedCallback) => void @@ -169,7 +169,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 音频播放进度更新事件 -支持情况: +支持情况: ```tsx (callback?: OnTimeUpdateCallback) => void @@ -183,7 +183,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 音频播放错误事件 -支持情况: +支持情况: ```tsx (callback?: OnErrorCallback) => void @@ -197,7 +197,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 音频加载中事件,当音频因为数据不足,需要停下来加载时会触发 -支持情况: +支持情况: ```tsx (callback?: OnWaitingCallback) => void @@ -211,7 +211,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 音频进行 seek 操作事件 -支持情况: +支持情况: ```tsx (callback?: OnSeekingCallback) => void @@ -225,7 +225,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 音频完成 seek 操作事件 -支持情况: +支持情况: ```tsx (callback?: OnSeekedCallback) => void @@ -239,7 +239,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 取消监听 canplay 事件 -支持情况: +支持情况: ```tsx (callback?: OnCanplayCallback) => void @@ -253,7 +253,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 取消监听 play 事件 -支持情况: +支持情况: ```tsx (callback?: OnPlayCallback) => void @@ -267,7 +267,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 取消监听 pause 事件 -支持情况: +支持情况: ```tsx (callback?: OnPauseCallback) => void @@ -281,7 +281,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 取消监听 stop 事件 -支持情况: +支持情况: ```tsx (callback?: OnStopCallback) => void @@ -295,7 +295,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 取消监听 ended 事件 -支持情况: +支持情况: ```tsx (callback?: OnEndedCallback) => void @@ -309,7 +309,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 取消监听 timeUpdate 事件 -支持情况: +支持情况: ```tsx (callback?: OnTimeUpdateCallback) => void @@ -323,7 +323,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 取消监听 error 事件 -支持情况: +支持情况: ```tsx (callback?: OnErrorCallback) => void @@ -337,7 +337,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 取消监听 waiting 事件 -支持情况: +支持情况: ```tsx (callback?: OnWaitingCallback) => void @@ -351,7 +351,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 取消监听 seeking 事件 -支持情况: +支持情况: ```tsx (callback?: OnSeekingCallback) => void @@ -365,7 +365,7 @@ InnerAudioContext 实例,可通过 [Taro.createInnerAudioContext](./createInne 取消监听 seeked 事件 -支持情况: +支持情况: ```tsx (callback?: OnSeekedCallback) => void @@ -531,30 +531,30 @@ innerAudioContext.onError((res) => { ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| InnerAudioContext.play | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| InnerAudioContext.pause | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.stop | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| InnerAudioContext.seek | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.destroy | ✔️ | ✔️ | | | | ✔️ | -| InnerAudioContext.onCanplay | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.onPlay | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| InnerAudioContext.onPause | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.onStop | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| InnerAudioContext.onEnded | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| InnerAudioContext.onTimeUpdate | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.onError | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| InnerAudioContext.onWaiting | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.onSeeking | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.onSeeked | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.offCanplay | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.offPlay | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.offPause | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.offStop | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.offEnded | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.offTimeUpdate | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.offError | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.offWaiting | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.offSeeking | ✔️ | ✔️ | ✔️ | | | ✔️ | -| InnerAudioContext.offSeeked | ✔️ | ✔️ | ✔️ | | | ✔️ | +| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | +| InnerAudioContext.play | ✔️ | ✔️ | ✔️ | | ✔️ | +| InnerAudioContext.pause | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.stop | ✔️ | ✔️ | ✔️ | | ✔️ | +| InnerAudioContext.seek | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.destroy | ✔️ | ✔️ | | | | +| InnerAudioContext.onCanplay | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.onPlay | ✔️ | ✔️ | ✔️ | | ✔️ | +| InnerAudioContext.onPause | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.onStop | ✔️ | ✔️ | ✔️ | | ✔️ | +| InnerAudioContext.onEnded | ✔️ | ✔️ | ✔️ | | ✔️ | +| InnerAudioContext.onTimeUpdate | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.onError | ✔️ | ✔️ | ✔️ | | ✔️ | +| InnerAudioContext.onWaiting | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.onSeeking | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.onSeeked | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.offCanplay | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.offPlay | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.offPause | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.offStop | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.offEnded | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.offTimeUpdate | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.offError | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.offWaiting | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.offSeeking | ✔️ | ✔️ | ✔️ | | | +| InnerAudioContext.offSeeked | ✔️ | ✔️ | ✔️ | | | diff --git a/docs/apis/media/audio/MediaAudioPlayer.md b/docs/apis/media/audio/MediaAudioPlayer.md index b562a24d23d4..2dcbb8b65023 100644 --- a/docs/apis/media/audio/MediaAudioPlayer.md +++ b/docs/apis/media/audio/MediaAudioPlayer.md @@ -5,7 +5,7 @@ sidebar_label: MediaAudioPlayer MediaAudioPlayer 实例,可通过 [Taro.createMediaAudioPlayer](./createMediaAudioPlayer) 接口获取实例。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/MediaAudioPlayer.html) @@ -19,7 +19,7 @@ MediaAudioPlayer 实例,可通过 [Taro.createMediaAudioPlayer](./createMediaA 启动播放器 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/MediaAudioPlayer.start.html) @@ -31,7 +31,7 @@ MediaAudioPlayer 实例,可通过 [Taro.createMediaAudioPlayer](./createMediaA 添加音频源 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/MediaAudioPlayer.addAudioSource.html) @@ -47,7 +47,7 @@ MediaAudioPlayer 实例,可通过 [Taro.createMediaAudioPlayer](./createMediaA 移除音频源 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/MediaAudioPlayer.removeAudioSource.html) @@ -63,7 +63,7 @@ MediaAudioPlayer 实例,可通过 [Taro.createMediaAudioPlayer](./createMediaA 停止播放器 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/MediaAudioPlayer.stop.html) @@ -75,7 +75,7 @@ MediaAudioPlayer 实例,可通过 [Taro.createMediaAudioPlayer](./createMediaA 销毁播放器 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/MediaAudioPlayer.destroy.html) @@ -85,11 +85,11 @@ MediaAudioPlayer 实例,可通过 [Taro.createMediaAudioPlayer](./createMediaA ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| MediaAudioPlayer | ✔️ | | | | | -| MediaAudioPlayer.start | ✔️ | | | | | -| MediaAudioPlayer.addAudioSource | ✔️ | | | | | -| MediaAudioPlayer.removeAudioSource | ✔️ | | | | | -| MediaAudioPlayer.stop | ✔️ | | | | | -| MediaAudioPlayer.destroy | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| MediaAudioPlayer | ✔️ | | | | +| MediaAudioPlayer.start | ✔️ | | | | +| MediaAudioPlayer.addAudioSource | ✔️ | | | | +| MediaAudioPlayer.removeAudioSource | ✔️ | | | | +| MediaAudioPlayer.stop | ✔️ | | | | +| MediaAudioPlayer.destroy | ✔️ | | | | diff --git a/docs/apis/media/audio/WebAudioContext.md b/docs/apis/media/audio/WebAudioContext.md index f31159c1aaaa..18196d8c6636 100644 --- a/docs/apis/media/audio/WebAudioContext.md +++ b/docs/apis/media/audio/WebAudioContext.md @@ -5,7 +5,7 @@ sidebar_label: WebAudioContext WebAudioContext 实例,通过 [Taro.createWebAudioContext](./createWebAudioContext) 接口获取该实例。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.html) @@ -27,7 +27,7 @@ WebAudioContext 实例,通过 [Taro.createWebAudioContext](./createWebAudioCon **注意事项** 同步关闭对应的 WebAudio 上下文。close 后会立即释放当前上下文的资源,**不要在 close 后再次访问 state 属性**。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.close.html) @@ -48,7 +48,7 @@ audioCtx.close().then(() => { 同步恢复已经被暂停的 WebAudioContext 上下文 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.resume.html) @@ -60,7 +60,7 @@ audioCtx.close().then(() => { 同步暂停 WebAudioContext 上下文 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.suspend.html) @@ -72,7 +72,7 @@ audioCtx.close().then(() => { 创建一个 IIRFilterNode -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.createIIRFilter.html) @@ -120,7 +120,7 @@ const iirFilter = audioContext.createIIRFilter(feedForward, feedBack) 创建一个 WaveShaperNode -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.createWaveShaper.html) @@ -132,7 +132,7 @@ const iirFilter = audioContext.createIIRFilter(feedForward, feedBack) 创建一个 ConstantSourceNode -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.createConstantSource.html) @@ -144,7 +144,7 @@ const iirFilter = audioContext.createIIRFilter(feedForward, feedBack) 创建一个 OscillatorNode -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.createOscillator.html) @@ -156,7 +156,7 @@ const iirFilter = audioContext.createIIRFilter(feedForward, feedBack) 创建一个 GainNode -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.createGain.html) @@ -182,25 +182,25 @@ imag[1] = 0 const waveNode = audioContext.createPeriodicWave(real, imag, {disableNormalization: true}) ``` -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.createPeriodicWave.html) ```tsx -(real: Float32Array, imag: Float32Array, constraints: Constraints) => PeriodicWave +(real: Float32Array, imag: Float32Array, constraints: Constraints) => PeriodicWave ``` | 参数 | 类型 | 说明 | | --- | --- | --- | -| real | `Float32Array` | 一组余弦项(传统上是A项) | -| imag | `Float32Array` | 一组余弦项(传统上是A项) | +| real | `Float32Array` | 一组余弦项(传统上是A项) | +| imag | `Float32Array` | 一组余弦项(传统上是A项) | | constraints | `Constraints` | 一个字典对象,它指定是否应该禁用规范化(默认启用规范化) | ### createBiquadFilter 创建一个BiquadFilterNode -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.createBiquadFilter.html) @@ -212,7 +212,7 @@ const waveNode = audioContext.createPeriodicWave(real, imag, {disableNormalizati 创建一个 BufferSourceNode 实例,通过 AudioBuffer 对象来播放音频数据。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.createBufferSource.html) @@ -224,7 +224,7 @@ const waveNode = audioContext.createPeriodicWave(real, imag, {disableNormalizati 创建一个ChannelMergerNode -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.createChannelMerger.html) @@ -240,7 +240,7 @@ const waveNode = audioContext.createPeriodicWave(real, imag, {disableNormalizati 创建一个ChannelSplitterNode -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.createChannelSplitter.html) @@ -256,7 +256,7 @@ const waveNode = audioContext.createPeriodicWave(real, imag, {disableNormalizati 创建一个DelayNode -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.createDelay.html) @@ -279,7 +279,7 @@ const delayNode = audioCtx.createDelay(5) 创建一个DynamicsCompressorNode -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.createDynamicsCompressor.html) @@ -304,7 +304,7 @@ compressor.release.value = 0.25 创建一个ScriptProcessorNode -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.createScriptProcessor.html) @@ -330,7 +330,7 @@ audioContext.createScriptProcessor(sampleSize, 1, 1) 创建一个PannerNode -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.createPanner.html) @@ -342,7 +342,7 @@ audioContext.createScriptProcessor(sampleSize, 1, 1) 创建一个AudioBuffer,代表着一段驻留在内存中的短音频 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.createBuffer.html) @@ -368,14 +368,20 @@ const myArrayBuffer = audioCtx.createBuffer(channels, frameCount, audioCtx.sampl 异步解码一段资源为AudioBuffer。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.decodeAudioData.html) ```tsx -() => AudioBuffer +(audioData: ArrayBuffer, successCallback: (buffer: AudioBuffer) => void, errorCallback: (error: any) => void) => Promise ``` +| 参数 | 类型 | +| --- | --- | +| audioData | `ArrayBuffer` | +| successCallback | `(buffer: AudioBuffer) => void` | +| errorCallback | `(error: any) => void` | + #### 示例代码 ```tsx @@ -419,25 +425,25 @@ setTimeout(audioCtx.resume, 2000) ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| WebAudioContext | ✔️ | | | | | -| WebAudioContext.close | ✔️ | | | | | -| WebAudioContext.resume | ✔️ | | | | | -| WebAudioContext.suspend | ✔️ | | | | | -| WebAudioContext.createIIRFilter | ✔️ | | | | | -| WebAudioContext.createWaveShaper | ✔️ | | | | | -| WebAudioContext.createConstantSource | ✔️ | | | | | -| WebAudioContext.createOscillator | ✔️ | | | | | -| WebAudioContext.createGain | ✔️ | | | | | -| WebAudioContext.createPeriodicWave | ✔️ | | | | | -| WebAudioContext.createBiquadFilter | ✔️ | | | | | -| WebAudioContext.createBufferSource | ✔️ | | | | | -| WebAudioContext.createChannelMerger | ✔️ | | | | | -| WebAudioContext.createChannelSplitter | ✔️ | | | | | -| WebAudioContext.createDelay | ✔️ | | | | | -| WebAudioContext.createDynamicsCompressor | ✔️ | | | | | -| WebAudioContext.createScriptProcessor | ✔️ | | | | | -| WebAudioContext.createPanner | ✔️ | | | | | -| WebAudioContext.createBuffer | ✔️ | | | | | -| WebAudioContext.decodeAudioData | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| WebAudioContext | ✔️ | | | | +| WebAudioContext.close | ✔️ | | | | +| WebAudioContext.resume | ✔️ | | | | +| WebAudioContext.suspend | ✔️ | | | | +| WebAudioContext.createIIRFilter | ✔️ | | | | +| WebAudioContext.createWaveShaper | ✔️ | | | | +| WebAudioContext.createConstantSource | ✔️ | | | | +| WebAudioContext.createOscillator | ✔️ | | | | +| WebAudioContext.createGain | ✔️ | | | | +| WebAudioContext.createPeriodicWave | ✔️ | | | | +| WebAudioContext.createBiquadFilter | ✔️ | | | | +| WebAudioContext.createBufferSource | ✔️ | | | | +| WebAudioContext.createChannelMerger | ✔️ | | | | +| WebAudioContext.createChannelSplitter | ✔️ | | | | +| WebAudioContext.createDelay | ✔️ | | | | +| WebAudioContext.createDynamicsCompressor | ✔️ | | | | +| WebAudioContext.createScriptProcessor | ✔️ | | | | +| WebAudioContext.createPanner | ✔️ | | | | +| WebAudioContext.createBuffer | ✔️ | | | | +| WebAudioContext.decodeAudioData | ✔️ | | | | diff --git a/docs/apis/media/audio/WebAudioContextNode.md b/docs/apis/media/audio/WebAudioContextNode.md index a1b4f2d84042..30078292772b 100644 --- a/docs/apis/media/audio/WebAudioContextNode.md +++ b/docs/apis/media/audio/WebAudioContextNode.md @@ -7,7 +7,7 @@ sidebar_label: WebAudioContextNode > 目前已经支持以下Node: IIRFilterNode WaveShaperNode ConstantSourceNode ChannelMergerNode OscillatorNode GainNode BiquadFilterNode PeriodicWaveNode BufferSourceNode ChannelSplitterNode ChannelMergerNode DelayNode DynamicsCompressorNode ScriptProcessorNode PannerNode -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContextNode.html) @@ -29,7 +29,7 @@ sidebar_label: WebAudioContextNode 设置监听器的方向 -支持情况: +支持情况: ```tsx (...args: any[]) => void @@ -43,7 +43,7 @@ sidebar_label: WebAudioContextNode 设置监听器的位置 -支持情况: +支持情况: ```tsx (...args: any[]) => void @@ -55,8 +55,8 @@ sidebar_label: WebAudioContextNode ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| WebAudioContextNode | ✔️ | | | | | -| WebAudioContextNode.setOrientation | ✔️ | | | | | -| WebAudioContextNode.setPosition | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| WebAudioContextNode | ✔️ | | | | +| WebAudioContextNode.setOrientation | ✔️ | | | | +| WebAudioContextNode.setPosition | ✔️ | | | | diff --git a/docs/apis/media/audio/createAudioContext.md b/docs/apis/media/audio/createAudioContext.md index bd4105d15073..80a7c734f6af 100644 --- a/docs/apis/media/audio/createAudioContext.md +++ b/docs/apis/media/audio/createAudioContext.md @@ -6,7 +6,7 @@ sidebar_label: createAudioContext 创建 audio 上下文 AudioContext 对象。 **注意:1.6.0 版本开始,本接口不再维护。建议使用能力更强的 [Taro.createInnerAudioContext](./createInnerAudioContext) 接口** -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.createAudioContext.html) diff --git a/docs/apis/media/audio/createInnerAudioContext.md b/docs/apis/media/audio/createInnerAudioContext.md index 73dc14c19648..f06a2019fc89 100644 --- a/docs/apis/media/audio/createInnerAudioContext.md +++ b/docs/apis/media/audio/createInnerAudioContext.md @@ -5,7 +5,7 @@ sidebar_label: createInnerAudioContext 创建内部 audio 上下文 InnerAudioContext 对象。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.createInnerAudioContext.html) diff --git a/docs/apis/media/audio/createMediaAudioPlayer.md b/docs/apis/media/audio/createMediaAudioPlayer.md index 7a439812f1ef..0cce639fef34 100644 --- a/docs/apis/media/audio/createMediaAudioPlayer.md +++ b/docs/apis/media/audio/createMediaAudioPlayer.md @@ -8,7 +8,7 @@ sidebar_label: createMediaAudioPlayer **注意事项** - iOS 7.0.15 mediaAudioPlayer 播放网络视频资源会出现音频卡顿,本地视频没有这个问题,将下一个客户端版本修复。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.createMediaAudioPlayer.html) diff --git a/docs/apis/media/audio/createWebAudioContext.md b/docs/apis/media/audio/createWebAudioContext.md index 904ac25277b3..5b950d9d8e1d 100644 --- a/docs/apis/media/audio/createWebAudioContext.md +++ b/docs/apis/media/audio/createWebAudioContext.md @@ -5,7 +5,7 @@ sidebar_label: createWebAudioContext 创建 WebAudio 上下文。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.createWebAudioContext.html) diff --git a/docs/apis/media/audio/getAvailableAudioSources.md b/docs/apis/media/audio/getAvailableAudioSources.md index 112786b489fb..7b8cc299d318 100644 --- a/docs/apis/media/audio/getAvailableAudioSources.md +++ b/docs/apis/media/audio/getAvailableAudioSources.md @@ -5,7 +5,7 @@ sidebar_label: getAvailableAudioSources 获取当前支持的音频输入源 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.getAvailableAudioSources.html) diff --git a/docs/apis/media/audio/pauseVoice.md b/docs/apis/media/audio/pauseVoice.md index 64cc3c7f7ec8..a55c4bc767c0 100644 --- a/docs/apis/media/audio/pauseVoice.md +++ b/docs/apis/media/audio/pauseVoice.md @@ -6,7 +6,7 @@ sidebar_label: pauseVoice 暂停正在播放的语音。再次调用 [Taro.playVoice](/docs/apis/media/audio/stopVoice)。 **注意:1.6.0 版本开始,本接口不再维护。建议使用能力更强的 [Taro.createInnerAudioContext](./createInnerAudioContext) 接口** -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.pauseVoice.html) diff --git a/docs/apis/media/audio/playVoice.md b/docs/apis/media/audio/playVoice.md index 15b73159b823..6a7a0a36e6d6 100644 --- a/docs/apis/media/audio/playVoice.md +++ b/docs/apis/media/audio/playVoice.md @@ -5,7 +5,7 @@ sidebar_label: playVoice 开始播放语音。同时只允许一个语音文件正在播放,如果前一个语音文件还没播放完,将中断前一个语音播放。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.playVoice.html) diff --git a/docs/apis/media/audio/setInnerAudioOption.md b/docs/apis/media/audio/setInnerAudioOption.md index 44ec9d2c82de..235c19ae7d7d 100644 --- a/docs/apis/media/audio/setInnerAudioOption.md +++ b/docs/apis/media/audio/setInnerAudioOption.md @@ -5,7 +5,7 @@ sidebar_label: setInnerAudioOption 设置 [InnerAudioContext](/docs/apis/media/audio/InnerAudioContext)项。设置之后对当前小程序全局生效。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.setInnerAudioOption.html) diff --git a/docs/apis/media/audio/stopVoice.md b/docs/apis/media/audio/stopVoice.md index 040a8ea0a495..aae614eef425 100644 --- a/docs/apis/media/audio/stopVoice.md +++ b/docs/apis/media/audio/stopVoice.md @@ -6,7 +6,7 @@ sidebar_label: stopVoice 结束播放语音。 **注意:1.6.0 版本开始,本接口不再维护。建议使用能力更强的 [Taro.createInnerAudioContext](./createInnerAudioContext) 接口** -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.stopVoice.html) diff --git a/docs/apis/media/background-audio/getBackgroundAudioManager.md b/docs/apis/media/background-audio/getBackgroundAudioManager.md index b98ce8252b6e..42c2b3a1c642 100644 --- a/docs/apis/media/background-audio/getBackgroundAudioManager.md +++ b/docs/apis/media/background-audio/getBackgroundAudioManager.md @@ -8,7 +8,7 @@ sidebar_label: getBackgroundAudioManager 从微信客户端6.7.2版本开始,若需要在小程序切后台后继续播放音频,需要在 [app.json](https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html) 中配置 `requiredBackgroundModes` 属性。开发版和体验版上可以直接生效,正式版还需通过审核。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.getBackgroundAudioManager.html) diff --git a/docs/apis/media/background-audio/getBackgroundAudioPlayerState.md b/docs/apis/media/background-audio/getBackgroundAudioPlayerState.md index 4f2b12881e7b..6d5ae71cfbeb 100644 --- a/docs/apis/media/background-audio/getBackgroundAudioPlayerState.md +++ b/docs/apis/media/background-audio/getBackgroundAudioPlayerState.md @@ -6,7 +6,7 @@ sidebar_label: getBackgroundAudioPlayerState 获取后台音乐播放状态。 **注意:1.2.0 版本开始,本接口不再维护。建议使用能力更强的 [Taro.getBackgroundAudioManager](/docs/apis/media/background-audio/getBackgroundAudioManager) 接口** -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.getBackgroundAudioPlayerState.html) diff --git a/docs/apis/media/background-audio/onBackgroundAudioPause.md b/docs/apis/media/background-audio/onBackgroundAudioPause.md index 179240361b67..4ebafa1670af 100644 --- a/docs/apis/media/background-audio/onBackgroundAudioPause.md +++ b/docs/apis/media/background-audio/onBackgroundAudioPause.md @@ -5,7 +5,7 @@ sidebar_label: onBackgroundAudioPause 监听音乐暂停。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.onBackgroundAudioPause.html) diff --git a/docs/apis/media/background-audio/onBackgroundAudioPlay.md b/docs/apis/media/background-audio/onBackgroundAudioPlay.md index 6f21e74a77dd..5dd87d1dde49 100644 --- a/docs/apis/media/background-audio/onBackgroundAudioPlay.md +++ b/docs/apis/media/background-audio/onBackgroundAudioPlay.md @@ -5,7 +5,7 @@ sidebar_label: onBackgroundAudioPlay 监听音乐播放。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.onBackgroundAudioPlay.html) diff --git a/docs/apis/media/background-audio/onBackgroundAudioStop.md b/docs/apis/media/background-audio/onBackgroundAudioStop.md index 624d13f1a62b..b1640f430789 100644 --- a/docs/apis/media/background-audio/onBackgroundAudioStop.md +++ b/docs/apis/media/background-audio/onBackgroundAudioStop.md @@ -9,7 +9,7 @@ sidebar_label: onBackgroundAudioStop 1. `bug`: `iOS` `6.3.30` Taro.seekBackgroundAudio 会有短暂延迟 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.onBackgroundAudioStop.html) diff --git a/docs/apis/media/background-audio/pauseBackgroundAudio.md b/docs/apis/media/background-audio/pauseBackgroundAudio.md index e743e2c41fdf..8a2551584d5e 100644 --- a/docs/apis/media/background-audio/pauseBackgroundAudio.md +++ b/docs/apis/media/background-audio/pauseBackgroundAudio.md @@ -5,7 +5,7 @@ sidebar_label: pauseBackgroundAudio 暂停播放音乐。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.pauseBackgroundAudio.html) diff --git a/docs/apis/media/background-audio/playBackgroundAudio.md b/docs/apis/media/background-audio/playBackgroundAudio.md index 87039d3129ab..917baf42f9c7 100644 --- a/docs/apis/media/background-audio/playBackgroundAudio.md +++ b/docs/apis/media/background-audio/playBackgroundAudio.md @@ -5,7 +5,7 @@ sidebar_label: playBackgroundAudio 使用后台播放器播放音乐,对于微信客户端来说,只能同时有一个后台音乐在播放。当用户离开小程序后,音乐将暂停播放;当用户点击“显示在聊天顶部”时,音乐不会暂停播放;当用户在其他小程序占用了音乐播放器,原有小程序内的音乐将停止播放。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.playBackgroundAudio.html) diff --git a/docs/apis/media/background-audio/seekBackgroundAudio.md b/docs/apis/media/background-audio/seekBackgroundAudio.md index 69c393be92f4..17c79b82e9fb 100644 --- a/docs/apis/media/background-audio/seekBackgroundAudio.md +++ b/docs/apis/media/background-audio/seekBackgroundAudio.md @@ -5,7 +5,7 @@ sidebar_label: seekBackgroundAudio 控制音乐播放进度。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.seekBackgroundAudio.html) diff --git a/docs/apis/media/background-audio/stopBackgroundAudio.md b/docs/apis/media/background-audio/stopBackgroundAudio.md index 02e88997b6dc..53c3416ef8f8 100644 --- a/docs/apis/media/background-audio/stopBackgroundAudio.md +++ b/docs/apis/media/background-audio/stopBackgroundAudio.md @@ -5,7 +5,7 @@ sidebar_label: stopBackgroundAudio 停止播放音乐。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.stopBackgroundAudio.html) diff --git a/docs/apis/media/camera/CameraContext.md b/docs/apis/media/camera/CameraContext.md index 81c3db035978..244b56c35757 100644 --- a/docs/apis/media/camera/CameraContext.md +++ b/docs/apis/media/camera/CameraContext.md @@ -15,7 +15,7 @@ sidebar_label: CameraContext 注: 使用该接口需同时在 [camera](/docs/components/media/camera) 组件属性中指定 frame-size。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/camera/CameraContext.onCameraFrame.html) @@ -41,7 +41,7 @@ listener.start() 设置缩放级别 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/camera/CameraContext.setZoom.html) @@ -57,7 +57,7 @@ listener.start() 开始录像 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/camera/CameraContext.startRecord.html) @@ -73,7 +73,7 @@ listener.start() 结束录像 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/camera/CameraContext.stopRecord.html) @@ -89,7 +89,7 @@ listener.start() 拍摄照片 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/camera/CameraContext.takePhoto.html) @@ -214,10 +214,10 @@ listener.start() ## API 支持度 -| API | 微信小程序 | 支付宝小程序 | 抖音小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| CameraContext.onCameraFrame | ✔️ | ✔️ | ✔️ | | | | | -| CameraContext.setZoom | ✔️ | ✔️ | ✔️ | | | | | -| CameraContext.startRecord | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | -| CameraContext.stopRecord | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | -| CameraContext.takePhoto | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | +| API | 微信小程序 | 支付宝小程序 | 抖音小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| CameraContext.onCameraFrame | ✔️ | ✔️ | ✔️ | | | | +| CameraContext.setZoom | ✔️ | ✔️ | ✔️ | | | | +| CameraContext.startRecord | ✔️ | ✔️ | ✔️ | | ✔️ | | +| CameraContext.stopRecord | ✔️ | ✔️ | ✔️ | | ✔️ | | +| CameraContext.takePhoto | ✔️ | ✔️ | ✔️ | | ✔️ | | diff --git a/docs/apis/media/camera/CameraFrameListener.md b/docs/apis/media/camera/CameraFrameListener.md index 1a54d11f7cfb..799b79ad5258 100644 --- a/docs/apis/media/camera/CameraFrameListener.md +++ b/docs/apis/media/camera/CameraFrameListener.md @@ -13,7 +13,7 @@ CameraContext.onCameraFrame() 返回的监听器。 开始监听帧数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/camera/CameraFrameListener.start.html) @@ -29,7 +29,7 @@ CameraContext.onCameraFrame() 返回的监听器。 停止监听帧数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/camera/CameraFrameListener.stop.html) @@ -61,7 +61,7 @@ CameraContext.onCameraFrame() 返回的监听器。 ## API 支持度 -| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| CameraFrameListener.start | ✔️ | ✔️ | | | | | -| CameraFrameListener.stop | ✔️ | ✔️ | | | | | +| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | +| CameraFrameListener.start | ✔️ | ✔️ | | | | +| CameraFrameListener.stop | ✔️ | ✔️ | | | | diff --git a/docs/apis/media/camera/createCameraContext.md b/docs/apis/media/camera/createCameraContext.md index 451a4c9df337..9ce3b4b81943 100644 --- a/docs/apis/media/camera/createCameraContext.md +++ b/docs/apis/media/camera/createCameraContext.md @@ -5,7 +5,7 @@ sidebar_label: createCameraContext 创建 camera 上下文 CameraContext 对象。 -支持情况: +支持情况: > 支付宝小程序: 支付宝小程序需指定 camera 组件中的 id 属性 diff --git a/docs/apis/media/editor/EditorContext.md b/docs/apis/media/editor/EditorContext.md index 1335ec8f1f51..6f3d81a0dc39 100644 --- a/docs/apis/media/editor/EditorContext.md +++ b/docs/apis/media/editor/EditorContext.md @@ -6,7 +6,7 @@ sidebar_label: EditorContext `EditorContext` 实例,可通过 `Taro.createSelectorQuery` 获取。 `EditorContext` 通过 `id` 跟一个 `editor` 组件绑定,操作对应的 `editor` 组件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/editor/EditorContext.html) @@ -16,7 +16,7 @@ sidebar_label: EditorContext 编辑器失焦,同时收起键盘。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/editor/EditorContext.blur.html) @@ -32,7 +32,7 @@ sidebar_label: EditorContext 清空编辑器内容 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/editor/EditorContext.clear.html) @@ -76,7 +76,7 @@ sidebar_label: EditorContext 对已经应用样式的选区设置会取消样式。css style 表示 css 中规定的允许值。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/editor/EditorContext.format.html) @@ -93,7 +93,7 @@ sidebar_label: EditorContext 获取编辑器内容 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/editor/EditorContext.getContents.html) @@ -109,7 +109,7 @@ sidebar_label: EditorContext 获取编辑器已选区域内的纯文本内容。当编辑器失焦或未选中一段区间时,返回内容为空。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/editor/EditorContext.getSelectionText.html) @@ -125,7 +125,7 @@ sidebar_label: EditorContext 插入分割线 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/editor/EditorContext.insertDivider.html) @@ -145,7 +145,7 @@ sidebar_label: EditorContext 开发者可选择在提交阶段上传图片到服务器,获取到网络地址后进行替换。替换时对于html内容应替换掉 `` 的 src 值,对于 delta 内容应替换掉 `insert { image: abc }` 值。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/editor/EditorContext.insertImage.html) @@ -172,7 +172,7 @@ this.editorCtx.insertImage({ 覆盖当前选区,设置一段文本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/editor/EditorContext.insertText.html) @@ -188,7 +188,7 @@ this.editorCtx.insertImage({ 恢复 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/editor/EditorContext.redo.html) @@ -204,7 +204,7 @@ this.editorCtx.insertImage({ 清除当前选区的样式 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/editor/EditorContext.removeFormat.html) @@ -220,7 +220,7 @@ this.editorCtx.insertImage({ 使得编辑器光标处滚动到窗口可视区域内。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/editor/EditorContext.scrollIntoView.html) @@ -232,7 +232,7 @@ this.editorCtx.insertImage({ 初始化编辑器内容,html和delta同时存在时仅delta生效 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/editor/EditorContext.setContents.html) @@ -248,7 +248,7 @@ this.editorCtx.insertImage({ 撤销 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/editor/EditorContext.undo.html) @@ -370,19 +370,19 @@ this.editorCtx.insertImage({ ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| EditorContext | ✔️ | | | | | -| EditorContext.blur | ✔️ | | | | | -| EditorContext.clear | ✔️ | | | | | -| EditorContext.format | ✔️ | | | | | -| EditorContext.getContents | ✔️ | | | | | -| EditorContext.getSelectionText | ✔️ | | | | | -| EditorContext.insertDivider | ✔️ | | | | | -| EditorContext.insertImage | ✔️ | | | | | -| EditorContext.insertText | ✔️ | | | | | -| EditorContext.redo | ✔️ | | | | | -| EditorContext.removeFormat | ✔️ | | | | | -| EditorContext.scrollIntoView | ✔️ | | | | | -| EditorContext.setContents | ✔️ | | | | | -| EditorContext.undo | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| EditorContext | ✔️ | | | | +| EditorContext.blur | ✔️ | | | | +| EditorContext.clear | ✔️ | | | | +| EditorContext.format | ✔️ | | | | +| EditorContext.getContents | ✔️ | | | | +| EditorContext.getSelectionText | ✔️ | | | | +| EditorContext.insertDivider | ✔️ | | | | +| EditorContext.insertImage | ✔️ | | | | +| EditorContext.insertText | ✔️ | | | | +| EditorContext.redo | ✔️ | | | | +| EditorContext.removeFormat | ✔️ | | | | +| EditorContext.scrollIntoView | ✔️ | | | | +| EditorContext.setContents | ✔️ | | | | +| EditorContext.undo | ✔️ | | | | diff --git a/docs/apis/media/image/chooseImage.md b/docs/apis/media/image/chooseImage.md index 4039866f87dc..962dd54e7b87 100644 --- a/docs/apis/media/image/chooseImage.md +++ b/docs/apis/media/image/chooseImage.md @@ -5,7 +5,7 @@ sidebar_label: chooseImage 从本地相册选择图片或使用相机拍照。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseImage.html) diff --git a/docs/apis/media/image/chooseMessageFile.md b/docs/apis/media/image/chooseMessageFile.md index 17b016d2d450..3014aeb6c6b0 100644 --- a/docs/apis/media/image/chooseMessageFile.md +++ b/docs/apis/media/image/chooseMessageFile.md @@ -5,7 +5,7 @@ sidebar_label: chooseMessageFile 从客户端会话选择文件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseMessageFile.html) diff --git a/docs/apis/media/image/compressImage.md b/docs/apis/media/image/compressImage.md index b417bae8ef63..e1cbaad88083 100644 --- a/docs/apis/media/image/compressImage.md +++ b/docs/apis/media/image/compressImage.md @@ -5,7 +5,7 @@ sidebar_label: compressImage 压缩图片接口,可选压缩质量 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.compressImage.html) diff --git a/docs/apis/media/image/cropImage.md b/docs/apis/media/image/cropImage.md index dd68326d3214..2f815bc9c13a 100644 --- a/docs/apis/media/image/cropImage.md +++ b/docs/apis/media/image/cropImage.md @@ -5,7 +5,7 @@ sidebar_label: cropImage 裁剪图片接口 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.cropImage.html) diff --git a/docs/apis/media/image/editImage.md b/docs/apis/media/image/editImage.md index 494809461ced..26dae205e1cd 100644 --- a/docs/apis/media/image/editImage.md +++ b/docs/apis/media/image/editImage.md @@ -5,7 +5,7 @@ sidebar_label: editImage 编辑图片接口 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.editImage.html) diff --git a/docs/apis/media/image/getImageInfo.md b/docs/apis/media/image/getImageInfo.md index ce3a94d083a4..94df96b59980 100644 --- a/docs/apis/media/image/getImageInfo.md +++ b/docs/apis/media/image/getImageInfo.md @@ -5,7 +5,7 @@ sidebar_label: getImageInfo 获取图片信息。网络图片需先配置download域名才能生效。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.getImageInfo.html) diff --git a/docs/apis/media/image/previewImage.md b/docs/apis/media/image/previewImage.md index 2850f45679f0..b9c7a2f2e505 100644 --- a/docs/apis/media/image/previewImage.md +++ b/docs/apis/media/image/previewImage.md @@ -5,7 +5,7 @@ sidebar_label: previewImage 在新页面中全屏预览图片。预览的过程中用户可以进行保存图片、发送给朋友等操作。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.previewImage.html) diff --git a/docs/apis/media/image/previewMedia.md b/docs/apis/media/image/previewMedia.md index 148fbab8c738..bdeb2655fb75 100644 --- a/docs/apis/media/image/previewMedia.md +++ b/docs/apis/media/image/previewMedia.md @@ -5,7 +5,7 @@ sidebar_label: previewMedia 预览图片和视频。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.previewMedia.html) diff --git a/docs/apis/media/image/saveImageToPhotosAlbum.md b/docs/apis/media/image/saveImageToPhotosAlbum.md index 6a27ceab60f2..bf82860dbfd3 100644 --- a/docs/apis/media/image/saveImageToPhotosAlbum.md +++ b/docs/apis/media/image/saveImageToPhotosAlbum.md @@ -5,7 +5,7 @@ sidebar_label: saveImageToPhotosAlbum 保存图片到系统相册。需要[用户授权](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/authorize.html) scope.writePhotosAlbum -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.saveImageToPhotosAlbum.html) diff --git a/docs/apis/media/live/LivePlayerContext.md b/docs/apis/media/live/LivePlayerContext.md index 5973fe303eb2..19880c0b0189 100644 --- a/docs/apis/media/live/LivePlayerContext.md +++ b/docs/apis/media/live/LivePlayerContext.md @@ -6,7 +6,7 @@ sidebar_label: LivePlayerContext `LivePlayerContext` 实例,可通过 `Taro.createLivePlayerContext` 获取。 `LivePlayerContext` 通过 `id` 跟一个 `live-player` 组件绑定,操作对应的 `live-player` 组件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.html) @@ -16,7 +16,7 @@ sidebar_label: LivePlayerContext 退出投屏。仅支持在 tap 事件回调内调用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.exitCasting.html) @@ -32,7 +32,7 @@ sidebar_label: LivePlayerContext 退出全屏 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.exitFullScreen.html) @@ -48,7 +48,7 @@ sidebar_label: LivePlayerContext 退出小窗,该方法可在任意页面调用 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.exitPictureInPicture.html) @@ -64,7 +64,7 @@ sidebar_label: LivePlayerContext 静音 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.mute.html) @@ -80,7 +80,7 @@ sidebar_label: LivePlayerContext 暂停 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.pause.html) @@ -96,7 +96,7 @@ sidebar_label: LivePlayerContext 播放 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.play.html) @@ -112,7 +112,7 @@ sidebar_label: LivePlayerContext 重连投屏设备。仅支持在 tap 事件回调内调用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.reconnectCasting.html) @@ -128,7 +128,7 @@ sidebar_label: LivePlayerContext 进入全屏 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.requestFullScreen.html) @@ -144,7 +144,7 @@ sidebar_label: LivePlayerContext 进入全屏 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.requestPictureInPicture.html) @@ -160,7 +160,7 @@ sidebar_label: LivePlayerContext 恢复 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.resume.html) @@ -176,7 +176,7 @@ sidebar_label: LivePlayerContext 截图 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.snapshot.html) @@ -192,7 +192,7 @@ sidebar_label: LivePlayerContext 开始投屏, 拉起半屏搜索设备。仅支持在 tap 事件回调内调用 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.startCasting.html) @@ -208,7 +208,7 @@ sidebar_label: LivePlayerContext 停止 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.stop.html) @@ -224,7 +224,7 @@ sidebar_label: LivePlayerContext 切换投屏设备。仅支持在 tap 事件回调内调用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.switchCasting.html) @@ -362,20 +362,20 @@ sidebar_label: LivePlayerContext ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| LivePlayerContext | ✔️ | | | | | -| LivePlayerContext.exitCasting | ✔️ | | | | | -| LivePlayerContext.exitFullScreen | ✔️ | | | | | -| LivePlayerContext.exitPictureInPicture | ✔️ | | | | | -| LivePlayerContext.mute | ✔️ | | | | | -| LivePlayerContext.pause | ✔️ | | | | | -| LivePlayerContext.play | ✔️ | | | | | -| LivePlayerContext.reconnectCasting | ✔️ | | | | | -| LivePlayerContext.requestFullScreen | ✔️ | | | | | -| LivePlayerContext.requestPictureInPicture | ✔️ | | | | | -| LivePlayerContext.resume | ✔️ | | | | | -| LivePlayerContext.snapshot | ✔️ | | | | | -| LivePlayerContext.startCasting | ✔️ | | | | | -| LivePlayerContext.stop | ✔️ | | | | | -| LivePlayerContext.switchCasting | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| LivePlayerContext | ✔️ | | | | +| LivePlayerContext.exitCasting | ✔️ | | | | +| LivePlayerContext.exitFullScreen | ✔️ | | | | +| LivePlayerContext.exitPictureInPicture | ✔️ | | | | +| LivePlayerContext.mute | ✔️ | | | | +| LivePlayerContext.pause | ✔️ | | | | +| LivePlayerContext.play | ✔️ | | | | +| LivePlayerContext.reconnectCasting | ✔️ | | | | +| LivePlayerContext.requestFullScreen | ✔️ | | | | +| LivePlayerContext.requestPictureInPicture | ✔️ | | | | +| LivePlayerContext.resume | ✔️ | | | | +| LivePlayerContext.snapshot | ✔️ | | | | +| LivePlayerContext.startCasting | ✔️ | | | | +| LivePlayerContext.stop | ✔️ | | | | +| LivePlayerContext.switchCasting | ✔️ | | | | diff --git a/docs/apis/media/live/LivePusherContext.md b/docs/apis/media/live/LivePusherContext.md index 7afeb6bb6b70..2f088343174d 100644 --- a/docs/apis/media/live/LivePusherContext.md +++ b/docs/apis/media/live/LivePusherContext.md @@ -6,7 +6,7 @@ sidebar_label: LivePusherContext `LivePusherContext` 实例,可通过 `Taro.createLivePusherContext` 获取。 `LivePusherContext` 与页面内唯一的 `live-pusher` 组件绑定,操作对应的 `live-pusher` 组件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.html) @@ -16,7 +16,7 @@ sidebar_label: LivePusherContext 暂停推流 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.pause.html) @@ -32,7 +32,7 @@ sidebar_label: LivePusherContext 暂停背景音 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.pauseBGM.html) @@ -48,7 +48,7 @@ sidebar_label: LivePusherContext 播放背景音 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.playBGM.html) @@ -64,7 +64,7 @@ sidebar_label: LivePusherContext 恢复推流 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.resume.html) @@ -80,7 +80,7 @@ sidebar_label: LivePusherContext 恢复背景音 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.resumeBGM.html) @@ -96,7 +96,7 @@ sidebar_label: LivePusherContext 发送SEI消息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.sendMessage.html) @@ -112,7 +112,7 @@ sidebar_label: LivePusherContext 设置背景音音量 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.setBGMVolume.html) @@ -128,7 +128,7 @@ sidebar_label: LivePusherContext 设置麦克风音量 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.setMICVolume.html) @@ -144,7 +144,7 @@ sidebar_label: LivePusherContext 快照 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.snapshot.html) @@ -160,7 +160,7 @@ sidebar_label: LivePusherContext 开始推流,同时开启摄像头预览 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.start.html) @@ -176,7 +176,7 @@ sidebar_label: LivePusherContext 开启摄像头预览 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.startPreview.html) @@ -192,7 +192,7 @@ sidebar_label: LivePusherContext 停止推流,同时停止摄像头预览 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.stop.html) @@ -208,7 +208,7 @@ sidebar_label: LivePusherContext 停止背景音 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.stopBGM.html) @@ -224,7 +224,7 @@ sidebar_label: LivePusherContext 关闭摄像头预览 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.stopPreview.html) @@ -240,7 +240,7 @@ sidebar_label: LivePusherContext 切换前后摄像头 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.switchCamera.html) @@ -256,7 +256,7 @@ sidebar_label: LivePusherContext 切换手电筒 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.toggleTorch.html) @@ -404,22 +404,22 @@ sidebar_label: LivePusherContext ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| LivePusherContext | ✔️ | | | | | -| LivePusherContext.pause | ✔️ | | | | | -| LivePusherContext.pauseBGM | ✔️ | | | | | -| LivePusherContext.playBGM | ✔️ | | | | | -| LivePusherContext.resume | ✔️ | | | | | -| LivePusherContext.resumeBGM | ✔️ | | | | | -| LivePusherContext.sendMessage | ✔️ | | | | | -| LivePusherContext.setBGMVolume | ✔️ | | | | | -| LivePusherContext.setMICVolume | ✔️ | | | | | -| LivePusherContext.snapshot | ✔️ | | | | | -| LivePusherContext.start | ✔️ | | | | | -| LivePusherContext.startPreview | ✔️ | | | | | -| LivePusherContext.stop | ✔️ | | | | | -| LivePusherContext.stopBGM | ✔️ | | | | | -| LivePusherContext.stopPreview | ✔️ | | | | | -| LivePusherContext.switchCamera | ✔️ | | | | | -| LivePusherContext.toggleTorch | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| LivePusherContext | ✔️ | | | | +| LivePusherContext.pause | ✔️ | | | | +| LivePusherContext.pauseBGM | ✔️ | | | | +| LivePusherContext.playBGM | ✔️ | | | | +| LivePusherContext.resume | ✔️ | | | | +| LivePusherContext.resumeBGM | ✔️ | | | | +| LivePusherContext.sendMessage | ✔️ | | | | +| LivePusherContext.setBGMVolume | ✔️ | | | | +| LivePusherContext.setMICVolume | ✔️ | | | | +| LivePusherContext.snapshot | ✔️ | | | | +| LivePusherContext.start | ✔️ | | | | +| LivePusherContext.startPreview | ✔️ | | | | +| LivePusherContext.stop | ✔️ | | | | +| LivePusherContext.stopBGM | ✔️ | | | | +| LivePusherContext.stopPreview | ✔️ | | | | +| LivePusherContext.switchCamera | ✔️ | | | | +| LivePusherContext.toggleTorch | ✔️ | | | | diff --git a/docs/apis/media/live/createLivePlayerContext.md b/docs/apis/media/live/createLivePlayerContext.md index 99dc7993503e..137fdf8590fb 100644 --- a/docs/apis/media/live/createLivePlayerContext.md +++ b/docs/apis/media/live/createLivePlayerContext.md @@ -5,7 +5,7 @@ sidebar_label: createLivePlayerContext 创建 [live-player](/docs/components/media/live-player) 上下文 [LivePlayerContext](/docs/apis/media/live/LivePlayerContext) 对象。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/wx.createLivePlayerContext.html) diff --git a/docs/apis/media/live/createLivePusherContext.md b/docs/apis/media/live/createLivePusherContext.md index 106b6525824a..cc5660cd6232 100644 --- a/docs/apis/media/live/createLivePusherContext.md +++ b/docs/apis/media/live/createLivePusherContext.md @@ -5,7 +5,7 @@ sidebar_label: createLivePusherContext 创建 [live-pusher](/docs/components/media/live-pusher) 上下文 [LivePusherContext](/docs/apis/media/live/LivePusherContext) 对象。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/live/wx.createLivePusherContext.html) diff --git a/docs/apis/media/map/MapContext.md b/docs/apis/media/map/MapContext.md index feaf62447f80..3edb547daff4 100644 --- a/docs/apis/media/map/MapContext.md +++ b/docs/apis/media/map/MapContext.md @@ -6,7 +6,7 @@ sidebar_label: MapContext `MapContext` 实例,可通过 [Taro.createMapContext](./createMapContext) 获取。 `MapContext` 通过 id 跟一个 map 组件绑定,操作对应的 map 组件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.html) @@ -16,7 +16,7 @@ sidebar_label: MapContext 获取当前地图中心的经纬度。返回的是 gcj02 坐标系,可以用于 [Taro.openLocation()](/docs/apis/location/openLocation) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.getCenterLocation.html) @@ -32,7 +32,7 @@ sidebar_label: MapContext 设置定位点图标,支持网络路径、本地路径、代码包路径 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.setLocMarkerIcon.html) @@ -48,7 +48,7 @@ sidebar_label: MapContext 将地图中心移置当前定位点,此时需设置地图组件 show-location 为true。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.moveToLocation.html) @@ -64,7 +64,7 @@ sidebar_label: MapContext 平移marker,带动画 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.translateMarker.html) @@ -88,7 +88,7 @@ sidebar_label: MapContext 缩放视野展示所有经纬度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.includePoints.html) @@ -104,7 +104,7 @@ sidebar_label: MapContext 获取当前地图的视野范围 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.getRegion.html) @@ -120,7 +120,7 @@ sidebar_label: MapContext 获取当前地图的旋转角 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.getRotate.html) @@ -136,7 +136,7 @@ sidebar_label: MapContext 获取当前地图的倾斜角 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.getSkew.html) @@ -152,7 +152,7 @@ sidebar_label: MapContext 获取当前地图的缩放级别 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.getScale.html) @@ -168,7 +168,7 @@ sidebar_label: MapContext 设置地图中心点偏移,向后向下为增长,屏幕比例范围(0.25~0.75),默认偏移为[0.5, 0.5] -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.setCenterOffset.html) @@ -184,7 +184,7 @@ sidebar_label: MapContext 移除个性化图层。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.removeCustomLayer.html) @@ -200,7 +200,7 @@ sidebar_label: MapContext 添加个性化图层。图层创建参考文档 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.addCustomLayer.html) @@ -216,7 +216,7 @@ sidebar_label: MapContext 创建自定义图片图层,图片会随着地图缩放而缩放。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.addGroundOverlay.html) @@ -232,7 +232,7 @@ sidebar_label: MapContext 添加可视化图层。需要刷新时,interval 可设置的最小值为 15 s。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.addVisualLayer.html) @@ -248,7 +248,7 @@ sidebar_label: MapContext 移除可视化图层。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.removeVisualLayer.html) @@ -264,7 +264,7 @@ sidebar_label: MapContext 添加弧线,途经点与夹角必须设置一个。途经点必须在起终点有效坐标范围内,否则不能生成正确的弧线,同时设置夹角角度时,以夹角角度为准。夹角定义为起点到终点,与起点外切线逆时针旋转的角度。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.addArc.html) @@ -280,7 +280,7 @@ sidebar_label: MapContext 删除弧线。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.removeArc.html) @@ -296,7 +296,7 @@ sidebar_label: MapContext 限制地图的显示范围。此接口同时会限制地图的最小缩放整数级别。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.setBoundary.html) @@ -312,7 +312,7 @@ sidebar_label: MapContext 更新自定义图片图层。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.updateGroundOverlay.html) @@ -328,7 +328,7 @@ sidebar_label: MapContext 移除自定义图片图层。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.removeGroundOverlay.html) @@ -344,7 +344,7 @@ sidebar_label: MapContext 获取经纬度对应的屏幕坐标,坐标原点为地图左上角。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.toScreenLocation.html) @@ -360,7 +360,7 @@ sidebar_label: MapContext 获取屏幕上的点对应的经纬度,坐标原点为地图左上角。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.fromScreenLocation.html) @@ -376,7 +376,7 @@ sidebar_label: MapContext 拉起地图APP选择导航。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.openMapApp.html) @@ -392,7 +392,7 @@ sidebar_label: MapContext 添加 marker。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.addMarkers.html) @@ -408,7 +408,7 @@ sidebar_label: MapContext 移除 marker。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.removeMarkers.html) @@ -424,7 +424,7 @@ sidebar_label: MapContext 初始化点聚合的配置,未调用时采用默认配置。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.initMarkerCluster.html) @@ -440,7 +440,7 @@ sidebar_label: MapContext 监听地图事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.on.html) @@ -763,7 +763,7 @@ MapContext.on('markerClusterClick', (res) => {}) | 参数 | 类型 | 必填 | 说明 | | --- | --- | :---: | --- | -| markerIds | `string[]` | 是 | marker 的 id 集合。 | +| markerIds | `number[]` | 是 | marker 的 id 集合。 | | complete | `(res: TaroGeneral.CallbackResult) => void` | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) | | fail | `(res: TaroGeneral.CallbackResult) => void` | 否 | 接口调用失败的回调函数 | | success | `(res: TaroGeneral.CallbackResult) => void` | 否 | 接口调用成功的回调函数 | @@ -806,7 +806,7 @@ event 的合法值 | --- | --- | --- | | clusterId | `number` | 聚合簇的 id | | center | `LatLng` | 聚合簇的坐标 | -| markerIds | `string[]` | 该聚合簇内的点标记数据数组 | +| markerIds | `number[]` | 该聚合簇内的点标记数据数组 | ### LatLng @@ -817,33 +817,33 @@ event 的合法值 ## API 支持度 -| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| MapContext | ✔️ | ✔️ | | | | ✔️ | -| MapContext.getCenterLocation | ✔️ | ✔️ | | | | ✔️ | -| MapContext.setLocMarkerIcon | ✔️ | ✔️ | | | | | -| MapContext.moveToLocation | ✔️ | ✔️ | | | | ✔️ | -| MapContext.translateMarker | ✔️ | ✔️ | | | | ✔️ | -| MapContext.includePoints | ✔️ | ✔️ | | | | ✔️ | -| MapContext.getRegion | ✔️ | ✔️ | | | | ✔️ | -| MapContext.getRotate | ✔️ | ✔️ | | | | ✔️ | -| MapContext.getSkew | ✔️ | ✔️ | | | | ✔️ | -| MapContext.getScale | ✔️ | ✔️ | | | | ✔️ | -| MapContext.setCenterOffset | ✔️ | ✔️ | | | | | -| MapContext.removeCustomLayer | ✔️ | | | | | | -| MapContext.addCustomLayer | ✔️ | | | | | | -| MapContext.addGroundOverlay | ✔️ | ✔️ | | | | | -| MapContext.addVisualLayer | ✔️ | | | | | | -| MapContext.removeVisualLayer | ✔️ | | | | | | -| MapContext.addArc | ✔️ | | | | | | -| MapContext.removeArc | ✔️ | | | | | | -| MapContext.setBoundary | ✔️ | | | | | | -| MapContext.updateGroundOverlay | ✔️ | ✔️ | | | | | -| MapContext.removeGroundOverlay | ✔️ | ✔️ | | | | | -| MapContext.toScreenLocation | ✔️ | | | | | | -| MapContext.fromScreenLocation | ✔️ | | | | | | -| MapContext.openMapApp | ✔️ | | | | | | -| MapContext.addMarkers | ✔️ | | | | | | -| MapContext.removeMarkers | ✔️ | | | | | | -| MapContext.initMarkerCluster | ✔️ | | | | | | -| MapContext.on | ✔️ | | | | | | +| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | +| MapContext | ✔️ | ✔️ | | | | +| MapContext.getCenterLocation | ✔️ | ✔️ | | | | +| MapContext.setLocMarkerIcon | ✔️ | ✔️ | | | | +| MapContext.moveToLocation | ✔️ | ✔️ | | | | +| MapContext.translateMarker | ✔️ | ✔️ | | | | +| MapContext.includePoints | ✔️ | ✔️ | | | | +| MapContext.getRegion | ✔️ | ✔️ | | | | +| MapContext.getRotate | ✔️ | ✔️ | | | | +| MapContext.getSkew | ✔️ | ✔️ | | | | +| MapContext.getScale | ✔️ | ✔️ | | | | +| MapContext.setCenterOffset | ✔️ | ✔️ | | | | +| MapContext.removeCustomLayer | ✔️ | | | | | +| MapContext.addCustomLayer | ✔️ | | | | | +| MapContext.addGroundOverlay | ✔️ | ✔️ | | | | +| MapContext.addVisualLayer | ✔️ | | | | | +| MapContext.removeVisualLayer | ✔️ | | | | | +| MapContext.addArc | ✔️ | | | | | +| MapContext.removeArc | ✔️ | | | | | +| MapContext.setBoundary | ✔️ | | | | | +| MapContext.updateGroundOverlay | ✔️ | ✔️ | | | | +| MapContext.removeGroundOverlay | ✔️ | ✔️ | | | | +| MapContext.toScreenLocation | ✔️ | | | | | +| MapContext.fromScreenLocation | ✔️ | | | | | +| MapContext.openMapApp | ✔️ | | | | | +| MapContext.addMarkers | ✔️ | | | | | +| MapContext.removeMarkers | ✔️ | | | | | +| MapContext.initMarkerCluster | ✔️ | | | | | +| MapContext.on | ✔️ | | | | | diff --git a/docs/apis/media/map/createMapContext.md b/docs/apis/media/map/createMapContext.md index 1abe0d3c690c..7cc7c269224a 100644 --- a/docs/apis/media/map/createMapContext.md +++ b/docs/apis/media/map/createMapContext.md @@ -5,7 +5,7 @@ sidebar_label: createMapContext 创建 [map](/docs/components/maps/map) 上下文 [MapContext](/docs/apis/media/map/MapContext) 对象。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/map/wx.createMapContext.html) diff --git a/docs/apis/media/media-recorder/MediaRecorder.md b/docs/apis/media/media-recorder/MediaRecorder.md index aec7f98d65e7..3bd8039db0e9 100644 --- a/docs/apis/media/media-recorder/MediaRecorder.md +++ b/docs/apis/media/media-recorder/MediaRecorder.md @@ -9,7 +9,7 @@ sidebar_label: MediaRecorder 销毁录制器 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/MediaRecorder.destroy.html) @@ -21,7 +21,7 @@ sidebar_label: MediaRecorder 取消监听录制事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/MediaRecorder.off.html) @@ -38,7 +38,7 @@ sidebar_label: MediaRecorder 注册监听录制事件的回调函数 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/MediaRecorder.on.html) @@ -55,7 +55,7 @@ sidebar_label: MediaRecorder 暂停录制 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/MediaRecorder.pause.html) @@ -67,7 +67,7 @@ sidebar_label: MediaRecorder 请求下一帧录制,在 callback 里完成一帧渲染后开始录制当前帧 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/MediaRecorder.requestFrame.html) @@ -83,7 +83,7 @@ sidebar_label: MediaRecorder 恢复录制 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/MediaRecorder.resume.html) @@ -95,7 +95,7 @@ sidebar_label: MediaRecorder 开始录制 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/MediaRecorder.start.html) @@ -107,7 +107,7 @@ sidebar_label: MediaRecorder 结束录制 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/MediaRecorder.stop.html) @@ -155,13 +155,13 @@ eventName 的合法值 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| MediaRecorder.destroy | ✔️ | | | | | -| MediaRecorder.off | ✔️ | | | | | -| MediaRecorder.on | ✔️ | | | | | -| MediaRecorder.pause | ✔️ | | | | | -| MediaRecorder.requestFrame | ✔️ | | | | | -| MediaRecorder.resume | ✔️ | | | | | -| MediaRecorder.start | ✔️ | | | | | -| MediaRecorder.stop | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| MediaRecorder.destroy | ✔️ | | | | +| MediaRecorder.off | ✔️ | | | | +| MediaRecorder.on | ✔️ | | | | +| MediaRecorder.pause | ✔️ | | | | +| MediaRecorder.requestFrame | ✔️ | | | | +| MediaRecorder.resume | ✔️ | | | | +| MediaRecorder.start | ✔️ | | | | +| MediaRecorder.stop | ✔️ | | | | diff --git a/docs/apis/media/media-recorder/createMediaRecorder.md b/docs/apis/media/media-recorder/createMediaRecorder.md index 2a3c294fa773..a2a67668afa8 100644 --- a/docs/apis/media/media-recorder/createMediaRecorder.md +++ b/docs/apis/media/media-recorder/createMediaRecorder.md @@ -5,7 +5,7 @@ sidebar_label: createMediaRecorder 创建 WebGL 画面录制器,可逐帧录制在 WebGL 上渲染的画面并导出视频文件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/media-recorder/wx.createMediaRecorder.html) diff --git a/docs/apis/media/recorder/RecorderManager.md b/docs/apis/media/recorder/RecorderManager.md index 084c7e7558e4..de3ef18a2679 100644 --- a/docs/apis/media/recorder/RecorderManager.md +++ b/docs/apis/media/recorder/RecorderManager.md @@ -13,7 +13,7 @@ sidebar_label: RecorderManager 监听录音错误事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/RecorderManager.onError.html) @@ -29,7 +29,7 @@ sidebar_label: RecorderManager 监听已录制完指定帧大小的文件事件。如果设置了 frameSize,则会回调此事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/RecorderManager.onFrameRecorded.html) @@ -45,7 +45,7 @@ sidebar_label: RecorderManager 监听录音因为受到系统占用而被中断开始事件。以下场景会触发此事件:微信语音聊天、微信视频聊天。此事件触发后,录音会被暂停。pause 事件在此事件后触发 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/RecorderManager.onInterruptionBegin.html) @@ -61,7 +61,7 @@ sidebar_label: RecorderManager 监听录音中断结束事件。在收到 interruptionBegin 事件之后,小程序内所有录音会暂停,收到此事件之后才可再次录音成功。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/RecorderManager.onInterruptionEnd.html) @@ -77,7 +77,7 @@ sidebar_label: RecorderManager 监听录音暂停事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/RecorderManager.onPause.html) @@ -93,7 +93,7 @@ sidebar_label: RecorderManager 监听录音继续事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/RecorderManager.onResume.html) @@ -109,7 +109,7 @@ sidebar_label: RecorderManager 监听录音开始事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/RecorderManager.onStart.html) @@ -125,7 +125,7 @@ sidebar_label: RecorderManager 监听录音结束事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/RecorderManager.onStop.html) @@ -141,7 +141,7 @@ sidebar_label: RecorderManager 暂停录音 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/RecorderManager.pause.html) @@ -153,7 +153,7 @@ sidebar_label: RecorderManager 继续录音 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/RecorderManager.resume.html) @@ -165,7 +165,7 @@ sidebar_label: RecorderManager 开始录音 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/RecorderManager.start.html) @@ -181,7 +181,7 @@ sidebar_label: RecorderManager 停止录音 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/RecorderManager.stop.html) @@ -312,17 +312,17 @@ sidebar_label: RecorderManager ## API 支持度 -| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| RecorderManager.onError | ✔️ | ✔️ | | ✔️ | | ✔️ | -| RecorderManager.onFrameRecorded | ✔️ | ✔️ | | | | | -| RecorderManager.onInterruptionBegin | ✔️ | | | | | | -| RecorderManager.onInterruptionEnd | ✔️ | | | | | | -| RecorderManager.onPause | ✔️ | ✔️ | | ✔️ | | ✔️ | -| RecorderManager.onResume | ✔️ | ✔️ | | ✔️ | | ✔️ | -| RecorderManager.onStart | ✔️ | ✔️ | | ✔️ | | ✔️ | -| RecorderManager.onStop | ✔️ | ✔️ | | ✔️ | | ✔️ | -| RecorderManager.pause | ✔️ | | | ✔️ | | ✔️ | -| RecorderManager.resume | ✔️ | ✔️ | | ✔️ | | ✔️ | -| RecorderManager.start | ✔️ | ✔️ | | ✔️ | | ✔️ | -| RecorderManager.stop | ✔️ | ✔️ | | ✔️ | | ✔️ | +| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | +| RecorderManager.onError | ✔️ | ✔️ | | ✔️ | | +| RecorderManager.onFrameRecorded | ✔️ | ✔️ | | | | +| RecorderManager.onInterruptionBegin | ✔️ | | | | | +| RecorderManager.onInterruptionEnd | ✔️ | | | | | +| RecorderManager.onPause | ✔️ | ✔️ | | ✔️ | | +| RecorderManager.onResume | ✔️ | ✔️ | | ✔️ | | +| RecorderManager.onStart | ✔️ | ✔️ | | ✔️ | | +| RecorderManager.onStop | ✔️ | ✔️ | | ✔️ | | +| RecorderManager.pause | ✔️ | | | ✔️ | | +| RecorderManager.resume | ✔️ | ✔️ | | ✔️ | | +| RecorderManager.start | ✔️ | ✔️ | | ✔️ | | +| RecorderManager.stop | ✔️ | ✔️ | | ✔️ | | diff --git a/docs/apis/media/recorder/getRecorderManager.md b/docs/apis/media/recorder/getRecorderManager.md index 52c4209ffa6f..6a193bf4b975 100644 --- a/docs/apis/media/recorder/getRecorderManager.md +++ b/docs/apis/media/recorder/getRecorderManager.md @@ -5,7 +5,7 @@ sidebar_label: getRecorderManager 获取**全局唯一**的录音管理器 RecorderManager -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/wx.getRecorderManager.html) diff --git a/docs/apis/media/recorder/startRecord.md b/docs/apis/media/recorder/startRecord.md index f71a7da8953e..364ee586cc8a 100644 --- a/docs/apis/media/recorder/startRecord.md +++ b/docs/apis/media/recorder/startRecord.md @@ -7,7 +7,7 @@ sidebar_label: startRecord **注意:1.6.0 版本开始,本接口不再维护。建议使用能力更强的 [Taro.getRecorderManager](/docs/apis/media/recorder/getRecorderManager) 接口** 需要[用户授权](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/authorize.html) scope.record -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/wx.startRecord.html) diff --git a/docs/apis/media/recorder/stopRecord.md b/docs/apis/media/recorder/stopRecord.md index 8525db4de92d..469c1e9d5174 100644 --- a/docs/apis/media/recorder/stopRecord.md +++ b/docs/apis/media/recorder/stopRecord.md @@ -5,7 +5,7 @@ sidebar_label: stopRecord 停止录音。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/wx.stopRecord.html) diff --git a/docs/apis/media/video-decoder/VideoDecoder.md b/docs/apis/media/video-decoder/VideoDecoder.md index e94174c79f8f..04086319952b 100644 --- a/docs/apis/media/video-decoder/VideoDecoder.md +++ b/docs/apis/media/video-decoder/VideoDecoder.md @@ -9,7 +9,7 @@ sidebar_label: VideoDecoder 获取下一帧的解码数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/VideoDecoder.getFrameData.html) @@ -21,7 +21,7 @@ sidebar_label: VideoDecoder 取消监听录制事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/VideoDecoder.off.html) @@ -38,7 +38,7 @@ sidebar_label: VideoDecoder 注册监听录制事件的回调函数 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/VideoDecoder.on.html) @@ -55,7 +55,7 @@ sidebar_label: VideoDecoder 移除解码器 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/VideoDecoder.remove.html) @@ -67,7 +67,7 @@ sidebar_label: VideoDecoder 跳到某个时间点解码 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/VideoDecoder.seek.html) @@ -83,7 +83,7 @@ sidebar_label: VideoDecoder 开始解码 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/VideoDecoder.start.html) @@ -99,7 +99,7 @@ sidebar_label: VideoDecoder 停止解码 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/VideoDecoder.stop.html) @@ -160,12 +160,12 @@ eventName 的合法值 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| VideoDecoder.getFrameData | ✔️ | | | | | -| VideoDecoder.off | ✔️ | | | | | -| VideoDecoder.on | ✔️ | | | | | -| VideoDecoder.remove | ✔️ | | | | | -| VideoDecoder.seek | ✔️ | | | | | -| VideoDecoder.start | ✔️ | | | | | -| VideoDecoder.stop | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| VideoDecoder.getFrameData | ✔️ | | | | +| VideoDecoder.off | ✔️ | | | | +| VideoDecoder.on | ✔️ | | | | +| VideoDecoder.remove | ✔️ | | | | +| VideoDecoder.seek | ✔️ | | | | +| VideoDecoder.start | ✔️ | | | | +| VideoDecoder.stop | ✔️ | | | | diff --git a/docs/apis/media/video-decoder/createVideoDecoder.md b/docs/apis/media/video-decoder/createVideoDecoder.md index a19ac85ad941..caaff08e4d60 100644 --- a/docs/apis/media/video-decoder/createVideoDecoder.md +++ b/docs/apis/media/video-decoder/createVideoDecoder.md @@ -5,7 +5,7 @@ sidebar_label: createVideoDecoder 创建视频解码器,可逐帧获取解码后的数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/wx.createVideoDecoder.html) diff --git a/docs/apis/media/video-processing/MediaContainer.md b/docs/apis/media/video-processing/MediaContainer.md index 652f9137adb3..7826ceae8e03 100644 --- a/docs/apis/media/video-processing/MediaContainer.md +++ b/docs/apis/media/video-processing/MediaContainer.md @@ -7,7 +7,7 @@ sidebar_label: MediaContainer > 可通过 [Taro.createMediaContainer](./createMediaContainer) 创建 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/MediaContainer.html) @@ -17,7 +17,7 @@ sidebar_label: MediaContainer 将音频或视频轨道添加到容器 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/MediaContainer.addTrack.html) @@ -33,7 +33,7 @@ sidebar_label: MediaContainer 将容器销毁,释放资源 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/MediaContainer.destroy.html) @@ -45,7 +45,7 @@ sidebar_label: MediaContainer 将容器内的轨道合并并导出视频文件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/MediaContainer.export.html) @@ -57,7 +57,7 @@ sidebar_label: MediaContainer 将传入的视频源分离轨道。不会自动将轨道添加到待合成的容器里。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/MediaContainer.extractDataSource.html) @@ -73,7 +73,7 @@ sidebar_label: MediaContainer 将音频或视频轨道从容器中移除 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/MediaContainer.removeTrack.html) @@ -95,11 +95,11 @@ sidebar_label: MediaContainer ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| MediaContainer | ✔️ | | | | | -| MediaContainer.addTrack | ✔️ | | | | | -| MediaContainer.destroy | ✔️ | | | | | -| MediaContainer.export | ✔️ | | | | | -| MediaContainer.extractDataSource | ✔️ | | | | | -| MediaContainer.removeTrack | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| MediaContainer | ✔️ | | | | +| MediaContainer.addTrack | ✔️ | | | | +| MediaContainer.destroy | ✔️ | | | | +| MediaContainer.export | ✔️ | | | | +| MediaContainer.extractDataSource | ✔️ | | | | +| MediaContainer.removeTrack | ✔️ | | | | diff --git a/docs/apis/media/video-processing/MediaTrack.md b/docs/apis/media/video-processing/MediaTrack.md index fb715b06cd42..b37e6edc256f 100644 --- a/docs/apis/media/video-processing/MediaTrack.md +++ b/docs/apis/media/video-processing/MediaTrack.md @@ -6,7 +6,7 @@ sidebar_label: MediaTrack 可通过 [MediaContainer.extractDataSource](/docs/apis/media/video-processing/MediaContainer#extractdatasource) 返回。 [MediaTrack](/docs/apis/media/video-processing/MediaTrack) 音频或视频轨道,可以对轨道进行一些操作 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/MediaTrack.html) @@ -29,6 +29,6 @@ sidebar_label: MediaTrack ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| MediaTrack | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| MediaTrack | ✔️ | | | | diff --git a/docs/apis/media/video-processing/createMediaContainer.md b/docs/apis/media/video-processing/createMediaContainer.md index f158d162e5bd..bb38ad428967 100644 --- a/docs/apis/media/video-processing/createMediaContainer.md +++ b/docs/apis/media/video-processing/createMediaContainer.md @@ -5,7 +5,7 @@ sidebar_label: createMediaContainer 创建音视频处理容器,最终可将容器中的轨道合成一个视频 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/wx.createMediaContainer.html) diff --git a/docs/apis/media/video/VideoContext.md b/docs/apis/media/video/VideoContext.md index 8c06d141497f..6c34b871896c 100644 --- a/docs/apis/media/video/VideoContext.md +++ b/docs/apis/media/video/VideoContext.md @@ -7,7 +7,7 @@ VideoContext 实例,可通过 [Taro.createVideoContext](./createVideoContext) VideoContext 通过 id 跟一个 video 组件绑定,操作对应的 video 组件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.html) @@ -17,7 +17,7 @@ VideoContext 通过 id 跟一个 video 组件绑定,操作对应的 video 组 退出后台音频播放模式。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.exitBackgroundPlayback.html) @@ -29,7 +29,7 @@ VideoContext 通过 id 跟一个 video 组件绑定,操作对应的 video 组 退出全屏 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.exitFullScreen.html) @@ -41,7 +41,7 @@ VideoContext 通过 id 跟一个 video 组件绑定,操作对应的 video 组 退出小窗,该方法可在任意页面调用 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.exitPictureInPicture.html) @@ -57,7 +57,7 @@ VideoContext 通过 id 跟一个 video 组件绑定,操作对应的 video 组 隐藏状态栏,仅在iOS全屏下有效 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.hideStatusBar.html) @@ -69,7 +69,7 @@ VideoContext 通过 id 跟一个 video 组件绑定,操作对应的 video 组 暂停视频 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.pause.html) @@ -81,7 +81,7 @@ VideoContext 通过 id 跟一个 video 组件绑定,操作对应的 video 组 播放视频 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.play.html) @@ -93,7 +93,7 @@ VideoContext 通过 id 跟一个 video 组件绑定,操作对应的 video 组 设置倍速播放 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.playbackRate.html) @@ -109,7 +109,7 @@ VideoContext 通过 id 跟一个 video 组件绑定,操作对应的 video 组 进入后台音频播放模式。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.requestBackgroundPlayback.html) @@ -121,7 +121,7 @@ VideoContext 通过 id 跟一个 video 组件绑定,操作对应的 video 组 进入全屏 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.requestFullScreen.html) @@ -137,7 +137,7 @@ VideoContext 通过 id 跟一个 video 组件绑定,操作对应的 video 组 跳转到指定位置 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.seek.html) @@ -153,7 +153,7 @@ VideoContext 通过 id 跟一个 video 组件绑定,操作对应的 video 组 发送弹幕 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.sendDanmu.html) @@ -169,7 +169,7 @@ VideoContext 通过 id 跟一个 video 组件绑定,操作对应的 video 组 显示状态栏,仅在iOS全屏下有效 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.showStatusBar.html) @@ -181,7 +181,7 @@ VideoContext 通过 id 跟一个 video 组件绑定,操作对应的 video 组 停止视频 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.stop.html) @@ -216,19 +216,19 @@ VideoContext 通过 id 跟一个 video 组件绑定,操作对应的 video 组 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| VideoContext | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| VideoContext.exitBackgroundPlayback | ✔️ | | | | | ✔️ | -| VideoContext.exitFullScreen | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| VideoContext.exitPictureInPicture | ✔️ | | | | | | -| VideoContext.hideStatusBar | ✔️ | | | | | | -| VideoContext.pause | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| VideoContext.play | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| VideoContext.playbackRate | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| VideoContext.requestBackgroundPlayback | ✔️ | | | | | ✔️ | -| VideoContext.requestFullScreen | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| VideoContext.seek | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| VideoContext.sendDanmu | ✔️ | | | | | | -| VideoContext.showStatusBar | ✔️ | | | | | | -| VideoContext.stop | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | +| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | +| VideoContext | ✔️ | ✔️ | ✔️ | | ✔️ | +| VideoContext.exitBackgroundPlayback | ✔️ | | | | | +| VideoContext.exitFullScreen | ✔️ | ✔️ | ✔️ | | ✔️ | +| VideoContext.exitPictureInPicture | ✔️ | | | | | +| VideoContext.hideStatusBar | ✔️ | | | | | +| VideoContext.pause | ✔️ | ✔️ | ✔️ | | ✔️ | +| VideoContext.play | ✔️ | ✔️ | ✔️ | | ✔️ | +| VideoContext.playbackRate | ✔️ | ✔️ | ✔️ | | ✔️ | +| VideoContext.requestBackgroundPlayback | ✔️ | | | | | +| VideoContext.requestFullScreen | ✔️ | ✔️ | ✔️ | | ✔️ | +| VideoContext.seek | ✔️ | ✔️ | ✔️ | | ✔️ | +| VideoContext.sendDanmu | ✔️ | | | | | +| VideoContext.showStatusBar | ✔️ | | | | | +| VideoContext.stop | ✔️ | ✔️ | ✔️ | | ✔️ | diff --git a/docs/apis/media/video/chooseMedia.md b/docs/apis/media/video/chooseMedia.md index f615038bf374..397bfafab5bd 100644 --- a/docs/apis/media/video/chooseMedia.md +++ b/docs/apis/media/video/chooseMedia.md @@ -5,7 +5,7 @@ sidebar_label: chooseMedia 拍摄或从手机相册中选择图片或视频。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html) diff --git a/docs/apis/media/video/chooseVideo.md b/docs/apis/media/video/chooseVideo.md index 15b4e6782b2e..b55bdf720c80 100644 --- a/docs/apis/media/video/chooseVideo.md +++ b/docs/apis/media/video/chooseVideo.md @@ -5,7 +5,7 @@ sidebar_label: chooseVideo 拍摄视频或从手机相册中选视频。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseVideo.html) diff --git a/docs/apis/media/video/compressVideo.md b/docs/apis/media/video/compressVideo.md index 72164c1c1b2f..10c008c2b410 100644 --- a/docs/apis/media/video/compressVideo.md +++ b/docs/apis/media/video/compressVideo.md @@ -6,7 +6,7 @@ sidebar_label: compressVideo 压缩视频接口。 开发者可指定压缩质量 `quality` 进行压缩。当需要更精细的控制时,可指定 `bitrate`、`fps`、和 `resolution`,当 `quality` 传入时,这三个参数将被忽略。原视频的相关信息可通过 [getVideoInfo](/docs/apis/media/video/getVideoInfo) 获取。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.compressVideo.html) diff --git a/docs/apis/media/video/createVideoContext.md b/docs/apis/media/video/createVideoContext.md index b8973775db99..bc1eec7918d0 100644 --- a/docs/apis/media/video/createVideoContext.md +++ b/docs/apis/media/video/createVideoContext.md @@ -5,7 +5,7 @@ sidebar_label: createVideoContext 创建 video 上下文 VideoContext 对象。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.createVideoContext.html) diff --git a/docs/apis/media/video/getVideoInfo.md b/docs/apis/media/video/getVideoInfo.md index 7a30f3ae7ea9..87d23dca6ce7 100644 --- a/docs/apis/media/video/getVideoInfo.md +++ b/docs/apis/media/video/getVideoInfo.md @@ -5,7 +5,7 @@ sidebar_label: getVideoInfo 获取视频详细信息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.getVideoInfo.html) diff --git a/docs/apis/media/video/openVideoEditor.md b/docs/apis/media/video/openVideoEditor.md index e5a6edeec967..73a6e2d06d99 100644 --- a/docs/apis/media/video/openVideoEditor.md +++ b/docs/apis/media/video/openVideoEditor.md @@ -5,7 +5,7 @@ sidebar_label: openVideoEditor 打开视频编辑器 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.openVideoEditor.html) diff --git a/docs/apis/media/video/saveVideoToPhotosAlbum.md b/docs/apis/media/video/saveVideoToPhotosAlbum.md index 90a3ef65d0ef..1fd2a6588570 100644 --- a/docs/apis/media/video/saveVideoToPhotosAlbum.md +++ b/docs/apis/media/video/saveVideoToPhotosAlbum.md @@ -9,7 +9,7 @@ sidebar_label: saveVideoToPhotosAlbum 1. `tip`: camera 参数在部分 Android 手机下由于系统 ROM 不支持无法生效 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.saveVideoToPhotosAlbum.html) diff --git a/docs/apis/media/voip/exitVoIPChat.md b/docs/apis/media/voip/exitVoIPChat.md index 3a9b24a247bf..950059671e2e 100644 --- a/docs/apis/media/voip/exitVoIPChat.md +++ b/docs/apis/media/voip/exitVoIPChat.md @@ -5,7 +5,7 @@ sidebar_label: exitVoIPChat 退出(销毁)实时语音通话 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.exitVoIPChat.html) diff --git a/docs/apis/media/voip/join1v1Chat.md b/docs/apis/media/voip/join1v1Chat.md index 29487dddd6f8..24cbf84326de 100644 --- a/docs/apis/media/voip/join1v1Chat.md +++ b/docs/apis/media/voip/join1v1Chat.md @@ -5,7 +5,7 @@ sidebar_label: join1v1Chat 加入(创建)双人通话 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.join1v1Chat.html) diff --git a/docs/apis/media/voip/joinVoIPChat.md b/docs/apis/media/voip/joinVoIPChat.md index 437ab8164116..fd566d14b9c5 100644 --- a/docs/apis/media/voip/joinVoIPChat.md +++ b/docs/apis/media/voip/joinVoIPChat.md @@ -7,7 +7,7 @@ sidebar_label: joinVoIPChat 调用前需要用户授权 `scope.record`,若房间类型为视频房间需要用户授权 `scope.camera`。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.joinVoIPChat.html) diff --git a/docs/apis/media/voip/offVoIPChatInterrupted.md b/docs/apis/media/voip/offVoIPChatInterrupted.md index c55f34caad73..83129841decf 100644 --- a/docs/apis/media/voip/offVoIPChatInterrupted.md +++ b/docs/apis/media/voip/offVoIPChatInterrupted.md @@ -5,7 +5,7 @@ sidebar_label: offVoIPChatInterrupted 取消监听被动断开实时语音通话事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.offVoIPChatInterrupted.html) diff --git a/docs/apis/media/voip/offVoIPChatMembersChanged.md b/docs/apis/media/voip/offVoIPChatMembersChanged.md index 73c93c9645e0..b3c063e9f7b0 100644 --- a/docs/apis/media/voip/offVoIPChatMembersChanged.md +++ b/docs/apis/media/voip/offVoIPChatMembersChanged.md @@ -5,7 +5,7 @@ sidebar_label: offVoIPChatMembersChanged 取消监听实时语音通话成员在线状态变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.offVoIPChatMembersChanged.html) diff --git a/docs/apis/media/voip/offVoIPChatSpeakersChanged.md b/docs/apis/media/voip/offVoIPChatSpeakersChanged.md index d4fe01f936bf..4916fdc06fe2 100644 --- a/docs/apis/media/voip/offVoIPChatSpeakersChanged.md +++ b/docs/apis/media/voip/offVoIPChatSpeakersChanged.md @@ -5,7 +5,7 @@ sidebar_label: offVoIPChatSpeakersChanged 取消监听实时语音通话成员通话状态变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.offVoIPChatSpeakersChanged.html) diff --git a/docs/apis/media/voip/offVoIPChatStateChanged.md b/docs/apis/media/voip/offVoIPChatStateChanged.md index cb7ef50d2bb6..1a289f0854a4 100644 --- a/docs/apis/media/voip/offVoIPChatStateChanged.md +++ b/docs/apis/media/voip/offVoIPChatStateChanged.md @@ -5,7 +5,7 @@ sidebar_label: offVoIPChatStateChanged 取消监听房间状态变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.offVoIPChatStateChanged.html) diff --git a/docs/apis/media/voip/offVoIPVideoMembersChanged.md b/docs/apis/media/voip/offVoIPVideoMembersChanged.md index c11d11f50110..8cd6c2238a9e 100644 --- a/docs/apis/media/voip/offVoIPVideoMembersChanged.md +++ b/docs/apis/media/voip/offVoIPVideoMembersChanged.md @@ -5,7 +5,7 @@ sidebar_label: offVoIPVideoMembersChanged 取消监听实时语音通话成员视频状态变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.offVoIPVideoMembersChanged.html) diff --git a/docs/apis/media/voip/onVoIPChatInterrupted.md b/docs/apis/media/voip/onVoIPChatInterrupted.md index ff50d60d9368..5b50d1090381 100644 --- a/docs/apis/media/voip/onVoIPChatInterrupted.md +++ b/docs/apis/media/voip/onVoIPChatInterrupted.md @@ -5,7 +5,7 @@ sidebar_label: onVoIPChatInterrupted 监听被动断开实时语音通话事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.onVoIPChatInterrupted.html) diff --git a/docs/apis/media/voip/onVoIPChatMembersChanged.md b/docs/apis/media/voip/onVoIPChatMembersChanged.md index 774acfae808d..b08598612454 100644 --- a/docs/apis/media/voip/onVoIPChatMembersChanged.md +++ b/docs/apis/media/voip/onVoIPChatMembersChanged.md @@ -5,7 +5,7 @@ sidebar_label: onVoIPChatMembersChanged 监听实时语音通话成员在线状态变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.onVoIPChatMembersChanged.html) diff --git a/docs/apis/media/voip/onVoIPChatSpeakersChanged.md b/docs/apis/media/voip/onVoIPChatSpeakersChanged.md index 4fbae2a939b9..a8229288fdc7 100644 --- a/docs/apis/media/voip/onVoIPChatSpeakersChanged.md +++ b/docs/apis/media/voip/onVoIPChatSpeakersChanged.md @@ -5,7 +5,7 @@ sidebar_label: onVoIPChatSpeakersChanged 监听实时语音通话成员通话状态变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.onVoIPChatSpeakersChanged.html) diff --git a/docs/apis/media/voip/onVoIPChatStateChanged.md b/docs/apis/media/voip/onVoIPChatStateChanged.md index 04f76b8ab2f3..891874336d23 100644 --- a/docs/apis/media/voip/onVoIPChatStateChanged.md +++ b/docs/apis/media/voip/onVoIPChatStateChanged.md @@ -5,7 +5,7 @@ sidebar_label: onVoIPChatStateChanged 监听房间状态变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.onVoIPChatStateChanged.html) diff --git a/docs/apis/media/voip/onVoIPVideoMembersChanged.md b/docs/apis/media/voip/onVoIPVideoMembersChanged.md index dd2c49feb9c5..f592a75fb34d 100644 --- a/docs/apis/media/voip/onVoIPVideoMembersChanged.md +++ b/docs/apis/media/voip/onVoIPVideoMembersChanged.md @@ -5,7 +5,7 @@ sidebar_label: onVoIPVideoMembersChanged 监听实时语音通话成员视频状态变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.onVoIPVideoMembersChanged.html) diff --git a/docs/apis/media/voip/setEnable1v1Chat.md b/docs/apis/media/voip/setEnable1v1Chat.md index 952c2e879f74..954972416e4e 100644 --- a/docs/apis/media/voip/setEnable1v1Chat.md +++ b/docs/apis/media/voip/setEnable1v1Chat.md @@ -5,7 +5,7 @@ sidebar_label: setEnable1v1Chat 开启双人通话 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.setEnable1v1Chat.html) diff --git a/docs/apis/media/voip/subscribeVoIPVideoMembers.md b/docs/apis/media/voip/subscribeVoIPVideoMembers.md index 43d6f406c9fe..0d5a6df77039 100644 --- a/docs/apis/media/voip/subscribeVoIPVideoMembers.md +++ b/docs/apis/media/voip/subscribeVoIPVideoMembers.md @@ -5,7 +5,7 @@ sidebar_label: subscribeVoIPVideoMembers 订阅视频画面成员 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.subscribeVoIPVideoMembers.html) diff --git a/docs/apis/media/voip/updateVoIPChatMuteConfig.md b/docs/apis/media/voip/updateVoIPChatMuteConfig.md index 34f9fadb8e02..b8e6310b7a3c 100644 --- a/docs/apis/media/voip/updateVoIPChatMuteConfig.md +++ b/docs/apis/media/voip/updateVoIPChatMuteConfig.md @@ -5,7 +5,7 @@ sidebar_label: updateVoIPChatMuteConfig 更新实时语音静音设置 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.updateVoIPChatMuteConfig.html) diff --git a/docs/apis/navigate/exitMiniProgram.md b/docs/apis/navigate/exitMiniProgram.md index 93fb4d9e84fe..e9f1a4687698 100644 --- a/docs/apis/navigate/exitMiniProgram.md +++ b/docs/apis/navigate/exitMiniProgram.md @@ -5,7 +5,7 @@ sidebar_label: exitMiniProgram 退出当前小程序。必须有点击行为才能调用成功。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/navigate/wx.exitMiniProgram.html) diff --git a/docs/apis/navigate/navigateBackMiniProgram.md b/docs/apis/navigate/navigateBackMiniProgram.md index d96879458191..c54a2d819ea2 100644 --- a/docs/apis/navigate/navigateBackMiniProgram.md +++ b/docs/apis/navigate/navigateBackMiniProgram.md @@ -7,7 +7,7 @@ sidebar_label: navigateBackMiniProgram 注意:**微信客户端 iOS 6.5.9,Android 6.5.10 及以上版本支持** -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/miniprogram-navigate/wx.navigateBackMiniProgram.html) diff --git a/docs/apis/navigate/navigateToMiniProgram.md b/docs/apis/navigate/navigateToMiniProgram.md index 53841657fe57..be3f9045eb42 100644 --- a/docs/apis/navigate/navigateToMiniProgram.md +++ b/docs/apis/navigate/navigateToMiniProgram.md @@ -17,7 +17,7 @@ sidebar_label: navigateToMiniProgram - 在开发者工具上调用此 API 并不会真实的跳转到另外的小程序,但是开发者工具会校验本次调用跳转是否成功。[详情](https://developers.weixin.qq.com/miniprogram/dev/devtools/different.html#跳转小程序调试支持) - 开发者工具上支持被跳转的小程序处理接收参数的调试。[详情](https://developers.weixin.qq.com/miniprogram/dev/devtools/different.html#跳转小程序调试支持) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/miniprogram-navigate/wx.navigateToMiniProgram.html) diff --git a/docs/apis/navigate/openBusinessView.md b/docs/apis/navigate/openBusinessView.md index 5f9679417c29..ea2b03308bdb 100644 --- a/docs/apis/navigate/openBusinessView.md +++ b/docs/apis/navigate/openBusinessView.md @@ -5,7 +5,7 @@ sidebar_label: openBusinessView 商户通过调用订单详情接口打开微信支付分小程序,引导用户查看订单详情(小程序端) -支持情况: +支持情况: > [参考文档](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter6_1_25.shtml) diff --git a/docs/apis/navigate/openEmbeddedMiniProgram.md b/docs/apis/navigate/openEmbeddedMiniProgram.md index 6f30425a03e3..5e626d835d8a 100644 --- a/docs/apis/navigate/openEmbeddedMiniProgram.md +++ b/docs/apis/navigate/openEmbeddedMiniProgram.md @@ -5,7 +5,7 @@ sidebar_label: openEmbeddedMiniProgram 打开半屏小程序。接入指引请参考 [半屏小程序能力](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/openEmbeddedMiniProgram.html)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/navigate/wx.openEmbeddedMiniProgram.html) diff --git a/docs/apis/network/download/DownloadTask.md b/docs/apis/network/download/DownloadTask.md index a3dedadde723..efe0a195ed03 100644 --- a/docs/apis/network/download/DownloadTask.md +++ b/docs/apis/network/download/DownloadTask.md @@ -5,7 +5,7 @@ sidebar_label: DownloadTask 一个可以监听下载进度变化事件,以及取消下载任务的对象 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/download/DownloadTask.html) @@ -15,7 +15,7 @@ sidebar_label: DownloadTask 中断下载任务 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/download/DownloadTask.abort.html) @@ -27,7 +27,7 @@ sidebar_label: DownloadTask 监听下载进度变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/download/DownloadTask.onProgressUpdate.html) @@ -43,7 +43,7 @@ sidebar_label: DownloadTask 取消监听下载进度变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/download/DownloadTask.offProgressUpdate.html) @@ -59,7 +59,7 @@ sidebar_label: DownloadTask 监听 HTTP Response Header 事件。会比请求完成事件更早 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/download/DownloadTask.onHeadersReceived.html) @@ -75,7 +75,7 @@ sidebar_label: DownloadTask 取消监听 HTTP Response Header 事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/download/DownloadTask.offHeadersReceived.html) @@ -152,11 +152,11 @@ downloadTask.abort() // 取消下载任务 ## API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| DownloadTask | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| DownloadTask.abort | ✔️ | | | ✔️ | ✔️ | | | ✔️ | ✔️ | -| DownloadTask.onProgressUpdate | ✔️ | | | ✔️ | ✔️ | | | ✔️ | ✔️ | -| DownloadTask.offProgressUpdate | ✔️ | | | ✔️ | ✔️ | | | ✔️ | ✔️ | -| DownloadTask.onHeadersReceived | ✔️ | | | | ✔️ | | | | ✔️ | -| DownloadTask.offHeadersReceived | ✔️ | | | | ✔️ | | | | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| DownloadTask | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| DownloadTask.abort | ✔️ | | | ✔️ | ✔️ | | | ✔️ | +| DownloadTask.onProgressUpdate | ✔️ | | | ✔️ | ✔️ | | | ✔️ | +| DownloadTask.offProgressUpdate | ✔️ | | | ✔️ | ✔️ | | | ✔️ | +| DownloadTask.onHeadersReceived | ✔️ | | | | ✔️ | | | | +| DownloadTask.offHeadersReceived | ✔️ | | | | ✔️ | | | | diff --git a/docs/apis/network/download/downloadFile.md b/docs/apis/network/download/downloadFile.md index cbc000a8ca09..287a3024393f 100644 --- a/docs/apis/network/download/downloadFile.md +++ b/docs/apis/network/download/downloadFile.md @@ -7,7 +7,7 @@ sidebar_label: downloadFile 注意:请在服务端响应的 header 中指定合理的 `Content-Type` 字段,以保证客户端正确处理文件类型。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/download/wx.downloadFile.html) diff --git a/docs/apis/network/mdns/offLocalServiceDiscoveryStop.md b/docs/apis/network/mdns/offLocalServiceDiscoveryStop.md index 80fe2e3a5c14..236c6e57a3ed 100644 --- a/docs/apis/network/mdns/offLocalServiceDiscoveryStop.md +++ b/docs/apis/network/mdns/offLocalServiceDiscoveryStop.md @@ -5,7 +5,7 @@ sidebar_label: offLocalServiceDiscoveryStop 取消监听 mDNS 服务停止搜索的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.offLocalServiceDiscoveryStop.html) diff --git a/docs/apis/network/mdns/offLocalServiceFound.md b/docs/apis/network/mdns/offLocalServiceFound.md index 97fd8593e460..369a43f13e4a 100644 --- a/docs/apis/network/mdns/offLocalServiceFound.md +++ b/docs/apis/network/mdns/offLocalServiceFound.md @@ -5,7 +5,7 @@ sidebar_label: offLocalServiceFound 取消监听 mDNS 服务发现的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.offLocalServiceFound.html) diff --git a/docs/apis/network/mdns/offLocalServiceLost.md b/docs/apis/network/mdns/offLocalServiceLost.md index 9de241ba33f2..ede3c2d575b3 100644 --- a/docs/apis/network/mdns/offLocalServiceLost.md +++ b/docs/apis/network/mdns/offLocalServiceLost.md @@ -5,7 +5,7 @@ sidebar_label: offLocalServiceLost 取消监听 mDNS 服务离开的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.offLocalServiceLost.html) diff --git a/docs/apis/network/mdns/offLocalServiceResolveFail.md b/docs/apis/network/mdns/offLocalServiceResolveFail.md index af292e9a64df..8935a2f3f85a 100644 --- a/docs/apis/network/mdns/offLocalServiceResolveFail.md +++ b/docs/apis/network/mdns/offLocalServiceResolveFail.md @@ -5,7 +5,7 @@ sidebar_label: offLocalServiceResolveFail 取消监听 mDNS 服务解析失败的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.offLocalServiceResolveFail.html) diff --git a/docs/apis/network/mdns/onLocalServiceDiscoveryStop.md b/docs/apis/network/mdns/onLocalServiceDiscoveryStop.md index cdf23e169088..1f1711a3820a 100644 --- a/docs/apis/network/mdns/onLocalServiceDiscoveryStop.md +++ b/docs/apis/network/mdns/onLocalServiceDiscoveryStop.md @@ -5,7 +5,7 @@ sidebar_label: onLocalServiceDiscoveryStop 监听 mDNS 服务停止搜索的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.onLocalServiceDiscoveryStop.html) diff --git a/docs/apis/network/mdns/onLocalServiceFound.md b/docs/apis/network/mdns/onLocalServiceFound.md index 110f7344be45..1e6ed27f72b1 100644 --- a/docs/apis/network/mdns/onLocalServiceFound.md +++ b/docs/apis/network/mdns/onLocalServiceFound.md @@ -5,7 +5,7 @@ sidebar_label: onLocalServiceFound 监听 mDNS 服务发现的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.onLocalServiceFound.html) diff --git a/docs/apis/network/mdns/onLocalServiceLost.md b/docs/apis/network/mdns/onLocalServiceLost.md index 1fb0abd2612b..bb1ec018483b 100644 --- a/docs/apis/network/mdns/onLocalServiceLost.md +++ b/docs/apis/network/mdns/onLocalServiceLost.md @@ -5,7 +5,7 @@ sidebar_label: onLocalServiceLost 监听 mDNS 服务离开的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.onLocalServiceLost.html) diff --git a/docs/apis/network/mdns/onLocalServiceResolveFail.md b/docs/apis/network/mdns/onLocalServiceResolveFail.md index cef3ec2a025a..ba1573fddbd2 100644 --- a/docs/apis/network/mdns/onLocalServiceResolveFail.md +++ b/docs/apis/network/mdns/onLocalServiceResolveFail.md @@ -5,7 +5,7 @@ sidebar_label: onLocalServiceResolveFail 监听 mDNS 服务解析失败的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.onLocalServiceResolveFail.html) diff --git a/docs/apis/network/mdns/startLocalServiceDiscovery.md b/docs/apis/network/mdns/startLocalServiceDiscovery.md index 7c0a8a7660eb..2ab73b82c1d4 100644 --- a/docs/apis/network/mdns/startLocalServiceDiscovery.md +++ b/docs/apis/network/mdns/startLocalServiceDiscovery.md @@ -9,7 +9,7 @@ sidebar_label: startLocalServiceDiscovery 1. wx.startLocalServiceDiscovery 是一个消耗性能的行为,开始 30 秒后会自动 stop 并执行 wx.onLocalServiceDiscoveryStop 注册的回调函数。 2. 在调用 wx.startLocalServiceDiscovery 后,在这次搜索行为停止后才能发起下次 wx.startLocalServiceDiscovery。停止本次搜索行为的操作包括调用 wx.stopLocalServiceDiscovery 和 30 秒后系统自动 stop 本次搜索。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.startLocalServiceDiscovery.html) diff --git a/docs/apis/network/mdns/stopLocalServiceDiscovery.md b/docs/apis/network/mdns/stopLocalServiceDiscovery.md index f1347ecf2701..3358c3cfd7b0 100644 --- a/docs/apis/network/mdns/stopLocalServiceDiscovery.md +++ b/docs/apis/network/mdns/stopLocalServiceDiscovery.md @@ -5,7 +5,7 @@ sidebar_label: stopLocalServiceDiscovery 停止搜索 mDNS 服务 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.stopLocalServiceDiscovery.html) diff --git a/docs/apis/network/request/RequestTask.md b/docs/apis/network/request/RequestTask.md index 418c0b116aee..29a17511645a 100644 --- a/docs/apis/network/request/RequestTask.md +++ b/docs/apis/network/request/RequestTask.md @@ -5,7 +5,7 @@ sidebar_label: RequestTask 网络请求任务对象 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/request/RequestTask.html) @@ -15,7 +15,7 @@ sidebar_label: RequestTask 中断请求任务 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/request/RequestTask.abort.html) @@ -27,7 +27,7 @@ sidebar_label: RequestTask 监听 HTTP Response Header 事件。会比请求完成事件更早 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/request/RequestTask.onHeadersReceived.html) @@ -43,7 +43,7 @@ sidebar_label: RequestTask 取消监听 HTTP Response Header 事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/request/RequestTask.offHeadersReceived.html) @@ -59,7 +59,7 @@ sidebar_label: RequestTask 监听 Transfer-Encoding Chunk Received 事件。当接收到新的chunk时触发。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/request/RequestTask.onChunkReceived.html) @@ -75,7 +75,7 @@ sidebar_label: RequestTask 移除 Transfer-Encoding Chunk Received 事件的监听函数 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/request/RequestTask.offChunkReceived.html) @@ -190,11 +190,11 @@ requestTask.abort() ## API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| RequestTask | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| RequestTask.abort | ✔️ | | | ✔️ | | | | | ✔️ | ✔️ | -| RequestTask.onHeadersReceived | ✔️ | | | | | | | | ✔️ | ✔️ | -| RequestTask.offHeadersReceived | ✔️ | | | | | | | | ✔️ | ✔️ | -| RequestTask.onChunkReceived | ✔️ | | | | | | | | | | -| RequestTask.offChunkReceived | ✔️ | | | | | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| RequestTask | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| RequestTask.abort | ✔️ | | | ✔️ | | | | | ✔️ | +| RequestTask.onHeadersReceived | ✔️ | | | | | | | | ✔️ | +| RequestTask.offHeadersReceived | ✔️ | | | | | | | | ✔️ | +| RequestTask.onChunkReceived | ✔️ | | | | | | | | | +| RequestTask.offChunkReceived | ✔️ | | | | | | | | | diff --git a/docs/apis/network/request/addInterceptor.md b/docs/apis/network/request/addInterceptor.md index 565f64a579bd..819024ea496c 100644 --- a/docs/apis/network/request/addInterceptor.md +++ b/docs/apis/network/request/addInterceptor.md @@ -12,7 +12,7 @@ sidebar_label: addInterceptor Taro 提供了两个内置拦截器 `logInterceptor` 与 `timeoutInterceptor`,分别用于打印请求的相关信息和在请求超时时抛出错误。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/network/request/cleanInterceptors.md b/docs/apis/network/request/cleanInterceptors.md index 5cf5b50aa009..3bc76a109f57 100644 --- a/docs/apis/network/request/cleanInterceptors.md +++ b/docs/apis/network/request/cleanInterceptors.md @@ -5,7 +5,7 @@ sidebar_label: cleanInterceptors 清除所有拦截器 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/network/request/request.md b/docs/apis/network/request/request.md index 8237712696e8..680afa0bf100 100644 --- a/docs/apis/network/request/request.md +++ b/docs/apis/network/request/request.md @@ -11,7 +11,7 @@ sidebar_label: request - 对于 `POST` 方法且 `header['content-type']` 为 `application/json` 的数据,会对数据进行 JSON 序列化 - 对于 `POST` 方法且 `header['content-type']` 为 `application/x-www-form-urlencoded` 的数据,会将数据转换成 query string `(encodeURIComponent(k)=encodeURIComponent(v)&encodeURIComponent(k)=encodeURIComponent(v)...)` -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/request/wx.request.html) @@ -38,6 +38,7 @@ sidebar_label: request | method | `keyof Method` | `"GET"` | 否 | HTTP 请求方法 | | dataType | `string` | | 否 | 返回的数据格式 | | responseType | `keyof ResponseType` | | 否 | 响应的数据类型 | +| useHighPerformanceMode | `boolean` | `true` | 否 | 使用高性能模式。从基础库 v3.5.0 开始在 Android 端默认开启,其他端暂不生效。该模式下有更优的网络性能表现。 | | enableHttp2 | `boolean` | `false` | 否 | 开启 http2
API 支持度: weapp | | enableQuic | `boolean` | `false` | 否 | 开启 quic
API 支持度: weapp | | enableCache | `boolean` | `false` | 否 | 开启 cache
API 支持度: weapp, tt | @@ -49,7 +50,7 @@ sidebar_label: request | referrerStrategy | `keyof ReferrerStrategy` | `"querystring"` | 否 | referer 策略,用于控制当前请求 header 对象中 referer 字段格式。该参数默认值可通过 app.json 中的配置进行修改。
API 支持度: alipay 支付宝: 10.3.50+ APPX: 2.8.7 开发者工具: 3.5.1
[参考地址](https://opendocs.alipay.com/mini/api/owycmh#referrerStrategy%20%E5%8F%82%E6%95%B0%E8%AF%B4%E6%98%8E) | | success | `(result: SuccessCallbackResult) => void` | | 否 | 接口调用成功的回调函数 | | fail | `(res: TaroGeneral.CallbackResult) => void` | | 否 | 接口调用失败的回调函数 | -| complete | `(res: Partial & TaroGeneral.CallbackResult) => void` | | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) | +| complete | `(res: any) => void` | | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) | | jsonp | string or boolean | `false` | 否 | 设置是否使用 jsonp 方式获取数据
API 支持度: h5 | | jsonpCache | `RequestCache` | | 否 | 设置 jsonp 请求 url 是否需要被缓存
API 支持度: h5 | | mode | `keyof CorsMode` | `"same-origin"` | 否 | 设置是否允许跨域请求
API 支持度: h5 | diff --git a/docs/apis/network/tcp/TCPSocket.md b/docs/apis/network/tcp/TCPSocket.md index 9f93854d0ad4..620bc582a63a 100644 --- a/docs/apis/network/tcp/TCPSocket.md +++ b/docs/apis/network/tcp/TCPSocket.md @@ -5,7 +5,7 @@ sidebar_label: TCPSocket 一个 TCP Socket 实例,默认使用 IPv4 协议 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/tcp/TCPSocket.html) @@ -15,7 +15,7 @@ sidebar_label: TCPSocket 在给定的套接字上启动连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/tcp/TCPSocket.connect.html) @@ -38,7 +38,7 @@ tcp.connect({ address: '192.168.193.2', port: 8848 }) 在 socket 上发送数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/tcp/TCPSocket.write.html) @@ -61,7 +61,7 @@ tcp.write('hello, how are you') 关闭连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/tcp/TCPSocket.close.html) @@ -80,7 +80,7 @@ tcp.close() 监听关闭事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/tcp/TCPSocket.onClose.html) @@ -96,7 +96,7 @@ tcp.close() 取消监听当一个 socket 完全关闭就发出该事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/tcp/TCPSocket.offClose.html) @@ -112,7 +112,7 @@ tcp.close() 监听当一个 socket 连接成功建立的时候触发该事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/tcp/TCPSocket.onConnect.html) @@ -128,7 +128,7 @@ tcp.close() 取消监听当一个 socket 连接成功建立的时候触发该事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/tcp/TCPSocket.offConnect.html) @@ -144,7 +144,7 @@ tcp.close() 监听当错误发生时触发 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/tcp/TCPSocket.onError.html) @@ -160,7 +160,7 @@ tcp.close() 取消监听当错误发生时触发 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/tcp/TCPSocket.offError.html) @@ -176,7 +176,7 @@ tcp.close() 监听当接收到数据的时触发该事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/tcp/TCPSocket.onMessage.html) @@ -192,7 +192,7 @@ tcp.close() 取消监听当接收到数据的时触发该事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/tcp/TCPSocket.offMessage.html) @@ -308,17 +308,17 @@ tcp.close() ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| TCPSocket | ✔️ | | | | | -| TCPSocket.connect | ✔️ | | | | | -| TCPSocket.write | ✔️ | | | | | -| TCPSocket.close | ✔️ | | | | | -| TCPSocket.onClose | ✔️ | | | | | -| TCPSocket.offClose | ✔️ | | | | | -| TCPSocket.onConnect | ✔️ | | | | | -| TCPSocket.offConnect | ✔️ | | | | | -| TCPSocket.onError | ✔️ | | | | | -| TCPSocket.offError | ✔️ | | | | | -| TCPSocket.onMessage | ✔️ | | | | | -| TCPSocket.offMessage | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| TCPSocket | ✔️ | | | | +| TCPSocket.connect | ✔️ | | | | +| TCPSocket.write | ✔️ | | | | +| TCPSocket.close | ✔️ | | | | +| TCPSocket.onClose | ✔️ | | | | +| TCPSocket.offClose | ✔️ | | | | +| TCPSocket.onConnect | ✔️ | | | | +| TCPSocket.offConnect | ✔️ | | | | +| TCPSocket.onError | ✔️ | | | | +| TCPSocket.offError | ✔️ | | | | +| TCPSocket.onMessage | ✔️ | | | | +| TCPSocket.offMessage | ✔️ | | | | diff --git a/docs/apis/network/tcp/createTCPSocket.md b/docs/apis/network/tcp/createTCPSocket.md index 6f9a3c3ed10b..e034d513d4d1 100644 --- a/docs/apis/network/tcp/createTCPSocket.md +++ b/docs/apis/network/tcp/createTCPSocket.md @@ -12,7 +12,7 @@ sidebar_label: createTCPSocket - 禁止与以下端口号连接:1024 以下 1099 1433 1521 1719 1720 1723 2049 2375 3128 3306 3389 3659 4045 5060 5061 5432 5984 6379 6000 6566 7001 7002 8000-8100 8443 8888 9200 9300 10051 10080 11211 27017 27018 27019 - 每 5 分钟内最多创建 20 个 TCPSocket -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/tcp/wx.createTCPSocket.html) diff --git a/docs/apis/network/udp/UDPSocket.md b/docs/apis/network/udp/UDPSocket.md index 3684d450f533..6e4ce5f936d5 100644 --- a/docs/apis/network/udp/UDPSocket.md +++ b/docs/apis/network/udp/UDPSocket.md @@ -5,7 +5,7 @@ sidebar_label: UDPSocket 一个 UDP Socket 实例,默认使用 IPv4 协议。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/UDPSocket.html) @@ -15,7 +15,7 @@ sidebar_label: UDPSocket 绑定一个系统随机分配的可用端口,或绑定一个指定的端口号 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/UDPSocket.bind.html) @@ -38,7 +38,7 @@ udp.close() 设置 IP_TTL 套接字选项,用于设置一个 IP 数据包传输时允许的最大跳步数 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/UDPSocket.setTTL.html) @@ -64,7 +64,7 @@ udp.bind() 向指定的 IP 和 port 发送消息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/UDPSocket.send.html) @@ -92,7 +92,7 @@ udp.send({ 预先连接到指定的 IP 和 port,需要配合 write 方法一起使用 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/UDPSocket.connect.html) @@ -108,7 +108,7 @@ udp.send({ 用法与 send 方法相同,如果没有预先调用 connect 则与 send 无差异(注意即使调用了 connect 也需要在本接口填入地址和端口参数) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/UDPSocket.write.html) @@ -120,7 +120,7 @@ udp.send({ 关闭 UDP Socket 实例,相当于销毁。 在关闭之后,UDP Socket 实例不能再发送消息,每次调用 `UDPSocket.send` 将会触发错误事件,并且 message 事件回调函数也不会再也执行。在 `UDPSocket` 实例被创建后将被 Native 强引用,保证其不被 GC。在 `UDPSocket.close` 后将解除对其的强引用,让 UDPSocket 实例遵从 GC。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/UDPSocket.close.html) @@ -132,7 +132,7 @@ udp.send({ 监听关闭事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/UDPSocket.onClose.html) @@ -148,7 +148,7 @@ udp.send({ 取消监听关闭事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/UDPSocket.offClose.html) @@ -164,7 +164,7 @@ udp.send({ 监听错误事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/UDPSocket.onError.html) @@ -180,7 +180,7 @@ udp.send({ 取消监听错误事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/UDPSocket.offError.html) @@ -196,7 +196,7 @@ udp.send({ 监听开始监听数据包消息的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/UDPSocket.onListening.html) @@ -212,7 +212,7 @@ udp.send({ 取消监听开始监听数据包消息的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/UDPSocket.offListening.html) @@ -228,7 +228,7 @@ udp.send({ 监听收到消息的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/UDPSocket.onMessage.html) @@ -244,7 +244,7 @@ udp.send({ 取消监听收到消息的事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/UDPSocket.offMessage.html) @@ -372,20 +372,20 @@ udp.send({ ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| UDPSocket | ✔️ | | | | | -| UDPSocket.bind | ✔️ | | | | | -| UDPSocket.setTTL | ✔️ | | | | | -| UDPSocket.send | ✔️ | | | | | -| UDPSocket.connect | ✔️ | | | | | -| UDPSocket.write | ✔️ | | | | | -| UDPSocket.close | ✔️ | | | | | -| UDPSocket.onClose | ✔️ | | | | | -| UDPSocket.offClose | ✔️ | | | | | -| UDPSocket.onError | ✔️ | | | | | -| UDPSocket.offError | ✔️ | | | | | -| UDPSocket.onListening | ✔️ | | | | | -| UDPSocket.offListening | ✔️ | | | | | -| UDPSocket.onMessage | ✔️ | | | | | -| UDPSocket.offMessage | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| UDPSocket | ✔️ | | | | +| UDPSocket.bind | ✔️ | | | | +| UDPSocket.setTTL | ✔️ | | | | +| UDPSocket.send | ✔️ | | | | +| UDPSocket.connect | ✔️ | | | | +| UDPSocket.write | ✔️ | | | | +| UDPSocket.close | ✔️ | | | | +| UDPSocket.onClose | ✔️ | | | | +| UDPSocket.offClose | ✔️ | | | | +| UDPSocket.onError | ✔️ | | | | +| UDPSocket.offError | ✔️ | | | | +| UDPSocket.onListening | ✔️ | | | | +| UDPSocket.offListening | ✔️ | | | | +| UDPSocket.onMessage | ✔️ | | | | +| UDPSocket.offMessage | ✔️ | | | | diff --git a/docs/apis/network/udp/createUDPSocket.md b/docs/apis/network/udp/createUDPSocket.md index 92f17849c51c..ca308a0afcf9 100644 --- a/docs/apis/network/udp/createUDPSocket.md +++ b/docs/apis/network/udp/createUDPSocket.md @@ -5,7 +5,7 @@ sidebar_label: createUDPSocket 创建一个 UDP Socket 实例。使用前请注意阅读[相关说明](https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/wx.createUDPSocket.html) diff --git a/docs/apis/network/upload/UploadTask.md b/docs/apis/network/upload/UploadTask.md index 9d91a4c6268b..f0bf3aa2ef30 100644 --- a/docs/apis/network/upload/UploadTask.md +++ b/docs/apis/network/upload/UploadTask.md @@ -5,7 +5,7 @@ sidebar_label: UploadTask 一个可以监听上传进度变化事件,以及取消上传任务的对象 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/upload/UploadTask.html) @@ -15,7 +15,7 @@ sidebar_label: UploadTask 中断上传任务 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/upload/UploadTask.abort.html) @@ -27,7 +27,7 @@ sidebar_label: UploadTask 监听上传进度变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/upload/UploadTask.onProgressUpdate.html) @@ -43,7 +43,7 @@ sidebar_label: UploadTask 取消监听上传进度变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/upload/UploadTask.offProgressUpdate.html) @@ -59,7 +59,7 @@ sidebar_label: UploadTask 监听 HTTP Response Header 事件。会比请求完成事件更早 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/upload/UploadTask.onHeadersReceived.html) @@ -75,7 +75,7 @@ sidebar_label: UploadTask 取消监听 HTTP Response Header 事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/upload/UploadTask.offHeadersReceived.html) @@ -156,11 +156,11 @@ uploadTask.abort() // 取消上传任务 ## API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| UploadTask | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| UploadTask.abort | ✔️ | | | ✔️ | ✔️ | | | ✔️ | ✔️ | -| UploadTask.onProgressUpdate | ✔️ | | | ✔️ | ✔️ | | | ✔️ | ✔️ | -| UploadTask.offProgressUpdate | ✔️ | | | ✔️ | ✔️ | | | ✔️ | ✔️ | -| UploadTask.onHeadersReceived | ✔️ | | | | ✔️ | | | ✔️ | ✔️ | -| UploadTask.offHeadersReceived | ✔️ | | | | ✔️ | | | ✔️ | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| UploadTask | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| UploadTask.abort | ✔️ | | | ✔️ | ✔️ | | | ✔️ | +| UploadTask.onProgressUpdate | ✔️ | | | ✔️ | ✔️ | | | ✔️ | +| UploadTask.offProgressUpdate | ✔️ | | | ✔️ | ✔️ | | | ✔️ | +| UploadTask.onHeadersReceived | ✔️ | | | | ✔️ | | | ✔️ | +| UploadTask.offHeadersReceived | ✔️ | | | | ✔️ | | | ✔️ | diff --git a/docs/apis/network/upload/uploadFile.md b/docs/apis/network/upload/uploadFile.md index 9dc9b80e493f..6fc2e1486213 100644 --- a/docs/apis/network/upload/uploadFile.md +++ b/docs/apis/network/upload/uploadFile.md @@ -5,7 +5,7 @@ sidebar_label: uploadFile 将本地资源上传到服务器。客户端发起一个 HTTPS POST 请求,其中 `content-type` 为 `multipart/form-data`。使用前请注意阅读[相关说明](https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/upload/wx.uploadFile.html) diff --git a/docs/apis/network/websocket/SocketTask.md b/docs/apis/network/websocket/SocketTask.md index 1bb2fb5bb2d7..6cfeedb8b020 100644 --- a/docs/apis/network/websocket/SocketTask.md +++ b/docs/apis/network/websocket/SocketTask.md @@ -5,7 +5,7 @@ sidebar_label: SocketTask WebSocket 任务,可通过 [Taro.connectSocket()](/docs/apis/network/websocket/SocketTask) 接口创建返回。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/SocketTask.html) @@ -26,7 +26,7 @@ WebSocket 任务,可通过 [Taro.connectSocket()](/docs/apis/network/websocket 通过 WebSocket 连接发送数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/SocketTask.send.html) @@ -42,7 +42,7 @@ WebSocket 任务,可通过 [Taro.connectSocket()](/docs/apis/network/websocket 关闭 WebSocket 连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/SocketTask.close.html) @@ -58,7 +58,7 @@ WebSocket 任务,可通过 [Taro.connectSocket()](/docs/apis/network/websocket 监听 WebSocket 连接打开事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/SocketTask.onOpen.html) @@ -74,7 +74,7 @@ WebSocket 任务,可通过 [Taro.connectSocket()](/docs/apis/network/websocket 监听 WebSocket 连接关闭事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/SocketTask.onClose.html) @@ -90,7 +90,7 @@ WebSocket 任务,可通过 [Taro.connectSocket()](/docs/apis/network/websocket 监听 WebSocket 错误事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/SocketTask.onError.html) @@ -106,7 +106,7 @@ WebSocket 任务,可通过 [Taro.connectSocket()](/docs/apis/network/websocket 监听 WebSocket 接受到服务器的消息事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/SocketTask.onMessage.html) @@ -214,12 +214,12 @@ WebSocket 连接打开事件的回调函数 ## API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| SocketTask | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | ✔️ | ✔️ | -| SocketTask.send | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| SocketTask.close | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| SocketTask.onOpen | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| SocketTask.onClose | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| SocketTask.onError | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| SocketTask.onMessage | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| SocketTask | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | ✔️ | +| SocketTask.send | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| SocketTask.close | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| SocketTask.onOpen | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| SocketTask.onClose | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| SocketTask.onError | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| SocketTask.onMessage | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | diff --git a/docs/apis/network/websocket/closeSocket.md b/docs/apis/network/websocket/closeSocket.md index f01dd753220e..af19fc20b7b6 100644 --- a/docs/apis/network/websocket/closeSocket.md +++ b/docs/apis/network/websocket/closeSocket.md @@ -5,7 +5,7 @@ sidebar_label: closeSocket 关闭 WebSocket 连接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/wx.closeSocket.html) diff --git a/docs/apis/network/websocket/connectSocket.md b/docs/apis/network/websocket/connectSocket.md index 5e7872d218c6..524531d7fb3b 100644 --- a/docs/apis/network/websocket/connectSocket.md +++ b/docs/apis/network/websocket/connectSocket.md @@ -9,7 +9,7 @@ sidebar_label: connectSocket - 1.7.0 及以上版本,最多可以同时存在 5 个 WebSocket 连接。 - 1.7.0 以下版本,一个小程序同时只能有一个 WebSocket 连接,如果当前已存在一个 WebSocket 连接,会自动关闭该连接,并重新创建一个 WebSocket 连接。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/wx.connectSocket.html) diff --git a/docs/apis/network/websocket/onSocketClose.md b/docs/apis/network/websocket/onSocketClose.md index 9d59e7162db4..08dc5f9fb570 100644 --- a/docs/apis/network/websocket/onSocketClose.md +++ b/docs/apis/network/websocket/onSocketClose.md @@ -5,7 +5,7 @@ sidebar_label: onSocketClose 监听 WebSocket 连接关闭事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/wx.onSocketClose.html) diff --git a/docs/apis/network/websocket/onSocketError.md b/docs/apis/network/websocket/onSocketError.md index bc6b9247d33d..23d71d1ce744 100644 --- a/docs/apis/network/websocket/onSocketError.md +++ b/docs/apis/network/websocket/onSocketError.md @@ -5,7 +5,7 @@ sidebar_label: onSocketError 监听 WebSocket 错误事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/wx.onSocketError.html) diff --git a/docs/apis/network/websocket/onSocketMessage.md b/docs/apis/network/websocket/onSocketMessage.md index 6073487e30e9..e15df3d57deb 100644 --- a/docs/apis/network/websocket/onSocketMessage.md +++ b/docs/apis/network/websocket/onSocketMessage.md @@ -5,7 +5,7 @@ sidebar_label: onSocketMessage 监听 WebSocket 接受到服务器的消息事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/wx.onSocketMessage.html) diff --git a/docs/apis/network/websocket/onSocketOpen.md b/docs/apis/network/websocket/onSocketOpen.md index 8a8598a42f58..91669e2480ac 100644 --- a/docs/apis/network/websocket/onSocketOpen.md +++ b/docs/apis/network/websocket/onSocketOpen.md @@ -5,7 +5,7 @@ sidebar_label: onSocketOpen 监听 WebSocket 连接打开事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/wx.onSocketOpen.html) diff --git a/docs/apis/network/websocket/sendSocketMessage.md b/docs/apis/network/websocket/sendSocketMessage.md index 9974fd10e9fc..1a6119b3c09e 100644 --- a/docs/apis/network/websocket/sendSocketMessage.md +++ b/docs/apis/network/websocket/sendSocketMessage.md @@ -5,7 +5,7 @@ sidebar_label: sendSocketMessage 通过 WebSocket 连接发送数据。需要先 Taro.connectSocket,并在 Taro.onSocketOpen 回调之后才能发送。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/wx.sendSocketMessage.html) diff --git a/docs/apis/open-api/account/getAccountInfoSync.md b/docs/apis/open-api/account/getAccountInfoSync.md index 6f7f63c787c3..14b60253f5d4 100644 --- a/docs/apis/open-api/account/getAccountInfoSync.md +++ b/docs/apis/open-api/account/getAccountInfoSync.md @@ -5,7 +5,7 @@ sidebar_label: getAccountInfoSync 获取当前帐号信息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/account-info/wx.getAccountInfoSync.html) diff --git a/docs/apis/open-api/address/chooseAddress.md b/docs/apis/open-api/address/chooseAddress.md index 4bd4c9b39b53..0d314e498ee2 100644 --- a/docs/apis/open-api/address/chooseAddress.md +++ b/docs/apis/open-api/address/chooseAddress.md @@ -5,7 +5,7 @@ sidebar_label: chooseAddress 获取用户收货地址。调起用户编辑收货地址原生界面,并在编辑完成后返回用户选择的地址。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/address/wx.chooseAddress.html) diff --git a/docs/apis/open-api/authorize/authorize.md b/docs/apis/open-api/authorize/authorize.md index 9d47d32b883b..940e43adf2b1 100644 --- a/docs/apis/open-api/authorize/authorize.md +++ b/docs/apis/open-api/authorize/authorize.md @@ -5,7 +5,7 @@ sidebar_label: authorize 提前向用户发起授权请求。调用后会立刻弹窗询问用户是否同意授权小程序使用某项功能或获取用户的某些数据,但不会实际调用对应接口。如果用户之前已经同意授权,则不会出现弹窗,直接返回成功。更多用法详见 [用户授权](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/authorize.html)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/authorize/wx.authorize.html) diff --git a/docs/apis/open-api/authorize/authorizeForMiniProgram.md b/docs/apis/open-api/authorize/authorizeForMiniProgram.md index 60dc1cb60279..b372ed6a2bba 100644 --- a/docs/apis/open-api/authorize/authorizeForMiniProgram.md +++ b/docs/apis/open-api/authorize/authorizeForMiniProgram.md @@ -5,7 +5,7 @@ sidebar_label: authorizeForMiniProgram **仅小程序插件中能调用该接口**,用法同 [Taro.authorize](../authorize)。目前仅支持三种 scope -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/authorize/wx.authorizeForMiniProgram.html) diff --git a/docs/apis/open-api/card/addCard.md b/docs/apis/open-api/card/addCard.md index e9774e5becd3..4174ac881d6f 100644 --- a/docs/apis/open-api/card/addCard.md +++ b/docs/apis/open-api/card/addCard.md @@ -8,7 +8,7 @@ sidebar_label: addCard **cardExt 说明** cardExt 是卡券的扩展参数,其值是一个 JSON 字符串。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/card/wx.addCard.html) diff --git a/docs/apis/open-api/card/openCard.md b/docs/apis/open-api/card/openCard.md index 993a78edbbf7..07dfee2cb4b0 100644 --- a/docs/apis/open-api/card/openCard.md +++ b/docs/apis/open-api/card/openCard.md @@ -5,7 +5,7 @@ sidebar_label: openCard 查看微信卡包中的卡券。只有通过 [认证](https://developers.weixin.qq.com/miniprogram/product/renzheng.html) 的小程序或文化互动类目的小游戏才能使用。更多文档请参考 [微信卡券接口文档](https://mp.weixin.qq.com/cgi-bin/announce?action=getannouncement&key=1490190158&version=1&lang=zh_CN&platform=2)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/card/wx.openCard.html) diff --git a/docs/apis/open-api/channels/getChannelsLiveInfo.md b/docs/apis/open-api/channels/getChannelsLiveInfo.md index 9636fe31c25b..d94d48e1393e 100644 --- a/docs/apis/open-api/channels/getChannelsLiveInfo.md +++ b/docs/apis/open-api/channels/getChannelsLiveInfo.md @@ -5,7 +5,7 @@ sidebar_label: getChannelsLiveInfo 获取视频号直播信息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/channels/wx.getChannelsLiveInfo.html) diff --git a/docs/apis/open-api/channels/getChannelsLiveNoticeInfo.md b/docs/apis/open-api/channels/getChannelsLiveNoticeInfo.md index 75cdb5807088..54121b6ec92c 100644 --- a/docs/apis/open-api/channels/getChannelsLiveNoticeInfo.md +++ b/docs/apis/open-api/channels/getChannelsLiveNoticeInfo.md @@ -5,7 +5,7 @@ sidebar_label: getChannelsLiveNoticeInfo 获取视频号直播预告信息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/channels/wx.getChannelsLiveNoticeInfo.html) diff --git a/docs/apis/open-api/channels/getChannelsShareKey.md b/docs/apis/open-api/channels/getChannelsShareKey.md index cfdb4cf27b00..91448afeeaae 100644 --- a/docs/apis/open-api/channels/getChannelsShareKey.md +++ b/docs/apis/open-api/channels/getChannelsShareKey.md @@ -6,7 +6,7 @@ sidebar_label: getChannelsShareKey 获取视频号直播卡片/视频卡片的分享来源, 仅当卡片携带了分享信息、同时用户已授权该小程序获取视频号分享信息且启动场景值为 1177、1184、1195、1208 时可用 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/channels/wx.getChannelsShareKey.html) diff --git a/docs/apis/open-api/channels/openChannelsActivity.md b/docs/apis/open-api/channels/openChannelsActivity.md index 0a7e653cb1de..8fe60ec659f8 100644 --- a/docs/apis/open-api/channels/openChannelsActivity.md +++ b/docs/apis/open-api/channels/openChannelsActivity.md @@ -5,7 +5,7 @@ sidebar_label: openChannelsActivity 打开视频号视频 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/channels/wx.openChannelsActivity.html) diff --git a/docs/apis/open-api/channels/openChannelsEvent.md b/docs/apis/open-api/channels/openChannelsEvent.md index c7109519c411..ebf4b41f261d 100644 --- a/docs/apis/open-api/channels/openChannelsEvent.md +++ b/docs/apis/open-api/channels/openChannelsEvent.md @@ -5,7 +5,7 @@ sidebar_label: openChannelsEvent 打开视频号活动页 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/channels/wx.openChannelsEvent.html) diff --git a/docs/apis/open-api/channels/openChannelsLive.md b/docs/apis/open-api/channels/openChannelsLive.md index b4c11b009a58..b96a682665d2 100644 --- a/docs/apis/open-api/channels/openChannelsLive.md +++ b/docs/apis/open-api/channels/openChannelsLive.md @@ -5,7 +5,7 @@ sidebar_label: openChannelsLive 打开视频号直播 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/channels/wx.openChannelsLive.html) diff --git a/docs/apis/open-api/channels/openChannelsUserProfile.md b/docs/apis/open-api/channels/openChannelsUserProfile.md index deb37ceaec74..ed1b30176d77 100644 --- a/docs/apis/open-api/channels/openChannelsUserProfile.md +++ b/docs/apis/open-api/channels/openChannelsUserProfile.md @@ -5,7 +5,7 @@ sidebar_label: openChannelsUserProfile 打开视频号主页 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/channels/wx.openChannelsUserProfile.html) diff --git a/docs/apis/open-api/channels/reserveChannelsLive.md b/docs/apis/open-api/channels/reserveChannelsLive.md index fad4421f5e39..16366fb0234e 100644 --- a/docs/apis/open-api/channels/reserveChannelsLive.md +++ b/docs/apis/open-api/channels/reserveChannelsLive.md @@ -5,7 +5,7 @@ sidebar_label: reserveChannelsLive 预约视频号直播 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/channels/wx.reserveChannelsLive.html) diff --git a/docs/apis/open-api/device-voip/getDeviceVoIPList.md b/docs/apis/open-api/device-voip/getDeviceVoIPList.md index 2ecd3cc9b980..8273297c522c 100644 --- a/docs/apis/open-api/device-voip/getDeviceVoIPList.md +++ b/docs/apis/open-api/device-voip/getDeviceVoIPList.md @@ -5,7 +5,7 @@ sidebar_label: getDeviceVoIPList 查询当前用户授权的音视频通话设备(组)信息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/device-voip/wx.getDeviceVoIPList.html) diff --git a/docs/apis/open-api/device-voip/requestDeviceVoIP.md b/docs/apis/open-api/device-voip/requestDeviceVoIP.md index b4abc8158bf5..505b70a45b0f 100644 --- a/docs/apis/open-api/device-voip/requestDeviceVoIP.md +++ b/docs/apis/open-api/device-voip/requestDeviceVoIP.md @@ -5,7 +5,7 @@ sidebar_label: requestDeviceVoIP 请求用户授权与设备(组)间进行音视频通话 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/device-voip/wx.requestDeviceVoIP.html) diff --git a/docs/apis/open-api/facial/checkIsSupportFacialRecognition.md b/docs/apis/open-api/facial/checkIsSupportFacialRecognition.md index 8e45253c0926..4c5f4c95bb48 100644 --- a/docs/apis/open-api/facial/checkIsSupportFacialRecognition.md +++ b/docs/apis/open-api/facial/checkIsSupportFacialRecognition.md @@ -5,7 +5,7 @@ sidebar_label: checkIsSupportFacialRecognition 检查是否支持面部识别 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/open-api/facial/startFacialRecognitionVerify.md b/docs/apis/open-api/facial/startFacialRecognitionVerify.md index 39d00bb7bc01..53c557530ba8 100644 --- a/docs/apis/open-api/facial/startFacialRecognitionVerify.md +++ b/docs/apis/open-api/facial/startFacialRecognitionVerify.md @@ -5,7 +5,7 @@ sidebar_label: startFacialRecognitionVerify 开始人脸识别认证 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/open-api/facial/startFacialRecognitionVerifyAndUploadVideo.md b/docs/apis/open-api/facial/startFacialRecognitionVerifyAndUploadVideo.md index e68e7edc6167..3e737853e8e3 100644 --- a/docs/apis/open-api/facial/startFacialRecognitionVerifyAndUploadVideo.md +++ b/docs/apis/open-api/facial/startFacialRecognitionVerifyAndUploadVideo.md @@ -5,7 +5,7 @@ sidebar_label: startFacialRecognitionVerifyAndUploadVideo 开始人脸识别认证并上传认证视频 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/open-api/favorites/addFileToFavorites.md b/docs/apis/open-api/favorites/addFileToFavorites.md index c790bf40b1e4..1ceb4e942559 100644 --- a/docs/apis/open-api/favorites/addFileToFavorites.md +++ b/docs/apis/open-api/favorites/addFileToFavorites.md @@ -5,7 +5,7 @@ sidebar_label: addFileToFavorites 收藏文件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/favorites/wx.addFileToFavorites.html) diff --git a/docs/apis/open-api/favorites/addVideoToFavorites.md b/docs/apis/open-api/favorites/addVideoToFavorites.md index a1f668e3f2ab..97009c3a7db7 100644 --- a/docs/apis/open-api/favorites/addVideoToFavorites.md +++ b/docs/apis/open-api/favorites/addVideoToFavorites.md @@ -5,7 +5,7 @@ sidebar_label: addVideoToFavorites 收藏视频 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/favorites/wx.addVideoToFavorites.html) diff --git a/docs/apis/open-api/invoice/chooseInvoice.md b/docs/apis/open-api/invoice/chooseInvoice.md index 53e1b2d3eab2..ca59505ce47e 100644 --- a/docs/apis/open-api/invoice/chooseInvoice.md +++ b/docs/apis/open-api/invoice/chooseInvoice.md @@ -9,7 +9,7 @@ sidebar_label: chooseInvoice 请参考[微信电子发票文档](https://mp.weixin.qq.com/wiki?t=resource/res_main&id=21517918939oae3U)中,「查询报销发票信息」部分。 其中 `access_token` 的获取请参考[auth.getAccessToken](https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken.html)文档 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/invoice/wx.chooseInvoice.html) diff --git a/docs/apis/open-api/invoice/chooseInvoiceTitle.md b/docs/apis/open-api/invoice/chooseInvoiceTitle.md index 9d6bb7fea2c4..3041f8cda8d1 100644 --- a/docs/apis/open-api/invoice/chooseInvoiceTitle.md +++ b/docs/apis/open-api/invoice/chooseInvoiceTitle.md @@ -5,7 +5,7 @@ sidebar_label: chooseInvoiceTitle 选择用户的发票抬头。当前小程序必须关联一个公众号,且这个公众号是完成了[微信认证](https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1496554031_RD4xe)的,才能调用 chooseInvoiceTitle。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/invoice/wx.chooseInvoiceTitle.html) diff --git a/docs/apis/open-api/license-plate/chooseLicensePlate.md b/docs/apis/open-api/license-plate/chooseLicensePlate.md index e6efe2cc92d5..03f70a4a3fe8 100644 --- a/docs/apis/open-api/license-plate/chooseLicensePlate.md +++ b/docs/apis/open-api/license-plate/chooseLicensePlate.md @@ -5,7 +5,7 @@ sidebar_label: chooseLicensePlate 选择车牌号 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/license-plate/wx.chooseLicensePlate.html) diff --git a/docs/apis/open-api/login/checkSession.md b/docs/apis/open-api/login/checkSession.md index de4e4e73b810..97727b28216c 100644 --- a/docs/apis/open-api/login/checkSession.md +++ b/docs/apis/open-api/login/checkSession.md @@ -9,7 +9,7 @@ sidebar_label: checkSession 登录态过期后开发者可以再调用 Taro.login 获取新的用户登录态。调用 Taro.checkSession 成功说明当前 session_key 未过期,调用失败说明 session_key 已过期。更多使用方法详见 [小程序登录](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/login.html)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.checkSession.html) diff --git a/docs/apis/open-api/login/login.md b/docs/apis/open-api/login/login.md index 65d0ebc0d848..7eac6a8fc0c5 100644 --- a/docs/apis/open-api/login/login.md +++ b/docs/apis/open-api/login/login.md @@ -5,7 +5,7 @@ sidebar_label: login 调用接口获取登录凭证(code)。通过凭证进而换取用户登录态信息,包括用户的唯一标识(openid)及本次登录的会话密钥(session_key)等。用户数据的加解密通讯需要依赖会话密钥完成。更多使用方法详见 [小程序登录](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/login.html)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.login.html) diff --git a/docs/apis/open-api/login/pluginLogin.md b/docs/apis/open-api/login/pluginLogin.md index 6743e84d533b..6dbd3dec8fad 100644 --- a/docs/apis/open-api/login/pluginLogin.md +++ b/docs/apis/open-api/login/pluginLogin.md @@ -5,7 +5,7 @@ sidebar_label: pluginLogin **该接口仅在小程序插件中可调用**,调用接口获得插件用户标志凭证(code)。插件可以此凭证换取用于识别用户的标识 openpid。用户不同、宿主小程序不同或插件不同的情况下,该标识均不相同,即当且仅当同一个用户在同一个宿主小程序中使用同一个插件时,openpid 才会相同 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.pluginLogin.html) diff --git a/docs/apis/open-api/my-miniprogram/checkIsAddedToMyMiniProgram.md b/docs/apis/open-api/my-miniprogram/checkIsAddedToMyMiniProgram.md index edfaf9b5d951..23fd5b805475 100644 --- a/docs/apis/open-api/my-miniprogram/checkIsAddedToMyMiniProgram.md +++ b/docs/apis/open-api/my-miniprogram/checkIsAddedToMyMiniProgram.md @@ -5,7 +5,7 @@ sidebar_label: checkIsAddedToMyMiniProgram 检查小程序是否被添加至 「我的小程序」 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/my-miniprogram/wx.checkIsAddedToMyMiniProgram.html) diff --git a/docs/apis/open-api/privacy/getPrivacySetting.md b/docs/apis/open-api/privacy/getPrivacySetting.md index d6a81afc1f3e..bb3c8dad2056 100644 --- a/docs/apis/open-api/privacy/getPrivacySetting.md +++ b/docs/apis/open-api/privacy/getPrivacySetting.md @@ -5,7 +5,7 @@ sidebar_label: getPrivacySetting 查询隐私授权情况。隐私合规开发指南详情可见《小程序隐私协议开发指南》 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/privacy/wx.getPrivacySetting.html) diff --git a/docs/apis/open-api/privacy/onNeedPrivacyAuthorization.md b/docs/apis/open-api/privacy/onNeedPrivacyAuthorization.md index fa9a080c96b0..9ea75301c5c5 100644 --- a/docs/apis/open-api/privacy/onNeedPrivacyAuthorization.md +++ b/docs/apis/open-api/privacy/onNeedPrivacyAuthorization.md @@ -5,7 +5,7 @@ sidebar_label: onNeedPrivacyAuthorization 监听隐私接口需要用户授权事件。当需要用户进行隐私授权时会触发。触发该事件时,开发者需要弹出隐私协议说明,并在用户同意或拒绝授权后调用回调接口 resolve 触发原隐私接口或组件继续执行。隐私合规开发指南详情可见《小程序隐私协议开发指南》 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/privacy/wx.onNeedPrivacyAuthorization.html) diff --git a/docs/apis/open-api/privacy/openPrivacyContract.md b/docs/apis/open-api/privacy/openPrivacyContract.md index 8817095c2098..15255c6f0230 100644 --- a/docs/apis/open-api/privacy/openPrivacyContract.md +++ b/docs/apis/open-api/privacy/openPrivacyContract.md @@ -5,7 +5,7 @@ sidebar_label: openPrivacyContract 跳转至隐私协议页面。隐私合规开发指南详情可见《小程序隐私协议开发指南》 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/privacy/wx.openPrivacyContract.html) diff --git a/docs/apis/open-api/privacy/requirePrivacyAuthorize.md b/docs/apis/open-api/privacy/requirePrivacyAuthorize.md index 7aea09f7dbc7..cc8d4edf8709 100644 --- a/docs/apis/open-api/privacy/requirePrivacyAuthorize.md +++ b/docs/apis/open-api/privacy/requirePrivacyAuthorize.md @@ -5,7 +5,7 @@ sidebar_label: requirePrivacyAuthorize 模拟隐私接口调用,并触发隐私弹窗逻辑。隐私合规开发指南详情可见《小程序隐私协议开发指南》 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/privacy/wx.requirePrivacyAuthorize.html) diff --git a/docs/apis/open-api/settings/getSetting.md b/docs/apis/open-api/settings/getSetting.md index c3b4149f14fc..96bfedf0c682 100644 --- a/docs/apis/open-api/settings/getSetting.md +++ b/docs/apis/open-api/settings/getSetting.md @@ -5,7 +5,7 @@ sidebar_label: getSetting 获取用户的当前设置。**返回值中只会出现小程序已经向用户请求过的[权限](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/authorize.html)**。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/setting/wx.getSetting.html) diff --git a/docs/apis/open-api/settings/openSetting.md b/docs/apis/open-api/settings/openSetting.md index a77b91a8cacd..cebd59044e96 100644 --- a/docs/apis/open-api/settings/openSetting.md +++ b/docs/apis/open-api/settings/openSetting.md @@ -7,7 +7,7 @@ sidebar_label: openSetting 注意:[2.3.0](https://developers.weixin.qq.com/miniprogram/dev/framework/compatibility.html) 版本开始,用户发生点击行为后,才可以跳转打开设置页,管理授权信息。[详情](https://developers.weixin.qq.com/community/develop/doc/000cea2305cc5047af5733de751008) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/setting/wx.openSetting.html) diff --git a/docs/apis/open-api/soter/checkIsSoterEnrolledInDevice.md b/docs/apis/open-api/soter/checkIsSoterEnrolledInDevice.md index faecc0b38f44..bc7300fc45a0 100644 --- a/docs/apis/open-api/soter/checkIsSoterEnrolledInDevice.md +++ b/docs/apis/open-api/soter/checkIsSoterEnrolledInDevice.md @@ -5,7 +5,7 @@ sidebar_label: checkIsSoterEnrolledInDevice 获取设备内是否录入如指纹等生物信息的接口 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/soter/wx.checkIsSoterEnrolledInDevice.html) diff --git a/docs/apis/open-api/soter/checkIsSupportSoterAuthentication.md b/docs/apis/open-api/soter/checkIsSupportSoterAuthentication.md index e4e0965beb97..af8c1d5e2e70 100644 --- a/docs/apis/open-api/soter/checkIsSupportSoterAuthentication.md +++ b/docs/apis/open-api/soter/checkIsSupportSoterAuthentication.md @@ -5,7 +5,7 @@ sidebar_label: checkIsSupportSoterAuthentication 获取本机支持的 SOTER 生物认证方式 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/soter/wx.checkIsSupportSoterAuthentication.html) diff --git a/docs/apis/open-api/soter/startSoterAuthentication.md b/docs/apis/open-api/soter/startSoterAuthentication.md index aff4e5c6e546..5e19263b4b86 100644 --- a/docs/apis/open-api/soter/startSoterAuthentication.md +++ b/docs/apis/open-api/soter/startSoterAuthentication.md @@ -19,7 +19,7 @@ sidebar_label: startSoterAuthentication | cpu_id | 机器唯一识别ID | | uid | 概念同Android系统定义uid,即应用程序编号 | -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/soter/wx.startSoterAuthentication.html) diff --git a/docs/apis/open-api/subscribe-message/requestSubscribeDeviceMessage.md b/docs/apis/open-api/subscribe-message/requestSubscribeDeviceMessage.md index 9b7d54b5f6e2..55394c215ed0 100644 --- a/docs/apis/open-api/subscribe-message/requestSubscribeDeviceMessage.md +++ b/docs/apis/open-api/subscribe-message/requestSubscribeDeviceMessage.md @@ -5,7 +5,7 @@ sidebar_label: requestSubscribeDeviceMessage 订阅设备消息接口,调用后弹出授权框,用户同意后会允许开发者给用户发送订阅模版消息。当用户点击“允许”按钮时,模板消息会被添加到用户的小程序设置页,通过 wx.getSetting 接口可获取用户对相关模板消息的订阅状态。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/subscribe-message/wx.requestSubscribeDeviceMessage.html) diff --git a/docs/apis/open-api/subscribe-message/requestSubscribeMessage.md b/docs/apis/open-api/subscribe-message/requestSubscribeMessage.md index e2696f1e6346..0db83b59d24c 100644 --- a/docs/apis/open-api/subscribe-message/requestSubscribeMessage.md +++ b/docs/apis/open-api/subscribe-message/requestSubscribeMessage.md @@ -7,7 +7,7 @@ sidebar_label: requestSubscribeMessage 注意:[2.8.2](https://developers.weixin.qq.com/miniprogram/dev/framework/compatibility.html) 版本开始,用户发生点击行为或者发起支付回调后,才可以调起订阅消息界面。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/subscribe-message/wx.requestSubscribeMessage.html) @@ -23,7 +23,7 @@ sidebar_label: requestSubscribeMessage | --- | --- | | option | `Option` | -### Option +### BaseOption | 参数 | 类型 | 必填 | 说明 | | --- | --- | :---: | --- | @@ -34,6 +34,10 @@ sidebar_label: requestSubscribeMessage | fail | `(result: FailCallbackResult) => void` | 否 | 接口调用失败的回调函数 | | success | `(result: SuccessCallbackResult) => void` | 否 | 接口调用成功的回调函数 | +### AtLeastOne + +### Option + ### FailCallbackResult | 参数 | 类型 | 说明 | diff --git a/docs/apis/open-api/subscribe-message/subscribeService.md b/docs/apis/open-api/subscribe-message/subscribeService.md index 402d159bd709..26993502d34d 100644 --- a/docs/apis/open-api/subscribe-message/subscribeService.md +++ b/docs/apis/open-api/subscribe-message/subscribeService.md @@ -5,7 +5,7 @@ sidebar_label: subscribeService 小程序消息订阅服务,包括取消订阅和查询订阅;订阅操作详见 [form 表单](https://smartprogram.baidu.com/docs/develop/component/formlist_form/)。 -支持情况: +支持情况: > [参考文档](https://smartprogram.baidu.com/docs/develop/api/open/swan-subscribeService/) diff --git a/docs/apis/open-api/subscribe-message/unsubscribeMessage.md b/docs/apis/open-api/subscribe-message/unsubscribeMessage.md index c11d5ce06fdd..b54636f3d710 100644 --- a/docs/apis/open-api/subscribe-message/unsubscribeMessage.md +++ b/docs/apis/open-api/subscribe-message/unsubscribeMessage.md @@ -5,7 +5,7 @@ sidebar_label: unsubscribeMessage 取消当前用户已订阅的消息 -支持情况: +支持情况: > [参考文档](https://opendocs.alipay.com/mini/07vg26?pathHash=8c9630ac) diff --git a/docs/apis/open-api/user-info/getUserInfo.md b/docs/apis/open-api/user-info/getUserInfo.md index 3621ab857879..e89c344885eb 100644 --- a/docs/apis/open-api/user-info/getUserInfo.md +++ b/docs/apis/open-api/user-info/getUserInfo.md @@ -8,7 +8,7 @@ sidebar_label: getUserInfo **接口调整说明** 在用户未授权过的情况下调用此接口,将不再出现授权弹窗,会直接进入 fail 回调(详见[《公告》](https://developers.weixin.qq.com/community/develop/doc/0000a26e1aca6012e896a517556c01))。在用户已授权的情况下调用此接口,可成功获取用户信息。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserInfo.html) diff --git a/docs/apis/open-api/user-info/getUserProfile.md b/docs/apis/open-api/user-info/getUserProfile.md index 80dbab946b56..6ac569095afe 100644 --- a/docs/apis/open-api/user-info/getUserProfile.md +++ b/docs/apis/open-api/user-info/getUserProfile.md @@ -15,7 +15,7 @@ sidebar_label: getUserProfile [微信端调整背景和说明,请参考文档](https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserProfile.html) diff --git a/docs/apis/payment/faceVerifyForPay.md b/docs/apis/payment/faceVerifyForPay.md index 58abd5330e48..7f471dbbc097 100644 --- a/docs/apis/payment/faceVerifyForPay.md +++ b/docs/apis/payment/faceVerifyForPay.md @@ -5,7 +5,7 @@ sidebar_label: faceVerifyForPay 支付各个安全场景验证人脸 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/payment/wx.faceVerifyForPay.html) diff --git a/docs/apis/payment/requestOrderPayment.md b/docs/apis/payment/requestOrderPayment.md index 1d1a0766cdd4..acc53b33d73a 100644 --- a/docs/apis/payment/requestOrderPayment.md +++ b/docs/apis/payment/requestOrderPayment.md @@ -5,7 +5,7 @@ sidebar_label: requestOrderPayment 创建自定义版交易组件订单,并发起支付。 仅接入了[自定义版交易组件](https://developers.weixin.qq.com/miniprogram/dev/framework/ministore/minishopopencomponent2/Introduction2)的小程序需要使用,普通小程序可直接使用 `Taro.requestPayment`。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/payment/wx.requestOrderPayment.html) diff --git a/docs/apis/payment/requestPayment.md b/docs/apis/payment/requestPayment.md index f848ab5a62c2..00381e7d87eb 100644 --- a/docs/apis/payment/requestPayment.md +++ b/docs/apis/payment/requestPayment.md @@ -5,7 +5,7 @@ sidebar_label: requestPayment 发起微信支付。了解更多信息,请查看[微信支付接口文档](https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=7_3&index=1) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/payment/wx.requestPayment.html) diff --git a/docs/apis/route/EventChannel.md b/docs/apis/route/EventChannel.md index eebf17349282..95a1bcf597a3 100644 --- a/docs/apis/route/EventChannel.md +++ b/docs/apis/route/EventChannel.md @@ -5,7 +5,7 @@ sidebar_label: EventChannel 页面间事件通信通道 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/route/EventChannel.html) @@ -15,7 +15,7 @@ sidebar_label: EventChannel 触发一个事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/route/EventChannel.emit.html) @@ -32,7 +32,7 @@ sidebar_label: EventChannel 持续监听一个事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/route/EventChannel.on.html) @@ -49,7 +49,7 @@ sidebar_label: EventChannel 监听一个事件一次,触发后失效 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/route/EventChannel.once.html) @@ -66,7 +66,7 @@ sidebar_label: EventChannel 取消监听一个事件。给出第二个参数时,只取消给出的监听函数,否则取消所有监听函数 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/route/EventChannel.off.html) @@ -81,10 +81,10 @@ sidebar_label: EventChannel ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| EventChannel | ✔️ | | | | | -| EventChannel.emit | ✔️ | | | | | -| EventChannel.on | ✔️ | | | | | -| EventChannel.once | ✔️ | | | | | -| EventChannel.off | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| EventChannel | ✔️ | | | | +| EventChannel.emit | ✔️ | | | | +| EventChannel.on | ✔️ | | | | +| EventChannel.once | ✔️ | | | | +| EventChannel.off | ✔️ | | | | diff --git a/docs/apis/route/navigateBack.md b/docs/apis/route/navigateBack.md index e7394f7381e5..362ea873ab31 100644 --- a/docs/apis/route/navigateBack.md +++ b/docs/apis/route/navigateBack.md @@ -5,7 +5,7 @@ sidebar_label: navigateBack 关闭当前页面,返回上一页面或多级页面。可通过 getCurrentPages 获取当前的页面栈,决定需要返回几层。 -支持情况: +支持情况: > H5: 若入参 delta 大于现有页面数时,返回应用打开的第一个页面(如果想要返回首页请使用 reLaunch 方法)。 diff --git a/docs/apis/route/navigateTo.md b/docs/apis/route/navigateTo.md index f91d3257bc28..a9ac1fa079db 100644 --- a/docs/apis/route/navigateTo.md +++ b/docs/apis/route/navigateTo.md @@ -5,7 +5,7 @@ sidebar_label: navigateTo 保留当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面。使用 Taro.navigateBack 可以返回到原页面。小程序中页面栈最多十层。 -支持情况: +支持情况: > H5: 未针对 tabbar 页面做限制处理 diff --git a/docs/apis/route/reLaunch.md b/docs/apis/route/reLaunch.md index 9c0433255117..698061d2fd88 100644 --- a/docs/apis/route/reLaunch.md +++ b/docs/apis/route/reLaunch.md @@ -5,7 +5,7 @@ sidebar_label: reLaunch 关闭所有页面,打开到应用内的某个页面 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.reLaunch.html) diff --git a/docs/apis/route/redirectTo.md b/docs/apis/route/redirectTo.md index 1b514f8b9a75..558f987f5439 100644 --- a/docs/apis/route/redirectTo.md +++ b/docs/apis/route/redirectTo.md @@ -5,7 +5,7 @@ sidebar_label: redirectTo 关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面。 -支持情况: +支持情况: > H5: 未针对 tabbar 页面做限制处理 diff --git a/docs/apis/route/router.md b/docs/apis/route/router.md index fb3a93304db4..c920097ef4a5 100644 --- a/docs/apis/route/router.md +++ b/docs/apis/route/router.md @@ -72,7 +72,7 @@ router 自定义路由 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/route/router/wx.router.html) @@ -80,7 +80,7 @@ router 添加自定义路由配置 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/route/router/base/router.addRouteBuilder.html) @@ -97,7 +97,7 @@ router 获取页面对应的自定义路由上下文对象 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/route/router/base/router.getRouteContext.html) @@ -113,7 +113,7 @@ router 移除自定义路由配置 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/route/router/base/router.removeRouteBuilder.html) diff --git a/docs/apis/route/switchTab.md b/docs/apis/route/switchTab.md index aa787d980fd4..50d43c1f9af7 100644 --- a/docs/apis/route/switchTab.md +++ b/docs/apis/route/switchTab.md @@ -5,7 +5,7 @@ sidebar_label: switchTab 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.switchTab.html) diff --git a/docs/apis/share/authPrivateMessage.md b/docs/apis/share/authPrivateMessage.md index cce8fc862e7a..20b390f3a1d7 100644 --- a/docs/apis/share/authPrivateMessage.md +++ b/docs/apis/share/authPrivateMessage.md @@ -5,7 +5,7 @@ sidebar_label: authPrivateMessage 验证私密消息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.authPrivateMessage.html) diff --git a/docs/apis/share/getShareInfo.md b/docs/apis/share/getShareInfo.md index 9e7b2560b7f7..3bf3b0671bb2 100644 --- a/docs/apis/share/getShareInfo.md +++ b/docs/apis/share/getShareInfo.md @@ -8,7 +8,7 @@ sidebar_label: getShareInfo **Tips** - 如需要展示群名称,可以使用[开放数据组件](/docs/components/open/open-data) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.getShareInfo.html) diff --git a/docs/apis/share/hideShareMenu.md b/docs/apis/share/hideShareMenu.md index fde97e6b8b38..8337a9e27266 100644 --- a/docs/apis/share/hideShareMenu.md +++ b/docs/apis/share/hideShareMenu.md @@ -5,7 +5,7 @@ sidebar_label: hideShareMenu 隐藏当前页面的转发按钮 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.hideShareMenu.html) diff --git a/docs/apis/share/offCopyUrl.md b/docs/apis/share/offCopyUrl.md index 7b2ad5392f02..d3ce6ae4f93d 100644 --- a/docs/apis/share/offCopyUrl.md +++ b/docs/apis/share/offCopyUrl.md @@ -7,7 +7,7 @@ sidebar_label: offCopyUrl > 本接口为 Beta 版本,暂只在 Android 平台支持。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.offCopyUrl.html) diff --git a/docs/apis/share/onCopyUrl.md b/docs/apis/share/onCopyUrl.md index 049cc0405df5..298cc792457b 100644 --- a/docs/apis/share/onCopyUrl.md +++ b/docs/apis/share/onCopyUrl.md @@ -7,7 +7,7 @@ sidebar_label: onCopyUrl > 本接口为 Beta 版本,暂只在 Android 平台支持。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.onCopyUrl.html) diff --git a/docs/apis/share/shareFileMessage.md b/docs/apis/share/shareFileMessage.md index 0c225af08ac7..066758dc8dfc 100644 --- a/docs/apis/share/shareFileMessage.md +++ b/docs/apis/share/shareFileMessage.md @@ -5,7 +5,7 @@ sidebar_label: shareFileMessage 转发文件到聊天 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.shareFileMessage.html) diff --git a/docs/apis/share/shareVideoMessage.md b/docs/apis/share/shareVideoMessage.md index 90d382c9b1ea..84878204828b 100644 --- a/docs/apis/share/shareVideoMessage.md +++ b/docs/apis/share/shareVideoMessage.md @@ -5,7 +5,7 @@ sidebar_label: shareVideoMessage 转发视频到聊天 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.shareVideoMessage.html) diff --git a/docs/apis/share/showShareImageMenu.md b/docs/apis/share/showShareImageMenu.md index 2ae22c869425..69f919bac9a9 100644 --- a/docs/apis/share/showShareImageMenu.md +++ b/docs/apis/share/showShareImageMenu.md @@ -5,7 +5,7 @@ sidebar_label: showShareImageMenu 打开分享图片弹窗,可以将图片发送给朋友、收藏或下载 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.showShareImageMenu.html) diff --git a/docs/apis/share/showShareMenu.md b/docs/apis/share/showShareMenu.md index 67f07f45c987..4dd0177f1d8b 100644 --- a/docs/apis/share/showShareMenu.md +++ b/docs/apis/share/showShareMenu.md @@ -5,7 +5,7 @@ sidebar_label: showShareMenu 显示当前页面的转发按钮 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.showShareMenu.html) diff --git a/docs/apis/share/updateShareMenu.md b/docs/apis/share/updateShareMenu.md index 1420ad6ed62f..385a70805d11 100644 --- a/docs/apis/share/updateShareMenu.md +++ b/docs/apis/share/updateShareMenu.md @@ -5,7 +5,7 @@ sidebar_label: updateShareMenu 更新转发属性 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.updateShareMenu.html) @@ -23,15 +23,20 @@ sidebar_label: updateShareMenu ### Option -| 参数 | 类型 | 必填 | 说明 | -| --- | --- | :---: | --- | -| activityId | `string` | 否 | 动态消息的 activityId。通过 [updatableMessage.createActivityId](https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/updatable-message/updatableMessage.createActivityId.html) 接口获取 | -| complete | `(res: TaroGeneral.CallbackResult) => void` | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) | -| fail | `(res: TaroGeneral.CallbackResult) => void` | 否 | 接口调用失败的回调函数 | -| isUpdatableMessage | `boolean` | 否 | 是否是动态消息,详见[动态消息](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share/updatable-message.html) | -| success | `(res: TaroGeneral.CallbackResult) => void` | 否 | 接口调用成功的回调函数 | -| templateInfo | `UpdatableMessageFrontEndTemplateInfo` | 否 | 动态消息的模板信息 | -| withShareTicket | `boolean` | 否 | 是否使用带 shareTicket 的转发[详情](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html) | +| 参数 | 类型 | 默认值 | 必填 | 说明 | +| --- | --- | :---: | :---: | --- | +| withShareTicket | `boolean` | `false` | 否 | 是否使用带 shareTicket 的转发[详情](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html) | +| isUpdatableMessage | `boolean` | `false` | 否 | 是否是动态消息,详见[动态消息](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share/updatable-message.html) | +| activityId | `string` | | 否 | 动态消息的 activityId。通过 [updatableMessage.createActivityId](https://developers.weixin.qq.com/miniprogram/dev/api/share/errorupdatableMessage.createActivityId)) 接口获取 | +| toDoActivityId | `string` | | 否 | 群待办消息的id,通过toDoActivityId可以把多个群待办消息聚合为同一个。通过 [updatableMessage.createActivityId](https://developers.weixin.qq.com/miniprogram/dev/api/share/errorupdatableMessage.createActivityId) 接口获取。详见[群待办消息](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html | +| templateInfo | `UpdatableMessageFrontEndTemplateInfo` | | 否 | 动态消息的模板信息 | +| isPrivateMessage | `boolean` | | 否 | 是否是私密消息。详见 [小程序私密消息](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share/private-message.html) | +| participant | `string[]` | `[]` | 否 | 参与用户此聊天室下的 group_openid 列表 | +| useForChatTool | `boolean` | `false` | 否 | 聊天工具模式特殊动态消息 | +| chooseType | `number` | `1` | 否 | 指定成员的方式 | +| success | `(res: TaroGeneral.CallbackResult) => void` | | 否 | 接口调用成功的回调函数 | +| fail | `(res: TaroGeneral.CallbackResult) => void` | | 否 | 接口调用失败的回调函数 | +| complete | `(res: TaroGeneral.CallbackResult) => void` | | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) | ### UpdatableMessageFrontEndTemplateInfo @@ -40,6 +45,7 @@ sidebar_label: updateShareMenu | 参数 | 类型 | 说明 | | --- | --- | --- | | parameterList | `UpdatableMessageFrontEndParameter[]` | 参数列表 | +| templateId | `string` | 模板ID | ### UpdatableMessageFrontEndParameter diff --git a/docs/apis/skyline/DraggableSheetContext.md b/docs/apis/skyline/DraggableSheetContext.md index c53930110c39..4c152037151d 100644 --- a/docs/apis/skyline/DraggableSheetContext.md +++ b/docs/apis/skyline/DraggableSheetContext.md @@ -5,7 +5,7 @@ sidebar_label: DraggableSheetContext DraggableSheet 实例,可通过 Taro.createSelectorQuery 的 NodesRef.node 方法获取。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/skyline/DraggableSheetContext.html) @@ -41,6 +41,6 @@ DraggableSheet 实例,可通过 Taro.createSelectorQuery 的 NodesRef.node 方 ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| DraggableSheetContext | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| DraggableSheetContext | ✔️ | | | | diff --git a/docs/apis/skyline/Snapshot.md b/docs/apis/skyline/Snapshot.md index 8549bf0c2929..0f7be9e11efc 100644 --- a/docs/apis/skyline/Snapshot.md +++ b/docs/apis/skyline/Snapshot.md @@ -7,7 +7,7 @@ Snapshot 实例,可通过 SelectorQuery 获取。 Snapshot 通过 id 跟一个 snapshot 组件绑定,操作对应的 snapshot 组件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/skyline/Snapshot.html) diff --git a/docs/apis/storage/background-fetch/getBackgroundFetchData.md b/docs/apis/storage/background-fetch/getBackgroundFetchData.md index 0a2c2f19673a..ae61089834a2 100644 --- a/docs/apis/storage/background-fetch/getBackgroundFetchData.md +++ b/docs/apis/storage/background-fetch/getBackgroundFetchData.md @@ -5,7 +5,7 @@ sidebar_label: getBackgroundFetchData 拉取 backgroundFetch 客户端缓存数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/background-fetch/wx.getBackgroundFetchData.html) diff --git a/docs/apis/storage/background-fetch/getBackgroundFetchToken.md b/docs/apis/storage/background-fetch/getBackgroundFetchToken.md index 21d1331eedc0..e297ffe22010 100644 --- a/docs/apis/storage/background-fetch/getBackgroundFetchToken.md +++ b/docs/apis/storage/background-fetch/getBackgroundFetchToken.md @@ -5,7 +5,7 @@ sidebar_label: getBackgroundFetchToken 获取设置过的自定义登录态。若无,则返回 fail。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/background-fetch/wx.getBackgroundFetchToken.html) diff --git a/docs/apis/storage/background-fetch/onBackgroundFetchData.md b/docs/apis/storage/background-fetch/onBackgroundFetchData.md index 7a617ebe10e1..38d60616ac57 100644 --- a/docs/apis/storage/background-fetch/onBackgroundFetchData.md +++ b/docs/apis/storage/background-fetch/onBackgroundFetchData.md @@ -5,7 +5,7 @@ sidebar_label: onBackgroundFetchData 收到 backgroundFetch 数据时的回调 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/background-fetch/wx.onBackgroundFetchData.html) diff --git a/docs/apis/storage/background-fetch/setBackgroundFetchToken.md b/docs/apis/storage/background-fetch/setBackgroundFetchToken.md index 6589624f6c47..fd6b58dc1eb5 100644 --- a/docs/apis/storage/background-fetch/setBackgroundFetchToken.md +++ b/docs/apis/storage/background-fetch/setBackgroundFetchToken.md @@ -5,7 +5,7 @@ sidebar_label: setBackgroundFetchToken 设置自定义登录态,在周期性拉取数据时带上,便于第三方服务器验证请求合法性 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/background-fetch/wx.setBackgroundFetchToken.html) diff --git a/docs/apis/storage/batchGetStorage.md b/docs/apis/storage/batchGetStorage.md index 7d97126d64f0..3760e6b476db 100644 --- a/docs/apis/storage/batchGetStorage.md +++ b/docs/apis/storage/batchGetStorage.md @@ -5,7 +5,7 @@ sidebar_label: batchGetStorage 从本地缓存中异步批量获取指定 key 的内容。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.batchGetStorage.html) diff --git a/docs/apis/storage/batchGetStorageSync.md b/docs/apis/storage/batchGetStorageSync.md index 0740dd63a7e0..1bcf9a5b6001 100644 --- a/docs/apis/storage/batchGetStorageSync.md +++ b/docs/apis/storage/batchGetStorageSync.md @@ -5,7 +5,7 @@ sidebar_label: batchGetStorageSync 从本地缓存中同步批量获取指定 key 的内容。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.batchGetStorageSync.html) diff --git a/docs/apis/storage/batchSetStorage.md b/docs/apis/storage/batchSetStorage.md index 5803d07a979a..02ca4eb4166f 100644 --- a/docs/apis/storage/batchSetStorage.md +++ b/docs/apis/storage/batchSetStorage.md @@ -7,7 +7,7 @@ sidebar_label: batchSetStorage 除非用户主动删除或因存储空间原因被系统清理,否则数据都一直可用。 单个 key 允许存储的最大数据长度为 1MB,所有数据存储上限为 10MB。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.batchGetStorage.html) diff --git a/docs/apis/storage/batchSetStorageSync.md b/docs/apis/storage/batchSetStorageSync.md index 07d83e0d7274..0a5e3fcb185c 100644 --- a/docs/apis/storage/batchSetStorageSync.md +++ b/docs/apis/storage/batchSetStorageSync.md @@ -7,7 +7,7 @@ sidebar_label: batchSetStorageSync 会覆盖掉原来该 key 对应的内容。除非用户主动删除或因存储空间原因被系统清理,否则数据都一直可用。 单个 key 允许存储的最大数据长度为 1MB,所有数据存储上限为 10MB。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.batchGetStorageSync.html) diff --git a/docs/apis/storage/cache-manager/CacheManager.md b/docs/apis/storage/cache-manager/CacheManager.md index 7f94e38c7bf1..834d79ea5215 100644 --- a/docs/apis/storage/cache-manager/CacheManager.md +++ b/docs/apis/storage/cache-manager/CacheManager.md @@ -16,7 +16,7 @@ sidebar_label: CacheManager 添加规则 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/cachemanager/CacheManager.addRule.html) @@ -60,7 +60,7 @@ const ruleId = cacheManager.addRule({ 批量添加规则 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/cachemanager/CacheManager.addRules.html) @@ -76,7 +76,7 @@ const ruleId = cacheManager.addRule({ 清空所有缓存 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/cachemanager/CacheManager.clearCaches.html) @@ -88,7 +88,7 @@ const ruleId = cacheManager.addRule({ 清空所有规则,同时会删除对应规则下所有缓存 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/cachemanager/CacheManager.clearRules.html) @@ -100,7 +100,7 @@ const ruleId = cacheManager.addRule({ 删除缓存 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/cachemanager/CacheManager.deleteCache.html) @@ -116,7 +116,7 @@ const ruleId = cacheManager.addRule({ 批量删除缓存 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/cachemanager/CacheManager.deleteCaches.html) @@ -132,7 +132,7 @@ const ruleId = cacheManager.addRule({ 删除规则,同时会删除对应规则下所有缓存 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/cachemanager/CacheManager.deleteRule.html) @@ -148,7 +148,7 @@ const ruleId = cacheManager.addRule({ 批量删除规则,同时会删除对应规则下所有缓存 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/cachemanager/CacheManager.deleteRules.html) @@ -164,7 +164,7 @@ const ruleId = cacheManager.addRule({ 匹配命中的缓存规则,一般需要和 request 事件搭配使用 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/cachemanager/CacheManager.match.html) @@ -180,7 +180,7 @@ const ruleId = cacheManager.addRule({ 取消事件监听 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/cachemanager/CacheManager.off.html) @@ -197,7 +197,7 @@ const ruleId = cacheManager.addRule({ 监听事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/cachemanager/CacheManager.on.html) @@ -214,7 +214,7 @@ const ruleId = cacheManager.addRule({ 开启缓存,仅在 mode 为 none 时生效,调用后缓存管理器的 state 会置为 1 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/cachemanager/CacheManager.start.html) @@ -226,7 +226,7 @@ const ruleId = cacheManager.addRule({ 关闭缓存,仅在 mode 为 none 时生效,调用后缓存管理器的 state 会置为 0 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/cachemanager/CacheManager.stop.html) @@ -316,18 +316,18 @@ const ruleId = cacheManager.addRule({ ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| CacheManager.addRule | ✔️ | | | | | -| CacheManager.addRules | ✔️ | | | | | -| CacheManager.clearCaches | ✔️ | | | | | -| CacheManager.clearRules | ✔️ | | | | | -| CacheManager.deleteCache | ✔️ | | | | | -| CacheManager.deleteCaches | ✔️ | | | | | -| CacheManager.deleteRule | ✔️ | | | | | -| CacheManager.deleteRules | ✔️ | | | | | -| CacheManager.match | ✔️ | | | | | -| CacheManager.off | ✔️ | | | | | -| CacheManager.on | ✔️ | | | | | -| CacheManager.start | ✔️ | | | | | -| CacheManager.stop | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| CacheManager.addRule | ✔️ | | | | +| CacheManager.addRules | ✔️ | | | | +| CacheManager.clearCaches | ✔️ | | | | +| CacheManager.clearRules | ✔️ | | | | +| CacheManager.deleteCache | ✔️ | | | | +| CacheManager.deleteCaches | ✔️ | | | | +| CacheManager.deleteRule | ✔️ | | | | +| CacheManager.deleteRules | ✔️ | | | | +| CacheManager.match | ✔️ | | | | +| CacheManager.off | ✔️ | | | | +| CacheManager.on | ✔️ | | | | +| CacheManager.start | ✔️ | | | | +| CacheManager.stop | ✔️ | | | | diff --git a/docs/apis/storage/cache-manager/createCacheManager.md b/docs/apis/storage/cache-manager/createCacheManager.md index c7f8f51b9bef..77bf046e54d1 100644 --- a/docs/apis/storage/cache-manager/createCacheManager.md +++ b/docs/apis/storage/cache-manager/createCacheManager.md @@ -5,7 +5,7 @@ sidebar_label: createCacheManager 创建缓存管理器 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/cachemanager/wx.createCacheManager.html) diff --git a/docs/apis/storage/clearStorage.md b/docs/apis/storage/clearStorage.md index e962208d49dc..d29b2ed4a6ac 100644 --- a/docs/apis/storage/clearStorage.md +++ b/docs/apis/storage/clearStorage.md @@ -5,7 +5,7 @@ sidebar_label: clearStorage 清理本地数据缓存 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.clearStorage.html) diff --git a/docs/apis/storage/clearStorageSync.md b/docs/apis/storage/clearStorageSync.md index 54883a0ed9f2..1aa81a59a97d 100644 --- a/docs/apis/storage/clearStorageSync.md +++ b/docs/apis/storage/clearStorageSync.md @@ -5,7 +5,7 @@ sidebar_label: clearStorageSync Taro.clearStorage 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.clearStorageSync.html) diff --git a/docs/apis/storage/createBufferURL.md b/docs/apis/storage/createBufferURL.md index 5062e3662b64..1e759bc0c58c 100644 --- a/docs/apis/storage/createBufferURL.md +++ b/docs/apis/storage/createBufferURL.md @@ -5,14 +5,14 @@ sidebar_label: createBufferURL 根据传入的 buffer 创建一个唯一的 URL 存在内存中 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.createBufferURL.html) ## 类型 ```tsx -(buffer: TypedArray | ArrayBuffer) => void +(buffer: TypedArray | ArrayBuffer) => string ``` ## 参数 diff --git a/docs/apis/storage/getStorage.md b/docs/apis/storage/getStorage.md index cadea23a8d76..d07b6495da1d 100644 --- a/docs/apis/storage/getStorage.md +++ b/docs/apis/storage/getStorage.md @@ -5,7 +5,7 @@ sidebar_label: getStorage 从本地缓存中异步获取指定 key 的内容 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.getStorage.html) diff --git a/docs/apis/storage/getStorageInfo.md b/docs/apis/storage/getStorageInfo.md index 818b50d801cf..a8867b19239c 100644 --- a/docs/apis/storage/getStorageInfo.md +++ b/docs/apis/storage/getStorageInfo.md @@ -5,7 +5,7 @@ sidebar_label: getStorageInfo 异步获取当前storage的相关信息 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.getStorageInfo.html) diff --git a/docs/apis/storage/getStorageInfoSync.md b/docs/apis/storage/getStorageInfoSync.md index ba5674cf2e2b..dff2f6b56ee8 100644 --- a/docs/apis/storage/getStorageInfoSync.md +++ b/docs/apis/storage/getStorageInfoSync.md @@ -5,7 +5,7 @@ sidebar_label: getStorageInfoSync Taro.getStorageInfo 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.getStorageInfoSync.html) diff --git a/docs/apis/storage/getStorageSync.md b/docs/apis/storage/getStorageSync.md index 80659b7b874f..95f62911ad6f 100644 --- a/docs/apis/storage/getStorageSync.md +++ b/docs/apis/storage/getStorageSync.md @@ -5,7 +5,7 @@ sidebar_label: getStorageSync Taro.getStorage 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.getStorageSync.html) diff --git a/docs/apis/storage/removeStorage.md b/docs/apis/storage/removeStorage.md index b424b1feb02a..3ac6e39d1a14 100644 --- a/docs/apis/storage/removeStorage.md +++ b/docs/apis/storage/removeStorage.md @@ -5,7 +5,7 @@ sidebar_label: removeStorage 从本地缓存中移除指定 key -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.removeStorage.html) diff --git a/docs/apis/storage/removeStorageSync.md b/docs/apis/storage/removeStorageSync.md index a6c77f89e7bf..556e9ab0d1bb 100644 --- a/docs/apis/storage/removeStorageSync.md +++ b/docs/apis/storage/removeStorageSync.md @@ -5,7 +5,7 @@ sidebar_label: removeStorageSync Taro.removeStorage 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.removeStorageSync.html) diff --git a/docs/apis/storage/revokeBufferURL.md b/docs/apis/storage/revokeBufferURL.md index d97a77afa349..8a8524631f6e 100644 --- a/docs/apis/storage/revokeBufferURL.md +++ b/docs/apis/storage/revokeBufferURL.md @@ -5,7 +5,7 @@ sidebar_label: revokeBufferURL 根据 URL 销毁存在内存中的数据 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.revokeBufferURL.html) diff --git a/docs/apis/storage/setStorage.md b/docs/apis/storage/setStorage.md index 8407e976d4d2..7ad5285e2ef0 100644 --- a/docs/apis/storage/setStorage.md +++ b/docs/apis/storage/setStorage.md @@ -5,7 +5,7 @@ sidebar_label: setStorage 将数据存储在本地缓存中指定的 key 中。会覆盖掉原来该 key 对应的内容。除非用户主动删除或因存储空间原因被系统清理,否则数据都一直可用。单个 key 允许存储的最大数据长度为 1MB,所有数据存储上限为 10MB。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.setStorage.html) diff --git a/docs/apis/storage/setStorageSync.md b/docs/apis/storage/setStorageSync.md index 3ab04b844413..60af9dc378fd 100644 --- a/docs/apis/storage/setStorageSync.md +++ b/docs/apis/storage/setStorageSync.md @@ -5,7 +5,7 @@ sidebar_label: setStorageSync Taro.setStorage 的同步版本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.setStorageSync.html) diff --git a/docs/apis/taro.extend/eventCenter.md b/docs/apis/taro.extend/eventCenter.md index 291044852ec2..fb4c6d4d2c1a 100644 --- a/docs/apis/taro.extend/eventCenter.md +++ b/docs/apis/taro.extend/eventCenter.md @@ -5,7 +5,7 @@ sidebar_label: eventCenter 事件中心 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.extend/getAppInfo.md b/docs/apis/taro.extend/getAppInfo.md index f0a5f1b4fe10..6c339f9087ff 100644 --- a/docs/apis/taro.extend/getAppInfo.md +++ b/docs/apis/taro.extend/getAppInfo.md @@ -5,7 +5,7 @@ sidebar_label: getAppInfo 小程序获取和 Taro 相关的 App 信息 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.extend/getCurrentInstance.md b/docs/apis/taro.extend/getCurrentInstance.md index f232f8058a07..c5339b532879 100644 --- a/docs/apis/taro.extend/getCurrentInstance.md +++ b/docs/apis/taro.extend/getCurrentInstance.md @@ -5,7 +5,7 @@ sidebar_label: getCurrentInstance 获取当前页面实例 -支持情况: +支持情况: ## 类型 @@ -26,4 +26,4 @@ sidebar_label: getCurrentInstance | onHide | `string` | 是 | | | onShow | `string` | 是 | | | preloadData | `Record` | 否 | | -| rnNavigationRef | `React.RefObject` | 否 | RN 私有对象navigationRef,用于使用底层接口控制路由 | +| rnNavigationRef | `React.RefObject` | 否 | RN 私有对象 navigationRef,用于使用底层接口控制路由 | diff --git a/docs/apis/taro.extend/getEnv.md b/docs/apis/taro.extend/getEnv.md index 18185feae203..de74c1cc18ba 100644 --- a/docs/apis/taro.extend/getEnv.md +++ b/docs/apis/taro.extend/getEnv.md @@ -5,7 +5,7 @@ sidebar_label: getEnv 获取环境变量 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.extend/getRenderer.md b/docs/apis/taro.extend/getRenderer.md index b2620fd4ef83..fd3625b55ead 100644 --- a/docs/apis/taro.extend/getRenderer.md +++ b/docs/apis/taro.extend/getRenderer.md @@ -5,7 +5,7 @@ sidebar_label: getRenderer 获取当前页面渲染引擎类型 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.extend/getTabBar.md b/docs/apis/taro.extend/getTabBar.md index 3dcbab4d2160..1bb530ae6558 100644 --- a/docs/apis/taro.extend/getTabBar.md +++ b/docs/apis/taro.extend/getTabBar.md @@ -5,7 +5,7 @@ sidebar_label: getTabBar 获取自定义 TabBar 对应的 React 或 Vue 组件实例 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.extend/initPxTransform.md b/docs/apis/taro.extend/initPxTransform.md index ed745e9b897d..913134e19de7 100644 --- a/docs/apis/taro.extend/initPxTransform.md +++ b/docs/apis/taro.extend/initPxTransform.md @@ -5,7 +5,7 @@ sidebar_label: initPxTransform 尺寸转换初始化 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.extend/interceptorify.md b/docs/apis/taro.extend/interceptorify.md index c649e57d9877..d99ca58e35cc 100644 --- a/docs/apis/taro.extend/interceptorify.md +++ b/docs/apis/taro.extend/interceptorify.md @@ -1,21 +1,25 @@ --- -title: Taro.interceptorify(promiseifyApi) +title: Taro.interceptorify(api) sidebar_label: interceptorify --- -包裹 promiseify api 的洋葱圈模型 +包裹 promisify api 的洋葱圈模型 -支持情况: +支持情况: ## 类型 ```tsx -(promiseifyApi: promiseifyApi) => Interceptorify +(api: promisifyApi) => Interceptorify ``` ## 参数 -### promiseifyApi +| 参数 | 类型 | +| --- | --- | +| api | `T` | + +### promisifyApi ```tsx (requestParams: T) => Promise @@ -30,7 +34,7 @@ sidebar_label: interceptorify | 参数 | 类型 | | --- | --- | | requestParams | `T` | -| proceed | `promiseifyApi` | +| proceed | `promisifyApi` | ### InterceptorifyInterceptor diff --git a/docs/apis/taro.extend/pxTransform.md b/docs/apis/taro.extend/pxTransform.md index c44784bff83a..001dfeb307c7 100644 --- a/docs/apis/taro.extend/pxTransform.md +++ b/docs/apis/taro.extend/pxTransform.md @@ -5,7 +5,7 @@ sidebar_label: pxTransform 尺寸转换 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.extend/requirePlugin.md b/docs/apis/taro.extend/requirePlugin.md index 8f0e6c87d3fc..d36853a391a3 100644 --- a/docs/apis/taro.extend/requirePlugin.md +++ b/docs/apis/taro.extend/requirePlugin.md @@ -5,7 +5,7 @@ sidebar_label: requirePlugin 小程序引用插件 JS 接口 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.extend/setGlobalDataPlugin.md b/docs/apis/taro.extend/setGlobalDataPlugin.md index a5b1693e369c..131aecef9beb 100644 --- a/docs/apis/taro.extend/setGlobalDataPlugin.md +++ b/docs/apis/taro.extend/setGlobalDataPlugin.md @@ -5,7 +5,7 @@ sidebar_label: setGlobalDataPlugin Vue3 插件,用于设置 `getApp()` 中的全局变量 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useAddToFavorites.md b/docs/apis/taro.hooks/useAddToFavorites.md index 69d643120492..195b1f5bd101 100644 --- a/docs/apis/taro.hooks/useAddToFavorites.md +++ b/docs/apis/taro.hooks/useAddToFavorites.md @@ -5,7 +5,7 @@ sidebar_label: useAddToFavorites 用户点击右上角菜单“收藏”按钮时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useDidHide.md b/docs/apis/taro.hooks/useDidHide.md index 51407905af6e..ab4a6377b2c7 100644 --- a/docs/apis/taro.hooks/useDidHide.md +++ b/docs/apis/taro.hooks/useDidHide.md @@ -5,7 +5,7 @@ sidebar_label: useDidHide 页面隐藏时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useDidShow.md b/docs/apis/taro.hooks/useDidShow.md index 69c41f67cb5e..f1dc51c15638 100644 --- a/docs/apis/taro.hooks/useDidShow.md +++ b/docs/apis/taro.hooks/useDidShow.md @@ -5,7 +5,7 @@ sidebar_label: useDidShow 页面展示时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useError.md b/docs/apis/taro.hooks/useError.md index 2368f7dc36f4..b4964bca93f6 100644 --- a/docs/apis/taro.hooks/useError.md +++ b/docs/apis/taro.hooks/useError.md @@ -5,7 +5,7 @@ sidebar_label: useError 小程序发生脚本错误或 API 调用报错时触发的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useKeyboardHeight.md b/docs/apis/taro.hooks/useKeyboardHeight.md new file mode 100644 index 000000000000..f42e9d5358d9 --- /dev/null +++ b/docs/apis/taro.hooks/useKeyboardHeight.md @@ -0,0 +1,20 @@ +--- +title: Taro.useKeyboardHeight(callback) +sidebar_label: useKeyboardHeight +--- + +键盘高度变化时的回调。 + +支持情况: + +## 类型 + +```tsx +(callback: (payload: { height: number; }) => void) => void +``` + +## 参数 + +| 参数 | 类型 | +| --- | --- | +| callback | `(payload: { height: number; }) => void` | diff --git a/docs/apis/taro.hooks/useLaunch.md b/docs/apis/taro.hooks/useLaunch.md index 3aab93491382..938996ed6826 100644 --- a/docs/apis/taro.hooks/useLaunch.md +++ b/docs/apis/taro.hooks/useLaunch.md @@ -5,7 +5,7 @@ sidebar_label: useLaunch 小程序初始化完成时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useLoad.md b/docs/apis/taro.hooks/useLoad.md index b496d0478fb2..baf5cae68834 100644 --- a/docs/apis/taro.hooks/useLoad.md +++ b/docs/apis/taro.hooks/useLoad.md @@ -5,7 +5,7 @@ sidebar_label: useLoad 页面加载完成时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useOptionMenuClick.md b/docs/apis/taro.hooks/useOptionMenuClick.md index f43965ec8731..329249af52f9 100644 --- a/docs/apis/taro.hooks/useOptionMenuClick.md +++ b/docs/apis/taro.hooks/useOptionMenuClick.md @@ -5,7 +5,7 @@ sidebar_label: useOptionMenuClick 导航栏的额外图标被点击时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/usePageNotFound.md b/docs/apis/taro.hooks/usePageNotFound.md index f15138abecc1..e971b5911f75 100644 --- a/docs/apis/taro.hooks/usePageNotFound.md +++ b/docs/apis/taro.hooks/usePageNotFound.md @@ -5,7 +5,7 @@ sidebar_label: usePageNotFound 小程序要打开的页面不存在时触发的回调。 -支持情况: +支持情况: > H5: 多页面模式不支持该方法 diff --git a/docs/apis/taro.hooks/usePageScroll.md b/docs/apis/taro.hooks/usePageScroll.md index 9465531ac728..783b87666f65 100644 --- a/docs/apis/taro.hooks/usePageScroll.md +++ b/docs/apis/taro.hooks/usePageScroll.md @@ -5,7 +5,7 @@ sidebar_label: usePageScroll 页面滚动时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/usePullDownRefresh.md b/docs/apis/taro.hooks/usePullDownRefresh.md index 1e4bdbd590fe..8be0e3c5baee 100644 --- a/docs/apis/taro.hooks/usePullDownRefresh.md +++ b/docs/apis/taro.hooks/usePullDownRefresh.md @@ -5,7 +5,7 @@ sidebar_label: usePullDownRefresh 下拉刷新时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/usePullIntercept.md b/docs/apis/taro.hooks/usePullIntercept.md index 7e5ea56c1272..60d28f5d22e0 100644 --- a/docs/apis/taro.hooks/usePullIntercept.md +++ b/docs/apis/taro.hooks/usePullIntercept.md @@ -5,7 +5,7 @@ sidebar_label: usePullIntercept 下拉中断时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useReachBottom.md b/docs/apis/taro.hooks/useReachBottom.md index bac1d038b158..326d7cb372c8 100644 --- a/docs/apis/taro.hooks/useReachBottom.md +++ b/docs/apis/taro.hooks/useReachBottom.md @@ -5,7 +5,7 @@ sidebar_label: useReachBottom 上拉触底时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useReady.md b/docs/apis/taro.hooks/useReady.md index 618557d0c5d3..91fd1dad5691 100644 --- a/docs/apis/taro.hooks/useReady.md +++ b/docs/apis/taro.hooks/useReady.md @@ -6,7 +6,7 @@ sidebar_label: useReady 页面初次渲染完成的回调。 此时页面已经准备妥当,可以和视图层进行交互。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useResize.md b/docs/apis/taro.hooks/useResize.md index 7d5e1e9efd61..61360e731449 100644 --- a/docs/apis/taro.hooks/useResize.md +++ b/docs/apis/taro.hooks/useResize.md @@ -5,7 +5,7 @@ sidebar_label: useResize 页面尺寸改变时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useRouter.md b/docs/apis/taro.hooks/useRouter.md index 6547ba4e7852..b2abb07fa575 100644 --- a/docs/apis/taro.hooks/useRouter.md +++ b/docs/apis/taro.hooks/useRouter.md @@ -5,7 +5,7 @@ sidebar_label: useRouter 获取当前路由参数。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useSaveExitState.md b/docs/apis/taro.hooks/useSaveExitState.md index 49baf84496df..63061946c021 100644 --- a/docs/apis/taro.hooks/useSaveExitState.md +++ b/docs/apis/taro.hooks/useSaveExitState.md @@ -5,7 +5,7 @@ sidebar_label: useSaveExitState 页面销毁前保留状态回调 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useShareAppMessage.md b/docs/apis/taro.hooks/useShareAppMessage.md index e1d89d7db5a8..65a9b47ef89e 100644 --- a/docs/apis/taro.hooks/useShareAppMessage.md +++ b/docs/apis/taro.hooks/useShareAppMessage.md @@ -5,7 +5,7 @@ sidebar_label: useShareAppMessage 页面转发时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useShareTimeline.md b/docs/apis/taro.hooks/useShareTimeline.md index 1afc8124c14f..3d4cd9c5d6a3 100644 --- a/docs/apis/taro.hooks/useShareTimeline.md +++ b/docs/apis/taro.hooks/useShareTimeline.md @@ -5,7 +5,7 @@ sidebar_label: useShareTimeline 用户点击右上角菜单“分享到朋友圈”按钮时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useTabItemTap.md b/docs/apis/taro.hooks/useTabItemTap.md index bd27db07cf27..667247945c75 100644 --- a/docs/apis/taro.hooks/useTabItemTap.md +++ b/docs/apis/taro.hooks/useTabItemTap.md @@ -5,7 +5,7 @@ sidebar_label: useTabItemTap 当前是 tab 页时,tab 被点击时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useTitleClick.md b/docs/apis/taro.hooks/useTitleClick.md index 969a40b41317..e5e68951cc1e 100644 --- a/docs/apis/taro.hooks/useTitleClick.md +++ b/docs/apis/taro.hooks/useTitleClick.md @@ -5,7 +5,7 @@ sidebar_label: useTitleClick 导航栏的标题被点击时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useUnhandledRejection.md b/docs/apis/taro.hooks/useUnhandledRejection.md index 289e0168f453..b8ce0f2be554 100644 --- a/docs/apis/taro.hooks/useUnhandledRejection.md +++ b/docs/apis/taro.hooks/useUnhandledRejection.md @@ -5,7 +5,7 @@ sidebar_label: useUnhandledRejection 小程序有未处理的 Promise reject 时触发。也可以使用 Taro.onUnhandledRejection 绑定监听。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/taro.hooks/useUnload.md b/docs/apis/taro.hooks/useUnload.md index f6f08c4e4e7a..866fb69fbef2 100644 --- a/docs/apis/taro.hooks/useUnload.md +++ b/docs/apis/taro.hooks/useUnload.md @@ -5,7 +5,7 @@ sidebar_label: useUnload 页面卸载时的回调。 -支持情况: +支持情况: ## 类型 diff --git a/docs/apis/ui/animation/Animation.md b/docs/apis/ui/animation/Animation.md index a70a2b9bef53..3dc0a54fc7c6 100644 --- a/docs/apis/ui/animation/Animation.md +++ b/docs/apis/ui/animation/Animation.md @@ -5,7 +5,7 @@ sidebar_label: Animation 动画对象 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.html) @@ -15,7 +15,7 @@ sidebar_label: Animation 导出动画队列。**export 方法每次调用后会清掉之前的动画操作**。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.export.html) @@ -27,7 +27,7 @@ sidebar_label: Animation 表示一组动画完成。可以在一组动画中调用任意多个动画方法,一组动画中的所有动画会同时开始,一组动画完成后才会进行下一组动画。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.step.html) @@ -43,7 +43,7 @@ sidebar_label: Animation 同 [transform-function matrix](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/matrix) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.matrix.html) @@ -64,7 +64,7 @@ sidebar_label: Animation 同 [transform-function matrix3d](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/matrix3d) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.matrix3d.html) @@ -95,7 +95,7 @@ sidebar_label: Animation 从原点顺时针旋转一个角度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.rotate.html) @@ -111,7 +111,7 @@ sidebar_label: Animation 从 固定 轴顺时针旋转一个角度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.rotate3d.html) @@ -130,7 +130,7 @@ sidebar_label: Animation 从 X 轴顺时针旋转一个角度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.rotateX.html) @@ -146,7 +146,7 @@ sidebar_label: Animation 从 Y 轴顺时针旋转一个角度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.rotateY.html) @@ -162,7 +162,7 @@ sidebar_label: Animation 从 Z 轴顺时针旋转一个角度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.rotateZ.html) @@ -178,7 +178,7 @@ sidebar_label: Animation 缩放 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.scale.html) @@ -195,7 +195,7 @@ sidebar_label: Animation 缩放 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.scale3d.html) @@ -213,7 +213,7 @@ sidebar_label: Animation 缩放 X 轴 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.scaleX.html) @@ -229,7 +229,7 @@ sidebar_label: Animation 缩放 Y 轴 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.scaleY.html) @@ -245,7 +245,7 @@ sidebar_label: Animation 缩放 Z 轴 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.scaleZ.html) @@ -261,7 +261,7 @@ sidebar_label: Animation 对 X、Y 轴坐标进行倾斜 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.skew.html) @@ -278,7 +278,7 @@ sidebar_label: Animation 对 X 轴坐标进行倾斜 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.skewX.html) @@ -294,7 +294,7 @@ sidebar_label: Animation 对 Y 轴坐标进行倾斜 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.skewY.html) @@ -310,7 +310,7 @@ sidebar_label: Animation 平移变换 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.translate.html) @@ -327,7 +327,7 @@ sidebar_label: Animation 对 xyz 坐标进行平移变换 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.translate3d.html) @@ -345,7 +345,7 @@ sidebar_label: Animation 对 X 轴平移 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.translateX.html) @@ -361,7 +361,7 @@ sidebar_label: Animation 对 Y 轴平移 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.translateY.html) @@ -377,7 +377,7 @@ sidebar_label: Animation 对 Z 轴平移 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.translateZ.html) @@ -393,7 +393,7 @@ sidebar_label: Animation 设置透明度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.opacity.html) @@ -409,7 +409,7 @@ sidebar_label: Animation 设置背景色 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.backgroundColor.html) @@ -425,7 +425,7 @@ sidebar_label: Animation 设置宽度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.width.html) @@ -441,7 +441,7 @@ sidebar_label: Animation 设置高度 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.height.html) @@ -457,7 +457,7 @@ sidebar_label: Animation 设置 left 值 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.left.html) @@ -473,7 +473,7 @@ sidebar_label: Animation 设置 right 值 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.right.html) @@ -489,7 +489,7 @@ sidebar_label: Animation 设置 top 值 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.top.html) @@ -505,7 +505,7 @@ sidebar_label: Animation 设置 bottom 值 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.bottom.html) @@ -542,36 +542,36 @@ sidebar_label: Animation ## API 支持度 -| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| Animation | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.export | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.step | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.matrix | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.matrix3d | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.rotate | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.rotate3d | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.rotateX | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.rotateY | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.rotateZ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.scale | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.scale3d | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.scaleX | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.scaleY | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.scaleZ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.skew | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.skewX | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.skewY | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.translate | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.translate3d | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.translateX | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.translateY | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.translateZ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.opacity | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.backgroundColor | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.width | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.height | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.left | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.right | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.top | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| Animation.bottom | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | +| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| Animation | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.export | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.step | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.matrix | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.matrix3d | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.rotate | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.rotate3d | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.rotateX | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.rotateY | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.rotateZ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.scale | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.scale3d | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.scaleX | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.scaleY | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.scaleZ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.skew | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.skewX | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.skewY | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.translate | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.translate3d | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.translateX | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.translateY | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.translateZ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.opacity | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.backgroundColor | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.width | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.height | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.left | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.right | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.top | ✔️ | ✔️ | ✔️ | | | ✔️ | +| Animation.bottom | ✔️ | ✔️ | ✔️ | | | ✔️ | diff --git a/docs/apis/ui/animation/createAnimation.md b/docs/apis/ui/animation/createAnimation.md index 17f4e5d1a5b6..bd5161dd9d88 100644 --- a/docs/apis/ui/animation/createAnimation.md +++ b/docs/apis/ui/animation/createAnimation.md @@ -5,7 +5,7 @@ sidebar_label: createAnimation 创建一个动画实例 [animation](../Animation)。调用实例的方法来描述动画。最后通过动画实例的 export 方法导出动画数据传递给组件的 animation 属性。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/wx.createAnimation.html) diff --git a/docs/apis/ui/background/setBackgroundColor.md b/docs/apis/ui/background/setBackgroundColor.md index a8a33229ad89..fd03bd30666b 100644 --- a/docs/apis/ui/background/setBackgroundColor.md +++ b/docs/apis/ui/background/setBackgroundColor.md @@ -5,7 +5,7 @@ sidebar_label: setBackgroundColor 动态设置窗口的背景色 -支持情况: +支持情况: > React Native: 仅 Android diff --git a/docs/apis/ui/background/setBackgroundTextStyle.md b/docs/apis/ui/background/setBackgroundTextStyle.md index a924d9953770..86d96380862a 100644 --- a/docs/apis/ui/background/setBackgroundTextStyle.md +++ b/docs/apis/ui/background/setBackgroundTextStyle.md @@ -5,7 +5,7 @@ sidebar_label: setBackgroundTextStyle 动态设置下拉背景字体、loading 图的样式 -支持情况: +支持情况: > React Native: 仅 iOS diff --git a/docs/apis/ui/custom-component/nextTick.md b/docs/apis/ui/custom-component/nextTick.md index cbd8c0cdc100..e9f4b9d9c404 100644 --- a/docs/apis/ui/custom-component/nextTick.md +++ b/docs/apis/ui/custom-component/nextTick.md @@ -9,7 +9,7 @@ sidebar_label: nextTick 因为自定义组件中的 setData 和 triggerEvent 等接口本身是同步的操作,当这几个接口被连续调用时,都是在一个同步流程中执行完的,因此若逻辑不当可能会导致出错。 一个极端的案例:当父组件的 setData 引发了子组件的 triggerEvent,进而使得父组件又进行了一次 setData,期间有通过 wx:if 语句对子组件进行卸载,就有可能引发奇怪的错误,所以对于不需要在一个同步流程内完成的逻辑,可以使用此接口延迟到下一个时间片再执行。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/custom-component/wx.nextTick.html) diff --git a/docs/apis/ui/fonts/loadFontFace.md b/docs/apis/ui/fonts/loadFontFace.md index e33257a313a9..7ac0233e0fac 100644 --- a/docs/apis/ui/fonts/loadFontFace.md +++ b/docs/apis/ui/fonts/loadFontFace.md @@ -12,7 +12,7 @@ sidebar_label: loadFontFace 4. canvas等原生组件不支持使用接口添加的字体 5. 工具里提示 Failed to load font 可以忽略 -支持情况: +支持情况: > 支付宝小程序: source 地址格式为 `url('https://...')`,而不是单纯 URL 地址 > diff --git a/docs/apis/ui/interaction/disableAlertBeforeUnload.md b/docs/apis/ui/interaction/disableAlertBeforeUnload.md index 8b477c8b064e..e7987fccf8c1 100644 --- a/docs/apis/ui/interaction/disableAlertBeforeUnload.md +++ b/docs/apis/ui/interaction/disableAlertBeforeUnload.md @@ -5,7 +5,7 @@ sidebar_label: disableAlertBeforeUnload 关闭小程序页面返回询问对话框 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.disableAlertBeforeUnload.html) diff --git a/docs/apis/ui/interaction/hideLoading.md b/docs/apis/ui/interaction/hideLoading.md index 9e3f047adc89..e10b3cac7640 100644 --- a/docs/apis/ui/interaction/hideLoading.md +++ b/docs/apis/ui/interaction/hideLoading.md @@ -5,7 +5,7 @@ sidebar_label: hideLoading 隐藏 loading 提示框 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.hideLoading.html) diff --git a/docs/apis/ui/interaction/hideToast.md b/docs/apis/ui/interaction/hideToast.md index 04303e959db1..ee5a39a17995 100644 --- a/docs/apis/ui/interaction/hideToast.md +++ b/docs/apis/ui/interaction/hideToast.md @@ -5,7 +5,7 @@ sidebar_label: hideToast 隐藏消息提示框 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.hideToast.html) diff --git a/docs/apis/ui/interaction/showActionSheet.md b/docs/apis/ui/interaction/showActionSheet.md index eec9675a942a..7c4648051bc0 100644 --- a/docs/apis/ui/interaction/showActionSheet.md +++ b/docs/apis/ui/interaction/showActionSheet.md @@ -9,7 +9,7 @@ sidebar_label: showActionSheet - Android 6.7.2 以下版本,点击取消或蒙层时,回调 fail, errMsg 为 "fail cancel"; - Android 6.7.2 及以上版本 和 iOS 点击蒙层不会关闭模态弹窗,所以尽量避免使用「取消」分支中实现业务逻辑 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showActionSheet.html) diff --git a/docs/apis/ui/interaction/showLoading.md b/docs/apis/ui/interaction/showLoading.md index c9bf52dfb217..7d2fcc176ea8 100644 --- a/docs/apis/ui/interaction/showLoading.md +++ b/docs/apis/ui/interaction/showLoading.md @@ -9,7 +9,7 @@ sidebar_label: showLoading - Taro.showLoading 和 Taro.showToast 同时只能显示一个 - Taro.showLoading 应与 Taro.hideLoading 配对使用 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showLoading.html) diff --git a/docs/apis/ui/interaction/showModal.md b/docs/apis/ui/interaction/showModal.md index fe857beca6fc..aaef1bb0358e 100644 --- a/docs/apis/ui/interaction/showModal.md +++ b/docs/apis/ui/interaction/showModal.md @@ -8,7 +8,7 @@ sidebar_label: showModal - Android 6.7.2 以下版本,点击取消或蒙层时,回调 fail, errMsg 为 "fail cancel"; - Android 6.7.2 及以上版本 和 iOS 点击蒙层不会关闭模态弹窗,所以尽量避免使用「取消」分支中实现业务逻辑 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showModal.html) diff --git a/docs/apis/ui/interaction/showToast.md b/docs/apis/ui/interaction/showToast.md index 0865529fc0f8..db5b09aaa420 100644 --- a/docs/apis/ui/interaction/showToast.md +++ b/docs/apis/ui/interaction/showToast.md @@ -9,7 +9,7 @@ sidebar_label: showToast - Taro.showLoading 和 Taro.showToast 同时只能显示一个 - Taro.showToast 应与 Taro.hideToast 配对使用 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showToast.html) diff --git a/docs/apis/ui/menu/getMenuButtonBoundingClientRect.md b/docs/apis/ui/menu/getMenuButtonBoundingClientRect.md index 778b18fa1045..f52654c2db2d 100644 --- a/docs/apis/ui/menu/getMenuButtonBoundingClientRect.md +++ b/docs/apis/ui/menu/getMenuButtonBoundingClientRect.md @@ -5,7 +5,7 @@ sidebar_label: getMenuButtonBoundingClientRect 获取菜单按钮(右上角胶囊按钮)的布局位置信息。坐标信息以屏幕左上角为原点。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/menu/wx.getMenuButtonBoundingClientRect.html) diff --git a/docs/apis/ui/navigation-bar/hideHomeButton.md b/docs/apis/ui/navigation-bar/hideHomeButton.md index c9e538e79b7f..9e815cb907d8 100644 --- a/docs/apis/ui/navigation-bar/hideHomeButton.md +++ b/docs/apis/ui/navigation-bar/hideHomeButton.md @@ -5,7 +5,7 @@ sidebar_label: hideHomeButton 隐藏返回首页按钮。微信7.0.7版本起,当用户打开的小程序最底层页面是非首页时,默认展示“返回首页”按钮,开发者可在页面 onShow 中调用 hideHomeButton 进行隐藏。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.hideHomeButton.html) diff --git a/docs/apis/ui/navigation-bar/hideNavigationBarLoading.md b/docs/apis/ui/navigation-bar/hideNavigationBarLoading.md index d027b965fcfb..2066167ff939 100644 --- a/docs/apis/ui/navigation-bar/hideNavigationBarLoading.md +++ b/docs/apis/ui/navigation-bar/hideNavigationBarLoading.md @@ -5,7 +5,7 @@ sidebar_label: hideNavigationBarLoading 在当前页面隐藏导航条加载动画 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.hideNavigationBarLoading.html) diff --git a/docs/apis/ui/navigation-bar/setNavigationBarColor.md b/docs/apis/ui/navigation-bar/setNavigationBarColor.md index 1139ae2008fa..1e0c83bcf0de 100644 --- a/docs/apis/ui/navigation-bar/setNavigationBarColor.md +++ b/docs/apis/ui/navigation-bar/setNavigationBarColor.md @@ -5,7 +5,7 @@ sidebar_label: setNavigationBarColor 设置页面导航条颜色 -支持情况: +支持情况: > H5: 不支持 animation 参数 > diff --git a/docs/apis/ui/navigation-bar/setNavigationBarTitle.md b/docs/apis/ui/navigation-bar/setNavigationBarTitle.md index 4a9e670093d5..76a00c92fa34 100644 --- a/docs/apis/ui/navigation-bar/setNavigationBarTitle.md +++ b/docs/apis/ui/navigation-bar/setNavigationBarTitle.md @@ -5,7 +5,7 @@ sidebar_label: setNavigationBarTitle 动态设置当前页面的标题 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.setNavigationBarTitle.html) diff --git a/docs/apis/ui/navigation-bar/showNavigationBarLoading.md b/docs/apis/ui/navigation-bar/showNavigationBarLoading.md index f723bc49d8a4..1f8662171d7d 100644 --- a/docs/apis/ui/navigation-bar/showNavigationBarLoading.md +++ b/docs/apis/ui/navigation-bar/showNavigationBarLoading.md @@ -5,7 +5,7 @@ sidebar_label: showNavigationBarLoading 在当前页面显示导航条加载动画 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.showNavigationBarLoading.html) diff --git a/docs/apis/ui/pull-down-refresh/startPullDownRefresh.md b/docs/apis/ui/pull-down-refresh/startPullDownRefresh.md index 88a9ee54f59f..f353ce96e9d0 100644 --- a/docs/apis/ui/pull-down-refresh/startPullDownRefresh.md +++ b/docs/apis/ui/pull-down-refresh/startPullDownRefresh.md @@ -5,7 +5,7 @@ sidebar_label: startPullDownRefresh 开始下拉刷新。调用后触发下拉刷新动画,效果与用户手动下拉刷新一致。 -支持情况: +支持情况: > React Native: 无动画效果 diff --git a/docs/apis/ui/pull-down-refresh/stopPullDownRefresh.md b/docs/apis/ui/pull-down-refresh/stopPullDownRefresh.md index 002ddfa63328..8033ac95afbf 100644 --- a/docs/apis/ui/pull-down-refresh/stopPullDownRefresh.md +++ b/docs/apis/ui/pull-down-refresh/stopPullDownRefresh.md @@ -5,7 +5,7 @@ sidebar_label: stopPullDownRefresh 停止当前页面下拉刷新。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/pull-down-refresh/wx.stopPullDownRefresh.html) diff --git a/docs/apis/ui/scroll/ScrollViewContext.md b/docs/apis/ui/scroll/ScrollViewContext.md index c8987122c099..9daf662d7394 100644 --- a/docs/apis/ui/scroll/ScrollViewContext.md +++ b/docs/apis/ui/scroll/ScrollViewContext.md @@ -5,7 +5,7 @@ sidebar_label: ScrollViewContext 增强 ScrollView 实例,可通过 [Taro.createSelectorQuery](/docs/apis/wxml/createSelectorQuery) 的 [NodesRef.node](/docs/apis/wxml/NodesRef#node) 方法获取。 仅在 `scroll-view` 组件开启 `enhanced` 属性后生效。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/scroll/ScrollViewContext.html) @@ -24,7 +24,7 @@ sidebar_label: ScrollViewContext 滚动至指定位置 -支持情况: +支持情况: > H5: 不支持 velocity 参数 @@ -42,7 +42,7 @@ sidebar_label: ScrollViewContext 滚动至指定位置 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/scroll/ScrollViewContext.scrollIntoView.html) @@ -82,8 +82,8 @@ Taro.createSelectorQuery() ## API 支持度 -| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| ScrollViewContext | ✔️ | | | | | | -| ScrollViewContext.scrollTo | ✔️ | | ✔️(不支持 velocity 参数) | | | | -| ScrollViewContext.scrollIntoView | ✔️ | ✔️ | ✔️ | | | | +| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | +| ScrollViewContext | ✔️ | | | | | +| ScrollViewContext.scrollTo | ✔️ | | ✔️(不支持 velocity 参数) | | | +| ScrollViewContext.scrollIntoView | ✔️ | ✔️ | ✔️ | | | diff --git a/docs/apis/ui/scroll/pageScrollTo.md b/docs/apis/ui/scroll/pageScrollTo.md index 569bce684fed..dad4a38327ca 100644 --- a/docs/apis/ui/scroll/pageScrollTo.md +++ b/docs/apis/ui/scroll/pageScrollTo.md @@ -15,7 +15,7 @@ selector类似于 CSS 的选择器,但仅支持下列语法。 - 跨自定义组件的后代选择器:.the-ancestor >>> .the-descendant - 多选择器的并集:#a-node, .some-other-nodes -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/scroll/wx.pageScrollTo.html) diff --git a/docs/apis/ui/sticky/setTopBarText.md b/docs/apis/ui/sticky/setTopBarText.md index 667dfbbd1f2c..8d4986699f4b 100644 --- a/docs/apis/ui/sticky/setTopBarText.md +++ b/docs/apis/ui/sticky/setTopBarText.md @@ -8,7 +8,7 @@ sidebar_label: setTopBarText **注意** - 调用成功后,需间隔 5s 才能再次调用此接口,如果在 5s 内再次调用此接口,会回调 fail,errMsg:"setTopBarText: fail invoke too frequently" -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/sticky/wx.setTopBarText.html) diff --git a/docs/apis/ui/tab-bar/hideTabBar.md b/docs/apis/ui/tab-bar/hideTabBar.md index 66df361aec2d..c4458ca65f1f 100644 --- a/docs/apis/ui/tab-bar/hideTabBar.md +++ b/docs/apis/ui/tab-bar/hideTabBar.md @@ -5,7 +5,7 @@ sidebar_label: hideTabBar 隐藏 tabBar -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.hideTabBar.html) diff --git a/docs/apis/ui/tab-bar/hideTabBarRedDot.md b/docs/apis/ui/tab-bar/hideTabBarRedDot.md index bf97a1f859d6..2c3da47bc628 100644 --- a/docs/apis/ui/tab-bar/hideTabBarRedDot.md +++ b/docs/apis/ui/tab-bar/hideTabBarRedDot.md @@ -5,7 +5,7 @@ sidebar_label: hideTabBarRedDot 隐藏 tabBar 某一项的右上角的红点 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.hideTabBarRedDot.html) diff --git a/docs/apis/ui/tab-bar/removeTabBarBadge.md b/docs/apis/ui/tab-bar/removeTabBarBadge.md index babb5cdb6310..d2b2a511a5ec 100644 --- a/docs/apis/ui/tab-bar/removeTabBarBadge.md +++ b/docs/apis/ui/tab-bar/removeTabBarBadge.md @@ -5,7 +5,7 @@ sidebar_label: removeTabBarBadge 移除 tabBar 某一项右上角的文本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.removeTabBarBadge.html) diff --git a/docs/apis/ui/tab-bar/setTabBarBadge.md b/docs/apis/ui/tab-bar/setTabBarBadge.md index cd9d4e88f7e8..42e6a987897d 100644 --- a/docs/apis/ui/tab-bar/setTabBarBadge.md +++ b/docs/apis/ui/tab-bar/setTabBarBadge.md @@ -5,7 +5,7 @@ sidebar_label: setTabBarBadge 为 tabBar 某一项的右上角添加文本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.setTabBarBadge.html) diff --git a/docs/apis/ui/tab-bar/setTabBarItem.md b/docs/apis/ui/tab-bar/setTabBarItem.md index 05770c829755..220a6fe129f1 100644 --- a/docs/apis/ui/tab-bar/setTabBarItem.md +++ b/docs/apis/ui/tab-bar/setTabBarItem.md @@ -5,7 +5,7 @@ sidebar_label: setTabBarItem 动态设置 tabBar 某一项的内容,`2.7.0` 起图片支持临时文件和网络文件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.setTabBarItem.html) diff --git a/docs/apis/ui/tab-bar/setTabBarStyle.md b/docs/apis/ui/tab-bar/setTabBarStyle.md index dce5a8ae893f..954c675397a1 100644 --- a/docs/apis/ui/tab-bar/setTabBarStyle.md +++ b/docs/apis/ui/tab-bar/setTabBarStyle.md @@ -5,7 +5,7 @@ sidebar_label: setTabBarStyle 动态设置 tabBar 的整体样式 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.setTabBarStyle.html) diff --git a/docs/apis/ui/tab-bar/showTabBar.md b/docs/apis/ui/tab-bar/showTabBar.md index a77f0223aaf1..924986a4e527 100644 --- a/docs/apis/ui/tab-bar/showTabBar.md +++ b/docs/apis/ui/tab-bar/showTabBar.md @@ -5,7 +5,7 @@ sidebar_label: showTabBar 显示 tabBar -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.showTabBar.html) diff --git a/docs/apis/ui/tab-bar/showTabBarRedDot.md b/docs/apis/ui/tab-bar/showTabBarRedDot.md index d584a90c11f5..508dcd472fbb 100644 --- a/docs/apis/ui/tab-bar/showTabBarRedDot.md +++ b/docs/apis/ui/tab-bar/showTabBarRedDot.md @@ -5,7 +5,7 @@ sidebar_label: showTabBarRedDot 显示 tabBar 某一项的右上角的红点 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.showTabBarRedDot.html) diff --git a/docs/apis/ui/window/checkIsPictureInPictureActive.md b/docs/apis/ui/window/checkIsPictureInPictureActive.md index 1330f3ac7dba..545482f2950c 100644 --- a/docs/apis/ui/window/checkIsPictureInPictureActive.md +++ b/docs/apis/ui/window/checkIsPictureInPictureActive.md @@ -5,7 +5,7 @@ sidebar_label: checkIsPictureInPictureActive 返回当前是否存在小窗播放(小窗在 video/live-player/live-pusher 下可用) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/window/wx.checkIsPictureInPictureActive.html) diff --git a/docs/apis/ui/window/offWindowResize.md b/docs/apis/ui/window/offWindowResize.md index 5ab590ac457d..b4d21f87dd48 100644 --- a/docs/apis/ui/window/offWindowResize.md +++ b/docs/apis/ui/window/offWindowResize.md @@ -5,7 +5,7 @@ sidebar_label: offWindowResize 取消监听窗口尺寸变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/window/wx.offWindowResize.html) diff --git a/docs/apis/ui/window/onWindowResize.md b/docs/apis/ui/window/onWindowResize.md index 6d23b6878c0c..9fb9cc7dacf6 100644 --- a/docs/apis/ui/window/onWindowResize.md +++ b/docs/apis/ui/window/onWindowResize.md @@ -5,7 +5,7 @@ sidebar_label: onWindowResize 监听窗口尺寸变化事件 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/window/wx.onWindowResize.html) diff --git a/docs/apis/ui/window/setWindowSize.md b/docs/apis/ui/window/setWindowSize.md index 6941cf7607e5..de00d1882185 100644 --- a/docs/apis/ui/window/setWindowSize.md +++ b/docs/apis/ui/window/setWindowSize.md @@ -5,7 +5,7 @@ sidebar_label: setWindowSize 设置窗口大小,该接口仅适用于 PC 平台,使用细则请参见指南 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/window/wx.setWindowSize.html) diff --git a/docs/apis/worker/Worker.md b/docs/apis/worker/Worker.md index d0cc0b50d5f4..015e941a271c 100644 --- a/docs/apis/worker/Worker.md +++ b/docs/apis/worker/Worker.md @@ -9,7 +9,7 @@ sidebar_label: Worker 监听主线程/Worker 线程向当前线程发送的消息的事件。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/worker/Worker.onMessage.html) @@ -25,7 +25,7 @@ sidebar_label: Worker 监听 worker 线程被系统回收事件(当 iOS 系统资源紧张时,worker 线程存在被系统回收的可能,开发者可监听此事件并重新创建一个 worker) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/worker/Worker.onProcessKilled.html) @@ -41,7 +41,7 @@ sidebar_label: Worker 向主线程/Worker 线程发送的消息。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/worker/Worker.postMessage.html) @@ -76,7 +76,7 @@ worker.postMessage({ 结束当前 Worker 线程。仅限在主线程 worker 对象上调用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/worker/Worker.terminate.html) @@ -104,9 +104,9 @@ worker.postMessage({ ## API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | -| Worker.onMessage | ✔️ | | | | | -| Worker.onProcessKilled | ✔️ | | | | | -| Worker.postMessage | ✔️ | | | | | -| Worker.terminate | ✔️ | | | | | +| API | 微信小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | +| Worker.onMessage | ✔️ | | | | +| Worker.onProcessKilled | ✔️ | | | | +| Worker.postMessage | ✔️ | | | | +| Worker.terminate | ✔️ | | | | diff --git a/docs/apis/worker/createWorker.md b/docs/apis/worker/createWorker.md index 40326f7f7bb6..80fa9bec51e8 100644 --- a/docs/apis/worker/createWorker.md +++ b/docs/apis/worker/createWorker.md @@ -5,7 +5,7 @@ sidebar_label: createWorker 创建一个 Worker 线程。目前限制最多只能创建一个 Worker,创建下一个 Worker 前请先调用 [Worker.terminate](/docs/apis/worker/#terminate) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/worker/wx.createWorker.html) diff --git a/docs/apis/wxml/IntersectionObserver.md b/docs/apis/wxml/IntersectionObserver.md index 6f1e7ec653f2..42f750190b1f 100644 --- a/docs/apis/wxml/IntersectionObserver.md +++ b/docs/apis/wxml/IntersectionObserver.md @@ -13,7 +13,7 @@ sidebar_label: IntersectionObserver 停止监听。回调函数将不再触发 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/IntersectionObserver.disconnect.html) @@ -25,7 +25,7 @@ sidebar_label: IntersectionObserver 指定目标节点并开始监听相交状态变化情况 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/IntersectionObserver.observe.html) @@ -42,7 +42,7 @@ sidebar_label: IntersectionObserver 使用选择器指定一个节点,作为参照区域之一。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/IntersectionObserver.relativeTo.html) @@ -59,7 +59,7 @@ sidebar_label: IntersectionObserver 指定页面显示区域作为参照区域之一 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/IntersectionObserver.relativeToViewport.html) @@ -172,9 +172,9 @@ Taro.createIntersectionObserver().relativeToViewport({bottom: 100}).observe('.ta ## API 支持度 -| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| IntersectionObserver.disconnect | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| IntersectionObserver.observe | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| IntersectionObserver.relativeTo | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| IntersectionObserver.relativeToViewport | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | +| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| IntersectionObserver.disconnect | ✔️ | ✔️ | ✔️ | | | ✔️ | +| IntersectionObserver.observe | ✔️ | ✔️ | ✔️ | | | ✔️ | +| IntersectionObserver.relativeTo | ✔️ | ✔️ | ✔️ | | | ✔️ | +| IntersectionObserver.relativeToViewport | ✔️ | ✔️ | ✔️ | | | ✔️ | diff --git a/docs/apis/wxml/NodesRef.md b/docs/apis/wxml/NodesRef.md index 1ffc1ac3dda7..65ac91f5a6b7 100644 --- a/docs/apis/wxml/NodesRef.md +++ b/docs/apis/wxml/NodesRef.md @@ -13,7 +13,7 @@ sidebar_label: NodesRef 添加节点的布局位置的查询请求。相对于显示区域,以像素为单位。其功能类似于 DOM 的 `getBoundingClientRect`。返回 `NodesRef` 对应的 `SelectorQuery`。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/NodesRef.boundingClientRect.html) @@ -63,7 +63,7 @@ Taro.createSelectorQuery().selectAll('.a-class').boundingClientRect(function(rec 添加节点的 Context 对象查询请求。目前支持 [VideoContext](/docs/apis/media/video/VideoContext)、[CanvasContext](/docs/apis/canvas/CanvasContext)、[LivePlayerContext](/docs/apis/media/live/LivePlayerContext)、[EditorContext](/docs/apis/media/editor/EditorContext)和 [MapContext](/docs/apis/media/map/MapContext) 的获取。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/NodesRef.context.html) @@ -90,7 +90,7 @@ Taro.createSelectorQuery().select('.the-video-class').context(function (res) { **注意** computedStyle 的优先级高于 size,当同时在 computedStyle 里指定了 width/height 和传入了 size: true,则优先返回 computedStyle 获取到的 width/height。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/NodesRef.fields.html) @@ -132,7 +132,7 @@ Taro.createSelectorQuery().select('#the-id').fields({ 获取 Node 节点实例。目前支持 [Canvas](/docs/components/canvas) 的获取。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/NodesRef.node.html) @@ -156,7 +156,7 @@ Taro.createSelectorQuery().select('.canvas').node(function(res){ 添加节点的滚动位置查询请求。以像素为单位。节点必须是 `scroll-view` 或者 `viewport`,返回 `NodesRef` 对应的 `SelectorQuery`。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/NodesRef.scrollOffset.html) @@ -294,10 +294,10 @@ Taro.createSelectorQuery().selectViewport().scrollOffset(function(res){ ## API 支持度 -| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| NodesRef.boundingClientRect | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| NodesRef.context | ✔️ | ✔️ | ✔️ | | | ✔️ | | -| NodesRef.fields | ✔️ | ✔️ | ✔️ | | | ✔️ | | -| NodesRef.node | ✔️ | ✔️ | ✔️ | | | ✔️ | | -| NodesRef.scrollOffset | ✔️ | ✔️ | ✔️ | | | ✔️ | | +| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| NodesRef.boundingClientRect | ✔️ | ✔️ | ✔️ | | | ✔️ | +| NodesRef.context | ✔️ | ✔️ | ✔️ | | | ✔️ | +| NodesRef.fields | ✔️ | ✔️ | ✔️ | | | ✔️ | +| NodesRef.node | ✔️ | ✔️ | ✔️ | | | ✔️ | +| NodesRef.scrollOffset | ✔️ | ✔️ | ✔️ | | | ✔️ | diff --git a/docs/apis/wxml/SelectorQuery.md b/docs/apis/wxml/SelectorQuery.md index 21512bf3000f..d7c94ea350d8 100644 --- a/docs/apis/wxml/SelectorQuery.md +++ b/docs/apis/wxml/SelectorQuery.md @@ -13,7 +13,7 @@ sidebar_label: SelectorQuery 执行所有的请求。请求结果按请求次序构成数组,在callback的第一个参数中返回。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/SelectorQuery.exec.html) @@ -29,7 +29,7 @@ sidebar_label: SelectorQuery 将选择器的选取范围更改为自定义组件 `component` 内。(初始时,选择器仅选取页面范围的节点,不会选取任何自定义组件中的节点)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/SelectorQuery.in.html) @@ -70,7 +70,7 @@ selector类似于 CSS 的选择器,但仅支持下列语法。 - 跨自定义组件的后代选择器:.the-ancestor >>> .the-descendant - 多选择器的并集:#a-node, .some-other-nodes -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/SelectorQuery.select.html) @@ -116,7 +116,7 @@ selector类似于 CSS 的选择器,但仅支持下列语法。 - 跨自定义组件的后代选择器:.the-ancestor >>> .the-descendant - 多选择器的并集:#a-node, .some-other-nodes -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/SelectorQuery.selectAll.html) @@ -132,7 +132,7 @@ selector类似于 CSS 的选择器,但仅支持下列语法。 选择显示区域。可用于获取显示区域的尺寸、滚动位置等信息。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/SelectorQuery.selectViewport.html) @@ -153,10 +153,10 @@ Taro.createSelectorQuery().selectViewport().scrollOffset(function (res) { ## API 支持度 -| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| SelectorQuery.exec | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| SelectorQuery.in | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| SelectorQuery.select | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| SelectorQuery.selectAll | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| SelectorQuery.selectViewport | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | +| API | 微信小程序 | 抖音小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| SelectorQuery.exec | ✔️ | ✔️ | ✔️ | | | ✔️ | +| SelectorQuery.in | ✔️ | ✔️ | ✔️ | | | ✔️ | +| SelectorQuery.select | ✔️ | ✔️ | ✔️ | | | ✔️ | +| SelectorQuery.selectAll | ✔️ | ✔️ | ✔️ | | | ✔️ | +| SelectorQuery.selectViewport | ✔️ | ✔️ | ✔️ | | | ✔️ | diff --git a/docs/apis/wxml/createIntersectionObserver.md b/docs/apis/wxml/createIntersectionObserver.md index 801d96a925bf..e16f0340c81e 100644 --- a/docs/apis/wxml/createIntersectionObserver.md +++ b/docs/apis/wxml/createIntersectionObserver.md @@ -5,7 +5,7 @@ sidebar_label: createIntersectionObserver 创建并返回一个 IntersectionObserver 对象实例。在自定义组件或包含自定义组件的页面中,应使用 `this.createIntersectionObserver([options])` 来代替。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/wx.createIntersectionObserver.html) diff --git a/docs/apis/wxml/createMediaQueryObserver.md b/docs/apis/wxml/createMediaQueryObserver.md index 7a2ae032cb48..a883ddff6ea1 100644 --- a/docs/apis/wxml/createMediaQueryObserver.md +++ b/docs/apis/wxml/createMediaQueryObserver.md @@ -5,7 +5,7 @@ sidebar_label: createMediaQueryObserver 创建并返回一个 MediaQueryObserver 对象实例。在自定义组件或包含自定义组件的页面中,应使用 `this.createMediaQueryObserver()` 来代替。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/framework/view/resizable.html#Media%20Query) diff --git a/docs/apis/wxml/createSelectorQuery.md b/docs/apis/wxml/createSelectorQuery.md index 760ed32fbaa6..78a7fac475af 100644 --- a/docs/apis/wxml/createSelectorQuery.md +++ b/docs/apis/wxml/createSelectorQuery.md @@ -5,7 +5,7 @@ sidebar_label: createSelectorQuery 返回一个 SelectorQuery 对象实例。在自定义组件或包含自定义组件的页面中,应使用 `this.createSelectorQuery()` 来代替。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/wx.createSelectorQuery.html) diff --git a/docs/components/base/icon.md b/docs/components/base/icon.md index b47b598eee1f..8463df78f331 100755 --- a/docs/components/base/icon.md +++ b/docs/components/base/icon.md @@ -5,7 +5,7 @@ sidebar_label: Icon 图标。组件属性的长度单位默认为 px -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/icon.html) @@ -83,12 +83,12 @@ export default class PageView extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| IconProps.type | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| IconProps.size | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| IconProps.color | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| IconProps.ariaLabel | | | | | ✔️ | | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| IconProps.type | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| IconProps.size | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| IconProps.color | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| IconProps.ariaLabel | | | | | ✔️ | | | | | | ### TIconType diff --git a/docs/components/base/progress.md b/docs/components/base/progress.md index 25a97cd6b711..6d3f87724c46 100755 --- a/docs/components/base/progress.md +++ b/docs/components/base/progress.md @@ -5,7 +5,7 @@ sidebar_label: Progress 进度条。组件属性的长度单位默认为 px -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/progress.html) @@ -80,18 +80,18 @@ export default class PageView extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| ProgressProps.percent | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ProgressProps.showInfo | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ProgressProps.borderRadius | ✔️ | ✔️ | | | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| ProgressProps.fontSize | ✔️ | ✔️ | | | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| ProgressProps.strokeWidth | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ProgressProps.color | ✔️ | ✔️ | | | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| ProgressProps.activeColor | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ProgressProps.backgroundColor | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ProgressProps.active | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ProgressProps.activeMode | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ProgressProps.duration | ✔️ | ✔️ | | ✔️ | | ✔️ | ✔️ | | | ✔️ | ✔️ | -| ProgressProps.ariaLabel | | | | | ✔️ | | | | | | | -| ProgressProps.onActiveEnd | ✔️ | | | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| ProgressProps.percent | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ProgressProps.showInfo | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ProgressProps.borderRadius | ✔️ | ✔️ | | | ✔️ | ✔️ | ✔️ | | | ✔️ | +| ProgressProps.fontSize | ✔️ | ✔️ | | | ✔️ | ✔️ | ✔️ | | | ✔️ | +| ProgressProps.strokeWidth | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ProgressProps.color | ✔️ | ✔️ | | | ✔️ | ✔️ | ✔️ | | | ✔️ | +| ProgressProps.activeColor | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ProgressProps.backgroundColor | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ProgressProps.active | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ProgressProps.activeMode | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ProgressProps.duration | ✔️ | ✔️ | | ✔️ | | ✔️ | ✔️ | | | ✔️ | +| ProgressProps.ariaLabel | | | | | ✔️ | | | | | | +| ProgressProps.onActiveEnd | ✔️ | | | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | diff --git a/docs/components/base/rich-text.md b/docs/components/base/rich-text.md index 36f547f3a97e..02435f93ffc5 100755 --- a/docs/components/base/rich-text.md +++ b/docs/components/base/rich-text.md @@ -5,7 +5,7 @@ sidebar_label: RichText 富文本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/rich-text.html) @@ -92,7 +92,7 @@ export default { | userSelect | `boolean` | `false` | 否 | 文本是否可选,该属性会使节点显示为 block | | nodes | `Nodes` | | 否 | 节点列表/ HTML String | | space | `keyof TSpace` | | 否 | 显示连续空格 | -| selectable | `string` | `false(基础库 3.150.1 以前版本)true(基础库 3.150.1 及以后版本)` | 否 | 富文本是否可以长按选中,可用于复制,粘贴,长按搜索等场景 | +| selectable | `boolean` | `false(基础库 3.150.1 以前版本)true(基础库 3.150.1 及以后版本)` | 否 | 富文本是否可以长按选中,可用于复制,粘贴,长按搜索等场景 | | imageMenuPrevent | `string` | `false` | 否 | 阻止长按图片时弹起默认菜单(将该属性设置为image-menu-prevent或image-menu-prevent="true"),只在初始化时有效,不能动态变更;若不想阻止弹起默认菜单,则不需要设置此属性 | | preview | `string` | | 否 | 富文本中的图片是否可点击预览。在不设置的情况下,若 rich-text 未监听点击事件,则默认开启。未显示设置 preview 时会进行点击默认预览判断,建议显示设置 preview | | onTap | `CommonEventFunction` | | 否 | 触摸。 | @@ -105,21 +105,21 @@ export default { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| RichTextProps.userSelect | ✔️ | | | | | ✔️ | ✔️ | | | ✔️ | ✔️ | -| RichTextProps.nodes | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| RichTextProps.space | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| RichTextProps.selectable | | ✔️ | | | | | ✔️ | | | ✔️ | | -| RichTextProps.imageMenuPrevent | | ✔️ | | | | | | | | | | -| RichTextProps.preview | | ✔️ | | | | | | | | | | -| RichTextProps.onTap | | | ✔️ | | | | | | | | | -| RichTextProps.onTouchstart | | | ✔️ | | | | | | | | | -| RichTextProps.onTouchmove | | | ✔️ | | | | | | | | | -| RichTextProps.onTouchcancel | | | ✔️ | | | | | | | | | -| RichTextProps.onTouchend | | | ✔️ | | | | | | | | | -| RichTextProps.onLongtap | | | ✔️ | | | | | | | | | -| RichTextProps.mode | ✔️ | | | | | | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| RichTextProps.userSelect | ✔️ | | | | | ✔️ | ✔️ | | | ✔️ | +| RichTextProps.nodes | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| RichTextProps.space | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| RichTextProps.selectable | | ✔️ | | | | | ✔️ | | | ✔️ | +| RichTextProps.imageMenuPrevent | | ✔️ | | | | | | | | | +| RichTextProps.preview | | ✔️ | | | | | | | | | +| RichTextProps.onTap | | | ✔️ | | | | | | | | +| RichTextProps.onTouchstart | | | ✔️ | | | | | | | | +| RichTextProps.onTouchmove | | | ✔️ | | | | | | | | +| RichTextProps.onTouchcancel | | | ✔️ | | | | | | | | +| RichTextProps.onTouchend | | | ✔️ | | | | | | | | +| RichTextProps.onLongtap | | | ✔️ | | | | | | | | +| RichTextProps.mode | ✔️ | | | | | | | | | | ### TSpace diff --git a/docs/components/base/text.md b/docs/components/base/text.md index 8c5ebe425481..f15ee3e6de5e 100755 --- a/docs/components/base/text.md +++ b/docs/components/base/text.md @@ -5,7 +5,7 @@ sidebar_label: Text 文本 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/text.html) @@ -124,15 +124,15 @@ export default { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| TextProps.selectable | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | -| TextProps.userSelect | ✔️ | | | | | | ✔️ | | | ✔️ | ✔️ | -| TextProps.space | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| TextProps.decode | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | (默认解码,不支持设置) | | | | ✔️ | -| TextProps.numberOfLines | | | ✔️ | | | | | | | | | -| TextProps.overflow | ✔️ | | | | | | | | | | | -| TextProps.maxLines | ✔️ | | | | | | | | ✔️ | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| TextProps.selectable | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| TextProps.userSelect | ✔️ | | | | | | ✔️ | | | ✔️ | +| TextProps.space | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| TextProps.decode | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | (默认解码,不支持设置) | | | | +| TextProps.numberOfLines | | | ✔️ | | | | | | | | +| TextProps.overflow | ✔️ | | | | | | | | | | +| TextProps.maxLines | ✔️ | | | | | | | | ✔️ | | ### TSpace diff --git a/docs/components/canvas/canvas.md b/docs/components/canvas/canvas.md index c07e3cd3061e..1a83d55ced3f 100755 --- a/docs/components/canvas/canvas.md +++ b/docs/components/canvas/canvas.md @@ -7,7 +7,7 @@ sidebar_label: Canvas `` 组件的 RN 版本尚未实现。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/canvas.html) @@ -72,23 +72,23 @@ class App extends Components { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| CanvasProps.type | ✔️ | | ✔️ | ✔️ | | | | | | | ✔️ | -| CanvasProps.canvasId | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasProps.disableScroll | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | | | | ✔️ | -| CanvasProps.id | | | ✔️ | | | | ✔️ | | | ✔️ | | -| CanvasProps.width | | | ✔️ | | | | ✔️ | | | ✔️ | | -| CanvasProps.height | | | ✔️ | | | | ✔️ | | | ✔️ | | -| CanvasProps.nativeProps | | | | | | | ✔️ | | | ✔️ | | -| CanvasProps.onTouchStart | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasProps.onTouchMove | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasProps.onTouchEnd | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasProps.onTouchCancel | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasProps.onLongTap | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| CanvasProps.onError | ✔️ | ✔️ | | | ✔️ | ✔️ | | | | | ✔️ | -| CanvasProps.onTap | | | ✔️ | | | | | | | | | -| CanvasProps.onReady | | | ✔️ | | | | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| CanvasProps.type | ✔️ | | ✔️ | ✔️ | | | | | | | +| CanvasProps.canvasId | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasProps.disableScroll | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | | | | +| CanvasProps.id | | | ✔️ | | | | ✔️ | | | ✔️ | +| CanvasProps.width | | | ✔️ | | | | ✔️ | | | ✔️ | +| CanvasProps.height | | | ✔️ | | | | ✔️ | | | ✔️ | +| CanvasProps.nativeProps | | | | | | | ✔️ | | | ✔️ | +| CanvasProps.onTouchStart | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasProps.onTouchMove | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasProps.onTouchEnd | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasProps.onTouchCancel | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasProps.onLongTap | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CanvasProps.onError | ✔️ | ✔️ | | | ✔️ | ✔️ | | | | | +| CanvasProps.onTap | | | ✔️ | | | | | | | | +| CanvasProps.onReady | | | ✔️ | | | | | | | | ### onErrorEventDetail diff --git a/docs/components/forms/button.md b/docs/components/forms/button.md index 82d7945f682d..b6696b5a4e17 100755 --- a/docs/components/forms/button.md +++ b/docs/components/forms/button.md @@ -5,7 +5,7 @@ sidebar_label: Button 按钮 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/button.html) @@ -220,6 +220,7 @@ export default { | onGetAuthorize | `CommonEventFunction` | | 否 | 支付宝获取会员基础信息授权回调

生效时机:`open-type="getAuthorize"` | | onContact | `CommonEventFunction` | | 否 | 客服消息回调

生效时机:`open-type="contact"` | | onGetPhoneNumber | `CommonEventFunction` | | 否 | 获取用户手机号回调

生效时机:`open-type="getPhoneNumber"` | +| onGetPhoneNumberAndRiskLevel | `CommonEventFunction` | | 否 | 获取手机号和风险等级的回调

生效时机:`open-type="getPhoneNumberAndRiskLevel"` | | onGetRealTimePhoneNumber | `CommonEventFunction` | | 否 | 手机号实时验证回调,`open-type="getRealtimePhoneNumber"` 时有效 | | onError | `CommonEventFunction` | | 否 | 当使用开放能力时,发生错误的回调

生效时机:`open-type="launchApp"` | | onOpenSetting | `CommonEventFunction` | | 否 | 在打开授权设置页后回调

生效时机:`open-type="openSetting"` | @@ -239,62 +240,63 @@ export default { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| ButtonProps.size | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ButtonProps.type | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| ButtonProps.plain | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| ButtonProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| ButtonProps.loading | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| ButtonProps.formType | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | | ✔️ | -| ButtonProps.openType | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| ButtonProps.hoverClass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️(支持 hoverStyle 属性,但框架未支持 hoverClass) | | ✔️ | ✔️ | -| ButtonProps.hoverStyle | | | | | | | | ✔️ | | | | -| ButtonProps.hoverStopPropagation | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| ButtonProps.hoverStartTime | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ButtonProps.hoverStayTime | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ButtonProps.lang | ✔️ | | | | ✔️ | ✔️ | | | | | | -| ButtonProps.sessionFrom | ✔️ | ✔️ | | | | | | | | | | -| ButtonProps.sendMessageTitle | ✔️ | ✔️ | | | | | | | | | | -| ButtonProps.sendMessagePath | ✔️ | ✔️ | | | | | | | | | | -| ButtonProps.sendMessageImg | ✔️ | ✔️ | | | | | | | | | | -| ButtonProps.appParameter | ✔️ | | | | ✔️ | ✔️ | | | | | ✔️ | -| ButtonProps.scope | | | ✔️ | | | | | | | | | -| ButtonProps.showMessageCard | ✔️ | ✔️ | | | | | | | | | | -| ButtonProps.publicId | | | ✔️ | | ✔️ | | | | | | | -| ButtonProps.templateId | | ✔️ | | | | | | | | | | -| ButtonProps.subscribeId | | ✔️ | | | | | | | | | | -| ButtonProps.groupId | | | | ✔️(通过创建聊天群、查询群信息获取) | ✔️(打开群资料卡时,传递的群号) | | | | | | | -| ButtonProps.guildId | | | | | ✔️ | | | | | | | -| ButtonProps.shareType | | | | | ✔️ | | | | | | | -| ButtonProps.shareMode | | | | | ✔️ | | | | | | | -| ButtonProps.ariaLabel | | | | | ✔️ | | | | | | | -| ButtonProps.openId | | | | | ✔️ | | | | | | | -| ButtonProps.shareMessageFriendInfo | | | | | ✔️ | | | | | | | -| ButtonProps.shareMessageTitle | | | | | ✔️ | | | | | | | -| ButtonProps.shareMessageImg | | | | | ✔️ | | | | | | | -| ButtonProps.dataAwemeId | | | | ✔️ | | | | | | | | -| ButtonProps.dataIsHalfPage | | | | ✔️ | | | | | | | | -| ButtonProps.onGetUserInfo | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | | | | | -| ButtonProps.onGetAuthorize | | | ✔️ | | | | | | | | | -| ButtonProps.onContact | ✔️ | ✔️ | | | ✔️ | | | | | | | -| ButtonProps.onGetPhoneNumber | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | | | | -| ButtonProps.onGetRealTimePhoneNumber | ✔️ | | | | | | | | | | | -| ButtonProps.onError | ✔️ | | ✔️ | | ✔️ | ✔️ | | | | | ✔️ | -| ButtonProps.onOpenSetting | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| ButtonProps.onLaunchApp | ✔️ | | | | ✔️ | | | | | | ✔️ | -| ButtonProps.onChooseAvatar | ✔️ | | | | | | | | | | | -| ButtonProps.onAgreePrivacyAuthorization | ✔️ | | | | | | | | | | | -| ButtonProps.onTap | | | ✔️ | | | | | | | | | -| ButtonProps.onFollowLifestyle | | | ✔️ | | | | | | | | | -| ButtonProps.onChooseAddress | | ✔️ | | | | | | | | | | -| ButtonProps.onChooseInvoiceTitle | | ✔️ | | | | | | | | | | -| ButtonProps.onLogin | | ✔️ | | | | | | | | | | -| ButtonProps.onSubscribe | | ✔️ | | | | | | | | | | -| ButtonProps.onAddFriend | | | | | ✔️ | | | | | | | -| ButtonProps.onAddGroupApp | | | | | ✔️ | | | | | | | -| ButtonProps.onOpenAwemeUserProfile | | | | ✔️ | | | | | | | | -| ButtonProps.onJoinGroup | | | | ✔️ | | | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| ButtonProps.size | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ButtonProps.type | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| ButtonProps.plain | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| ButtonProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| ButtonProps.loading | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| ButtonProps.formType | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | | +| ButtonProps.openType | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| ButtonProps.hoverClass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️(支持 hoverStyle 属性,但框架未支持 hoverClass) | | ✔️ | +| ButtonProps.hoverStyle | | | | | | | | ✔️ | | | +| ButtonProps.hoverStopPropagation | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| ButtonProps.hoverStartTime | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ButtonProps.hoverStayTime | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ButtonProps.lang | ✔️ | | | | ✔️ | ✔️ | | | | | +| ButtonProps.sessionFrom | ✔️ | ✔️ | | | | | | | | | +| ButtonProps.sendMessageTitle | ✔️ | ✔️ | | | | | | | | | +| ButtonProps.sendMessagePath | ✔️ | ✔️ | | | | | | | | | +| ButtonProps.sendMessageImg | ✔️ | ✔️ | | | | | | | | | +| ButtonProps.appParameter | ✔️ | | | | ✔️ | ✔️ | | | | | +| ButtonProps.scope | | | ✔️ | | | | | | | | +| ButtonProps.showMessageCard | ✔️ | ✔️ | | | | | | | | | +| ButtonProps.publicId | | | ✔️ | | ✔️ | | | | | | +| ButtonProps.templateId | | ✔️ | | | | | | | | | +| ButtonProps.subscribeId | | ✔️ | | | | | | | | | +| ButtonProps.groupId | | | | ✔️(通过创建聊天群、查询群信息获取) | ✔️(打开群资料卡时,传递的群号) | | | | | | +| ButtonProps.guildId | | | | | ✔️ | | | | | | +| ButtonProps.shareType | | | | | ✔️ | | | | | | +| ButtonProps.shareMode | | | | | ✔️ | | | | | | +| ButtonProps.ariaLabel | | | | | ✔️ | | | | | | +| ButtonProps.openId | | | | | ✔️ | | | | | | +| ButtonProps.shareMessageFriendInfo | | | | | ✔️ | | | | | | +| ButtonProps.shareMessageTitle | | | | | ✔️ | | | | | | +| ButtonProps.shareMessageImg | | | | | ✔️ | | | | | | +| ButtonProps.dataAwemeId | | | | ✔️ | | | | | | | +| ButtonProps.dataIsHalfPage | | | | ✔️ | | | | | | | +| ButtonProps.onGetUserInfo | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | | | | +| ButtonProps.onGetAuthorize | | | ✔️ | | | | | | | | +| ButtonProps.onContact | ✔️ | ✔️ | | | ✔️ | | | | | | +| ButtonProps.onGetPhoneNumber | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | | | +| ButtonProps.onGetPhoneNumberAndRiskLevel | | | | | | | | | | | +| ButtonProps.onGetRealTimePhoneNumber | ✔️ | | | | | | | | | | +| ButtonProps.onError | ✔️ | | ✔️ | | ✔️ | ✔️ | | | | | +| ButtonProps.onOpenSetting | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | +| ButtonProps.onLaunchApp | ✔️ | | | | ✔️ | | | | | | +| ButtonProps.onChooseAvatar | ✔️ | | | | | | | | | | +| ButtonProps.onAgreePrivacyAuthorization | ✔️ | | | | | | | | | | +| ButtonProps.onTap | | | ✔️ | | | | | | | | +| ButtonProps.onFollowLifestyle | | | ✔️ | | | | | | | | +| ButtonProps.onChooseAddress | | ✔️ | | | | | | | | | +| ButtonProps.onChooseInvoiceTitle | | ✔️ | | | | | | | | | +| ButtonProps.onLogin | | ✔️ | | | | | | | | | +| ButtonProps.onSubscribe | | ✔️ | | | | | | | | | +| ButtonProps.onAddFriend | | | | | ✔️ | | | | | | +| ButtonProps.onAddGroupApp | | | | | ✔️ | | | | | | +| ButtonProps.onOpenAwemeUserProfile | | | | ✔️ | | | | | | | +| ButtonProps.onJoinGroup | | | | ✔️ | | | | | | | ### Size @@ -334,6 +336,7 @@ open-type 的合法值 | 参数 | 类型 | 说明 | | --- | --- | --- | +| ascf | `{ getPhoneNumber: any; openSetting: any; launchApp: any; share: any; liveActivity: any; getPhoneNumberAndRiskLevel: any; }` | | | weapp | { contact: any; share: any; getPhoneNumber: any; getRealtimePhoneNumber: any; getUserInfo: any; launchApp: any; openSetting: any; feedback: any; chooseAvatar: any; agreePrivacyAuthorization: any; "getPhoneNumberoragreePrivacyAuthorization": any; "getRealtimePhoneNumberoragreePrivacyAuthorization": any; "getUserInfoorag... | | | alipay | `{ share: any; getAuthorize: any; contactShare: any; lifestyle: any; }` | 支付宝小程序专属的 open-type 合法值
[参考地址](https://opendocs.alipay.com/mini/component/button) | | qq | `{ share: any; getUserInfo: any; launchApp: any; openSetting: any; feedback: any; openGroupProfile: any; addFriend: any; addColorSign: any; openPublicProfile: any; addGroupApp: any; shareMessageToFriend: any; }` | QQ 小程序专属的 open-type 合法值
[参考地址](https://q.qq.com/wiki/develop/miniprogram/component/form/button.html) | @@ -395,6 +398,12 @@ lang 的合法值 | :---: | :---: | :---: | :---: | :---: | :---: | | onGetPhoneNumberEventDetail.sign | | ✔️ | | | | +### onGetPhoneNumberAndRiskLevelEventDetail + +| 参数 | 类型 | +| --- | --- | +| code | `string` | + ### onGetRealTimePhoneNumberEventDetail | 参数 | 类型 | diff --git a/docs/components/forms/checkbox-group.md b/docs/components/forms/checkbox-group.md index ccdf2b610fb4..d3c5a27f55f2 100644 --- a/docs/components/forms/checkbox-group.md +++ b/docs/components/forms/checkbox-group.md @@ -5,7 +5,7 @@ sidebar_label: CheckboxGroup 多项选择器,内部由多个checkbox组成 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/checkbox-group.html) @@ -86,7 +86,7 @@ export default class PageCheckbox extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| CheckboxGroupProps.name | | | ✔️ | ✔️ | | | ✔️ | | | ✔️ | | -| CheckboxGroupProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| CheckboxGroupProps.name | | | ✔️ | ✔️ | | | ✔️ | | | ✔️ | +| CheckboxGroupProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | diff --git a/docs/components/forms/checkbox.md b/docs/components/forms/checkbox.md index f40bb3307dbb..89dd3852b499 100755 --- a/docs/components/forms/checkbox.md +++ b/docs/components/forms/checkbox.md @@ -5,7 +5,7 @@ sidebar_label: Checkbox 多选项目 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/checkbox.html) @@ -164,13 +164,13 @@ export default { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| CheckboxProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| CheckboxProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| CheckboxProps.checked | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| CheckboxProps.color | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| CheckboxProps.name | | | | | | | ✔️ | | ✔️ | ✔️ | | -| CheckboxProps.nativeProps | | | | | | | ✔️ | | | ✔️ | | -| CheckboxProps.ariaLabel | | | | | ✔️ | | | | | | | -| CheckboxProps.onChange | | | ✔️ | | | | ✔️ | ✔️ | ✔️ | ✔️ | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| CheckboxProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| CheckboxProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| CheckboxProps.checked | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| CheckboxProps.color | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| CheckboxProps.name | | | | | | | ✔️ | | ✔️ | ✔️ | +| CheckboxProps.nativeProps | | | | | | | ✔️ | | | ✔️ | +| CheckboxProps.ariaLabel | | | | | ✔️ | | | | | | +| CheckboxProps.onChange | | | ✔️ | | | | ✔️ | ✔️ | ✔️ | ✔️ | diff --git a/docs/components/forms/editor.md b/docs/components/forms/editor.md index ba218339365a..07272d0d290f 100644 --- a/docs/components/forms/editor.md +++ b/docs/components/forms/editor.md @@ -15,7 +15,7 @@ sidebar_label: Editor *编辑器内支持部分 HTML 标签和内联样式,不支持 **class** 和 **id*** -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/editor.html) @@ -114,17 +114,17 @@ class App extends Components { ### API 支持度 -| API | 微信小程序 | 京东小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| EditorProps.readOnly | ✔️ | ✔️ | | | | | -| EditorProps.placeholder | ✔️ | ✔️ | | | | | -| EditorProps.showImgSize | ✔️ | ✔️ | | | | | -| EditorProps.showImgToolbar | ✔️ | ✔️ | | | | | -| EditorProps.showImgResize | ✔️ | ✔️ | | | | | -| EditorProps.onReady | ✔️ | ✔️ | | | | | -| EditorProps.onFocus | ✔️ | ✔️ | | | | | -| EditorProps.onBlur | ✔️ | ✔️ | | | | | -| EditorProps.onInput | ✔️ | ✔️ | | | | | -| EditorProps.onStatusChange | ✔️ | ✔️ | | | | | +| API | 微信小程序 | 京东小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | +| EditorProps.readOnly | ✔️ | ✔️ | | | | +| EditorProps.placeholder | ✔️ | ✔️ | | | | +| EditorProps.showImgSize | ✔️ | ✔️ | | | | +| EditorProps.showImgToolbar | ✔️ | ✔️ | | | | +| EditorProps.showImgResize | ✔️ | ✔️ | | | | +| EditorProps.onReady | ✔️ | ✔️ | | | | +| EditorProps.onFocus | ✔️ | ✔️ | | | | +| EditorProps.onBlur | ✔️ | ✔️ | | | | +| EditorProps.onInput | ✔️ | ✔️ | | | | +| EditorProps.onStatusChange | ✔️ | ✔️ | | | | ### editorEventDetail diff --git a/docs/components/forms/form.md b/docs/components/forms/form.md index e0eae3fae0e4..dedf4d076298 100755 --- a/docs/components/forms/form.md +++ b/docs/components/forms/form.md @@ -7,7 +7,7 @@ sidebar_label: Form 当点击 form 表单中 form-type 为 submit 的 button 组件时,会将表单组件中的 value 值进行提交,需要在表单组件中加上 name 来作为 key。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/form.html) @@ -102,17 +102,17 @@ export default { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| FormProps.reportSubmit | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | | -| FormProps.reportSubmitTimeout | ✔️ | | | | | | | | | | | -| FormProps.reportType | | ✔️ | | | | | | | | | | -| FormProps.templateId | | ✔️ | | | | | | | | | | -| FormProps.subscribeId | | ✔️ | | | | | | | | | | -| FormProps.conversionTarget | | | | ✔️ | | | | | | | | -| FormProps.clueComponentId | | | | ✔️ | | | | | | | | -| FormProps.onSubmit | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| FormProps.onReset | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| FormProps.reportSubmit | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | +| FormProps.reportSubmitTimeout | ✔️ | | | | | | | | | | +| FormProps.reportType | | ✔️ | | | | | | | | | +| FormProps.templateId | | ✔️ | | | | | | | | | +| FormProps.subscribeId | | ✔️ | | | | | | | | | +| FormProps.conversionTarget | | | | ✔️ | | | | | | | +| FormProps.clueComponentId | | | | ✔️ | | | | | | | +| FormProps.onSubmit | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| FormProps.onReset | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ### onSubmitEventDetail diff --git a/docs/components/forms/input.md b/docs/components/forms/input.md index 54a7dd86e87a..87110477deb5 100755 --- a/docs/components/forms/input.md +++ b/docs/components/forms/input.md @@ -5,7 +5,7 @@ sidebar_label: Input 输入框。该组件是原生组件,使用时请注意相关限制 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/input.html) @@ -129,54 +129,54 @@ class App extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| InputProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| InputProps.defaultValue | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| InputProps.type | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| InputProps.password | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| InputProps.placeholder | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| InputProps.placeholderStyle | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | ✔️ | -| InputProps.placeholderClass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| InputProps.placeholderTextColor | | | | | | | | ✔️ | ✔️ | | | -| InputProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| InputProps.maxlength | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| InputProps.cursorSpacing | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | | -| InputProps.autoFocus | ✔️ | | | | ✔️ | ✔️ | ✔️ | | | ✔️ | | -| InputProps.focus | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| InputProps.confirmType | ✔️ | ✔️ | ✔️(confirm-type 与 enableNative 属性冲突,若希望 confirm-type 生效,enableNative 不能设定为 false,而且不能设定 always-system) | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | ✔️ | -| InputProps.confirmHold | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | | -| InputProps.cursor | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | | -| InputProps.cursorColor | ✔️ | | | | | | | | | | | -| InputProps.selectionStart | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | | -| InputProps.selectionEnd | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | | -| InputProps.adjustPosition | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | | | -| InputProps.holdKeyboard | ✔️ | | | ✔️ | | | | | | | | -| InputProps.alwaysEmbed | ✔️ | | | | | | | | | | | -| InputProps.safePasswordCertPath | ✔️ | | | | | | | | | | | -| InputProps.safePasswordLength | ✔️ | | | | | | | | | | | -| InputProps.safePasswordTimeStamp | ✔️ | | | | | | | | | | | -| InputProps.safePasswordNonce | ✔️ | | | | | | | | | | | -| InputProps.safePasswordSalt | ✔️ | | | | | | | | | | | -| InputProps.safePasswordCustomHash | ✔️ | | | | | | | | | | | -| InputProps.randomNumber | | | ✔️ | | | | | | | | | -| InputProps.controlled | | | ✔️ | | | | | | | | | -| InputProps.nativeProps | | | | | | | ✔️ | | | ✔️ | | -| InputProps.name | | | ✔️ | | | | | | | | | -| InputProps.alwaysSystem | | | ✔️ | | | | | | | | | -| InputProps.ariaLabel | | | | | ✔️ | | | | | | | -| InputProps.clueType | | | | ✔️ | | | | | | | | -| InputProps.onInput | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| InputProps.onFocus | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| InputProps.onBlur | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| InputProps.onConfirm | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| InputProps.onKeyboardHeightChange | ✔️ | | | ✔️ | ✔️ | | | | ✔️ | | | -| InputProps.onNickNameReview | ✔️ | | | | | | | | | | | -| InputProps.onSelectionChange | ✔️ | | | | | | | | | | | -| InputProps.onKeyboardCompositionStart | ✔️ | | | | | | | | | | | -| InputProps.onKeyboardCompositionUpdate | ✔️ | | | | | | | | | | | -| InputProps.onKeyboardCompositionEnd | ✔️ | | | | | | | | | | | -| InputProps.onKeyoardHeightChangeWorklet | ✔️ | | | | | | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| InputProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| InputProps.defaultValue | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| InputProps.type | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| InputProps.password | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| InputProps.placeholder | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| InputProps.placeholderStyle | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | +| InputProps.placeholderClass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| InputProps.placeholderTextColor | | | | | | | | ✔️ | ✔️ | | +| InputProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| InputProps.maxlength | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| InputProps.cursorSpacing | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | +| InputProps.autoFocus | ✔️ | | | | ✔️ | ✔️ | ✔️ | | | ✔️ | +| InputProps.focus | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| InputProps.confirmType | ✔️ | ✔️ | ✔️(confirm-type 与 enableNative 属性冲突,若希望 confirm-type 生效,enableNative 不能设定为 false,而且不能设定 always-system) | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | +| InputProps.confirmHold | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| InputProps.cursor | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | +| InputProps.cursorColor | ✔️ | | | | | | | | | | +| InputProps.selectionStart | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | +| InputProps.selectionEnd | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | +| InputProps.adjustPosition | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | | +| InputProps.holdKeyboard | ✔️ | | | ✔️ | | | | | | | +| InputProps.alwaysEmbed | ✔️ | | | | | | | | | | +| InputProps.safePasswordCertPath | ✔️ | | | | | | | | | | +| InputProps.safePasswordLength | ✔️ | | | | | | | | | | +| InputProps.safePasswordTimeStamp | ✔️ | | | | | | | | | | +| InputProps.safePasswordNonce | ✔️ | | | | | | | | | | +| InputProps.safePasswordSalt | ✔️ | | | | | | | | | | +| InputProps.safePasswordCustomHash | ✔️ | | | | | | | | | | +| InputProps.randomNumber | | | ✔️ | | | | | | | | +| InputProps.controlled | | | ✔️ | | | | | | | | +| InputProps.nativeProps | | | | | | | ✔️ | | | ✔️ | +| InputProps.name | | | ✔️ | | | | | | | | +| InputProps.alwaysSystem | | | ✔️ | | | | | | | | +| InputProps.ariaLabel | | | | | ✔️ | | | | | | +| InputProps.clueType | | | | ✔️ | | | | | | | +| InputProps.onInput | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| InputProps.onFocus | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| InputProps.onBlur | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| InputProps.onConfirm | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| InputProps.onKeyboardHeightChange | ✔️ | | | ✔️ | ✔️ | | | | ✔️ | | +| InputProps.onNickNameReview | ✔️ | | | | | | | | | | +| InputProps.onSelectionChange | ✔️ | | | | | | | | | | +| InputProps.onKeyboardCompositionStart | ✔️ | | | | | | | | | | +| InputProps.onKeyboardCompositionUpdate | ✔️ | | | | | | | | | | +| InputProps.onKeyboardCompositionEnd | ✔️ | | | | | | | | | | +| InputProps.onKeyoardHeightChangeWorklet | ✔️ | | | | | | | | | | ### Type @@ -196,17 +196,17 @@ Input 类型 #### API 支持度 -| API | 微信小程序 | 支付宝小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| Type.text | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| Type.number | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| Type.idcard | ✔️ | ✔️ | | ✔️ | | | | -| Type.digit | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | -| Type.safe-password | ✔️ | ✔️ | | | | | | -| Type.nickname | ✔️ | ✔️ | | | | | | -| Type.numberpad | | ✔️ | | | | | | -| Type.digitpad | | ✔️ | | | | | | -| Type.idcardpad | | ✔️ | | | | | | +| API | 微信小程序 | 支付宝小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| Type.text | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| Type.number | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| Type.idcard | ✔️ | ✔️ | | ✔️ | | | +| Type.digit | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| Type.safe-password | ✔️ | ✔️ | | | | | +| Type.nickname | ✔️ | ✔️ | | | | | +| Type.numberpad | | ✔️ | | | | | +| Type.digitpad | | ✔️ | | | | | +| Type.idcardpad | | ✔️ | | | | | ### ConfirmType diff --git a/docs/components/forms/keyboard-accessory.md b/docs/components/forms/keyboard-accessory.md index 43f36763474d..852b2a31ff2f 100644 --- a/docs/components/forms/keyboard-accessory.md +++ b/docs/components/forms/keyboard-accessory.md @@ -5,7 +5,7 @@ sidebar_label: KeyboardAccessory 设置 Input / Textarea 聚焦时键盘上方 CoverView / CoverImage 工具栏视图。需要配置 Taro 插件 `@tarojs/plugin-platform-weapp` 的 `enablekeyboardAccessory` 参数为 `true` 后才能使用,请参考:[#9548](https://github.com/NervJS/taro/issues/9548#issuecomment-891682216)。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/keyboard-accessory.html) diff --git a/docs/components/forms/label.md b/docs/components/forms/label.md index 8b3e525bf18e..6ee6f01a40f7 100755 --- a/docs/components/forms/label.md +++ b/docs/components/forms/label.md @@ -7,7 +7,7 @@ sidebar_label: Label 使用for属性找到对应的id,或者将控件放在该标签下,当点击时,就会触发对应的控件。 for优先级高于内部控件,内部有多个控件的时候默认触发第一个控件。 目前可以绑定的控件有:button, checkbox, radio, switch。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/label.html) @@ -75,6 +75,6 @@ class App extends Components { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| LabelProps.for | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| LabelProps.for | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | diff --git a/docs/components/forms/picker-view-column.md b/docs/components/forms/picker-view-column.md index 0bf7b4f0d451..db4f157f4b18 100644 --- a/docs/components/forms/picker-view-column.md +++ b/docs/components/forms/picker-view-column.md @@ -6,7 +6,7 @@ sidebar_label: PickerViewColumn 滚动选择器子项 仅可放置于 `` 中,其孩子节点的高度会自动设置成与 picker-view 的选中框的高度一致 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/picker-view-column.html) diff --git a/docs/components/forms/picker-view.md b/docs/components/forms/picker-view.md index ab7261aa78af..2eaa66035298 100755 --- a/docs/components/forms/picker-view.md +++ b/docs/components/forms/picker-view.md @@ -6,7 +6,7 @@ sidebar_label: PickerView 嵌入页面的滚动选择器 其中只可放置 picker-view-column 组件,其它节点不会显示 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/picker-view.html) @@ -181,20 +181,20 @@ export default class Picks extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| PickerViewProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | -| PickerViewProps.defaultValue | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | -| PickerViewProps.indicatorStyle | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | -| PickerViewProps.indicatorClass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | -| PickerViewProps.maskStyle | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | -| PickerViewProps.maskClass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | -| PickerViewProps.immediateChange | ✔️ | | ✔️ | ✔️ | | | | | | | -| PickerViewProps.title | | ✔️ | | | | | | | | | -| PickerViewProps.ariaLabel | | | | | ✔️ | | | | | | -| PickerViewProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | -| PickerViewProps.onPickStart | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| PickerViewProps.onPickEnd | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| PickerViewProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PickerViewProps.defaultValue | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PickerViewProps.indicatorStyle | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PickerViewProps.indicatorClass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| PickerViewProps.maskStyle | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| PickerViewProps.maskClass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| PickerViewProps.immediateChange | ✔️ | | ✔️ | ✔️ | | | | | | +| PickerViewProps.title | | ✔️ | | | | | | | | +| PickerViewProps.ariaLabel | | | | | ✔️ | | | | | +| PickerViewProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PickerViewProps.onPickStart | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | +| PickerViewProps.onPickEnd | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | ### onChangeEventDetail diff --git a/docs/components/forms/picker.md b/docs/components/forms/picker.md index 9be20b30b870..f78c6fbb7b0a 100755 --- a/docs/components/forms/picker.md +++ b/docs/components/forms/picker.md @@ -5,7 +5,7 @@ sidebar_label: Picker 从底部弹起的滚动选择器 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/picker.html) @@ -174,13 +174,13 @@ export default class PagePicker extends Component { ### API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| PickerStandardProps.headerText | ✔️ | | | | | | -| PickerStandardProps.mode | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| PickerStandardProps.disabled | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| PickerStandardProps.onCancel | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| PickerStandardProps.textProps | | ✔️ | | ✔️ | ✔️ | | +| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | +| PickerStandardProps.headerText | ✔️ | | | | | +| PickerStandardProps.mode | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| PickerStandardProps.disabled | ✔️ | ✔️ | ✔️ | | ✔️ | +| PickerStandardProps.onCancel | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| PickerStandardProps.textProps | | ✔️ | | ✔️ | ✔️ | ### Mode @@ -218,15 +218,15 @@ export default class PagePicker extends Component { ### API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| PickerSelectorProps.range | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| PickerSelectorProps.rangeKey | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| PickerSelectorProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| PickerSelectorProps.defaultValue | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| PickerSelectorProps.itemStyle | | | ✔️ | | | | -| PickerSelectorProps.indicatorStyle | | | ✔️ | | | | -| PickerSelectorProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | +| PickerSelectorProps.range | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| PickerSelectorProps.rangeKey | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| PickerSelectorProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| PickerSelectorProps.defaultValue | ✔️ | ✔️ | ✔️ | | ✔️ | +| PickerSelectorProps.itemStyle | | | ✔️ | | | +| PickerSelectorProps.indicatorStyle | | | ✔️ | | | +| PickerSelectorProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ### ChangeEventDetail @@ -251,15 +251,15 @@ export default class PagePicker extends Component { ### API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| PickerMultiSelectorProps.range | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| PickerMultiSelectorProps.rangeKey | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| PickerMultiSelectorProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| PickerMultiSelectorProps.itemStyle | | | ✔️ | | | | -| PickerMultiSelectorProps.indicatorStyle | | | ✔️ | | | | -| PickerMultiSelectorProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| PickerMultiSelectorProps.onColumnChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | +| PickerMultiSelectorProps.range | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| PickerMultiSelectorProps.rangeKey | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| PickerMultiSelectorProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| PickerMultiSelectorProps.itemStyle | | | ✔️ | | | +| PickerMultiSelectorProps.indicatorStyle | | | ✔️ | | | +| PickerMultiSelectorProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| PickerMultiSelectorProps.onColumnChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ### ChangeEventDetail @@ -289,13 +289,13 @@ export default class PagePicker extends Component { ### API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| PickerTimeProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| PickerTimeProps.defaultValue | ✔️ | ✔️ | ✔️ | | | ✔️ | -| PickerTimeProps.start | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| PickerTimeProps.end | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| PickerTimeProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | +| PickerTimeProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| PickerTimeProps.defaultValue | ✔️ | ✔️ | ✔️ | | | +| PickerTimeProps.start | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| PickerTimeProps.end | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| PickerTimeProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ### ChangeEventDetail @@ -319,14 +319,14 @@ export default class PagePicker extends Component { ### API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| PickerDateProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| PickerDateProps.defaultValue | ✔️ | ✔️ | ✔️ | | | ✔️ | -| PickerDateProps.start | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| PickerDateProps.end | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| PickerDateProps.fields | ✔️ | ✔️ | ✔️ | | ✔️ | | -| PickerDateProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | +| PickerDateProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| PickerDateProps.defaultValue | ✔️ | ✔️ | ✔️ | | | +| PickerDateProps.start | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| PickerDateProps.end | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| PickerDateProps.fields | ✔️ | ✔️ | ✔️ | | ✔️ | +| PickerDateProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ### Fields @@ -358,14 +358,14 @@ export default class PagePicker extends Component { ### API 支持度 -| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| PickerRegionProps.value | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| PickerRegionProps.defaultValue | ✔️ | ✔️ | ✔️ | | | ✔️ | -| PickerRegionProps.customItem | ✔️ | ✔️ | ✔️ | | ✔️ | | -| PickerRegionProps.level | ✔️ | | | | | | -| PickerRegionProps.regionData | | | ✔️ | | | | -| PickerRegionProps.onChange | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | +| API | 微信小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | +| PickerRegionProps.value | ✔️ | ✔️ | ✔️ | | ✔️ | +| PickerRegionProps.defaultValue | ✔️ | ✔️ | ✔️ | | | +| PickerRegionProps.customItem | ✔️ | ✔️ | ✔️ | | ✔️ | +| PickerRegionProps.level | ✔️ | | | | | +| PickerRegionProps.regionData | | | ✔️ | | | +| PickerRegionProps.onChange | ✔️ | ✔️ | ✔️ | | ✔️ | ### ChangeEventDetail diff --git a/docs/components/forms/radio-group.md b/docs/components/forms/radio-group.md index b0a2741f2474..ad608f1cf09e 100644 --- a/docs/components/forms/radio-group.md +++ b/docs/components/forms/radio-group.md @@ -5,7 +5,7 @@ sidebar_label: RadioGroup 单项选择器,内部由多个 Radio 组成。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/radio-group.html) @@ -24,10 +24,10 @@ ComponentType ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| RadioGroupProps.name | | | ✔️ | ✔️ | | | | | ✔️ | | | -| RadioGroupProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| RadioGroupProps.name | | | ✔️ | ✔️ | | | | | ✔️ | | +| RadioGroupProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ### onChangeEventDetail diff --git a/docs/components/forms/radio.md b/docs/components/forms/radio.md index 700bfce51f2a..2512f1df9831 100755 --- a/docs/components/forms/radio.md +++ b/docs/components/forms/radio.md @@ -5,7 +5,7 @@ sidebar_label: Radio 单选项目 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/radio.html) @@ -183,13 +183,13 @@ export default { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| RadioProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| RadioProps.checked | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| RadioProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| RadioProps.color | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | ✔️ | -| RadioProps.name | | | | | | | ✔️ | | ✔️ | ✔️ | | -| RadioProps.nativeProps | | | | | | | ✔️ | | | ✔️ | | -| RadioProps.ariaLabel | | | | | ✔️ | | | | | | | -| RadioProps.onChange | | | | | | | ✔️ | ✔️ | ✔️ | ✔️ | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| RadioProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| RadioProps.checked | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| RadioProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| RadioProps.color | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | +| RadioProps.name | | | | | | | ✔️ | | ✔️ | ✔️ | +| RadioProps.nativeProps | | | | | | | ✔️ | | | ✔️ | +| RadioProps.ariaLabel | | | | | ✔️ | | | | | | +| RadioProps.onChange | | | | | | | ✔️ | ✔️ | ✔️ | ✔️ | diff --git a/docs/components/forms/slider.md b/docs/components/forms/slider.md index 54c7ccf9c711..2273f3fe8d41 100755 --- a/docs/components/forms/slider.md +++ b/docs/components/forms/slider.md @@ -5,7 +5,7 @@ sidebar_label: Slider 滑动选择器 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/slider.html) @@ -91,27 +91,27 @@ export default class PageView extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| SliderProps.min | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SliderProps.max | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SliderProps.step | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SliderProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SliderProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SliderProps.defaultValue | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| SliderProps.color | ✔️ | | | ✔️ | ✔️ | ✔️ | | | ✔️ | | | -| SliderProps.selectedColor | ✔️ | | | ✔️ | ✔️ | ✔️ | | | ✔️ | | | -| SliderProps.activeColor | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SliderProps.backgroundColor | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SliderProps.blockSize | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | -| SliderProps.blockColor | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SliderProps.showValue | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SliderProps.name | | | ✔️ | | | | | | | | | -| SliderProps.trackSize | | | ✔️ | | | | | | | | | -| SliderProps.handleSize | | | ✔️ | | | | | | | | | -| SliderProps.handleColor | | | ✔️ | | | | | | | | | -| SliderProps.ariaLabel | | | | | ✔️ | | | | | | | -| SliderProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SliderProps.onChanging | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| SliderProps.min | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SliderProps.max | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SliderProps.step | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SliderProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SliderProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SliderProps.defaultValue | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| SliderProps.color | ✔️ | | | ✔️ | ✔️ | ✔️ | | | ✔️ | | +| SliderProps.selectedColor | ✔️ | | | ✔️ | ✔️ | ✔️ | | | ✔️ | | +| SliderProps.activeColor | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SliderProps.backgroundColor | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SliderProps.blockSize | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | +| SliderProps.blockColor | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SliderProps.showValue | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SliderProps.name | | | ✔️ | | | | | | | | +| SliderProps.trackSize | | | ✔️ | | | | | | | | +| SliderProps.handleSize | | | ✔️ | | | | | | | | +| SliderProps.handleColor | | | ✔️ | | | | | | | | +| SliderProps.ariaLabel | | | | | ✔️ | | | | | | +| SliderProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SliderProps.onChanging | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ### onChangeEventDetail diff --git a/docs/components/forms/switch.md b/docs/components/forms/switch.md index 6e37a49d469f..18863b5f7e89 100755 --- a/docs/components/forms/switch.md +++ b/docs/components/forms/switch.md @@ -5,7 +5,7 @@ sidebar_label: Switch 开关选择器 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/switch.html) @@ -81,18 +81,18 @@ export default class PageView extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| SwitchProps.checked | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SwitchProps.defaultChecked | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| SwitchProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SwitchProps.type | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SwitchProps.color | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SwitchProps.nativeProps | | | | | | | ✔️ | | | ✔️ | | -| SwitchProps.name | | | ✔️ | | | | | | | | | -| SwitchProps.controlled | | | ✔️ | | | | | | | | | -| SwitchProps.ariaLabel | | | | | ✔️ | | | | | | | -| SwitchProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| SwitchProps.checked | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SwitchProps.defaultChecked | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| SwitchProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | +| SwitchProps.type | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SwitchProps.color | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SwitchProps.nativeProps | | | | | | | ✔️ | | | ✔️ | +| SwitchProps.name | | | ✔️ | | | | | | | | +| SwitchProps.controlled | | | ✔️ | | | | | | | | +| SwitchProps.ariaLabel | | | | | ✔️ | | | | | | +| SwitchProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ### onChangeEventDetail diff --git a/docs/components/forms/textarea.md b/docs/components/forms/textarea.md index aefac7560220..940fc447acce 100755 --- a/docs/components/forms/textarea.md +++ b/docs/components/forms/textarea.md @@ -5,7 +5,7 @@ sidebar_label: Textarea 多行输入框。该组件是原生组件,使用时请注意相关限制 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/textarea.html) @@ -90,7 +90,7 @@ export default class PageView extends Component { | showCount | `boolean` | `true` | 否 | 是否渲染字数统计功能(是否删除默认计数器/是否显示字数统计)。 | | controlled | `boolean` | `false` | 否 | 是否为受控组件。为 true 时,value 内容会完全受 setData 控制。 | | ariaLabel | `string` | | 否 | 无障碍访问,(属性)元素的额外描述 | -| adjustKeyboardTo | `boolean` | `false` | 否 | 键盘对齐位置 | +| adjustKeyboardTo | "cursor" or "bottom" | `'cursor'` | 否 | 键盘对齐位置 | | onFocus | `CommonEventFunction` | | 否 | 输入框聚焦时触发 | | onBlur | `CommonEventFunction` | | 否 | 输入框失去焦点时触发 | | onLineChange | `CommonEventFunction` | | 否 | 输入框行数变化时调用 | @@ -104,45 +104,45 @@ export default class PageView extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| TextareaProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| TextareaProps.defaultValue | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| TextareaProps.placeholder | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| TextareaProps.placeholderStyle | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | | ✔️ | -| TextareaProps.placeholderClass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | | -| TextareaProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| TextareaProps.maxlength | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| TextareaProps.autoFocus | ✔️ | ✔️ | | | ✔️ | ✔️ | ✔️ | | | ✔️ | | -| TextareaProps.focus | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| TextareaProps.autoHeight | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| TextareaProps.fixed | ✔️ | ✔️ | | | ✔️ | ✔️ | | | | | | -| TextareaProps.cursorSpacing | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | | -| TextareaProps.cursor | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | | -| TextareaProps.showConfirmBar | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | | -| TextareaProps.selectionStart | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | ✔️ | | | | -| TextareaProps.selectionEnd | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | ✔️ | | | | -| TextareaProps.adjustPosition | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | | -| TextareaProps.holdKeyboard | ✔️ | | | ✔️ | | | | | | | | -| TextareaProps.disableDefaultPadding | ✔️ | | | ✔️ | | | | | | | | -| TextareaProps.nativeProps | | | | | | | ✔️ | | | ✔️ | | -| TextareaProps.confirmType | ✔️ | ✔️ | ✔️ | ✔️ | | | | | | | ✔️ | -| TextareaProps.confirmHold | ✔️ | ✔️ | | ✔️ | | | | | | | | -| TextareaProps.name | | | ✔️ | | | | | | | | | -| TextareaProps.showCount | | | ✔️ | | | | | | | | | -| TextareaProps.controlled | | | ✔️ | | | | | | | | | -| TextareaProps.ariaLabel | | | | | ✔️ | | | | | | | -| TextareaProps.adjustKeyboardTo | ✔️ | | | | | | | | | | | -| TextareaProps.onFocus | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| TextareaProps.onBlur | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| TextareaProps.onLineChange | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | ✔️ | | | | -| TextareaProps.onInput | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| TextareaProps.onConfirm | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| TextareaProps.onKeyboardHeightChange | ✔️ | | | ✔️ | | | | | ✔️ | | | -| TextareaProps.onSelectionChange | ✔️ | | | | | | | | | | | -| TextareaProps.onKeyboardCompositionStart | ✔️ | | | | | | | | | | | -| TextareaProps.onKeyboardCompositionUpdate | ✔️ | | | | | | | | | | | -| TextareaProps.onKeyboardCompositionEnd | ✔️ | | | | | | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| TextareaProps.value | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| TextareaProps.defaultValue | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| TextareaProps.placeholder | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| TextareaProps.placeholderStyle | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | | +| TextareaProps.placeholderClass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| TextareaProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| TextareaProps.maxlength | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| TextareaProps.autoFocus | ✔️ | ✔️ | | | ✔️ | ✔️ | ✔️ | | | ✔️ | +| TextareaProps.focus | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| TextareaProps.autoHeight | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| TextareaProps.fixed | ✔️ | ✔️ | | | ✔️ | ✔️ | | | | | +| TextareaProps.cursorSpacing | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | +| TextareaProps.cursor | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | +| TextareaProps.showConfirmBar | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | +| TextareaProps.selectionStart | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | ✔️ | | | +| TextareaProps.selectionEnd | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | ✔️ | | | +| TextareaProps.adjustPosition | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | +| TextareaProps.holdKeyboard | ✔️ | | | ✔️ | | | | | | | +| TextareaProps.disableDefaultPadding | ✔️ | | | ✔️ | | | | | | | +| TextareaProps.nativeProps | | | | | | | ✔️ | | | ✔️ | +| TextareaProps.confirmType | ✔️ | ✔️ | ✔️ | ✔️ | | | | | | | +| TextareaProps.confirmHold | ✔️ | ✔️ | | ✔️ | | | | | | | +| TextareaProps.name | | | ✔️ | | | | | | | | +| TextareaProps.showCount | | | ✔️ | | | | | | | | +| TextareaProps.controlled | | | ✔️ | | | | | | | | +| TextareaProps.ariaLabel | | | | | ✔️ | | | | | | +| TextareaProps.adjustKeyboardTo | ✔️ | | | | | | | | | | +| TextareaProps.onFocus | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| TextareaProps.onBlur | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| TextareaProps.onLineChange | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | ✔️ | | | +| TextareaProps.onInput | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| TextareaProps.onConfirm | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| TextareaProps.onKeyboardHeightChange | ✔️ | | | ✔️ | | | | | ✔️ | | +| TextareaProps.onSelectionChange | ✔️ | | | | | | | | | | +| TextareaProps.onKeyboardCompositionStart | ✔️ | | | | | | | | | | +| TextareaProps.onKeyboardCompositionUpdate | ✔️ | | | | | | | | | | +| TextareaProps.onKeyboardCompositionEnd | ✔️ | | | | | | | | | | ### onFocusEventDetail diff --git a/docs/components/list-item.md b/docs/components/list-item.md new file mode 100644 index 000000000000..3baaf4676730 --- /dev/null +++ b/docs/components/list-item.md @@ -0,0 +1,10 @@ +--- +title: ListItem +sidebar_label: ListItem +--- + +## 类型 + +```tsx +ComponentType +``` diff --git a/docs/components/list.md b/docs/components/list.md new file mode 100644 index 000000000000..5f03e2bf50df --- /dev/null +++ b/docs/components/list.md @@ -0,0 +1,24 @@ +--- +title: List +sidebar_label: List +--- + +## 类型 + +```tsx +ComponentType> +``` + +## ListProps + +| 参数 | 类型 | 默认值 | 必填 | 说明 | +| --- | --- | :---: | :---: | --- | +| upperThreshold | `number` | `50` | 否 | 距顶部/左边多远时(单位px),触发 scrolltoupper 事件 | +| lowerThreshold | `number` | `50` | 否 | 距底部/右边多远时(单位px),触发 scrolltolower 事件 | + +### API 支持度 + +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| ListProps.upperThreshold | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ListProps.lowerThreshold | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | diff --git a/docs/components/maps/map.md b/docs/components/maps/map.md index 34f0c5b3e851..fbea4ce92ad2 100755 --- a/docs/components/maps/map.md +++ b/docs/components/maps/map.md @@ -5,7 +5,7 @@ sidebar_label: Map 地图。相关api Taro.createMapContext。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/map.html#map) @@ -158,64 +158,64 @@ export default { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| MapProps.longitude | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | -| MapProps.latitude | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | -| MapProps.scale | ✔️ | ✔️(取值范围为4-21) | ✔️(取值范围为5-18) | ✔️ | ✔️ | ✔️ | | | | ✔️ | -| MapProps.minScale | ✔️ | | | ✔️ | | | | | | | -| MapProps.maxScale | ✔️ | | | ✔️ | | | | | | | -| MapProps.markers | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | -| MapProps.covers | ✔️ | | | | | | | | | | -| MapProps.polyline | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | -| MapProps.circles | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | -| MapProps.controls | ✔️ | ✔️ | ✔️ | | | ✔️ | | | | | -| MapProps.includePoints | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | -| MapProps.showLocation | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | -| MapProps.polygons | ✔️ | ✔️ | | ✔️ | ✔️ | | | | | | -| MapProps.subkey | ✔️ | | | | ✔️ | | | | | | -| MapProps.layerStyle | ✔️ | | | | ✔️ | | | | | | -| MapProps.rotate | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | | -| MapProps.skew | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | | -| MapProps.showCompass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | | -| MapProps.showScale | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | | -| MapProps.enableOverlooking | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | | -| MapProps.enableZoom | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | | -| MapProps.enableScroll | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | | -| MapProps.enableRotate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | | -| MapProps.enableSatellite | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | | -| MapProps.enableTraffic | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | | -| MapProps.setting | ✔️ | | ✔️ | | ✔️ | | | | | | -| MapProps.includePadding | | | ✔️ | | | | | | | | -| MapProps.groundOverlays | | | ✔️ | | | | | | | | -| MapProps.tileOverlay | | | ✔️ | | | | | | | | -| MapProps.enablePoi | ✔️ | | ✔️ | ✔️ | | | | | | | -| MapProps.enableBuilding | ✔️ | | ✔️ | ✔️ | | | | | | | -| MapProps.polygon | | | ✔️ | | | | | | | | -| MapProps.customMapStyle | | | ✔️ | | | | | | | | -| MapProps.panels | | | ✔️ | | | | | | | | -| MapProps.theme | | | | | | ✔️ | | | | | -| MapProps.optimize | | | ✔️ | | | | | | | | -| MapProps.enableAutoMaxOverlooking | ✔️ | | | | | | | | | | -| MapProps.enable3D | ✔️ | ✔️ | | ✔️ | ✔️ | | | | | | -| MapProps.onTap | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | -| MapProps.onMarkerTap | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | -| MapProps.onLabelTap | ✔️ | | | ✔️ | | | | | | | -| MapProps.onControlTap | ✔️ | ✔️ | ✔️ | | | ✔️ | | | | | -| MapProps.onCalloutTap | | | ✔️ | | | | | | | ✔️ | -| MapProps.onUpdated | ✔️ | ✔️ | | ✔️ | ✔️ | | | | | ✔️ | -| MapProps.onRegionChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | -| MapProps.onPoiTap | ✔️ | ✔️ | | | ✔️ | | | | | | -| MapProps.onPolylineTap | ✔️ | ✔️ | | | ✔️ | | | | | | -| MapProps.onAbilitySuccess | ✔️ | | | | | | | | | | -| MapProps.onAbilityFailed | ✔️ | | | | | | | | | | -| MapProps.onAuthSuccess | ✔️ | | | | | | | | | | -| MapProps.onInterpolatePoint | ✔️ | | | | | | | | | | -| MapProps.onError | ✔️ | | | | | | | | | | -| MapProps.onCallOutTap | ✔️ | ✔️ | | ✔️ | | ✔️ | | | | ✔️ | -| MapProps.onAnchorPointTap | ✔️ | | | ✔️ | | | | | | | -| MapProps.onPanelTap | | | ✔️ | | | | | | | | -| MapProps.onInitComplete | | | ✔️ | | | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| MapProps.longitude | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| MapProps.latitude | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| MapProps.scale | ✔️ | ✔️(取值范围为4-21) | ✔️(取值范围为5-18) | ✔️ | ✔️ | ✔️ | | | | +| MapProps.minScale | ✔️ | | | ✔️ | | | | | | +| MapProps.maxScale | ✔️ | | | ✔️ | | | | | | +| MapProps.markers | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| MapProps.covers | ✔️ | | | | | | | | | +| MapProps.polyline | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| MapProps.circles | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| MapProps.controls | ✔️ | ✔️ | ✔️ | | | ✔️ | | | | +| MapProps.includePoints | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| MapProps.showLocation | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| MapProps.polygons | ✔️ | ✔️ | | ✔️ | ✔️ | | | | | +| MapProps.subkey | ✔️ | | | | ✔️ | | | | | +| MapProps.layerStyle | ✔️ | | | | ✔️ | | | | | +| MapProps.rotate | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | +| MapProps.skew | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | +| MapProps.showCompass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| MapProps.showScale | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | +| MapProps.enableOverlooking | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| MapProps.enableZoom | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| MapProps.enableScroll | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| MapProps.enableRotate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| MapProps.enableSatellite | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | +| MapProps.enableTraffic | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | +| MapProps.setting | ✔️ | | ✔️ | | ✔️ | | | | | +| MapProps.includePadding | | | ✔️ | | | | | | | +| MapProps.groundOverlays | | | ✔️ | | | | | | | +| MapProps.tileOverlay | | | ✔️ | | | | | | | +| MapProps.enablePoi | ✔️ | | ✔️ | ✔️ | | | | | | +| MapProps.enableBuilding | ✔️ | | ✔️ | ✔️ | | | | | | +| MapProps.polygon | | | ✔️ | | | | | | | +| MapProps.customMapStyle | | | ✔️ | | | | | | | +| MapProps.panels | | | ✔️ | | | | | | | +| MapProps.theme | | | | | | ✔️ | | | | +| MapProps.optimize | | | ✔️ | | | | | | | +| MapProps.enableAutoMaxOverlooking | ✔️ | | | | | | | | | +| MapProps.enable3D | ✔️ | ✔️ | | ✔️ | ✔️ | | | | | +| MapProps.onTap | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| MapProps.onMarkerTap | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| MapProps.onLabelTap | ✔️ | | | ✔️ | | | | | | +| MapProps.onControlTap | ✔️ | ✔️ | ✔️ | | | ✔️ | | | | +| MapProps.onCalloutTap | | | ✔️ | | | | | | | +| MapProps.onUpdated | ✔️ | ✔️ | | ✔️ | ✔️ | | | | | +| MapProps.onRegionChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| MapProps.onPoiTap | ✔️ | ✔️ | | | ✔️ | | | | | +| MapProps.onPolylineTap | ✔️ | ✔️ | | | ✔️ | | | | | +| MapProps.onAbilitySuccess | ✔️ | | | | | | | | | +| MapProps.onAbilityFailed | ✔️ | | | | | | | | | +| MapProps.onAuthSuccess | ✔️ | | | | | | | | | +| MapProps.onInterpolatePoint | ✔️ | | | | | | | | | +| MapProps.onError | ✔️ | | | | | | | | | +| MapProps.onCallOutTap | ✔️ | ✔️ | | ✔️ | | ✔️ | | | | +| MapProps.onAnchorPointTap | ✔️ | | | ✔️ | | | | | | +| MapProps.onPanelTap | | | ✔️ | | | | | | | +| MapProps.onInitComplete | | | ✔️ | | | | | | | ### marker diff --git a/docs/components/media/audio.md b/docs/components/media/audio.md index bfc34edd69e7..016c39337a62 100755 --- a/docs/components/media/audio.md +++ b/docs/components/media/audio.md @@ -5,7 +5,7 @@ sidebar_label: Audio 音频。1.6.0版本开始,该组件不再维护。建议使用能力更强的 Taro.createInnerAudioContext 接口 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/audio.html) @@ -90,22 +90,22 @@ export default class PageView extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | QQ 小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| AudioProps.id | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| AudioProps.src | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| AudioProps.loop | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| AudioProps.muted | | | | ✔️ | | | ✔️ | | -| AudioProps.controls | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| AudioProps.poster | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| AudioProps.name | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| AudioProps.author | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| AudioProps.nativeProps | | | | ✔️ | | | ✔️ | | -| AudioProps.onError | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| AudioProps.onPlay | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| AudioProps.onPause | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| AudioProps.onTimeUpdate | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| AudioProps.onEnded | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | +| API | 微信小程序 | 百度小程序 | QQ 小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| AudioProps.id | ✔️ | ✔️ | ✔️ | | | | | +| AudioProps.src | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| AudioProps.loop | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| AudioProps.muted | | | | ✔️ | | | ✔️ | +| AudioProps.controls | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| AudioProps.poster | ✔️ | ✔️ | ✔️ | | | | | +| AudioProps.name | ✔️ | ✔️ | ✔️ | | | | | +| AudioProps.author | ✔️ | ✔️ | ✔️ | | | | | +| AudioProps.nativeProps | | | | ✔️ | | | ✔️ | +| AudioProps.onError | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| AudioProps.onPlay | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| AudioProps.onPause | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| AudioProps.onTimeUpdate | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| AudioProps.onEnded | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ### onErrorEventDetail diff --git a/docs/components/media/camera.md b/docs/components/media/camera.md index cc3873a48a41..0f6dd3f94728 100755 --- a/docs/components/media/camera.md +++ b/docs/components/media/camera.md @@ -5,7 +5,7 @@ sidebar_label: Camera 系统相机 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/camera.html) @@ -33,19 +33,19 @@ ComponentType ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| CameraProps.mode | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | -| CameraProps.resolution | ✔️ | | | ✔️ | | | | | | | -| CameraProps.devicePosition | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | -| CameraProps.flash | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | -| CameraProps.frameSize | ✔️ | | ✔️ | ✔️ | | | | | | | -| CameraProps.outputDimension | | | ✔️ | | | | | | | | -| CameraProps.onStop | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | -| CameraProps.onError | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | -| CameraProps.onInitDone | ✔️ | | | ✔️ | | | | ✔️ | | ✔️ | -| CameraProps.onReady | | | ✔️ | | | | | | | | -| CameraProps.onScanCode | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| CameraProps.mode | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | +| CameraProps.resolution | ✔️ | | | ✔️ | | | | | | +| CameraProps.devicePosition | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | +| CameraProps.flash | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | +| CameraProps.frameSize | ✔️ | | ✔️ | ✔️ | | | | | | +| CameraProps.outputDimension | | | ✔️ | | | | | | | +| CameraProps.onStop | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | +| CameraProps.onError | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | +| CameraProps.onInitDone | ✔️ | | | ✔️ | | | | ✔️ | | +| CameraProps.onReady | | | ✔️ | | | | | | | +| CameraProps.onScanCode | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | | ### Mode @@ -114,7 +114,7 @@ frame-size 的合法值 #### API 支持度 -| API | 微信小程序 | 支付宝小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| onScanCodeEventDetail.rawData | ✔️ | | | | | | -| onScanCodeEventDetail.fullResult | | ✔️ | | | | | +| API | 微信小程序 | 支付宝小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | +| onScanCodeEventDetail.rawData | ✔️ | | | | | +| onScanCodeEventDetail.fullResult | | ✔️ | | | | diff --git a/docs/components/media/image.md b/docs/components/media/image.md index 40b8dd5df295..228596bb55a0 100755 --- a/docs/components/media/image.md +++ b/docs/components/media/image.md @@ -7,7 +7,7 @@ sidebar_label: Image **Note:** 为实现小程序的 `mode` 特性,在 H5 组件中使用一个 `div` 容器来对内部的 `img` 进行展示区域的裁剪,因此请勿使用元素选择器来重置 `img` 的样式! -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/image.html) @@ -95,26 +95,26 @@ export default class PageView extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| ImageProps.src | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| ImageProps.mode | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️(部分支持 scaleToFill, aspectFit, aspectFill, widthFix) | ✔️(部分支持 scaleToFill, aspectFit, aspectFill, widthFix, heightFix) | ✔️ | ✔️ | -| ImageProps.webp | ✔️ | ✔️ | | | | | | | | | | -| ImageProps.svg | | | | | | | | ✔️ | | | | -| ImageProps.lazyLoad | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | ✔️ | ✔️ | -| ImageProps.showMenuByLongpress | ✔️ | | | | | | | | | | | -| ImageProps.imgProps | | | | | | | ✔️ | | | ✔️ | | -| ImageProps.nativeProps | | | | | | | ✔️ | | | ✔️ | | -| ImageProps.defaultSource | | | ✔️ | | | | | | | | | -| ImageProps.imageMenuPrevent | | ✔️ | | | | | | | | | | -| ImageProps.preview | | ✔️ | | | | | | | | | | -| ImageProps.originalSrc | | ✔️ | | | | | | | | | | -| ImageProps.ariaLabel | | | | | ✔️ | | | | | | | -| ImageProps.fadeIn | ✔️ | | | | | | | | | | | -| ImageProps.onError | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ImageProps.onLoad | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ImageProps.onTap | | | ✔️ | | | | | | | | | -| ImageProps.catchTap | | | ✔️ | | | | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| ImageProps.src | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| ImageProps.mode | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️(部分支持 scaleToFill, aspectFit, aspectFill, widthFix) | ✔️(部分支持 scaleToFill, aspectFit, aspectFill, widthFix, heightFix) | ✔️ | +| ImageProps.webp | ✔️ | ✔️ | | | | | | | | | +| ImageProps.svg | | | | | | | | ✔️ | | | +| ImageProps.lazyLoad | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | ✔️ | +| ImageProps.showMenuByLongpress | ✔️ | | | | | | | | | | +| ImageProps.imgProps | | | | | | | ✔️ | | | ✔️ | +| ImageProps.nativeProps | | | | | | | ✔️ | | | ✔️ | +| ImageProps.defaultSource | | | ✔️ | | | | | | | | +| ImageProps.imageMenuPrevent | | ✔️ | | | | | | | | | +| ImageProps.preview | | ✔️ | | | | | | | | | +| ImageProps.originalSrc | | ✔️ | | | | | | | | | +| ImageProps.ariaLabel | | | | | ✔️ | | | | | | +| ImageProps.fadeIn | ✔️ | | | | | | | | | | +| ImageProps.onError | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ImageProps.onLoad | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ImageProps.onTap | | | ✔️ | | | | | | | | +| ImageProps.catchTap | | | ✔️ | | | | | | | | ### Mode diff --git a/docs/components/media/video.md b/docs/components/media/video.md index 5ed4b5b6d0e5..b872c2ae4bcc 100755 --- a/docs/components/media/video.md +++ b/docs/components/media/video.md @@ -5,7 +5,7 @@ sidebar_label: Video 视频。相关api:Taro.createVideoContext -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/video.html) @@ -175,106 +175,106 @@ export default class PageView extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| VideoProps.src | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| VideoProps.duration | ✔️ | | ✔️ | | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| VideoProps.controls | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| VideoProps.danmuList | ✔️ | ✔️ | | | ✔️ | | ✔️ | | | ✔️ | | -| VideoProps.danmuBtn | ✔️ | ✔️ | | | ✔️ | | ✔️ | | | ✔️ | | -| VideoProps.enableDanmu | ✔️ | ✔️ | | | ✔️ | | ✔️ | | | ✔️ | | -| VideoProps.autoplay | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| VideoProps.loop | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| VideoProps.muted | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| VideoProps.initialTime | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| VideoProps.pageGesture | ✔️ | ✔️ | | | ✔️ | | | | | | | -| VideoProps.direction | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | | ✔️ | -| VideoProps.showProgress | ✔️ | ✔️ | | | ✔️ | | ✔️ | | | ✔️ | | -| VideoProps.showFullscreenBtn | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | ✔️ | ✔️ | -| VideoProps.showPlayBtn | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | ✔️ | ✔️ | -| VideoProps.showCenterPlayBtn | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | ✔️ | | ✔️ | | -| VideoProps.enableProgressGesture | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | ✔️ | ✔️ | -| VideoProps.objectFit | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | -| VideoProps.poster | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| VideoProps.showMuteBtn | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | ✔️ | ✔️ | -| VideoProps.title | ✔️ | ✔️ | | | ✔️ | | | | | | ✔️ | -| VideoProps.playBtnPosition | ✔️ | | | ✔️ | ✔️ | | | | | | ✔️ | -| VideoProps.enablePlayGesture | ✔️ | ✔️ | | ✔️ | ✔️ | | ✔️ | | | ✔️ | ✔️ | -| VideoProps.autoPauseIfNavigate | ✔️ | | | | ✔️ | | | | | | | -| VideoProps.autoPauseIfOpenNative | ✔️ | | | | ✔️ | | | | | | | -| VideoProps.vslideGesture | ✔️ | ✔️ | | ✔️ | | | ✔️ | | | ✔️ | ✔️ | -| VideoProps.vslideGestureInFullscreen | ✔️ | ✔️ | | ✔️ | | | ✔️ | | | ✔️ | ✔️ | -| VideoProps.adUnitId | ✔️ | | | | | | | | | | | -| VideoProps.posterForCrawler | ✔️ | | | | | | | | | | | -| VideoProps.showCastingButton | ✔️ | | | | | | | | | | ✔️ | -| VideoProps.pictureInPictureMode | ✔️ | | | | | | | | | | | -| VideoProps.enableAutoRotation | ✔️ | | | | | | | | | | ✔️ | -| VideoProps.showScreenLockButton | ✔️ | | | ✔️ | | | | | | | ✔️ | -| VideoProps.showSnapshotButton | ✔️ | | | | | | | | | | | -| VideoProps.showBackgroundPlaybackButton | ✔️ | | | | | | | | | | | -| VideoProps.backgroundPoster | ✔️ | | | | | | | | | | | -| VideoProps.nativeProps | | | | | | | ✔️ | | | ✔️ | | -| VideoProps.showBottomProgress | ✔️ | | | | | | | | | | | -| VideoProps.pictureInPictureShowProgress | ✔️ | | | | | | | | | | | -| VideoProps.referrerPolicy | ✔️ | | | | | | | | | | | -| VideoProps.isDrm | ✔️ | | | | | | | | | | | -| VideoProps.provisionUrl | ✔️ | | | | | | | | | | | -| VideoProps.certificateUrl | ✔️ | | | | | | | | | | | -| VideoProps.licenseUrl | ✔️ | | | | | | | | | | | -| VideoProps.posterSize | | | ✔️ | | | | | | | | | -| VideoProps.showThinProgressBar | | | ✔️ | | | | | | | | | -| VideoProps.mobilenetHintType | | | ✔️ | | | ✔️ | | | | | | -| VideoProps.floatingMode | | | ✔️ | | | | | | | | | -| VideoProps.showNoWifiTip | | ✔️ | | | | | | | | | | -| VideoProps.showLockBtn | | ✔️ | | | | | | | | | | -| VideoProps.showRateBtn | | ✔️ | | | | | | | | | | -| VideoProps.showVslideBtnInFullscreen | | ✔️ | | | | | | | | | | -| VideoProps.silentPlay | | ✔️ | | | | | | | | | | -| VideoProps.preRollUnitId | | | | ✔️ | | | | | | | | -| VideoProps.postRollUnitId | | | | ✔️ | | | | | | | | -| VideoProps.showPlaybackRateBtn | | | | ✔️ | | | | | | | | -| VideoProps.enablePlayInBackground | | | | ✔️ | | | | | | | | -| VideoProps.signature | | | | ✔️ | | | | | | | | -| VideoProps.preferredPeakBitRate | ✔️ | | | | | | | | | | | -| VideoProps.isLive | ✔️ | | | | | | | | | | | -| VideoProps.definition | | | | ✔️ | | | | | | | | -| VideoProps.onPlay | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| VideoProps.onPause | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| VideoProps.onEnded | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| VideoProps.onTimeUpdate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| VideoProps.onFullscreenChange | | | ✔️ | | | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| VideoProps.onWaiting | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| VideoProps.onError | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| VideoProps.onProgress | ✔️ | | | ✔️ | ✔️ | | ✔️ | | ✔️ | ✔️ | ✔️ | -| VideoProps.onLoadedMetaData | ✔️ | ✔️ | | ✔️ | | ✔️ | | ✔️ | ✔️ | | ✔️ | -| VideoProps.onEnterPictureInPicture | ✔️ | | | | | | | | | | | -| VideoProps.onLeavePictureInPicture | ✔️ | | | | | | | | | | | -| VideoProps.onSeekComplete | ✔️ | | | ✔️ | | | | | | | ✔️ | -| VideoProps.onFullScreenChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| VideoProps.onControlsToggle | ✔️ | ✔️ | | | | | | | | | ✔️ | -| VideoProps.onLoading | | | ✔️ | | | | | | | | | -| VideoProps.onTap | | | ✔️ | | | | | | | | | -| VideoProps.onUserAction | | | ✔️ | | | | | | | | | -| VideoProps.onStop | | | ✔️ | | | | | | | | | -| VideoProps.onRenderStart | | | ✔️ | | | | | | | | | -| VideoProps.onAdStart | | | | ✔️ | | | | | | | | -| VideoProps.onAdEnded | | | | ✔️ | | | | | | | | -| VideoProps.onAdClose | | | | ✔️ | | | | | | | | -| VideoProps.onAdError | | | | ✔️ | | | | | | | | -| VideoProps.onPlayBackRateChange | | | | ✔️ | | | | | | | | -| VideoProps.onMuteChange | | | | ✔️ | | | | | | | | -| VideoProps.onControlTap | | | | ✔️ | | | | | | | | -| VideoProps.onEnterBackground | | | | ✔️ | | | | | | | | -| VideoProps.onCloseBackground | | | | ✔️ | | | | | | | | -| VideoProps.onLeaveBackground | | | | ✔️ | | | | | | | | -| VideoProps.onLoadedData | | | | | | ✔️ | | | | | | -| VideoProps.onLoadStart | | | | | | ✔️ | | | | | | -| VideoProps.onSeeked | | | | | | ✔️ | | | ✔️ | | | -| VideoProps.onSeeking | | | | | | ✔️ | | | ✔️ | | | -| VideoProps.onAdLoad | | | | ✔️ | | | | | | | | -| VideoProps.onCastingUserSelect | ✔️ | | | | | | | | | | ✔️ | -| VideoProps.onCastingStateChange | ✔️ | | | | | | | | | | ✔️ | -| VideoProps.onCastingInterrupt | ✔️ | | | | | | | | | | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| VideoProps.src | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| VideoProps.duration | ✔️ | | ✔️ | | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | +| VideoProps.controls | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| VideoProps.danmuList | ✔️ | ✔️ | | | ✔️ | | ✔️ | | | ✔️ | +| VideoProps.danmuBtn | ✔️ | ✔️ | | | ✔️ | | ✔️ | | | ✔️ | +| VideoProps.enableDanmu | ✔️ | ✔️ | | | ✔️ | | ✔️ | | | ✔️ | +| VideoProps.autoplay | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| VideoProps.loop | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| VideoProps.muted | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| VideoProps.initialTime | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| VideoProps.pageGesture | ✔️ | ✔️ | | | ✔️ | | | | | | +| VideoProps.direction | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | | +| VideoProps.showProgress | ✔️ | ✔️ | | | ✔️ | | ✔️ | | | ✔️ | +| VideoProps.showFullscreenBtn | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | ✔️ | +| VideoProps.showPlayBtn | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | ✔️ | +| VideoProps.showCenterPlayBtn | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | ✔️ | | ✔️ | +| VideoProps.enableProgressGesture | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | ✔️ | +| VideoProps.objectFit | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | +| VideoProps.poster | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| VideoProps.showMuteBtn | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | ✔️ | +| VideoProps.title | ✔️ | ✔️ | | | ✔️ | | | | | | +| VideoProps.playBtnPosition | ✔️ | | | ✔️ | ✔️ | | | | | | +| VideoProps.enablePlayGesture | ✔️ | ✔️ | | ✔️ | ✔️ | | ✔️ | | | ✔️ | +| VideoProps.autoPauseIfNavigate | ✔️ | | | | ✔️ | | | | | | +| VideoProps.autoPauseIfOpenNative | ✔️ | | | | ✔️ | | | | | | +| VideoProps.vslideGesture | ✔️ | ✔️ | | ✔️ | | | ✔️ | | | ✔️ | +| VideoProps.vslideGestureInFullscreen | ✔️ | ✔️ | | ✔️ | | | ✔️ | | | ✔️ | +| VideoProps.adUnitId | ✔️ | | | | | | | | | | +| VideoProps.posterForCrawler | ✔️ | | | | | | | | | | +| VideoProps.showCastingButton | ✔️ | | | | | | | | | | +| VideoProps.pictureInPictureMode | ✔️ | | | | | | | | | | +| VideoProps.enableAutoRotation | ✔️ | | | | | | | | | | +| VideoProps.showScreenLockButton | ✔️ | | | ✔️ | | | | | | | +| VideoProps.showSnapshotButton | ✔️ | | | | | | | | | | +| VideoProps.showBackgroundPlaybackButton | ✔️ | | | | | | | | | | +| VideoProps.backgroundPoster | ✔️ | | | | | | | | | | +| VideoProps.nativeProps | | | | | | | ✔️ | | | ✔️ | +| VideoProps.showBottomProgress | ✔️ | | | | | | | | | | +| VideoProps.pictureInPictureShowProgress | ✔️ | | | | | | | | | | +| VideoProps.referrerPolicy | ✔️ | | | | | | | | | | +| VideoProps.isDrm | ✔️ | | | | | | | | | | +| VideoProps.provisionUrl | ✔️ | | | | | | | | | | +| VideoProps.certificateUrl | ✔️ | | | | | | | | | | +| VideoProps.licenseUrl | ✔️ | | | | | | | | | | +| VideoProps.posterSize | | | ✔️ | | | | | | | | +| VideoProps.showThinProgressBar | | | ✔️ | | | | | | | | +| VideoProps.mobilenetHintType | | | ✔️ | | | ✔️ | | | | | +| VideoProps.floatingMode | | | ✔️ | | | | | | | | +| VideoProps.showNoWifiTip | | ✔️ | | | | | | | | | +| VideoProps.showLockBtn | | ✔️ | | | | | | | | | +| VideoProps.showRateBtn | | ✔️ | | | | | | | | | +| VideoProps.showVslideBtnInFullscreen | | ✔️ | | | | | | | | | +| VideoProps.silentPlay | | ✔️ | | | | | | | | | +| VideoProps.preRollUnitId | | | | ✔️ | | | | | | | +| VideoProps.postRollUnitId | | | | ✔️ | | | | | | | +| VideoProps.showPlaybackRateBtn | | | | ✔️ | | | | | | | +| VideoProps.enablePlayInBackground | | | | ✔️ | | | | | | | +| VideoProps.signature | | | | ✔️ | | | | | | | +| VideoProps.preferredPeakBitRate | ✔️ | | | | | | | | | | +| VideoProps.isLive | ✔️ | | | | | | | | | | +| VideoProps.definition | | | | ✔️ | | | | | | | +| VideoProps.onPlay | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| VideoProps.onPause | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| VideoProps.onEnded | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| VideoProps.onTimeUpdate | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| VideoProps.onFullscreenChange | | | ✔️ | | | | ✔️ | ✔️ | ✔️ | ✔️ | +| VideoProps.onWaiting | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | +| VideoProps.onError | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| VideoProps.onProgress | ✔️ | | | ✔️ | ✔️ | | ✔️ | | ✔️ | ✔️ | +| VideoProps.onLoadedMetaData | ✔️ | ✔️ | | ✔️ | | ✔️ | | ✔️ | ✔️ | | +| VideoProps.onEnterPictureInPicture | ✔️ | | | | | | | | | | +| VideoProps.onLeavePictureInPicture | ✔️ | | | | | | | | | | +| VideoProps.onSeekComplete | ✔️ | | | ✔️ | | | | | | | +| VideoProps.onFullScreenChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| VideoProps.onControlsToggle | ✔️ | ✔️ | | | | | | | | | +| VideoProps.onLoading | | | ✔️ | | | | | | | | +| VideoProps.onTap | | | ✔️ | | | | | | | | +| VideoProps.onUserAction | | | ✔️ | | | | | | | | +| VideoProps.onStop | | | ✔️ | | | | | | | | +| VideoProps.onRenderStart | | | ✔️ | | | | | | | | +| VideoProps.onAdStart | | | | ✔️ | | | | | | | +| VideoProps.onAdEnded | | | | ✔️ | | | | | | | +| VideoProps.onAdClose | | | | ✔️ | | | | | | | +| VideoProps.onAdError | | | | ✔️ | | | | | | | +| VideoProps.onPlayBackRateChange | | | | ✔️ | | | | | | | +| VideoProps.onMuteChange | | | | ✔️ | | | | | | | +| VideoProps.onControlTap | | | | ✔️ | | | | | | | +| VideoProps.onEnterBackground | | | | ✔️ | | | | | | | +| VideoProps.onCloseBackground | | | | ✔️ | | | | | | | +| VideoProps.onLeaveBackground | | | | ✔️ | | | | | | | +| VideoProps.onLoadedData | | | | | | ✔️ | | | | | +| VideoProps.onLoadStart | | | | | | ✔️ | | | | | +| VideoProps.onSeeked | | | | | | ✔️ | | | ✔️ | | +| VideoProps.onSeeking | | | | | | ✔️ | | | ✔️ | | +| VideoProps.onAdLoad | | | | ✔️ | | | | | | | +| VideoProps.onCastingUserSelect | ✔️ | | | | | | | | | | +| VideoProps.onCastingStateChange | ✔️ | | | | | | | | | | +| VideoProps.onCastingInterrupt | ✔️ | | | | | | | | | | ### direction @@ -316,10 +316,10 @@ playBtnPosition 的合法值 #### API 支持度 -| API | 微信小程序 | 支付宝小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| onTimeUpdateEventDetail.userPlayDuration | | ✔️ | | | | | -| onTimeUpdateEventDetail.videoDuration | | ✔️ | | | | | +| API | 微信小程序 | 支付宝小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | +| onTimeUpdateEventDetail.userPlayDuration | | ✔️ | | | | +| onTimeUpdateEventDetail.videoDuration | | ✔️ | | | | ### onFullscreenChangeEventDetail diff --git a/docs/components/navig/navigator.md b/docs/components/navig/navigator.md index a56534a35e1d..eaed65c66531 100755 --- a/docs/components/navig/navigator.md +++ b/docs/components/navig/navigator.md @@ -5,7 +5,7 @@ sidebar_label: Navigator 页面链接 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html) @@ -39,25 +39,25 @@ ComponentType ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| NavigatorProps.target | ✔️ | ✔️ | | | ✔️ | | | | | | ✔️ | -| NavigatorProps.url | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| NavigatorProps.openType | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| NavigatorProps.delta | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| NavigatorProps.appId | ✔️ | ✔️ | | | ✔️ | | | | | | | -| NavigatorProps.path | ✔️ | ✔️ | | | ✔️ | | | | | | | -| NavigatorProps.extraData | ✔️ | ✔️ | | | ✔️ | | | | | | | -| NavigatorProps.version | ✔️ | ✔️ | | | ✔️ | | | | | | | -| NavigatorProps.hoverClass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| NavigatorProps.hoverStopPropagation | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| NavigatorProps.hoverStartTime | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| NavigatorProps.hoverStayTime | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| NavigatorProps.shortLink | ✔️ | | | | | | | | | | | -| NavigatorProps.ariaLabel | | | | | ✔️ | | | | | | | -| NavigatorProps.onSuccess | ✔️ | ✔️ | | | ✔️ | | ✔️ | | | ✔️ | | -| NavigatorProps.onFail | ✔️ | ✔️ | | | ✔️ | | ✔️ | | | ✔️ | | -| NavigatorProps.onComplete | ✔️ | ✔️ | | | ✔️ | | ✔️ | | | ✔️ | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| NavigatorProps.target | ✔️ | ✔️ | | | ✔️ | | | | | | +| NavigatorProps.url | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| NavigatorProps.openType | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| NavigatorProps.delta | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| NavigatorProps.appId | ✔️ | ✔️ | | | ✔️ | | | | | | +| NavigatorProps.path | ✔️ | ✔️ | | | ✔️ | | | | | | +| NavigatorProps.extraData | ✔️ | ✔️ | | | ✔️ | | | | | | +| NavigatorProps.version | ✔️ | ✔️ | | | ✔️ | | | | | | +| NavigatorProps.hoverClass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| NavigatorProps.hoverStopPropagation | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | +| NavigatorProps.hoverStartTime | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| NavigatorProps.hoverStayTime | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| NavigatorProps.shortLink | ✔️ | | | | | | | | | | +| NavigatorProps.ariaLabel | | | | | ✔️ | | | | | | +| NavigatorProps.onSuccess | ✔️ | ✔️ | | | ✔️ | | ✔️ | | | ✔️ | +| NavigatorProps.onFail | ✔️ | ✔️ | | | ✔️ | | ✔️ | | | ✔️ | +| NavigatorProps.onComplete | ✔️ | ✔️ | | | ✔️ | | ✔️ | | | ✔️ | ### Target diff --git a/docs/components/open/web-view.md b/docs/components/open/web-view.md index ff4914b23d45..18a4e44f8ef2 100755 --- a/docs/components/open/web-view.md +++ b/docs/components/open/web-view.md @@ -5,7 +5,7 @@ sidebar_label: WebView web-view 组件是一个可以用来承载网页的容器,会自动铺满整个小程序页面。个人类型与海外类型的小程序暂不支持使用。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html) @@ -61,14 +61,14 @@ class App extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| WebViewProps.src | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| WebViewProps.progressbarColor | | | | ✔️ | | | | | | | | -| WebViewProps.type | | | | ✔️ | | | | | | | | -| WebViewProps.onMessage | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| WebViewProps.onLoad | ✔️ | | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | ✔️ | ✔️ | -| WebViewProps.onError | ✔️ | | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | ✔️ | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| WebViewProps.src | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| WebViewProps.progressbarColor | | | | ✔️ | | | | | | | +| WebViewProps.type | | | | ✔️ | | | | | | | +| WebViewProps.onMessage | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| WebViewProps.onLoad | ✔️ | | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | ✔️ | +| WebViewProps.onError | ✔️ | | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | ✔️ | ### onMessageEventDetail diff --git a/docs/components/page-meta.md b/docs/components/page-meta.md index 16b48c217ff0..0a075626c978 100644 --- a/docs/components/page-meta.md +++ b/docs/components/page-meta.md @@ -11,7 +11,7 @@ Taro v3.6.19 开始支持 开发者需要在页面配置里添加:`enablePageMeta: true` ::: -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/page-meta.html) @@ -91,22 +91,22 @@ function Index () { ### API 支持度 -| API | 微信小程序 | 支付宝小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| PageMetaProps.backgroundTextStyle | ✔️ | | | | | | -| PageMetaProps.backgroundColor | ✔️ | ✔️ | | | ✔️ | | -| PageMetaProps.backgroundColorTop | ✔️ | ✔️ | | | ✔️ | | -| PageMetaProps.backgroundColorBottom | ✔️ | ✔️ | | | ✔️ | | -| PageMetaProps.scrollTop | ✔️ | ✔️ | | | ✔️ | | -| PageMetaProps.scrollDuration | ✔️ | ✔️ | | | ✔️ | | -| PageMetaProps.pageStyle | ✔️ | ✔️ | | | | | -| PageMetaProps.rootFontSize | ✔️ | ✔️ | | | | | -| PageMetaProps.rootBackgroundColor | ✔️ | ✔️ | | | ✔️ | | -| PageMetaProps.pageFontSize | ✔️ | ✔️ | | | | | -| PageMetaProps.pageOrientation | ✔️ | | | | | | -| PageMetaProps.onResize | ✔️ | | | | | | -| PageMetaProps.onScroll | ✔️ | ✔️ | | | | | -| PageMetaProps.onScrollDone | ✔️ | | | | | | +| API | 微信小程序 | 支付宝小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | +| PageMetaProps.backgroundTextStyle | ✔️ | | | | | +| PageMetaProps.backgroundColor | ✔️ | ✔️ | | | ✔️ | +| PageMetaProps.backgroundColorTop | ✔️ | ✔️ | | | ✔️ | +| PageMetaProps.backgroundColorBottom | ✔️ | ✔️ | | | ✔️ | +| PageMetaProps.scrollTop | ✔️ | ✔️ | | | ✔️ | +| PageMetaProps.scrollDuration | ✔️ | ✔️ | | | ✔️ | +| PageMetaProps.pageStyle | ✔️ | ✔️ | | | | +| PageMetaProps.rootFontSize | ✔️ | ✔️ | | | | +| PageMetaProps.rootBackgroundColor | ✔️ | ✔️ | | | ✔️ | +| PageMetaProps.pageFontSize | ✔️ | ✔️ | | | | +| PageMetaProps.pageOrientation | ✔️ | | | | | +| PageMetaProps.onResize | ✔️ | | | | | +| PageMetaProps.onScroll | ✔️ | ✔️ | | | | +| PageMetaProps.onScrollDone | ✔️ | | | | | ### onResizeEventDetail diff --git a/docs/components/viewContainer/cover-image.md b/docs/components/viewContainer/cover-image.md index 1afc66e1ec37..34129de745f4 100644 --- a/docs/components/viewContainer/cover-image.md +++ b/docs/components/viewContainer/cover-image.md @@ -5,7 +5,7 @@ sidebar_label: CoverImage 覆盖在原生组件之上的图片视图。可覆盖的原生组件同cover-view,支持嵌套在cover-view里。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/cover-image.html) @@ -106,16 +106,16 @@ class App extends Components { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| CoverImageProps.src | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | | -| CoverImageProps.referrerPolicy | ✔️ | | | | | | | | | | -| CoverImageProps.fixedTop | | ✔️ | | | | | | | | | -| CoverImageProps.fixedRight | | ✔️ | | | | | | | | | -| CoverImageProps.fixedBottom | | ✔️ | | | | | | | | | -| CoverImageProps.fixedLeft | | ✔️ | | | | | | | | | -| CoverImageProps.ariaRole | | | | ✔️ | | | | | | | -| CoverImageProps.ariaLabel | | | | ✔️ | | | | | | | -| CoverImageProps.onLoad | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | | -| CoverImageProps.onError | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | | -| CoverImageProps.onTap | | | ✔️ | | | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| CoverImageProps.src | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CoverImageProps.referrerPolicy | ✔️ | | | | | | | | | +| CoverImageProps.fixedTop | | ✔️ | | | | | | | | +| CoverImageProps.fixedRight | | ✔️ | | | | | | | | +| CoverImageProps.fixedBottom | | ✔️ | | | | | | | | +| CoverImageProps.fixedLeft | | ✔️ | | | | | | | | +| CoverImageProps.ariaRole | | | | ✔️ | | | | | | +| CoverImageProps.ariaLabel | | | | ✔️ | | | | | | +| CoverImageProps.onLoad | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CoverImageProps.onError | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | | | ✔️ | +| CoverImageProps.onTap | | | ✔️ | | | | | | | diff --git a/docs/components/viewContainer/cover-view.md b/docs/components/viewContainer/cover-view.md index 4a4fc473b09b..a27d18d56bb5 100755 --- a/docs/components/viewContainer/cover-view.md +++ b/docs/components/viewContainer/cover-view.md @@ -5,7 +5,7 @@ sidebar_label: CoverView 覆盖在原生组件之上的文本视图。可覆盖的原生组件包括 map、video、canvas、camera、live-player、live-pusher 只支持嵌套 cover-view、cover-image,可在 cover-view 中使用 button。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/cover-view.html) @@ -119,34 +119,38 @@ class App extends Components { | onTouchMove | `CommonEventFunction` | | 否 | 触摸后移动。 | | onTouchEnd | `CommonEventFunction` | | 否 | 触摸动作结束。 | | onTouchCancel | `CommonEventFunction` | | 否 | 触摸动作被打断,如来电提醒、弹窗。 | +| markerId | `number` | | 否 | 标记点 ID
description: 用于地图组件的标记点识别
example: | +| slot | `string` | | 否 | 插槽名称
description: 用于组件间的内容分发
example: | ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| CoverViewProps.scrollTop | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | -| CoverViewProps.fixedTop | | ✔️ | | | | | | | | -| CoverViewProps.fixedRight | | ✔️ | | | | | | | | -| CoverViewProps.fixedBottom | | ✔️ | | | | | | | | -| CoverViewProps.fixedLeft | | ✔️ | | | | | | | | -| CoverViewProps.ariaRole | | | | ✔️ | | | | | | -| CoverViewProps.ariaLabel | | | | ✔️ | | | | | | -| CoverViewProps.scrollX | | | ✔️ | | | | | | | -| CoverViewProps.scrollY | | | ✔️ | | | | | | | -| CoverViewProps.upperThreshold | | | ✔️ | | | | | | | -| CoverViewProps.lowerThreshold | | | ✔️ | | | | | | | -| CoverViewProps.scrollLeft | | | ✔️ | | | | | | | -| CoverViewProps.scrollIntoView | | | ✔️ | | | | | | | -| CoverViewProps.scrollWithAnimation | | | ✔️ | | | | | | | -| CoverViewProps.scrollAnimationDuration | | | ✔️ | | | | | | | -| CoverViewProps.enableBackToTop | | | ✔️ | | | | | | | -| CoverViewProps.trapScroll | | | ✔️ | | | | | | | -| CoverViewProps.disableLowerScroll | | | ✔️ | | | | | | | -| CoverViewProps.disableUpperScroll | | | ✔️ | | | | | | | -| CoverViewProps.onScrollToUpper | | | ✔️ | | | | | | | -| CoverViewProps.onScrollToLower | | | ✔️ | | | | | | | -| CoverViewProps.onScroll | | | ✔️ | | | | | | | -| CoverViewProps.onTouchStart | | | ✔️ | | | | | | | -| CoverViewProps.onTouchMove | | | ✔️ | | | | | | | -| CoverViewProps.onTouchEnd | | | ✔️ | | | | | | | -| CoverViewProps.onTouchCancel | | | ✔️ | | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| CoverViewProps.scrollTop | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| CoverViewProps.fixedTop | | ✔️ | | | | | | | +| CoverViewProps.fixedRight | | ✔️ | | | | | | | +| CoverViewProps.fixedBottom | | ✔️ | | | | | | | +| CoverViewProps.fixedLeft | | ✔️ | | | | | | | +| CoverViewProps.ariaRole | | | | ✔️ | | | | | +| CoverViewProps.ariaLabel | | | | ✔️ | | | | | +| CoverViewProps.scrollX | | | ✔️ | | | | | | +| CoverViewProps.scrollY | | | ✔️ | | | | | | +| CoverViewProps.upperThreshold | | | ✔️ | | | | | | +| CoverViewProps.lowerThreshold | | | ✔️ | | | | | | +| CoverViewProps.scrollLeft | | | ✔️ | | | | | | +| CoverViewProps.scrollIntoView | | | ✔️ | | | | | | +| CoverViewProps.scrollWithAnimation | | | ✔️ | | | | | | +| CoverViewProps.scrollAnimationDuration | | | ✔️ | | | | | | +| CoverViewProps.enableBackToTop | | | ✔️ | | | | | | +| CoverViewProps.trapScroll | | | ✔️ | | | | | | +| CoverViewProps.disableLowerScroll | | | ✔️ | | | | | | +| CoverViewProps.disableUpperScroll | | | ✔️ | | | | | | +| CoverViewProps.onScrollToUpper | | | ✔️ | | | | | | +| CoverViewProps.onScrollToLower | | | ✔️ | | | | | | +| CoverViewProps.onScroll | | | ✔️ | | | | | | +| CoverViewProps.onTouchStart | | | ✔️ | | | | | | +| CoverViewProps.onTouchMove | | | ✔️ | | | | | | +| CoverViewProps.onTouchEnd | | | ✔️ | | | | | | +| CoverViewProps.onTouchCancel | | | ✔️ | | | | | | +| CoverViewProps.markerId | ✔️ | | | | | | | | +| CoverViewProps.slot | ✔️ | | | | | | | | diff --git a/docs/components/viewContainer/custom-wrapper.md b/docs/components/viewContainer/custom-wrapper.md index 1318ca7eefdb..8577b840c0c7 100644 --- a/docs/components/viewContainer/custom-wrapper.md +++ b/docs/components/viewContainer/custom-wrapper.md @@ -6,7 +6,7 @@ sidebar_label: CustomWrapper custom-wrapper 自定义组件包裹器 当数据更新层级较深时,可用此组件将需要更新的区域包裹起来,这样更新层级将大大减少 -支持情况: +支持情况: ## 类型 diff --git a/docs/components/viewContainer/match-media.md b/docs/components/viewContainer/match-media.md index 88b6457ec4ae..c0d01532ee6d 100644 --- a/docs/components/viewContainer/match-media.md +++ b/docs/components/viewContainer/match-media.md @@ -6,7 +6,7 @@ sidebar_label: MatchMedia media query 匹配检测节点。可以指定一组 media query 规则,满足时,这个节点才会被展示。 通过这个节点可以实现“页面宽高在某个范围时才展示某个区域”这样的效果。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/match-media.html) @@ -75,12 +75,12 @@ class App extends Components { ### API 支持度 -| API | 微信小程序 | 支付宝小程序 | 京东小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| MatchMediaProps.minWidth | ✔️ | ✔️ | ✔️ | | | | | -| MatchMediaProps.maxWidth | ✔️ | ✔️ | ✔️ | | | | | -| MatchMediaProps.width | ✔️ | ✔️ | ✔️ | | | | | -| MatchMediaProps.minHeight | ✔️ | ✔️ | ✔️ | | | | | -| MatchMediaProps.maxHeight | ✔️ | ✔️ | ✔️ | | | | | -| MatchMediaProps.height | ✔️ | ✔️ | ✔️ | | | | | -| MatchMediaProps.orientation | ✔️ | ✔️ | ✔️ | | | | | +| API | 微信小程序 | 支付宝小程序 | 京东小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| MatchMediaProps.minWidth | ✔️ | ✔️ | ✔️ | | | | +| MatchMediaProps.maxWidth | ✔️ | ✔️ | ✔️ | | | | +| MatchMediaProps.width | ✔️ | ✔️ | ✔️ | | | | +| MatchMediaProps.minHeight | ✔️ | ✔️ | ✔️ | | | | +| MatchMediaProps.maxHeight | ✔️ | ✔️ | ✔️ | | | | +| MatchMediaProps.height | ✔️ | ✔️ | ✔️ | | | | +| MatchMediaProps.orientation | ✔️ | ✔️ | ✔️ | | | | diff --git a/docs/components/viewContainer/movable-area.md b/docs/components/viewContainer/movable-area.md index 8b46cb8429c7..5a7ca67a28e8 100644 --- a/docs/components/viewContainer/movable-area.md +++ b/docs/components/viewContainer/movable-area.md @@ -5,7 +5,7 @@ sidebar_label: MovableArea movable-view 的可移动区域 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/movable-area.html) @@ -56,6 +56,6 @@ class App extends Components { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| MovableAreaProps.scaleArea | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| MovableAreaProps.scaleArea | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | diff --git a/docs/components/viewContainer/movable-view.md b/docs/components/viewContainer/movable-view.md index 6eb52302fa1a..c9a124852499 100755 --- a/docs/components/viewContainer/movable-view.md +++ b/docs/components/viewContainer/movable-view.md @@ -5,7 +5,7 @@ sidebar_label: MovableView 可移动的视图容器,在页面中可以拖拽滑动。movable-view 必须在 movable-area 组件中,并且必须是直接子节点,否则不能移动。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/movable-view.html) @@ -82,35 +82,35 @@ class App extends Components { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| MovableViewProps.direction | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| MovableViewProps.inertia | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| MovableViewProps.outOfBounds | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| MovableViewProps.x | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| MovableViewProps.y | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| MovableViewProps.damping | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| MovableViewProps.friction | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| MovableViewProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| MovableViewProps.scale | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| MovableViewProps.scaleMin | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| MovableViewProps.scaleMax | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| MovableViewProps.scaleValue | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| MovableViewProps.animation | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| MovableViewProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| MovableViewProps.onChangeEnd | | | ✔️ | | | | | | | | -| MovableViewProps.onDragStart | | | | | | | ✔️ | | | | -| MovableViewProps.onDragEnd | | | | | | | ✔️ | | | | -| MovableViewProps.onScale | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| MovableViewProps.onTouchStart | | | ✔️ | | | | | | | | -| MovableViewProps.onTouchMove | | | ✔️ | | | | | | | | -| MovableViewProps.onTouchEnd | | | ✔️ | | | ✔️(此事件的触发顺序会因为当前事件机制引起组件内外注册的事件执行顺序不正常,外部注册的事件可能会优先于内部执行,如需保证执行顺序一致,需要在回调函数中包裹 setTimeout 临时处理) | | | ✔️ | | -| MovableViewProps.onTouchCancel | | | ✔️ | | | | | | | | -| MovableViewProps.onHTouchMove | ✔️ | ✔️ | | ✔️ | | ✔️ | | | ✔️ | ✔️ | -| MovableViewProps.onVTouchMove | ✔️ | ✔️ | | ✔️ | | ✔️ | | | ✔️ | ✔️ | -| MovableViewProps.catchTouchStart | | | ✔️ | | | | | | | | -| MovableViewProps.catchTouchMove | | | ✔️ | | | | | | | | -| MovableViewProps.catchTouchEnd | | | ✔️ | | | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| MovableViewProps.direction | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| MovableViewProps.inertia | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| MovableViewProps.outOfBounds | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| MovableViewProps.x | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| MovableViewProps.y | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| MovableViewProps.damping | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| MovableViewProps.friction | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| MovableViewProps.disabled | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| MovableViewProps.scale | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| MovableViewProps.scaleMin | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| MovableViewProps.scaleMax | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| MovableViewProps.scaleValue | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| MovableViewProps.animation | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| MovableViewProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| MovableViewProps.onChangeEnd | | | ✔️ | | | | | | | +| MovableViewProps.onDragStart | | | | | | | ✔️ | | | +| MovableViewProps.onDragEnd | | | | | | | ✔️ | | | +| MovableViewProps.onScale | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| MovableViewProps.onTouchStart | | | ✔️ | | | | | | | +| MovableViewProps.onTouchMove | | | ✔️ | | | | | | | +| MovableViewProps.onTouchEnd | | | ✔️ | | | ✔️(此事件的触发顺序会因为当前事件机制引起组件内外注册的事件执行顺序不正常,外部注册的事件可能会优先于内部执行,如需保证执行顺序一致,需要在回调函数中包裹 setTimeout 临时处理) | | | ✔️ | +| MovableViewProps.onTouchCancel | | | ✔️ | | | | | | | +| MovableViewProps.onHTouchMove | ✔️ | ✔️ | | ✔️ | | ✔️ | | | ✔️ | +| MovableViewProps.onVTouchMove | ✔️ | ✔️ | | ✔️ | | ✔️ | | | ✔️ | +| MovableViewProps.catchTouchStart | | | ✔️ | | | | | | | +| MovableViewProps.catchTouchMove | | | ✔️ | | | | | | | +| MovableViewProps.catchTouchEnd | | | ✔️ | | | | | | | ### TChangeSource diff --git a/docs/components/viewContainer/native-slot.md b/docs/components/viewContainer/native-slot.md index c75278f933a7..77b253daeb03 100644 --- a/docs/components/viewContainer/native-slot.md +++ b/docs/components/viewContainer/native-slot.md @@ -5,7 +5,7 @@ sidebar_label: NativeSlot 编译的原生组件支持使用 slot 插槽 -支持情况: +支持情况: > [参考文档](https://github.com/NervJS/taro/pull/12627) diff --git a/docs/components/viewContainer/page-container.md b/docs/components/viewContainer/page-container.md index 22e09aea7339..bda4efb990a5 100644 --- a/docs/components/viewContainer/page-container.md +++ b/docs/components/viewContainer/page-container.md @@ -12,7 +12,7 @@ Bug & Tip 1. tip: 当前页面最多只有 1 个容器,若已存在容器的情况下,无法增加新的容器 2. tip: wx.navigateBack 无法在页面栈顶调用,此时没有上一级页面 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/page-container.html) @@ -47,26 +47,26 @@ ComponentType ### API 支持度 -| API | 微信小程序 | 支付宝小程序 | 京东小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| PageContainerProps.show | ✔️ | ✔️ | ✔️ | | ✔️ | | | -| PageContainerProps.duration | ✔️ | ✔️ | ✔️ | | ✔️ | | | -| PageContainerProps.zIndex | ✔️ | ✔️ | | | | | | -| PageContainerProps.overlay | ✔️ | ✔️ | ✔️ | | ✔️ | | | -| PageContainerProps.position | ✔️ | ✔️ | ✔️ | | ✔️ | | | -| PageContainerProps.round | ✔️ | ✔️ | ✔️ | | ✔️ | | | -| PageContainerProps.overlayStyle | ✔️ | ✔️ | ✔️ | | ✔️ | | | -| PageContainerProps.customStyle | ✔️ | ✔️ | ✔️ | | ✔️ | | | -| PageContainerProps.closeOnSlideDown | ✔️ | ✔️ | ✔️ | | | | | -| PageContainerProps.onBeforeEnter | ✔️ | ✔️ | ✔️ | | ✔️ | | | -| PageContainerProps.onEnter | ✔️ | ✔️ | ✔️ | | ✔️ | | | -| PageContainerProps.onAfterEnter | ✔️ | ✔️ | ✔️ | | ✔️ | | | -| PageContainerProps.onBeforeLeave | ✔️ | ✔️ | ✔️ | | ✔️ | | | -| PageContainerProps.onLeave | ✔️ | ✔️ | ✔️ | | ✔️ | | | -| PageContainerProps.onAfterLeave | ✔️ | ✔️ | ✔️ | | ✔️ | | | -| PageContainerProps.onClickOverlay | ✔️ | ✔️ | ✔️ | | | | | -| PageContainerProps.onEnterCancelled | | ✔️ | | | | | | -| PageContainerProps.onLeaveCancelled | | ✔️ | | | | | | +| API | 微信小程序 | 支付宝小程序 | 京东小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| PageContainerProps.show | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PageContainerProps.duration | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PageContainerProps.zIndex | ✔️ | ✔️ | | | | | +| PageContainerProps.overlay | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PageContainerProps.position | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PageContainerProps.round | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PageContainerProps.overlayStyle | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PageContainerProps.customStyle | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PageContainerProps.closeOnSlideDown | ✔️ | ✔️ | ✔️ | | | | +| PageContainerProps.onBeforeEnter | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PageContainerProps.onEnter | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PageContainerProps.onAfterEnter | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PageContainerProps.onBeforeLeave | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PageContainerProps.onLeave | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PageContainerProps.onAfterLeave | ✔️ | ✔️ | ✔️ | | ✔️ | | +| PageContainerProps.onClickOverlay | ✔️ | ✔️ | ✔️ | | | | +| PageContainerProps.onEnterCancelled | | ✔️ | | | | | +| PageContainerProps.onLeaveCancelled | | ✔️ | | | | | ### Position diff --git a/docs/components/viewContainer/root-portal.md b/docs/components/viewContainer/root-portal.md index e8c7fc465263..8b9ed266b5b7 100644 --- a/docs/components/viewContainer/root-portal.md +++ b/docs/components/viewContainer/root-portal.md @@ -6,7 +6,7 @@ sidebar_label: RootPortal root-portal 使整个子树从页面中脱离出来,类似于在 CSS 中使用 fixed position 的效果。主要用于制作弹窗、弹出层等。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/root-portal.html) @@ -59,6 +59,6 @@ export default function RootPortalExample { ### API 支持度 -| API | 微信小程序 | 支付宝小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| RootPortalProps.enable | ✔️ | ✔️ | | | | | +| API | 微信小程序 | 支付宝小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | +| RootPortalProps.enable | ✔️ | ✔️ | | | | diff --git a/docs/components/viewContainer/script.md b/docs/components/viewContainer/script.md index f91f98b41d5a..8d3980be6d73 100644 --- a/docs/components/viewContainer/script.md +++ b/docs/components/viewContainer/script.md @@ -6,7 +6,7 @@ sidebar_label: Script script 类似微信小程序的 wxs 标签,支持引用各种小程序的 xs 文件 只能在 CompileMode 中使用 -支持情况: +支持情况: ## 类型 @@ -50,7 +50,7 @@ export function Index () { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| ScriptProps.src | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | -| ScriptProps.module | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| ScriptProps.src | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| ScriptProps.module | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | diff --git a/docs/components/viewContainer/scroll-view.md b/docs/components/viewContainer/scroll-view.md index 20d0c83fdb9e..b3d24c2b92c1 100755 --- a/docs/components/viewContainer/scroll-view.md +++ b/docs/components/viewContainer/scroll-view.md @@ -9,7 +9,7 @@ Tips: H5 中 ScrollView 组件是通过一个高度(或宽度)固定的容器内部滚动来实现的,因此务必正确的设置容器的高度。例如: 如果 ScrollView 的高度将 body 撑开,就会同时存在两个滚动条(body 下的滚动条,以及 ScrollView 的滚动条)。 微信小程序 中 ScrollView 组件如果设置 scrollX 横向滚动时,并且子元素为多个时(单个子元素时设置固定宽度则可以正常横向滚动),需要通过 WXSS 设置 `white-space: nowrap` 来保证元素不换行,并对 ScrollView 内部元素设置 `display: inline-block` 来使其能够横向滚动。 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/scroll-view.html) @@ -249,74 +249,74 @@ typeof ScrollViewProps ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| ScrollViewProps.scrollX | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️(二选一) | ✔️ | ✔️ | ✔️ | -| ScrollViewProps.scrollY | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️(二选一) | ✔️ | ✔️ | ✔️ | -| ScrollViewProps.upperThreshold | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ScrollViewProps.lowerThreshold | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ScrollViewProps.scrollTop | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ScrollViewProps.scrollLeft | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ScrollViewProps.scrollIntoView | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| ScrollViewProps.scrollWithAnimation | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ScrollViewProps.enableBackToTop | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | ✔️ | | | | -| ScrollViewProps.enableFlex | ✔️ | | | | | ✔️ | | | | | | -| ScrollViewProps.scrollAnchoring | ✔️ | | | | | | | | | | | -| ScrollViewProps.refresherEnabled | ✔️ | | | | | | | | | | ✔️ | -| ScrollViewProps.refresherThreshold | ✔️ | | | | | | | | | | ✔️ | -| ScrollViewProps.refresherDefaultStyle | ✔️ | | | | | | | | | | ✔️ | -| ScrollViewProps.refresherBackground | ✔️ | | | | | | | | | | ✔️ | -| ScrollViewProps.refresherTriggered | ✔️ | | | | | | | | | | ✔️ | -| ScrollViewProps.enhanced | ✔️ | ✔️ | | | | | | | | | | -| ScrollViewProps.usingSticky | ✔️ | | | | | | | | | | | -| ScrollViewProps.bounces | ✔️ | ✔️ | | | | | | | | | | -| ScrollViewProps.showScrollbar | ✔️ | | | | | | | | ✔️ | | ✔️ | -| ScrollViewProps.pagingEnabled | ✔️ | | | | | | | | | | | -| ScrollViewProps.fastDeceleration | ✔️ | | | | | | | | | | | -| ScrollViewProps.scrollAnimationDuration | | | ✔️ | | | | | | | | | -| ScrollViewProps.trapScroll | | | ✔️ | | | | | | | | | -| ScrollViewProps.disableLowerScroll | | | ✔️ | | | | | | | | | -| ScrollViewProps.disableUpperScroll | | | ✔️ | | | | | | | | | -| ScrollViewProps.ariaLabel | | | | | ✔️ | | | | | | | -| ScrollViewProps.enablePassive | ✔️ | | | | | | | | | | | -| ScrollViewProps.type | ✔️ | | | | | | | | ✔️ | | | -| ScrollViewProps.associativeContainer | ✔️ | | | | | | | | | | | -| ScrollViewProps.reverse | ✔️ | | | | | | | | | | | -| ScrollViewProps.clip | ✔️ | | | | | | | | | | | -| ScrollViewProps.cacheExtent | ✔️ | | | | | | | | | | | -| ScrollViewProps.minDragDistance | ✔️ | | | | | | | | | | | -| ScrollViewProps.padding | ✔️ | | | | | | | | | | | -| ScrollViewProps.scrollIntoViewWithinExtent | ✔️ | | | | | | | | | | | -| ScrollViewProps.scrollIntoViewAlignment | ✔️ | | | | | | ✔️ | | | ✔️ | | -| ScrollViewProps.refresherTwoLevelEnabled | ✔️ | | | | | | | | | | | -| ScrollViewProps.refresherTwoLevelTriggered | ✔️ | | | | | | | | | | | -| ScrollViewProps.refresherTwoLevelThreshold | ✔️ | | | | | | | | | | | -| ScrollViewProps.refresherTwoLevelCloseThreshold | ✔️ | | | | | | | | | | | -| ScrollViewProps.refresherTwoLevelScrollEnabled | ✔️ | | | | | | | | | | | -| ScrollViewProps.refresherBallisticRefreshEnabled | ✔️ | | | | | | | | | | | -| ScrollViewProps.refresherTwoLevelPinned | ✔️ | | | | | | | | | | | -| ScrollViewProps.onScrollToUpper | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ScrollViewProps.onScrollToLower | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ScrollViewProps.onScroll | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| ScrollViewProps.onScrollStart | ✔️ | | | | | | | | | | | -| ScrollViewProps.onScrollEnd | ✔️ | | | | | | | | | | | -| ScrollViewProps.onRefresherPulling | ✔️ | | | | | | | | | | ✔️ | -| ScrollViewProps.onRefresherRefresh | ✔️ | | | | | | | | | | ✔️ | -| ScrollViewProps.onRefresherRestore | ✔️ | | | | | | | | | | ✔️ | -| ScrollViewProps.onRefresherAbort | ✔️ | | | | | | | | | | ✔️ | -| ScrollViewProps.onRefresherWillRefresh | ✔️ | | | | | | | | | | | -| ScrollViewProps.onRefresherStatusChange | ✔️ | | | | | | | | | | | -| ScrollViewProps.onDragStart | ✔️ | | | | | | | | | | | -| ScrollViewProps.onDragging | ✔️ | | | | | | | | | | | -| ScrollViewProps.onDragEnd | ✔️ | | | | | | | | | | | -| ScrollViewProps.onTouchStart | | | ✔️ | | | | | | | | | -| ScrollViewProps.onTouchMove | | | ✔️ | | | | | | | | | -| ScrollViewProps.onTouchEnd | | | ✔️ | | | | | | | | | -| ScrollViewProps.onTouchCancel | | | ✔️ | | | | | | | | | -| ScrollViewProps.onScrollStartWorklet | ✔️ | | | | | | | | | | | -| ScrollViewProps.onScrollUpdateWorklet | ✔️ | | | | | | | | | | | -| ScrollViewProps.onScrollEndWorklet | ✔️ | | | | | | | | | | | -| ScrollViewProps.adjustDecelerationVelocityWorklet | ✔️ | | | | | | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| ScrollViewProps.scrollX | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️(二选一) | ✔️ | ✔️ | +| ScrollViewProps.scrollY | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️(二选一) | ✔️ | ✔️ | +| ScrollViewProps.upperThreshold | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ScrollViewProps.lowerThreshold | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ScrollViewProps.scrollTop | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ScrollViewProps.scrollLeft | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ScrollViewProps.scrollIntoView | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| ScrollViewProps.scrollWithAnimation | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ScrollViewProps.enableBackToTop | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | ✔️ | | | +| ScrollViewProps.enableFlex | ✔️ | | | | | ✔️ | | | | | +| ScrollViewProps.scrollAnchoring | ✔️ | | | | | | | | | | +| ScrollViewProps.refresherEnabled | ✔️ | | | | | | | | | | +| ScrollViewProps.refresherThreshold | ✔️ | | | | | | | | | | +| ScrollViewProps.refresherDefaultStyle | ✔️ | | | | | | | | | | +| ScrollViewProps.refresherBackground | ✔️ | | | | | | | | | | +| ScrollViewProps.refresherTriggered | ✔️ | | | | | | | | | | +| ScrollViewProps.enhanced | ✔️ | ✔️ | | | | | | | | | +| ScrollViewProps.usingSticky | ✔️ | | | | | | | | | | +| ScrollViewProps.bounces | ✔️ | ✔️ | | | | | | | | | +| ScrollViewProps.showScrollbar | ✔️ | | | | | | | | ✔️ | | +| ScrollViewProps.pagingEnabled | ✔️ | | | | | | | | | | +| ScrollViewProps.fastDeceleration | ✔️ | | | | | | | | | | +| ScrollViewProps.scrollAnimationDuration | | | ✔️ | | | | | | | | +| ScrollViewProps.trapScroll | | | ✔️ | | | | | | | | +| ScrollViewProps.disableLowerScroll | | | ✔️ | | | | | | | | +| ScrollViewProps.disableUpperScroll | | | ✔️ | | | | | | | | +| ScrollViewProps.ariaLabel | | | | | ✔️ | | | | | | +| ScrollViewProps.enablePassive | ✔️ | | | | | | | | | | +| ScrollViewProps.type | ✔️ | | | | | | | | ✔️ | | +| ScrollViewProps.associativeContainer | ✔️ | | | | | | | | | | +| ScrollViewProps.reverse | ✔️ | | | | | | | | | | +| ScrollViewProps.clip | ✔️ | | | | | | | | | | +| ScrollViewProps.cacheExtent | ✔️ | | | | | | | | | | +| ScrollViewProps.minDragDistance | ✔️ | | | | | | | | | | +| ScrollViewProps.padding | ✔️ | | | | | | | | | | +| ScrollViewProps.scrollIntoViewWithinExtent | ✔️ | | | | | | | | | | +| ScrollViewProps.scrollIntoViewAlignment | ✔️ | | | | | | ✔️ | | | ✔️ | +| ScrollViewProps.refresherTwoLevelEnabled | ✔️ | | | | | | | | | | +| ScrollViewProps.refresherTwoLevelTriggered | ✔️ | | | | | | | | | | +| ScrollViewProps.refresherTwoLevelThreshold | ✔️ | | | | | | | | | | +| ScrollViewProps.refresherTwoLevelCloseThreshold | ✔️ | | | | | | | | | | +| ScrollViewProps.refresherTwoLevelScrollEnabled | ✔️ | | | | | | | | | | +| ScrollViewProps.refresherBallisticRefreshEnabled | ✔️ | | | | | | | | | | +| ScrollViewProps.refresherTwoLevelPinned | ✔️ | | | | | | | | | | +| ScrollViewProps.onScrollToUpper | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ScrollViewProps.onScrollToLower | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ScrollViewProps.onScroll | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| ScrollViewProps.onScrollStart | ✔️ | | | | | | | | | | +| ScrollViewProps.onScrollEnd | ✔️ | | | | | | | | | | +| ScrollViewProps.onRefresherPulling | ✔️ | | | | | | | | | | +| ScrollViewProps.onRefresherRefresh | ✔️ | | | | | | | | | | +| ScrollViewProps.onRefresherRestore | ✔️ | | | | | | | | | | +| ScrollViewProps.onRefresherAbort | ✔️ | | | | | | | | | | +| ScrollViewProps.onRefresherWillRefresh | ✔️ | | | | | | | | | | +| ScrollViewProps.onRefresherStatusChange | ✔️ | | | | | | | | | | +| ScrollViewProps.onDragStart | ✔️ | | | | | | | | | | +| ScrollViewProps.onDragging | ✔️ | | | | | | | | | | +| ScrollViewProps.onDragEnd | ✔️ | | | | | | | | | | +| ScrollViewProps.onTouchStart | | | ✔️ | | | | | | | | +| ScrollViewProps.onTouchMove | | | ✔️ | | | | | | | | +| ScrollViewProps.onTouchEnd | | | ✔️ | | | | | | | | +| ScrollViewProps.onTouchCancel | | | ✔️ | | | | | | | | +| ScrollViewProps.onScrollStartWorklet | ✔️ | | | | | | | | | | +| ScrollViewProps.onScrollUpdateWorklet | ✔️ | | | | | | | | | | +| ScrollViewProps.onScrollEndWorklet | ✔️ | | | | | | | | | | +| ScrollViewProps.adjustDecelerationVelocityWorklet | ✔️ | | | | | | | | | | | 参数 | 类型 | | --- | --- | diff --git a/docs/components/viewContainer/slot.md b/docs/components/viewContainer/slot.md index fb889ede6e25..9b43404f2a2f 100644 --- a/docs/components/viewContainer/slot.md +++ b/docs/components/viewContainer/slot.md @@ -5,7 +5,7 @@ sidebar_label: Slot slot 插槽 -支持情况: +支持情况: ## 类型 @@ -42,7 +42,7 @@ export default class SlotView extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| SlotProps.name | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | ✔️ | -| SlotProps.varName | | ✔️ | | | | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| SlotProps.name | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| SlotProps.varName | | ✔️ | | | | | | | | diff --git a/docs/components/viewContainer/swiper-item.md b/docs/components/viewContainer/swiper-item.md index e70b8db42b87..ccc584415f78 100644 --- a/docs/components/viewContainer/swiper-item.md +++ b/docs/components/viewContainer/swiper-item.md @@ -6,7 +6,7 @@ sidebar_label: SwiperItem 仅可放置在 swiper 组件中,宽高自动设置为100% > 不要为 `SwiperItem` 设置 **style** 属性,可以通过 class 设置样式。[7147](https://github.com/NervJS/taro/issues/7147) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/swiper-item.html) @@ -92,8 +92,8 @@ class App extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 抖音小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| SwiperItemProps.itemId | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SwiperItemProps.skipHiddenItemLayout | ✔️ | | | | | | | | | -| SwiperItemProps.deep | | | | | ✔️ | | | | | +| API | 微信小程序 | 百度小程序 | 抖音小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| SwiperItemProps.itemId | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SwiperItemProps.skipHiddenItemLayout | ✔️ | | | | | | | | +| SwiperItemProps.deep | | | | | ✔️ | | | | diff --git a/docs/components/viewContainer/swiper.md b/docs/components/viewContainer/swiper.md index 89ab9e8861ee..cb4a4fd6dcd3 100755 --- a/docs/components/viewContainer/swiper.md +++ b/docs/components/viewContainer/swiper.md @@ -6,7 +6,7 @@ sidebar_label: Swiper 滑块视图容器。其中只可放置 swiper-item 组件,否则会导致未定义的行为。 > 不要为 `SwiperItem` 设置 **style** 属性,可以通过 class 设置样式。[7147](https://github.com/NervJS/taro/issues/7147) -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/swiper.html) @@ -138,57 +138,57 @@ class App extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| SwiperProps.indicatorDots | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SwiperProps.indicatorColor | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SwiperProps.indicatorActiveColor | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SwiperProps.autoplay | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SwiperProps.current | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SwiperProps.currentItemId | (deprecated) | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | | -| SwiperProps.interval | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SwiperProps.duration | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | -| SwiperProps.circular | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| SwiperProps.vertical | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SwiperProps.previousMargin | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| SwiperProps.nextMargin | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| SwiperProps.snapToEdge | ✔️ | | ✔️ | | | | | | | | | -| SwiperProps.displayMultipleItems | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | ✔️ | -| SwiperProps.skipHiddenItemLayout | | | | | ✔️ | ✔️ | | | | | | -| SwiperProps.easingFunction | ✔️ | | ✔️ | ✔️ | | ✔️ | | | | | | -| SwiperProps.disableTouch | | | ✔️ | | | | | | | | ✔️ | -| SwiperProps.zoom | | | | | | | ✔️ | | | ✔️ | | -| SwiperProps.full | | | | | | | ✔️ | | | ✔️ | | -| SwiperProps.activeClass | | | ✔️ | | | | | | | | | -| SwiperProps.changingClass | | | ✔️ | | | | | | | | | -| SwiperProps.acceleration | | | ✔️ | | | | | | | | | -| SwiperProps.disableProgrammaticAnimation | | | ✔️ | | | | | | | | | -| SwiperProps.swipeRatio | | | ✔️ | | | | | | | | | -| SwiperProps.swipeSpeed | | | ✔️ | | | | | | | | | -| SwiperProps.touchAngle | | | ✔️ | | | | | | | | | -| SwiperProps.adjustHeight | | | ✔️ | | | | | | | | | -| SwiperProps.adjustVerticalHeight | | | ✔️ | | | | | | | | | -| SwiperProps.disableTouchmove | | ✔️ | | | | | | | | | | -| SwiperProps.effectsProps | | | | | | | ✔️ | | | | | -| SwiperProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | -| SwiperProps.onTransition | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | | ✔️ | -| SwiperProps.onAnimationFinish | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| SwiperProps.onAnimationEnd | | | ✔️ | | | | | | | | | -| SwiperProps.layoutType | ✔️ | | | | | | | | | | | -| SwiperProps.transformerType | ✔️ | | | | | | | | | | | -| SwiperProps.indicatorType | ✔️ | | | | | | | | | | | -| SwiperProps.indicatorMargin | ✔️ | | | | | | | | | | | -| SwiperProps.indicatorSpacing | ✔️ | | | | | | | | | | | -| SwiperProps.indicatorRadius | ✔️ | | | | | | | | | | | -| SwiperProps.indicatorWidth | ✔️ | | | | | | | | | | | -| SwiperProps.indicatorHeight | ✔️ | | | | | | | | | | | -| SwiperProps.indicatorAlignment | ✔️ | | | | | | | | | | | -| SwiperProps.indicatorOffset | ✔️ | | | | | | | | | | | -| SwiperProps.scrollWithAnimation | ✔️ | | | | | | | | | | | -| SwiperProps.cacheExtent | ✔️ | | | | | | | | | | | -| SwiperProps.onScrollStartWorklet | ✔️ | | | | | | | | | | | -| SwiperProps.onScrollUpdateWorklet | ✔️ | | | | | | | | | | | -| SwiperProps.onScrollEndWorklet | ✔️ | | | | | | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| SwiperProps.indicatorDots | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SwiperProps.indicatorColor | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SwiperProps.indicatorActiveColor | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SwiperProps.autoplay | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SwiperProps.current | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SwiperProps.currentItemId | (deprecated) | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| SwiperProps.interval | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SwiperProps.duration | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | +| SwiperProps.circular | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| SwiperProps.vertical | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SwiperProps.previousMargin | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| SwiperProps.nextMargin | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| SwiperProps.snapToEdge | ✔️ | | ✔️ | | | | | | | | +| SwiperProps.displayMultipleItems | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ | +| SwiperProps.skipHiddenItemLayout | | | | | ✔️ | ✔️ | | | | | +| SwiperProps.easingFunction | ✔️ | | ✔️ | ✔️ | | ✔️ | | | | | +| SwiperProps.disableTouch | | | ✔️ | | | | | | | | +| SwiperProps.zoom | | | | | | | ✔️ | | | ✔️ | +| SwiperProps.full | | | | | | | ✔️ | | | ✔️ | +| SwiperProps.activeClass | | | ✔️ | | | | | | | | +| SwiperProps.changingClass | | | ✔️ | | | | | | | | +| SwiperProps.acceleration | | | ✔️ | | | | | | | | +| SwiperProps.disableProgrammaticAnimation | | | ✔️ | | | | | | | | +| SwiperProps.swipeRatio | | | ✔️ | | | | | | | | +| SwiperProps.swipeSpeed | | | ✔️ | | | | | | | | +| SwiperProps.touchAngle | | | ✔️ | | | | | | | | +| SwiperProps.adjustHeight | | | ✔️ | | | | | | | | +| SwiperProps.adjustVerticalHeight | | | ✔️ | | | | | | | | +| SwiperProps.disableTouchmove | | ✔️ | | | | | | | | | +| SwiperProps.effectsProps | | | | | | | ✔️ | | | | +| SwiperProps.onChange | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | +| SwiperProps.onTransition | ✔️ | | ✔️ | ✔️ | ✔️ | | | | | | +| SwiperProps.onAnimationFinish | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| SwiperProps.onAnimationEnd | | | ✔️ | | | | | | | | +| SwiperProps.layoutType | ✔️ | | | | | | | | | | +| SwiperProps.transformerType | ✔️ | | | | | | | | | | +| SwiperProps.indicatorType | ✔️ | | | | | | | | | | +| SwiperProps.indicatorMargin | ✔️ | | | | | | | | | | +| SwiperProps.indicatorSpacing | ✔️ | | | | | | | | | | +| SwiperProps.indicatorRadius | ✔️ | | | | | | | | | | +| SwiperProps.indicatorWidth | ✔️ | | | | | | | | | | +| SwiperProps.indicatorHeight | ✔️ | | | | | | | | | | +| SwiperProps.indicatorAlignment | ✔️ | | | | | | | | | | +| SwiperProps.indicatorOffset | ✔️ | | | | | | | | | | +| SwiperProps.scrollWithAnimation | ✔️ | | | | | | | | | | +| SwiperProps.cacheExtent | ✔️ | | | | | | | | | | +| SwiperProps.onScrollStartWorklet | ✔️ | | | | | | | | | | +| SwiperProps.onScrollUpdateWorklet | ✔️ | | | | | | | | | | +| SwiperProps.onScrollEndWorklet | ✔️ | | | | | | | | | | ### TChangeSource diff --git a/docs/components/viewContainer/view.md b/docs/components/viewContainer/view.md index feefff5dff9a..388dada8a494 100755 --- a/docs/components/viewContainer/view.md +++ b/docs/components/viewContainer/view.md @@ -5,7 +5,7 @@ sidebar_label: View 视图容器 -支持情况: +支持情况: > [参考文档](https://developers.weixin.qq.com/miniprogram/dev/component/view.html) @@ -121,30 +121,30 @@ export default class PageView extends Component { ### API 支持度 -| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | ASCF元服务 | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| ViewProps.hoverClass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️(由于 RN 不支持 hoverClass,故 RN 端的 View 组件实现了 `hoverStyle`属性,写法和 style 类似,只不过 `hoverStyle` 的样式是指定按下去的样式。) | | ✔️ | ✔️ | -| ViewProps.hoverStyle | | | | | | | | ✔️ | | | | -| ViewProps.hoverStopPropagation | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | ✔️ | -| ViewProps.hoverStartTime | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ViewProps.hoverStayTime | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | -| ViewProps.disableScroll | | | ✔️ | | | | | | | | | -| ViewProps.hidden | | | ✔️ | | | | | | | | | -| ViewProps.animation | | | ✔️ | | | | | | | | | -| ViewProps.role | | | ✔️ | | | | | | | | | -| ViewProps.ariaRole | | | | | ✔️ | | | | | | | -| ViewProps.ariaLabel | | | | | ✔️ | | | | | | | -| ViewProps.onTap | | | ✔️ | | | | | | | | | -| ViewProps.onTouchStart | | | ✔️ | | | | | | | | | -| ViewProps.onTouchMove | | | ✔️ | | | | | | | | | -| ViewProps.onTouchEnd | | | ✔️ | | | | | | | | | -| ViewProps.onTouchCancel | | | ✔️ | | | | | | | | | -| ViewProps.onLongTap | | | ✔️ | | | | | | | | | -| ViewProps.onTransitionEnd | | | ✔️ | | | | | | | | | -| ViewProps.onAnimationIteration | | | ✔️ | | | | | | | | | -| ViewProps.onAnimationStart | | | ✔️ | | | | | | | | | -| ViewProps.onAnimationEnd | | | ✔️ | | | | | | | | | -| ViewProps.onAppear | | | ✔️ | | | | | | | | | -| ViewProps.onDisappear | | | ✔️ | | | | | | | | | -| ViewProps.onFirstAppear | | | ✔️ | | | | | | | | | -| ViewProps.catchMove | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | | +| API | 微信小程序 | 百度小程序 | 支付宝小程序 | 抖音小程序 | QQ 小程序 | 京东小程序 | H5 | React Native | Harmony | Harmony hybrid | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| ViewProps.hoverClass | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️(由于 RN 不支持 hoverClass,故 RN 端的 View 组件实现了 `hoverStyle`属性,写法和 style 类似,只不过 `hoverStyle` 的样式是指定按下去的样式。) | | ✔️ | +| ViewProps.hoverStyle | | | | | | | | ✔️ | | | +| ViewProps.hoverStopPropagation | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | +| ViewProps.hoverStartTime | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ViewProps.hoverStayTime | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | +| ViewProps.disableScroll | | | ✔️ | | | | | | | | +| ViewProps.hidden | | | ✔️ | | | | | | | | +| ViewProps.animation | | | ✔️ | | | | | | | | +| ViewProps.role | | | ✔️ | | | | | | | | +| ViewProps.ariaRole | | | | | ✔️ | | | | | | +| ViewProps.ariaLabel | | | | | ✔️ | | | | | | +| ViewProps.onTap | | | ✔️ | | | | | | | | +| ViewProps.onTouchStart | | | ✔️ | | | | | | | | +| ViewProps.onTouchMove | | | ✔️ | | | | | | | | +| ViewProps.onTouchEnd | | | ✔️ | | | | | | | | +| ViewProps.onTouchCancel | | | ✔️ | | | | | | | | +| ViewProps.onLongTap | | | ✔️ | | | | | | | | +| ViewProps.onTransitionEnd | | | ✔️ | | | | | | | | +| ViewProps.onAnimationIteration | | | ✔️ | | | | | | | | +| ViewProps.onAnimationStart | | | ✔️ | | | | | | | | +| ViewProps.onAnimationEnd | | | ✔️ | | | | | | | | +| ViewProps.onAppear | | | ✔️ | | | | | | | | +| ViewProps.onDisappear | | | ✔️ | | | | | | | | +| ViewProps.onFirstAppear | | | ✔️ | | | | | | | | +| ViewProps.catchMove | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | | diff --git a/packages/taro-components/types/Button.d.ts b/packages/taro-components/types/Button.d.ts index eda7e182ac28..f29be90bdd2d 100644 --- a/packages/taro-components/types/Button.d.ts +++ b/packages/taro-components/types/Button.d.ts @@ -200,6 +200,12 @@ interface ButtonProps extends StandardProps { * @supported weapp, alipay, swan, tt, jd */ onGetPhoneNumber?: CommonEventFunction + /** 获取手机号和风险等级的回调 + * + * 生效时机:`open-type="getPhoneNumberAndRiskLevel"` + * @supported ascf + */ + onGetPhoneNumberAndRiskLevel?: CommonEventFunction /** * 手机号实时验证回调,`open-type="getRealtimePhoneNumber"` 时有效 * @supported weapp @@ -314,8 +320,23 @@ declare namespace ButtonProps { | keyof openTypeKeys['alipay'] | keyof openTypeKeys['qq'] | keyof openTypeKeys['tt'] + | keyof openTypeKeys['ascf'] /** open-type 的合法值 */ interface openTypeKeys { + ascf: { + /** 获取用户手机号码,当open-type等于该值时,为保障用户隐私,button组件采用同层渲染ArkUI原生functionalButton组件的方式实现。 */ + getPhoneNumber, + /** 打开授权设置页面。 */ + openSetting, + /** 打开应用,可以通过app-bundle-name,app-module-name,app-ability-name,app-parameters属性打开指定应用。当前只支持打开系统应用,或者在元服务跳转三方应用的场景下只能打开同系列开发者的应用,否则会遭到系统生态管控拦截,提示应用无法打开 */ + launchApp, + /** 触发用户分享,用户点击按钮后触发Page.onShareAppMessage事件,只支持分享首页。 */ + share, + /** 获取服务动态授权码,用于推送服务动态。当open-type等于该值时,必须同时指定activity-type属性。 */ + liveActivity, + /** 获取手机号和风险等级。 */ + getPhoneNumberAndRiskLevel + } weapp: { /** 打开客服会话,如果用户在会话中点击消息卡片后返回小程序,可以从回调中获得具体信息 * @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/customer-message/customer-message.html @@ -515,6 +536,9 @@ declare namespace ButtonProps { */ sign: string } + interface onGetPhoneNumberAndRiskLevelEventDetail { + code: string + } interface onGetRealTimePhoneNumberEventDetail { code: string } diff --git a/packages/taro-components/types/CoverView.d.ts b/packages/taro-components/types/CoverView.d.ts index 701e449ce1c1..c25e946f745a 100644 --- a/packages/taro-components/types/CoverView.d.ts +++ b/packages/taro-components/types/CoverView.d.ts @@ -114,6 +114,22 @@ interface CoverViewProps extends ViewProps { * @supported alipay */ onTouchCancel?: CommonEventFunction + /** + * 标记点 ID + * @description 用于地图组件的标记点识别 + * @supported weapp + * @example + * + */ + markerId?: number + /** + * 插槽名称 + * @description 用于组件间的内容分发 + * @supported weapp + * @example + * + */ + slot?: string } /** 覆盖在原生组件之上的文本视图。可覆盖的原生组件包括 map、video、canvas、camera、live-player、live-pusher 只支持嵌套 cover-view、cover-image,可在 cover-view 中使用 button。 * @classification viewContainer diff --git a/packages/taro-components/types/List.d.ts b/packages/taro-components/types/List.d.ts new file mode 100644 index 000000000000..f6357da96d23 --- /dev/null +++ b/packages/taro-components/types/List.d.ts @@ -0,0 +1,38 @@ +import type { ComponentType, PropsWithChildren } from 'react' +import type { ListBuilderProps } from './ListBuilder' +import type { ScrollViewProps } from './ScrollView' +import type { StandardProps } from './common' + +interface ListProps + extends Pick< + ScrollViewProps, + | 'scrollX' + | 'scrollY' + | 'scrollTop' + | 'scrollIntoView' + | 'enableBackToTop' + | 'showScrollbar' + | 'onScroll' + | 'onScrollStart' + | 'onScrollEnd' + | 'onScrollToUpper' + | 'onScrollToLower' + | 'cacheExtent' + >, + Omit, + Pick { + /** 距顶部/左边多远时(单位px),触发 scrolltoupper 事件 + * @default 50 + * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid + */ + upperThreshold?: number + /** 距底部/右边多远时(单位px),触发 scrolltolower 事件 + * @default 50 + * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid + */ + lowerThreshold?: number +} + +declare const List: ComponentType> + +export { List, ListProps } diff --git a/packages/taro-components/types/ListItem.d.ts b/packages/taro-components/types/ListItem.d.ts new file mode 100644 index 000000000000..eaa65742b287 --- /dev/null +++ b/packages/taro-components/types/ListItem.d.ts @@ -0,0 +1,6 @@ +import type { ComponentType, Key, PropsWithChildren } from 'react' +import type { ViewProps } from './View' + +declare const ListItem: ComponentType> + +export { ListItem } diff --git a/packages/taro-components/types/RichText.d.ts b/packages/taro-components/types/RichText.d.ts index 454fb0bb27a5..3c923d8f8230 100644 --- a/packages/taro-components/types/RichText.d.ts +++ b/packages/taro-components/types/RichText.d.ts @@ -18,7 +18,7 @@ interface RichTextProps extends StandardProps { * @default false(基础库 3.150.1 以前版本)true(基础库 3.150.1 及以后版本) * @supported swan, h5, harmony_hybrid */ - selectable?: string + selectable?: boolean /** 阻止长按图片时弹起默认菜单(将该属性设置为image-menu-prevent或image-menu-prevent="true"),只在初始化时有效,不能动态变更;若不想阻止弹起默认菜单,则不需要设置此属性 * @default false * @supported swan diff --git a/packages/taro-components/types/Textarea.d.ts b/packages/taro-components/types/Textarea.d.ts index a70e745b580e..139e0edc7ac4 100644 --- a/packages/taro-components/types/Textarea.d.ts +++ b/packages/taro-components/types/Textarea.d.ts @@ -125,9 +125,9 @@ interface TextareaProps extends StandardProps, FormItemProps { ariaLabel?: string /** 键盘对齐位置 * @supported weapp - * @default false + * @default 'cursor' */ - adjustKeyboardTo?: boolean + adjustKeyboardTo?: 'cursor' | 'bottom' /** 输入框聚焦时触发 * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony, harmony_hybrid */ diff --git a/packages/taro-components/types/index.d.ts b/packages/taro-components/types/index.d.ts index 3405a60a4573..f848253df038 100644 --- a/packages/taro-components/types/index.d.ts +++ b/packages/taro-components/types/index.d.ts @@ -63,6 +63,8 @@ export { OpenContainer } from './OpenContainer' export { DraggableSheet } from './DraggableSheet' export { NestedScrollHeader } from './NestedScrollHeader' export { NestedScrollBody } from './NestedScrollBody' +export { List } from './List' +export { ListItem } from './ListItem' /** 导航 */ export { FunctionalPageNavigator } from './FunctionalPageNavigator' diff --git a/packages/taro/types/api/base/system.d.ts b/packages/taro/types/api/base/system.d.ts index 3e20b53b49f8..b479e571a805 100644 --- a/packages/taro/types/api/base/system.d.ts +++ b/packages/taro/types/api/base/system.d.ts @@ -132,6 +132,18 @@ declare module '../../index' { deviceOrientation?: keyof DeviceOrientation /** 小程序当前运行环境 */ environment?: string + /** + * 仅支付宝小程序生效 + * screenHeight、screenWidth在 Android 上取值有误,建议使用 screen字段内的属性替代。 + * https://opendocs.alipay.com/mini/api/gawhvz?pathHash=270f3253 + * 单位: px + * */ + screen?: { + /** 屏幕宽度 */ + width: number + /** 屏幕高度 */ + height: number + } } /** 系统主题合法值 */ interface Theme { @@ -231,6 +243,18 @@ declare module '../../index' { deviceOrientation?: keyof DeviceOrientation /** 小程序当前运行环境 */ environment?: string + /** + * 仅支付宝小程序生效 + * screenHeight、screenWidth在 Android 上取值有误,建议使用 screen字段内的属性替代。 + * https://opendocs.alipay.com/mini/api/gawhvz?pathHash=270f3253 + * 单位: px + * */ + screen?: { + /** 屏幕宽度 */ + width: number + /** 屏幕高度 */ + height: number + } } /** 系统主题合法值 */ interface Theme { @@ -330,6 +354,18 @@ declare module '../../index' { deviceOrientation?: keyof DeviceOrientation /** 小程序当前运行环境 */ environment?: string + /** + * 仅支付宝小程序生效 + * screenHeight、screenWidth在 Android 上取值有误,建议使用 screen字段内的属性替代。 + * https://opendocs.alipay.com/mini/api/gawhvz?pathHash=270f3253 + * 单位: px + * */ + screen?: { + /** 屏幕宽度 */ + width: number + /** 屏幕高度 */ + height: number + } } /** 系统主题合法值 */ interface Theme { diff --git a/packages/taro/types/api/canvas/index.d.ts b/packages/taro/types/api/canvas/index.d.ts index 99ea3407615e..df65774034ad 100644 --- a/packages/taro/types/api/canvas/index.d.ts +++ b/packages/taro/types/api/canvas/index.d.ts @@ -2048,7 +2048,7 @@ declare module '../../index' { /** 创建 canvas 的绘图上下文 [CanvasContext](/docs/apis/canvas/CanvasContext) 对象 * * **Tip**: 需要指定 canvasId,该绘图上下文只作用于对应的 ``;另外,Web 端需要在 `useReady` 回调中执行它,否则会因为底层 canvas 渲染出来之前而去获取 CanvasContext,导致其底层的 context 为 `undefined`,从而不能正常绘图。 - * @supported weapp, alipay, swan, jd, qq, tt, h5, harmony_hybrid + * @supported weapp, alipay, swan, jd, qq, tt, h5, harmony_hybrid, harmony * @example * ```tsx * import { useReady } from '@tarojs/taro' diff --git a/packages/taro/types/api/cloud/index.d.ts b/packages/taro/types/api/cloud/index.d.ts index 16b37f586696..df076bdbc8f9 100644 --- a/packages/taro/types/api/cloud/index.d.ts +++ b/packages/taro/types/api/cloud/index.d.ts @@ -1,4 +1,4 @@ -import Taro, { DownloadTask, UploadTask } from "../../index" +import Taro from "../../index" declare module '../../index' { namespace cloud { @@ -212,6 +212,10 @@ declare module '../../index' { /** 调用云托管参数 */ interface CallContainerParam < P extends string | TaroGeneral.IAnyObject | ArrayBuffer = any | any > { + config?:{ + /** 微信云托管的环境ID, 如果在 Taro.cloud.init 中配置了env, 则可以不配置。 */ + env: string, + } /** 服务路径 */ path: string /** HTTP请求方法,默认 GET */ diff --git a/packages/taro/types/api/device/keyboard.d.ts b/packages/taro/types/api/device/keyboard.d.ts index bf6f1bbae5f9..12b80ab1a5e3 100644 --- a/packages/taro/types/api/device/keyboard.d.ts +++ b/packages/taro/types/api/device/keyboard.d.ts @@ -43,7 +43,7 @@ declare module '../../index' { interface TaroStatic { /** 在input、textarea等focus拉起键盘之后,手动调用此接口收起键盘 - * @supported weapp, alipay, swan, jd, tt, rn, harmony_hybrid + * @supported weapp, alipay, swan, jd, tt, rn, harmony_hybrid, harmony * @example * ```tsx * Taro.hideKeyboard({ diff --git a/packages/taro/types/api/device/memory.d.ts b/packages/taro/types/api/device/memory.d.ts index 94516403951f..d366723c9dee 100644 --- a/packages/taro/types/api/device/memory.d.ts +++ b/packages/taro/types/api/device/memory.d.ts @@ -26,7 +26,7 @@ declare module '../../index' { /** 监听内存不足告警事件。 * * 当 iOS/Android 向小程序进程发出内存警告时,触发该事件。触发该事件不意味小程序被杀,大部分情况下仅仅是告警,开发者可在收到通知后回收一些不必要资源避免进一步加剧内存紧张。 - * @supported weapp, alipay, swan, jd, tt + * @supported weapp, alipay, swan, jd, tt, harmony * @example * ```tsx * Taro.onMemoryWarning(function () { @@ -41,7 +41,7 @@ declare module '../../index' { ): void /** 取消监听内存不足告警事件。 - * @supported weapp, alipay, swan + * @supported weapp, alipay, swan, harmony * @see https://developers.weixin.qq.com/miniprogram/dev/api/device/memory/wx.offMemoryWarning.html */ offMemoryWarning( diff --git a/packages/taro/types/api/files/index.d.ts b/packages/taro/types/api/files/index.d.ts index 8ab00efa1eb0..bf6f74e9617a 100644 --- a/packages/taro/types/api/files/index.d.ts +++ b/packages/taro/types/api/files/index.d.ts @@ -1464,7 +1464,7 @@ declare module '../../index' { getFileInfo(option: getFileInfo.Option): Promise /** 获取全局唯一的文件管理器 - * @supported weapp, alipay, swan, jd, qq, tt, harmony_hybrid + * @supported weapp, alipay, swan, jd, qq, tt, harmony_hybrid, harmony * @see https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.getFileSystemManager.html */ getFileSystemManager(): FileSystemManager diff --git a/packages/taro/types/api/location/index.d.ts b/packages/taro/types/api/location/index.d.ts index 9be76e5ab502..cfe35bbc373e 100644 --- a/packages/taro/types/api/location/index.d.ts +++ b/packages/taro/types/api/location/index.d.ts @@ -455,7 +455,7 @@ declare module '../../index' { * **注意** * - 工具中定位模拟使用IP定位,可能会有一定误差。且工具目前仅支持 gcj02 坐标。 * - 使用第三方服务进行逆地址解析时,请确认第三方服务默认的坐标系,正确进行坐标转换。 - * @supported weapp, swan, jd, qq, tt, rn, harmony_hybrid + * @supported weapp, swan, jd, qq, tt, rn, harmony_hybrid, harmony * @example * ```tsx * Taro.getLocation({ diff --git a/packages/taro/types/api/media/audio.d.ts b/packages/taro/types/api/media/audio.d.ts index 0d8eedcac9f0..3a938cc0d168 100644 --- a/packages/taro/types/api/media/audio.d.ts +++ b/packages/taro/types/api/media/audio.d.ts @@ -740,7 +740,11 @@ declare module '../../index' { * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/WebAudioContext.decodeAudioData.html */ - decodeAudioData(): AudioBuffer + decodeAudioData( + audioData: ArrayBuffer, + successCallback: (buffer: AudioBuffer) => void, + errorCallback: (error: any) => void + ): Promise } namespace WebAudioContext { diff --git a/packages/taro/types/api/media/map.d.ts b/packages/taro/types/api/media/map.d.ts index c043579a628a..88b9025f4ef4 100644 --- a/packages/taro/types/api/media/map.d.ts +++ b/packages/taro/types/api/media/map.d.ts @@ -560,7 +560,7 @@ declare module '../../index' { } interface RemoveMarkersOption { /** marker 的 id 集合。 */ - markerIds: string[] + markerIds: number[] /** 接口调用结束的回调函数(调用成功、失败都会执行) */ complete?: (res: TaroGeneral.CallbackResult) => void /** 接口调用失败的回调函数 */ @@ -609,7 +609,7 @@ declare module '../../index' { /** 聚合簇的坐标 */ center: LatLng /** 该聚合簇内的点标记数据数组 */ - markerIds: string[] + markerIds: number[] } interface LatLng { /** 纬度值 */ diff --git a/packages/taro/types/api/media/video.d.ts b/packages/taro/types/api/media/video.d.ts index fbf13418c9a4..81dc34fb13b8 100644 --- a/packages/taro/types/api/media/video.d.ts +++ b/packages/taro/types/api/media/video.d.ts @@ -442,7 +442,7 @@ declare module '../../index' { getVideoInfo(option: getVideoInfo.Option): Promise /** 创建 video 上下文 VideoContext 对象。 - * @supported weapp, h5, rn, harmony_hybrid + * @supported weapp, h5, rn, harmony_hybrid, harmony * @example * ```tsx * videoContext = Taro.createVideoContext('myVideo') @@ -505,7 +505,7 @@ declare module '../../index' { chooseVideo(option: chooseVideo.Option): Promise /** 拍摄或从手机相册中选择图片或视频。 - * @supported weapp, h5, harmony_hybrid + * @supported weapp, h5, harmony_hybrid, harmony * @example * ```tsx * Taro.chooseMedia({ diff --git a/packages/taro/types/api/media/voip.d.ts b/packages/taro/types/api/media/voip.d.ts index 1cc1dea97bbb..c37ab2699215 100644 --- a/packages/taro/types/api/media/voip.d.ts +++ b/packages/taro/types/api/media/voip.d.ts @@ -320,7 +320,7 @@ declare module '../../index' { * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.setEnable1v1Chat.html */ - setEnable1v1Chat(option: subscribeVoIPVideoMembers.Option): Promise + setEnable1v1Chat(option: setEnable1v1Chat.Option): Promise /** 监听实时语音通话成员视频状态变化事件 * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.onVoIPVideoMembersChanged.html @@ -373,7 +373,7 @@ declare module '../../index' { */ offVoIPChatInterrupted(callback: onVoIPChatInterrupted.Callback): void /** 加入 (创建) 实时语音通话,更多信息可见 [实时语音指南](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/voip-chat.html) - * + * * 调用前需要用户授权 `scope.record`,若房间类型为视频房间需要用户授权 `scope.camera`。 * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.joinVoIPChat.html diff --git a/packages/taro/types/api/network/download.d.ts b/packages/taro/types/api/network/download.d.ts index 1fbd846ee5be..77d91ce333d1 100644 --- a/packages/taro/types/api/network/download.d.ts +++ b/packages/taro/types/api/network/download.d.ts @@ -151,7 +151,7 @@ declare module '../../index' { /** 下载文件资源到本地。客户端直接发起一个 HTTPS GET 请求,返回文件的本地临时路径,单次下载允许的最大文件为 50MB。使用前请注意阅读[相关说明](https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html)。 * * 注意:请在服务端响应的 header 中指定合理的 `Content-Type` 字段,以保证客户端正确处理文件类型。 - * @supported weapp, h5, alipay, swan, rn, tt, harmony_hybrid + * @supported weapp, h5, alipay, swan, rn, tt, harmony_hybrid, harmony * @example * ```tsx * Taro.downloadFile({ diff --git a/packages/taro/types/api/network/request.d.ts b/packages/taro/types/api/network/request.d.ts index 4fac0617ef1a..794fca1e95b5 100644 --- a/packages/taro/types/api/network/request.d.ts +++ b/packages/taro/types/api/network/request.d.ts @@ -25,6 +25,11 @@ declare module '../../index' { dataType?: keyof DataType | string /** 响应的数据类型 */ responseType?: keyof ResponseType + /** + * 使用高性能模式。从基础库 v3.5.0 开始在 Android 端默认开启,其他端暂不生效。该模式下有更优的网络性能表现。 + * @default true + * */ + useHighPerformanceMode?: boolean /** 开启 http2 * @default false * @supported weapp diff --git a/packages/taro/types/api/network/upload.d.ts b/packages/taro/types/api/network/upload.d.ts index 4fa7167d7cd6..8794c86d81a6 100644 --- a/packages/taro/types/api/network/upload.d.ts +++ b/packages/taro/types/api/network/upload.d.ts @@ -152,7 +152,7 @@ declare module '../../index' { interface TaroStatic { /** 将本地资源上传到服务器。客户端发起一个 HTTPS POST 请求,其中 `content-type` 为 `multipart/form-data`。使用前请注意阅读[相关说明](https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html)。 - * @supported weapp, swan, alipay, h5, rn, tt, harmony_hybrid + * @supported weapp, swan, alipay, h5, rn, tt, harmony_hybrid, harmony * @example * ```tsx * Taro.chooseImage({ diff --git a/packages/taro/types/api/open-api/subscribe-message.d.ts b/packages/taro/types/api/open-api/subscribe-message.d.ts index a168306a7f76..a2fd681f9e35 100644 --- a/packages/taro/types/api/open-api/subscribe-message.d.ts +++ b/packages/taro/types/api/open-api/subscribe-message.d.ts @@ -2,7 +2,7 @@ import Taro from '../../index' declare module '../../index' { namespace requestSubscribeMessage { - interface Option { + interface BaseOption { /** * 需要订阅的消息模板的id的集合(注意:iOS客户端7.0.6版本、Android客户端7.0.7版本之后的一次性订阅/长期订阅才支持多个模板消息,iOS客户端7.0.5版本、Android客户端7.0.6版本之前的一次订阅只支持一个模板消息)消息模板id在[微信公众平台(mp.weixin.qq.com)-功能-订阅消息]中配置 * @supported weapp, tt @@ -24,6 +24,11 @@ declare module '../../index' { success?: (result: SuccessCallbackResult) => void } + type AtLeastOne = + Keys extends keyof T ? T & Required> : never; + + type Option = AtLeastOne; + interface FailCallbackResult extends TaroGeneral.CallbackResult { /** 接口调用失败错误码 */ errCode: number diff --git a/packages/taro/types/api/route/index.d.ts b/packages/taro/types/api/route/index.d.ts index 8bc89d4b8b42..c2d1bec63830 100644 --- a/packages/taro/types/api/route/index.d.ts +++ b/packages/taro/types/api/route/index.d.ts @@ -220,7 +220,7 @@ declare module '../../index' { interface TaroStatic { /** 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面 - * @supported weapp, h5, rn, tt, harmony, harmony_hybrid + * @supported weapp, h5, rn, tt, harmony_hybrid * @example * ```json * { diff --git a/packages/taro/types/api/share/index.d.ts b/packages/taro/types/api/share/index.d.ts index 8f299e857443..29f34c816efa 100644 --- a/packages/taro/types/api/share/index.d.ts +++ b/packages/taro/types/api/share/index.d.ts @@ -3,26 +3,52 @@ import Taro from '../../index' declare module '../../index' { namespace updateShareMenu { interface Option { - /** 动态消息的 activityId。通过 [updatableMessage.createActivityId](https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/updatable-message/updatableMessage.createActivityId.html) 接口获取 */ - activityId?: string - /** 接口调用结束的回调函数(调用成功、失败都会执行) */ - complete?: (res: TaroGeneral.CallbackResult) => void - /** 接口调用失败的回调函数 */ - fail?: (res: TaroGeneral.CallbackResult) => void - /** 是否是动态消息,详见[动态消息](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share/updatable-message.html) */ + /** 是否使用带 shareTicket 的转发[详情](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html) + * @default false + */ + withShareTicket?: boolean + /** 是否是动态消息,详见[动态消息](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share/updatable-message.html) + * @default false + */ isUpdatableMessage?: boolean + /** 动态消息的 activityId。通过 [updatableMessage.createActivityId](https://developers.weixin.qq.com/miniprogram/dev/api/share/errorupdatableMessage.createActivityId)) 接口获取 + */ + activityId?: string + /** 群待办消息的id,通过toDoActivityId可以把多个群待办消息聚合为同一个。通过 [updatableMessage.createActivityId](https://developers.weixin.qq.com/miniprogram/dev/api/share/errorupdatableMessage.createActivityId) 接口获取。详见[群待办消息](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html + */ + toDoActivityId?: string + /** 动态消息的模板信息 + */ + templateInfo?: UpdatableMessageFrontEndTemplateInfo + /** 是否是私密消息。详见 [小程序私密消息](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share/private-message.html) + */ + isPrivateMessage?: boolean + /** 参与用户此聊天室下的 group_openid 列表 + * @default [] + */ + participant?: string[] + /** 聊天工具模式特殊动态消息 + * @default false + */ + useForChatTool?: boolean + /** 指定成员的方式 + * @default 1 + */ + chooseType?: number /** 接口调用成功的回调函数 */ success?: (res: TaroGeneral.CallbackResult) => void - /** 动态消息的模板信息 */ - templateInfo?: UpdatableMessageFrontEndTemplateInfo - /** 是否使用带 shareTicket 的转发[详情](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html) */ - withShareTicket?: boolean + /** 接口调用失败的回调函数 */ + fail?: (res: TaroGeneral.CallbackResult) => void + /** 接口调用结束的回调函数(调用成功、失败都会执行) */ + complete?: (res: TaroGeneral.CallbackResult) => void } /** 动态消息的模板信息 */ interface UpdatableMessageFrontEndTemplateInfo { /** 参数列表 */ parameterList: UpdatableMessageFrontEndParameter[] + /** 模板ID */ + templateId: string } /** 参数列表 */ interface UpdatableMessageFrontEndParameter { diff --git a/packages/taro/types/api/storage/index.d.ts b/packages/taro/types/api/storage/index.d.ts index 120b4227e090..e1d8084f0b83 100644 --- a/packages/taro/types/api/storage/index.d.ts +++ b/packages/taro/types/api/storage/index.d.ts @@ -310,7 +310,7 @@ declare module '../../index' { createBufferURL( /** 需要存入内存的二进制数据 */ buffer: ArrayBuffer | TypedArray - ): void + ): string /** Taro.clearStorage 的同步版本 * @supported weapp, alipay, swan, jd, qq, tt, h5, harmony_hybrid @@ -327,7 +327,7 @@ declare module '../../index' { clearStorageSync(): void /** 清理本地数据缓存 - * @supported weapp, alipay, swan, jd, qq, tt, h5, rn, harmony, harmony_hybrid + * @supported weapp, alipay, swan, jd, qq, tt, h5, rn, harmony_hybrid * @example * ```tsx * Taro.clearStorage() diff --git a/packages/taro/types/api/taro.extend.d.ts b/packages/taro/types/api/taro.extend.d.ts index 4519a77168a8..5c4fa139016b 100644 --- a/packages/taro/types/api/taro.extend.d.ts +++ b/packages/taro/types/api/taro.extend.d.ts @@ -22,7 +22,7 @@ declare module '../index' { onShow: string preloadData?: Record /** - * RN 私有对象navigationRef,用于使用底层接口控制路由 + * RN 私有对象 navigationRef,用于使用底层接口控制路由 */ rnNavigationRef?: React.RefObject } @@ -48,13 +48,14 @@ declare module '../index' { [TaroGeneral.ENV_TYPE.HARMONY]: TaroGeneral.ENV_TYPE.HARMONY [TaroGeneral.ENV_TYPE.QUICKAPP]: TaroGeneral.ENV_TYPE.QUICKAPP [TaroGeneral.ENV_TYPE.HARMONYHYBRID]: TaroGeneral.ENV_TYPE.HARMONYHYBRID + [TaroGeneral.ENV_TYPE.ASCF]: TaroGeneral.ENV_TYPE.ASCF } namespace interceptorify { - type promiseifyApi = (requestParams: T) => Promise + type promisifyApi = (requestParams: T) => Promise interface InterceptorifyChain { requestParams: T - proceed: promiseifyApi + proceed: promisifyApi } type InterceptorifyInterceptor = (chain: InterceptorifyChain) => Promise interface Interceptorify { @@ -111,7 +112,7 @@ declare module '../index' { mpVersion: string /** 小程序环境 */ envType: string - /** 小程序appId */ + /** 小程序 appId */ appId: string } /** 插件信息 */ @@ -120,7 +121,7 @@ declare module '../index' { common: { /** 用户数据存储的路径 */ USER_DATA_PATH: string - /** 校验白名单属性中的appInfoLaunchFrom后返回额外信息 */ + /** 校验白名单属性中的 appInfoLaunchFrom 后返回额外信息 */ location: string | undefined launchFrom: string | undefined schema: string | undefined @@ -173,9 +174,9 @@ declare module '../index' { getRenderer(): 'webview' | 'skyline' /** - * 包裹 promiseify api 的洋葱圈模型 + * 包裹 promisify api 的洋葱圈模型 * @supported global - * @param promiseifyApi + * @param promisifyApi * @example * ```tsx * // 创建实例 @@ -227,6 +228,6 @@ declare module '../index' { * }) * ``` */ - interceptorify(promiseifyApi: interceptorify.promiseifyApi): interceptorify.Interceptorify + interceptorify(api: interceptorify.promisifyApi): interceptorify.Interceptorify } } diff --git a/packages/taro/types/api/taro.hooks.d.ts b/packages/taro/types/api/taro.hooks.d.ts index 6b07e06c7978..da775627737d 100644 --- a/packages/taro/types/api/taro.hooks.d.ts +++ b/packages/taro/types/api/taro.hooks.d.ts @@ -98,20 +98,20 @@ declare module '../index' { /** * 页面加载完成时的回调。 - * @supported weapp, h5, harmony_hybrid + * @supported weapp, h5, harmony_hybrid, harmony */ useLoad>(callback: (param: T) => void): void /** * 页面卸载时的回调。 - * @supported weapp, h5, harmony_hybrid + * @supported weapp, h5, harmony_hybrid, harmony */ useUnload(callback: () => void): void /** * 页面初次渲染完成的回调。 * 此时页面已经准备妥当,可以和视图层进行交互。 - * @supported weapp, h5, harmony_hybrid + * @supported weapp, h5, harmony_hybrid, harmony */ useReady(callback: () => void): void @@ -133,6 +133,12 @@ declare module '../index' { */ useOptionMenuClick(callback: () => void): void + /** + * 键盘高度变化时的回调。 + * @supported alipay + */ + useKeyboardHeight(callback: (payload: { height: number }) => void): void + /** * 下拉中断时的回调。 * @supported alipay, h5, harmony_hybrid diff --git a/packages/taro/types/api/ui/tab-bar.d.ts b/packages/taro/types/api/ui/tab-bar.d.ts index 57e3be1292b6..afca2e227aa8 100644 --- a/packages/taro/types/api/ui/tab-bar.d.ts +++ b/packages/taro/types/api/ui/tab-bar.d.ts @@ -121,13 +121,13 @@ declare module '../../index' { interface TaroStatic { /** 显示 tabBar 某一项的右上角的红点 - * @supported weapp, h5, rn, tt, harmony, harmony_hybrid + * @supported weapp, h5, rn, tt, harmony_hybrid * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.showTabBarRedDot.html */ showTabBarRedDot(option: showTabBarRedDot.Option): Promise /** 显示 tabBar - * @supported weapp, h5, rn, tt, harmony, harmony_hybrid + * @supported weapp, h5, rn, tt, harmony_hybrid * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.showTabBar.html */ showTabBar(option?: showTabBar.Option): Promise @@ -148,7 +148,7 @@ declare module '../../index' { setTabBarStyle(option?: setTabBarStyle.Option): Promise /** 动态设置 tabBar 某一项的内容,`2.7.0` 起图片支持临时文件和网络文件。 - * @supported weapp, h5, rn, tt, harmony, harmony_hybrid + * @supported weapp, h5, rn, tt, harmony_hybrid * @example * ```tsx * Taro.setTabBarItem({ @@ -163,7 +163,7 @@ declare module '../../index' { setTabBarItem(option: setTabBarItem.Option): Promise /** 为 tabBar 某一项的右上角添加文本 - * @supported weapp, h5, rn, tt, harmony, harmony_hybrid + * @supported weapp, h5, rn, tt, harmony_hybrid * @example * ```tsx * Taro.setTabBarBadge({ @@ -176,19 +176,19 @@ declare module '../../index' { setTabBarBadge(option: setTabBarBadge.Option): Promise /** 移除 tabBar 某一项右上角的文本 - * @supported weapp, h5, rn, tt, harmony, harmony_hybrid + * @supported weapp, h5, rn, tt, harmony_hybrid * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.removeTabBarBadge.html */ removeTabBarBadge(option: removeTabBarBadge.Option): Promise /** 隐藏 tabBar 某一项的右上角的红点 - * @supported weapp, h5, rn, tt, harmony, harmony_hybrid + * @supported weapp, h5, rn, tt, harmony_hybrid * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.hideTabBarRedDot.html */ hideTabBarRedDot(option: hideTabBarRedDot.Option): Promise /** 隐藏 tabBar - * @supported weapp, h5, rn, tt, harmony, harmony_hybrid + * @supported weapp, h5, rn, tt, harmony_hybrid * @see https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.hideTabBar.html */ hideTabBar(option?: hideTabBar.Option): Promise diff --git a/packages/taro/types/compile/config/h5.d.ts b/packages/taro/types/compile/config/h5.d.ts index 088d4164c5c1..43883d311b67 100644 --- a/packages/taro/types/compile/config/h5.d.ts +++ b/packages/taro/types/compile/config/h5.d.ts @@ -6,6 +6,7 @@ import type { IOption, IPostcssOption, IUrlLoaderOption } from './util' import type { OutputOptions as RollupOutputOptions } from 'rollup' import type { Compiler, CompilerTypes, CompilerWebpackTypes } from '../compiler' import type { OutputExt } from './project' +import type { ServerOptions as ViteServerOptions } from 'vite' export interface IH5RouterConfig { /** 配置路由模式 */ @@ -51,7 +52,8 @@ export interface IH5Config { router?: IH5RouterConfig /** 预览服务的配置,可以更改端口等参数。具体配置参考 [webpack-dev-server](https://webpack.js.org/configuration/dev-server) */ - devServer?: webpackDevServer.Configuration + // 修改后:同时支持 Webpack 和 Vite + devServer?: T extends 'vite' ? ViteServerOptions : webpackDevServer.Configuration /** 用于控制是否生成 js、css 对应的 sourceMap (默认值:watch 模式下为 true,否则为 false) */ enableSourceMap?: boolean @@ -119,8 +121,9 @@ export interface IH5Config { /** Web 编译过程的相关配置 */ compile?: { - exclude?: (string | RegExp)[] - include?: (string | RegExp)[] + exclude?: any[] + include?: any[] + /** 对应 @rollup/plugin-babel 插件的 filter 配置。只在 vite 编译模式下有效 */ filter?: (filename: string) => boolean } /** 生成的代码是否要兼容旧版浏览器,值为 true 时,会去读取 package.json 的 browserslist 字段。只在 vite 编译模式下有效 */ diff --git a/packages/taro/types/compile/config/mini.d.ts b/packages/taro/types/compile/config/mini.d.ts index 4bc69cc634c8..d7514669e3bf 100644 --- a/packages/taro/types/compile/config/mini.d.ts +++ b/packages/taro/types/compile/config/mini.d.ts @@ -91,8 +91,9 @@ export interface IMiniAppConfig /** 小程序编译过程的相关配置 */ compile?: { - exclude?: (string | RegExp)[] - include?: (string | RegExp)[] + exclude?: any[] + include?: any[] + /** 对应 @rollup/plugin-babel 插件的 filter 配置。只在 vite 编译模式下有效 */ filter?: (filename: string) => boolean } diff --git a/packages/taro/types/compile/viteCompilerContext.d.ts b/packages/taro/types/compile/viteCompilerContext.d.ts index 48f11ede8203..4513b36b54b1 100644 --- a/packages/taro/types/compile/viteCompilerContext.d.ts +++ b/packages/taro/types/compile/viteCompilerContext.d.ts @@ -9,6 +9,7 @@ import type { AppConfig, PageConfig } from '../index' export interface ViteNativeCompMeta { name: string + exportName: string scriptPath: string configPath: string config: PageConfig @@ -16,6 +17,7 @@ export interface ViteNativeCompMeta { templatePath: string cssPath?: string isPackage?: boolean + isGenerated?: boolean } export interface ViteFileType { @@ -57,6 +59,7 @@ export interface ViteHarmonyBuildConfig extends CommonBuildConfig, IHarmonyConfi runtimePath?: string | string[] isPure?: boolean taroComponentsPath: string + cssVariables?: boolean // 是否动态解析css变量 } export interface CommonBuildConfig extends IProjectConfig<'vite'> { @@ -109,6 +112,7 @@ export interface ViteCompilerContext { configFileList: string[] compilePage: (pageName: string) => VitePageMeta watchConfigFile: (rollupCtx: PluginContext) => void + collectedDeps: (rollupCtx: PluginContext, id: string, filter, cache: Set = new Set()) => Promise> getAppScriptPath: () => string getApp: () => ViteAppMeta getPages: () => VitePageMeta[] @@ -140,7 +144,9 @@ export interface ViteHarmonyCompilerContext extends ViteCompilerContext string[] modifyHarmonyConfig: (config: Partial) => void modifyHostPackage: (deps?: Record, devDeps?: Record) => Exclude - collectNativeComponents: (meta: ViteAppMeta | VitePageMeta | ViteNativeCompMeta) => void + resolvePageImportPath: (scriptPath: string, pageName: string) => string + collectNativeComponents: (meta: ViteAppMeta | VitePageMeta | ViteNativeCompMeta) => ViteNativeCompMeta[] + generateNativeComponent: (rollupCtx: PluginContext, meta: ViteNativeCompMeta, implicitlyLoadedAfterOneOf: string[] = []) => void getScriptPath: (filePath: string) => string getStylePath: (filePath: string) => string getConfigPath: (filePath: string) => string @@ -151,7 +157,9 @@ export interface ViteMiniCompilerContext extends ViteCompilerContext getCommonChunks: () => string[] - collectNativeComponents: (meta: ViteAppMeta | VitePageMeta | ViteNativeCompMeta) => void + resolvePageImportPath: (scriptPath: string, pageName: string) => string + collectNativeComponents: (meta: ViteAppMeta | VitePageMeta | ViteNativeCompMeta) => ViteNativeCompMeta[] + generateNativeComponent: (rollupCtx: PluginContext, meta: ViteNativeCompMeta, implicitlyLoadedAfterOneOf: string[] = []) => void getScriptPath: (filePath: string) => string getTemplatePath: (filePath: string) => string getStylePath: (filePath: string) => string diff --git a/packages/taro/types/global.d.ts b/packages/taro/types/global.d.ts index 85410b1fb434..8edca59a425f 100644 --- a/packages/taro/types/global.d.ts +++ b/packages/taro/types/global.d.ts @@ -410,6 +410,7 @@ declare namespace TaroGeneral { // ENV_TYPE enum ENV_TYPE { + ASCF = 'ASCF', WEAPP = 'WEAPP', SWAN = 'SWAN', ALIPAY = 'ALIPAY', diff --git a/packages/taro/types/index.d.ts b/packages/taro/types/index.d.ts index da8ec8360884..de679c27cfe1 100644 --- a/packages/taro/types/index.d.ts +++ b/packages/taro/types/index.d.ts @@ -192,4 +192,5 @@ declare namespace Taro { declare global { const defineAppConfig: (config: Taro.AppConfig) => Taro.AppConfig const definePageConfig: (config: Taro.PageConfig) => Taro.Config + const importNativeComponent: (path: string, name = '', exportName = 'default') => Awaited } diff --git a/packages/taro/types/taro.component.d.ts b/packages/taro/types/taro.component.d.ts index 5ae244eaee6d..825833482d19 100644 --- a/packages/taro/types/taro.component.d.ts +++ b/packages/taro/types/taro.component.d.ts @@ -45,6 +45,8 @@ declare module './index' { eh?(event: MpEvent): void onLoad(options: Record): void onOptionMenuClick?(): void + /** 键盘高度变化时触发 @supported alipay */ + onKeyboardHeight?(opt: { height: number; }): void onPageScroll?(opt: PageScrollObject): void onPopMenuClick?(): void onPullDownRefresh?(): void diff --git a/packages/taro/types/taro.config.d.ts b/packages/taro/types/taro.config.d.ts index 1bae7fbde63f..b880c86aa9f2 100644 --- a/packages/taro/types/taro.config.d.ts +++ b/packages/taro/types/taro.config.d.ts @@ -193,7 +193,7 @@ declare module './index' { /** 页面自定义组件配置 * @see https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/ */ - usingComponents?: Record + usingComponents?: Record /** 指定使用升级后的 weui 样式 * - v2: 可表明启用新版的组件样式 * @default default @@ -581,7 +581,7 @@ declare module './index' { desc: string /** 在该场景下打开小程序时跳转页面 */ path: string - } + }[] /** 定制化型服务商票据 */ serviceProviderTicket?: string /** 半屏小程序 appId */ @@ -683,6 +683,11 @@ declare module './index' { * @supported alipay */ behavior?: Behavior + /** + * 用于开启抖音小程序的 tt-dom 渲染模式 + * @supported tt + */ + enableTTDom?: boolean } interface Config extends PageConfig, AppConfig {