This commit is contained in:
iqudoo
2026-05-12 19:59:42 +08:00
parent bc025f7f74
commit c56c17589a
4 changed files with 117 additions and 10 deletions

10
types/index.d.ts vendored
View File

@@ -54,7 +54,7 @@ interface ScanConfigOptions {
*/
webScanCanvasEnabled?: boolean,
/**
* 网页扫码canvas样式默认position: fixed; width: 300px; height: 300px; top: 0; left: 0; z-index: 9999;
* 网页扫码canvas样式默认PC 为左上角固定 300×300移动端为 min(视口宽, 视口高) 的正方形,固定在左上角;z-index: 9999
*/
webScanCanvasStyle?: string,
/**
@@ -69,6 +69,14 @@ interface ScanConfigOptions {
* 网页扫码关闭按钮的 class
*/
webScanCloseButtonClass?: string,
/**
* Canvas 开启且支持图片识别时关闭按钮下方的「选图」按钮样式fixed 定位基准由 SDK 计算,可与关闭按钮一致覆盖)
*/
webScanPickImageButtonStyle?: string,
/**
* 网页扫码选图按钮的 class
*/
webScanPickImageButtonClass?: string,
/**
* 网页扫码类型,默认支持二维码和条码
*/