init commit
This commit is contained in:
6
dist/index.d.ts
vendored
6
dist/index.d.ts
vendored
@@ -2,6 +2,10 @@
|
||||
* 扫码初始化选项
|
||||
*/
|
||||
interface ScanConfigOptions {
|
||||
/**
|
||||
* 扫码重启延迟,单位:毫秒,默认500ms
|
||||
*/
|
||||
scanRestartDelay?: number,
|
||||
/**
|
||||
* 桥接是否启用,默认启用
|
||||
*/
|
||||
@@ -138,7 +142,7 @@ interface ScanListenerInfo {
|
||||
/**
|
||||
* 监听状态
|
||||
*/
|
||||
type ScanStatus = "scanning" | "closed";
|
||||
type ScanStatus = "scanning" | "ready";
|
||||
|
||||
/**
|
||||
* 监听结果回调
|
||||
|
||||
6
dist/index.html
vendored
6
dist/index.html
vendored
@@ -1,4 +1,4 @@
|
||||
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1,user-scalable=no"/><title>IScan Demo</title><script src="https://cdn.jsdelivr.net/npm/vconsole@3.12.0/dist/vconsole.min.js"></script><script>var vconsole = new VConsole();</script><style>* {
|
||||
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1,user-scalable=no"/><title>IScan</title><script src="https://cdn.jsdelivr.net/npm/vconsole@3.12.0/dist/vconsole.min.js"></script><script>var vconsole = new VConsole();</script><style>* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@@ -262,24 +262,20 @@ IScan.stopScan();</pre></section></main><script>(function () {
|
||||
}
|
||||
|
||||
function stopScan() {
|
||||
hide();
|
||||
IScan.stopScan();
|
||||
setStatus(IScan.getStatus());
|
||||
}
|
||||
|
||||
function startScan() {
|
||||
hide();
|
||||
IScan.startScan();
|
||||
setStatus(IScan.getStatus());
|
||||
}
|
||||
|
||||
function scanImage() {
|
||||
hide();
|
||||
IScan.scanImage();
|
||||
}
|
||||
|
||||
function scanVideo() {
|
||||
hide();
|
||||
IScan.scanVideo();
|
||||
}
|
||||
|
||||
|
||||
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