@zzdadelu/schema-builder 1.0.0-alpha.95 → 1.0.0-alpha.97

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
@@ -53,6 +53,8 @@ var Design = function Design(props, ref) {
53
53
  iframe = createIframe();
54
54
  containerRef.current.appendChild(iframe);
55
55
  };
56
+ var simulatorUrl = ['https://alifd.alicdn.com/npm/@alilc/lowcode-react-simulator-renderer@latest/dist/css/react-simulator-renderer.css', // 使用自定义的 JS 文件,或者在线修复
57
+ "https://alifd.alicdn.com/npm/@alilc/lowcode-react-simulator-renderer@latest/dist/js/react-simulator-renderer.js?t=".concat(new Date().getTime())];
56
58
  var engineOnLoad = /*#__PURE__*/function () {
57
59
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(event) {
58
60
  var _iframe3, _iframeWindow$__FR_EN;
@@ -77,11 +79,13 @@ var Design = function Design(props, ref) {
77
79
  console.log('iframeWindow?.AliFormRenderMaterial', iframeWindow === null || iframeWindow === void 0 ? void 0 : iframeWindow.AliFormRenderMaterial);
78
80
  iframeWindow === null || iframeWindow === void 0 ? void 0 : (_iframeWindow$__FR_EN = iframeWindow.__FR_ENGINE__) === null || _iframeWindow$__FR_EN === void 0 ? void 0 : _iframeWindow$__FR_EN.init(_objectSpread({
79
81
  settings: _objectSpread(_objectSpread({}, defaultSetting), settings),
82
+ simulatorUrl: simulatorUrl,
80
83
  widgets: widgets,
81
84
  logo: {
82
85
  title: 'XRender'
83
86
  }
84
87
  }, restProps));
88
+ console.log('iframeWindow?.AliFormRenderMaterial', iframeWindow === null || iframeWindow === void 0 ? void 0 : iframeWindow.AliFormRenderMaterial);
85
89
  console.log('iframe init engine: end init');
86
90
  case 3:
87
91
  return _context.a(2);
package/lib/main.js CHANGED
@@ -61,6 +61,8 @@ var Design = function Design(props, ref) {
61
61
  iframe = (0, _createIframe.default)();
62
62
  containerRef.current.appendChild(iframe);
63
63
  };
64
+ var simulatorUrl = ['https://alifd.alicdn.com/npm/@alilc/lowcode-react-simulator-renderer@latest/dist/css/react-simulator-renderer.css', // 使用自定义的 JS 文件,或者在线修复
65
+ "https://alifd.alicdn.com/npm/@alilc/lowcode-react-simulator-renderer@latest/dist/js/react-simulator-renderer.js?t=".concat(new Date().getTime())];
64
66
  var engineOnLoad = /*#__PURE__*/function () {
65
67
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(event) {
66
68
  var _iframe3, _iframeWindow$__FR_EN;
@@ -85,11 +87,13 @@ var Design = function Design(props, ref) {
85
87
  console.log('iframeWindow?.AliFormRenderMaterial', iframeWindow === null || iframeWindow === void 0 ? void 0 : iframeWindow.AliFormRenderMaterial);
86
88
  iframeWindow === null || iframeWindow === void 0 ? void 0 : (_iframeWindow$__FR_EN = iframeWindow.__FR_ENGINE__) === null || _iframeWindow$__FR_EN === void 0 ? void 0 : _iframeWindow$__FR_EN.init(_objectSpread({
87
89
  settings: _objectSpread(_objectSpread({}, defaultSetting), settings),
90
+ simulatorUrl: simulatorUrl,
88
91
  widgets: widgets,
89
92
  logo: {
90
93
  title: 'XRender'
91
94
  }
92
95
  }, restProps));
96
+ console.log('iframeWindow?.AliFormRenderMaterial', iframeWindow === null || iframeWindow === void 0 ? void 0 : iframeWindow.AliFormRenderMaterial);
93
97
  console.log('iframe init engine: end init');
94
98
  case 3:
95
99
  return _context.a(2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zzdadelu/schema-builder",
3
- "version": "1.0.0-alpha.95",
3
+ "version": "1.0.0-alpha.97",
4
4
  "description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
5
5
  "keywords": [
6
6
  "Form",