diff --git a/docs/component/camera.md b/docs/component/camera.md index 1a4b8d7a1cb7ba48ed4596f12272baca77636832..6510cf36a36d2c85810561cbfc066de5ee804db0 100644 --- a/docs/component/camera.md +++ b/docs/component/camera.md @@ -19,10 +19,13 @@ |属性名|类型|默认值|说明|平台差异说明| |:-|:-|:-|:-|:-| |mode|String|normal |有效值为 normal, scanCode |微信小程序| +|resolution|string|medium|分辨率,不支持动态修改|微信小程序2.10.0| |device-position|String |back |前置或后置,值为front, back| | |flash |String |auto |闪光灯,值为auto, on, off| | +|frame-size|string|medium|指定期望的相机帧数据尺寸|微信小程序2.7.0| |@stop |EventHandle | |摄像头在非正常终止时触发,如退出后台等情况| | |@error |EventHandle | |用户不允许使用摄像头时触发| | +|@initdone|eventhandle||相机初始化完成时触发,e.detail = {maxZoom}|微信小程序2.7.0| |@scancode |EventHandle | |在扫码识别成功时触发,仅在 mode="scanCode" 时生效|微信小程序 | **Tips:** diff --git a/docs/component/cover-view.md b/docs/component/cover-view.md index cfbee270a5bbdf407493fa74db816ff28ec89a20..3808d0d0c4cb7fe34c51c1ad799bd7d0f7f62974 100644 --- a/docs/component/cover-view.md +++ b/docs/component/cover-view.md @@ -10,6 +10,11 @@ |√|√|√|√|√|x|√| 支持的事件:`click` + +|属性名|类型|默认值|说明|平台差异说明| +|:-|:-|:-|:-|:-| +|scroll-top|number/string||设置顶部滚动偏移量,仅在设置了 overflow-y: scroll 成为滚动元素后生效|微信小程序2.1.0| + #### cover-image 覆盖在原生组件上的图片视图。 @@ -22,9 +27,11 @@ **属性说明** -|属性名|类型|默认值|说明| -|:-|:-|:-|:-| +|属性名|类型|默认值|说明|平台差异说明| +|:-|:-|:-|:-|:-| |src|String||图标路径。支持本地路径、网络路径。不支持 base64 格式。| +|@load|eventhandle||图片加载成功时触发|微信小程序 2.1.0| +|@error|eventhandle||图片加载失败时触发|微信小程序 2.1.0| 可覆盖的原生组件:`