File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
# bedrock-vue-barcode-scanner ChangeLog
2
2
3
+ ## 1.4.1 - 2025-??-??
4
+
5
+ ### Added
6
+ - Provide property to automatically light torch when initialized.
7
+
8
+ ### Changed
9
+ - Do not light torch by default.
10
+
3
11
## 1.4.0 - 2025-04-03
4
12
5
13
### Changed
Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ export default {
39
39
showQrBox: {
40
40
type: Boolean ,
41
41
default: false
42
+ },
43
+ lightTorch: {
44
+ type: Boolean ,
45
+ default: false
42
46
}
43
47
},
44
48
emits: [' result' , ' close' ],
@@ -98,8 +102,8 @@ export default {
98
102
const selectedCamera = scanner .getRunningTrackSettings ()? .deviceId ;
99
103
updateSelectedCamera (selectedCamera);
100
104
}
101
- // Default to turning light on
102
- if (! cameraLight .value ) {
105
+ // Turn on torch by default, if requested
106
+ if (cameraLight .value != props . lightTorch ) {
103
107
await toggleTorch ();
104
108
}
105
109
await getZoomConstraints ();
You can’t perform that action at this time.
0 commit comments