init commit

This commit is contained in:
iqudoo
2026-04-30 17:31:08 +08:00
parent 46da9edfb4
commit 1215b6eea6
11 changed files with 132 additions and 37 deletions

View File

@@ -238,7 +238,7 @@ IScan.offScanListener("order");
listener.cancel();
```
### `getStatus(): "scanning" | "closed"`
### `getStatus(): "scanning" | "ready"`
获取当前扫码状态。
@@ -301,7 +301,7 @@ interface ScanResult {
key: string;
}
type ScanStatus = "scanning" | "closed";
type ScanStatus = "scanning" | "ready";
type ScanResultCallback = (result: ScanResult) => any;
type ScanStatusCallback = (status: ScanStatus) => any;