We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在iframe模式下,使用view-design组件库,在使用Modal是报错
调试发现 iview里面使用了这个方法 function getTarget (node) { if (node === void 0) { node = window.rawWindow.document.body } if (node === true) { return document.body } return node instanceof window.rawWindow.Node ? node : document.querySelector(node) }
function getTarget (node) { if (node === void 0) { node = window.rawWindow.document.body } if (node === true) { return document.body } return node instanceof window.rawWindow.Node ? node : document.querySelector(node) }
这个方法里面document.body instanceof window.Node 这个结果等于false,导致报错 我不清楚如何修改了
1.官网提供的例子,引入view-design组件库,使用iframe模式就可以复现 2.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题描述
在iframe模式下,使用view-design组件库,在使用Modal是报错
调试发现 iview里面使用了这个方法
function getTarget (node) { if (node === void 0) { node = window.rawWindow.document.body } if (node === true) { return document.body } return node instanceof window.rawWindow.Node ? node : document.querySelector(node) }
这个方法里面document.body instanceof window.Node 这个结果等于false,导致报错
我不清楚如何修改了
复现步骤
1.官网提供的例子,引入view-design组件库,使用iframe模式就可以复现
2.
上传截图
环境信息
The text was updated successfully, but these errors were encountered: