diff --git a/packages/client/src/collection-manager/Configuration/AddSubFieldAction.tsx b/packages/client/src/collection-manager/Configuration/AddSubFieldAction.tsx index a99e1a4e0..6d9eb1c75 100644 --- a/packages/client/src/collection-manager/Configuration/AddSubFieldAction.tsx +++ b/packages/client/src/collection-manager/Configuration/AddSubFieldAction.tsx @@ -105,6 +105,10 @@ export const AddSubFieldAction = () => { { const schema = getSchema(getInterface(info.key)); setSchema(schema); @@ -113,11 +117,13 @@ export const AddSubFieldAction = () => { > {options.map((option) => { return ( - - {option.children.map((child) => { - return {compile(child.title)}; - })} - + option.children.length > 0 && ( + + {option.children.map((child) => { + return {compile(child.title)}; + })} + + ) ); })} diff --git a/packages/client/src/collection-manager/interfaces/properties/index.ts b/packages/client/src/collection-manager/interfaces/properties/index.ts index c6713a578..0afcc9666 100644 --- a/packages/client/src/collection-manager/interfaces/properties/index.ts +++ b/packages/client/src/collection-manager/interfaces/properties/index.ts @@ -87,7 +87,9 @@ export const dataSource: ISchema = { 'x-decorator': 'FormItem', 'x-component': 'ArrayTable', 'x-component-props': { - pagination: false, + pagination: { + pageSize: 1000, + }, // scroll: { x: '100%' }, }, items: { diff --git a/packages/client/src/schema-component/antd/menu/Menu.Designer.tsx b/packages/client/src/schema-component/antd/menu/Menu.Designer.tsx index a7fce0e5d..772a28652 100644 --- a/packages/client/src/schema-component/antd/menu/Menu.Designer.tsx +++ b/packages/client/src/schema-component/antd/menu/Menu.Designer.tsx @@ -61,6 +61,7 @@ const InsertMenuItems = (props) => { 'x-decorator': 'FormItem', 'x-component': 'Input', title: t('Menu item title'), + required: true, 'x-component-props': {}, // description: `原字段标题:${collectionField?.uiSchema?.title}`, }, @@ -95,6 +96,7 @@ const InsertMenuItems = (props) => { 'x-decorator': 'FormItem', 'x-component': 'Input', title: t('Menu item title'), + required: true, 'x-component-props': {}, }, icon: { @@ -141,6 +143,7 @@ const InsertMenuItems = (props) => { properties: { title: { title: t('Menu item title'), + required: true, 'x-component': 'Input', 'x-decorator': 'FormItem', }, @@ -210,6 +213,7 @@ export const MenuDesigner = () => { properties: { title: { title: t('Menu item title'), + required: true, 'x-decorator': 'FormItem', 'x-component': 'Input', 'x-component-props': {}, diff --git a/packages/client/src/schema-component/antd/menu/MenuItemInitializers/index.tsx b/packages/client/src/schema-component/antd/menu/MenuItemInitializers/index.tsx index b327a23a7..477c5d154 100644 --- a/packages/client/src/schema-component/antd/menu/MenuItemInitializers/index.tsx +++ b/packages/client/src/schema-component/antd/menu/MenuItemInitializers/index.tsx @@ -57,6 +57,7 @@ export const GroupItem = itemWrap((props) => { title: t('Menu item title'), 'x-component': 'Input', 'x-decorator': 'FormItem', + required: true, }, icon: { title: t('Icon'), @@ -103,6 +104,7 @@ export const PageMenuItem = itemWrap((props) => { properties: { title: { title: t('Menu item title'), + required: true, 'x-component': 'Input', 'x-decorator': 'FormItem', }, @@ -166,6 +168,7 @@ export const LinkMenuItem = itemWrap((props) => { properties: { title: { title: t('Menu item title'), + required: true, 'x-component': 'Input', 'x-decorator': 'FormItem', },