fix
This commit is contained in:
@@ -44,16 +44,15 @@ if (window.IScan) {
|
||||
|
||||
```js
|
||||
IScan.config({
|
||||
webScanCanvasEnabled: true,
|
||||
webScanBeepEnabled: true,
|
||||
initWechatJssdk: {
|
||||
apiUrl: "https://your-domain.com/wechat/jssdk-config"
|
||||
}
|
||||
}).then(function () {
|
||||
// 监听识别状态
|
||||
IScan.setStatusListener(function (status) {
|
||||
console.log("status:", status);
|
||||
});
|
||||
|
||||
// 监听识别结果
|
||||
IScan.onScanListener(function (res) {
|
||||
console.log("scan result:", res.result, res.key);
|
||||
}, "scan", null, 100);
|
||||
@@ -78,8 +77,10 @@ IScan.stopScan();
|
||||
|
||||
```ts
|
||||
interface ScanConfigOptions {
|
||||
scanRestartDelay?: number,
|
||||
bridgeEnabled?: boolean;
|
||||
bridgeName?: string;
|
||||
webScanEnabled?: boolean,
|
||||
webScanCanvasEnabled?: boolean;
|
||||
webScanCanvasStyle?: string;
|
||||
webScanType?: ("qrCode" | "barCode")[];
|
||||
|
||||
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user