Skip to content

Commit

Permalink
fix: CameraFlash torch option (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtto00 authored Nov 6, 2024
1 parent fc0877a commit aa87524
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/uni-app-types/src/media-components/camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ type _CameraDevicePosition = "front" | "back";
* On 打开
*
* Off 关闭
*
* Torch 常亮
*/
type _CameraFlash = "auto" | "on" | "off";
type _CameraFlash = "auto" | "on" | "off" | "torch";

/**
* 期望的相机帧数据尺寸
Expand Down Expand Up @@ -123,6 +125,8 @@ type _CameraProps = Partial<{
*
* Off 关闭
*
* Torch 常亮
*
* 默认为 auto
*/
flash: _CameraFlash;
Expand Down Expand Up @@ -214,6 +218,8 @@ declare global {
* On 打开
*
* Off 关闭
*
* Torch 常亮
*/
export type CameraFlash = _CameraFlash;
/**
Expand Down

0 comments on commit aa87524

Please # to comment.