@zzdadelu/schema-builder 1.0.0-alpha.106 → 1.0.0-alpha.107

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
@@ -54,8 +54,9 @@ var Design = function Design(props, ref) {
54
54
 
55
55
  // 定义一个检查并初始化引擎的函数
56
56
  var _checkAndInit = function checkAndInit() {
57
+ var _iframeWindow$__React;
57
58
  // 检查关键依赖函数是否存在
58
- if (typeof iframeWindow.__ReactSimulatorRenderer__.getFormRenderMaterial === 'function') {
59
+ if (typeof (iframeWindow === null || iframeWindow === void 0 ? void 0 : (_iframeWindow$__React = iframeWindow.__ReactSimulatorRenderer__) === null || _iframeWindow$__React === void 0 ? void 0 : _iframeWindow$__React.getFormRenderMaterial) === 'function') {
59
60
  var _iframeWindow$__FR_EN;
60
61
  // ✅ 环境就绪,执行引擎初始化
61
62
  (_iframeWindow$__FR_EN = iframeWindow.__FR_ENGINE__) === null || _iframeWindow$__FR_EN === void 0 ? void 0 : _iframeWindow$__FR_EN.init(_objectSpread({
@@ -75,7 +76,7 @@ var Design = function Design(props, ref) {
75
76
  };
76
77
 
77
78
  // 启动检查流程
78
- _checkAndInit();
79
+ // checkAndInit();
79
80
  // --- 解决方案结束 ---
80
81
  };
81
82
  return /*#__PURE__*/React.createElement("div", {
package/lib/main.js CHANGED
@@ -62,8 +62,9 @@ var Design = function Design(props, ref) {
62
62
 
63
63
  // 定义一个检查并初始化引擎的函数
64
64
  var _checkAndInit = function checkAndInit() {
65
+ var _iframeWindow$__React;
65
66
  // 检查关键依赖函数是否存在
66
- if (typeof iframeWindow.__ReactSimulatorRenderer__.getFormRenderMaterial === 'function') {
67
+ if (typeof (iframeWindow === null || iframeWindow === void 0 ? void 0 : (_iframeWindow$__React = iframeWindow.__ReactSimulatorRenderer__) === null || _iframeWindow$__React === void 0 ? void 0 : _iframeWindow$__React.getFormRenderMaterial) === 'function') {
67
68
  var _iframeWindow$__FR_EN;
68
69
  // ✅ 环境就绪,执行引擎初始化
69
70
  (_iframeWindow$__FR_EN = iframeWindow.__FR_ENGINE__) === null || _iframeWindow$__FR_EN === void 0 ? void 0 : _iframeWindow$__FR_EN.init(_objectSpread({
@@ -83,7 +84,7 @@ var Design = function Design(props, ref) {
83
84
  };
84
85
 
85
86
  // 启动检查流程
86
- _checkAndInit();
87
+ // checkAndInit();
87
88
  // --- 解决方案结束 ---
88
89
  };
89
90
  return /*#__PURE__*/_react.default.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zzdadelu/schema-builder",
3
- "version": "1.0.0-alpha.106",
3
+ "version": "1.0.0-alpha.107",
4
4
  "description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
5
5
  "keywords": [
6
6
  "Form",