@easy-editor/react-renderer 0.0.6 → 0.0.8

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.
@@ -153,6 +153,13 @@ const SettingFieldGroup = mobxReact.observer(({
153
153
  }, item.id))
154
154
  }));
155
155
  }
156
+
157
+ // 如果 field 没有 setter,则理解为其 父级 field 的 items 数据
158
+ if (!field.setter) {
159
+ return field.items?.map(item => /*#__PURE__*/jsxRuntime.jsx(SettingFieldView, {
160
+ field: item
161
+ }, item.id));
162
+ }
156
163
  return /*#__PURE__*/jsxRuntime.jsx(SettingSetter, {
157
164
  field: field,
158
165
  children: field.items?.map(item => /*#__PURE__*/jsxRuntime.jsx(SettingFieldView, {