优化iframe内使用的优化

This commit is contained in:
iqudoo
2026-05-25 19:12:35 +08:00
parent c56c17589a
commit 6663fd6ab4
7 changed files with 103 additions and 110 deletions

View File

@@ -5,7 +5,7 @@ let _defineConfig = {
let _defConfig = {
/**
* iframe / 嵌入场景下是否把调用转发到父页面的同名 SDKpostMessage
* - 'auto'(默认):只要处于子 frameparent !== window即转发 startScan 等走父页逻辑
* - 'auto'(默认):处于子 frame startScan 等走父页onScanListener 仅注册在 iframe 内,识别结果由父页回传
* - true | 'on' | 'parent':在存在父 window 时强制转发
* - false | 'off' | 'local':始终在本页执行(子页自己要跑扫码时用)
*/