@lobehub/ui 1.120.6 → 1.120.7

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.
@@ -3,7 +3,7 @@ import { type ReactNode, RefAttributes } from 'react';
3
3
  import FormGroup, { type FormGroupProps } from './components/FormGroup';
4
4
  import FormItem, { type FormItemProps } from './components/FormItem';
5
5
  export interface ItemGroup {
6
- children: FormItemProps[];
6
+ children: FormItemProps[] | ReactNode;
7
7
  extra?: FormGroupProps['extra'];
8
8
  icon?: FormGroupProps['icon'];
9
9
  title: FormGroupProps['title'];
package/es/Form/index.js CHANGED
@@ -34,14 +34,14 @@ var FormParent = /*#__PURE__*/forwardRef(function (_ref, ref) {
34
34
  extra: group === null || group === void 0 ? void 0 : group.extra,
35
35
  icon: group === null || group === void 0 ? void 0 : group.icon,
36
36
  title: group.title,
37
- children: group.children.filter(function (item) {
37
+ children: Array.isArray(group.children) ? group.children.filter(function (item) {
38
38
  return !item.hidden;
39
39
  }).map(function (item, itemIndex) {
40
40
  return /*#__PURE__*/_jsx(FormItem, _objectSpread({
41
41
  divider: itemIndex !== 0,
42
42
  minWidth: itemMinWidth
43
43
  }, item), itemIndex);
44
- })
44
+ }) : group.children
45
45
  }, groupIndex);
46
46
  }), children, footer && /*#__PURE__*/_jsx(FormFooter, {
47
47
  children: footer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.120.6",
3
+ "version": "1.120.7",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",