@zzdadelu/schema-builder 1.0.0-alpha.33 → 1.0.0-alpha.34

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.
package/es/main.js CHANGED
@@ -59,15 +59,17 @@ var Design = function Design(props, ref) {
59
59
  };
60
60
  var modifyIframeContent = function modifyIframeContent() {
61
61
  var iframe = document.getElementsByTagName("iframe")[0];
62
- console.log('iframe', iframe);
62
+ console.log(' modifyIframeContent iframe', iframe);
63
63
 
64
64
  // Check if iframe exists and load the document
65
65
  if (iframe) {
66
66
  iframe.onload = function () {
67
67
  var iframeDoc = iframe.contentDocument;
68
+ console.log('modifyIframe iframeDoc', iframeDoc);
68
69
  if (iframeDoc) {
69
70
  var iframe2 = iframeDoc === null || iframeDoc === void 0 ? void 0 : iframeDoc.getElementsByTagName("iframe")[0];
70
71
  var iframeDoc2 = iframe2 === null || iframe2 === void 0 ? void 0 : iframe2.contentDocument;
72
+ console.log('modifyIframe iframeDoc2', iframeDoc2);
71
73
  if (iframeDoc2) {
72
74
  // Find and replace the target script
73
75
  var scripts = iframeDoc2.querySelectorAll('script');
package/lib/main.js CHANGED
@@ -67,15 +67,17 @@ var Design = function Design(props, ref) {
67
67
  };
68
68
  var modifyIframeContent = function modifyIframeContent() {
69
69
  var iframe = document.getElementsByTagName("iframe")[0];
70
- console.log('iframe', iframe);
70
+ console.log(' modifyIframeContent iframe', iframe);
71
71
 
72
72
  // Check if iframe exists and load the document
73
73
  if (iframe) {
74
74
  iframe.onload = function () {
75
75
  var iframeDoc = iframe.contentDocument;
76
+ console.log('modifyIframe iframeDoc', iframeDoc);
76
77
  if (iframeDoc) {
77
78
  var iframe2 = iframeDoc === null || iframeDoc === void 0 ? void 0 : iframeDoc.getElementsByTagName("iframe")[0];
78
79
  var iframeDoc2 = iframe2 === null || iframe2 === void 0 ? void 0 : iframe2.contentDocument;
80
+ console.log('modifyIframe iframeDoc2', iframeDoc2);
79
81
  if (iframeDoc2) {
80
82
  // Find and replace the target script
81
83
  var scripts = iframeDoc2.querySelectorAll('script');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zzdadelu/schema-builder",
3
- "version": "1.0.0-alpha.33",
3
+ "version": "1.0.0-alpha.34",
4
4
  "description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
5
5
  "keywords": [
6
6
  "Form",