This commit is contained in:
iqudoo
2026-04-30 15:35:30 +08:00
parent 0d1698439e
commit 51738b1936
9 changed files with 102 additions and 12 deletions

8
types/index.d.ts vendored
View File

@@ -22,6 +22,10 @@ interface ScanConfigOptions {
* 网页扫码成功提示音是否启用,默认启用
*/
webScanBeepEnabled?: boolean,
/**
* BarcodeDetector polyfill 地址,默认使用 jsDelivr CDN
*/
webBarcodeDetectorPolyfillUrl?: string,
/**
* 微信JSSDK配置微信环境才会生效配置后会自动初始化微信JSSDK
*/
@@ -153,6 +157,10 @@ interface IScan {
* 开启扫码
*/
startScan(): void;
/**
* 选择图片进行识别
*/
scanImage(): void;
/**
* 清除全部监听
*/