@zzdadelu/schema-builder 1.0.0-alpha.41 → 1.0.0-alpha.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,5 +8,22 @@ export default (function () {
8
8
  iframe.height = '100%';
9
9
  iframe.frameBorder = '0';
10
10
  iframe.srcdoc = createIframeContent();
11
+ var win = iframe.srcdoc;
12
+ var doc = win.contentDocument;
13
+ console.warn('createIframeContentwin.contentWindow1', win);
14
+ console.warn('createIframeContentwin.contentWindow2', doc);
15
+ console.warn('createIframeContentwin.contentWindow3', win.contentWindow);
16
+ setTimeout(function () {
17
+ try {
18
+ var _win$contentWindow;
19
+ // 检查函数是否存在
20
+ var hasFunction = typeof ((_win$contentWindow = win.contentWindow) === null || _win$contentWindow === void 0 ? void 0 : _win$contentWindow.getFormRenderMaterial) === 'function';
21
+ if (!hasFunction) {
22
+ console.warn('createIframeContent getFormRenderMaterial not found after iframe loaded');
23
+ }
24
+ } catch (e) {
25
+ console.error('createIframeContent Error checking function after iframe load:', e);
26
+ }
27
+ }, 1000);
11
28
  return iframe;
12
29
  });
@@ -14,5 +14,22 @@ var _default = exports.default = function _default() {
14
14
  iframe.height = '100%';
15
15
  iframe.frameBorder = '0';
16
16
  iframe.srcdoc = createIframeContent();
17
+ var win = iframe.srcdoc;
18
+ var doc = win.contentDocument;
19
+ console.warn('createIframeContentwin.contentWindow1', win);
20
+ console.warn('createIframeContentwin.contentWindow2', doc);
21
+ console.warn('createIframeContentwin.contentWindow3', win.contentWindow);
22
+ setTimeout(function () {
23
+ try {
24
+ var _win$contentWindow;
25
+ // 检查函数是否存在
26
+ var hasFunction = typeof ((_win$contentWindow = win.contentWindow) === null || _win$contentWindow === void 0 ? void 0 : _win$contentWindow.getFormRenderMaterial) === 'function';
27
+ if (!hasFunction) {
28
+ console.warn('createIframeContent getFormRenderMaterial not found after iframe loaded');
29
+ }
30
+ } catch (e) {
31
+ console.error('createIframeContent Error checking function after iframe load:', e);
32
+ }
33
+ }, 1000);
17
34
  return iframe;
18
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zzdadelu/schema-builder",
3
- "version": "1.0.0-alpha.41",
3
+ "version": "1.0.0-alpha.42",
4
4
  "description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
5
5
  "keywords": [
6
6
  "Form",