@zzdadelu/schema-builder 1.0.0-alpha.129 → 1.0.0-alpha.130

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/dist/index.js CHANGED
@@ -4171,6 +4171,12 @@
4171
4171
  var iframe = createIframe();
4172
4172
  iframeRef.current = iframe;
4173
4173
  containerRef.current.appendChild(iframe);
4174
+ // 关键修复:将 material 加载函数注入到设计器 iframe 的 window 中
4175
+ if (iframe.contentWindow) {
4176
+ iframe.contentWindow.getFormRenderMaterial = function () {
4177
+ return defaultSetting;
4178
+ };
4179
+ }
4174
4180
  };
4175
4181
  var engineOnLoad = function engineOnLoad(event) {
4176
4182
  var _iframeRef$current3, _iframeRef$current3$c, _iframeRef$current3$c2;