Closed wtto00 closed 3 weeks ago
The changes introduce a new flash mode option, "torch"
, to the _CameraFlash
type in the camera component of the Uni App types package. This update modifies the _CameraProps
type to accept the new flash mode and updates the global UniHelper
namespace to include the new option. Documentation comments have also been revised to describe the new functionality. No alterations to logic, error handling, or control flow have been made.
File Path | Change Summary |
---|---|
packages/uni-app-types/src/media-components/camera.ts | Added "torch" option to _CameraFlash type; updated flash property in _CameraProps to accept the new type; modified CameraFlash in UniHelper namespace to include "torch" ; updated documentation comments accordingly. |
In the land of light, a new flash does gleam,
With"torch"
now added, it shines like a dream.
A hop and a skip, we embrace the new mode,
Brightening paths on our coding road.
So let’s celebrate this change with delight,
For every new feature makes coding feel bright! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | 3986ed1d88d32762e0584e4aa738dc26abf1c8ce |
Latest deploy log | https://app.netlify.com/sites/uni-typed/deploys/6729edd1243cb400083d75fa |
Deploy Preview | https://deploy-preview-23--uni-typed.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
``` pnpm add https://pkg.pr.new/@uni-helper/uni-app-components@23 ```
``` pnpm add https://pkg.pr.new/@uni-helper/uni-app-types@23 ```
``` pnpm add https://pkg.pr.new/@uni-helper/uni-types@23 ```
``` pnpm add https://pkg.pr.new/@uni-helper/uni-ui-types@23 ```
``` pnpm add https://pkg.pr.new/@uni-helper/uni-cloud-types@23 ```
commit: 3986ed1
Thank you!
Description 描述
camera
组件的flash
属性缺少了常亮torch
的选项。Linked Issues 关联的 Issues
Additional context 额外上下文
uniapp文档
微信小程序文档
Summary by CodeRabbit
"torch"
for camera functionality, enhancing user control over camera settings."torch"
flash mode across relevant components and namespaces.