diff --git a/packages/uni-app-types/src/media-components/camera.ts b/packages/uni-app-types/src/media-components/camera.ts index b326a88..5164777 100644 --- a/packages/uni-app-types/src/media-components/camera.ts +++ b/packages/uni-app-types/src/media-components/camera.ts @@ -38,8 +38,10 @@ type _CameraDevicePosition = "front" | "back"; * On 打开 * * Off 关闭 + * + * Torch 常亮 */ -type _CameraFlash = "auto" | "on" | "off"; +type _CameraFlash = "auto" | "on" | "off" | "torch"; /** * 期望的相机帧数据尺寸 @@ -123,6 +125,8 @@ type _CameraProps = Partial<{ * * Off 关闭 * + * Torch 常亮 + * * 默认为 auto */ flash: _CameraFlash; @@ -214,6 +218,8 @@ declare global { * On 打开 * * Off 关闭 + * + * Torch 常亮 */ export type CameraFlash = _CameraFlash; /**