diff --git a/packages/core/client/src/schema-component/antd/remote-select/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/remote-select/ReadPretty.tsx index 029de4b35e..a71a36a46b 100644 --- a/packages/core/client/src/schema-component/antd/remote-select/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/remote-select/ReadPretty.tsx @@ -23,7 +23,7 @@ export interface RemoteSelectReadPrettyProps extends SelectReadPrettyProps { } export const ReadPretty = observer( - (props: any) => { + (props: RemoteSelectReadPrettyProps) => { const fieldNames = { ...defaultFieldNames, ...props.fieldNames }; const field = useField(); const fieldSchema = useFieldSchema(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/Fieldset.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/Fieldset.tsx new file mode 100644 index 0000000000..078883b0a9 --- /dev/null +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/Fieldset.tsx @@ -0,0 +1,20 @@ +/** + * This file is part of the NocoBase (R) project. + * Copyright (c) 2020-2024 NocoBase Co., Ltd. + * Authors: NocoBase Team. + * + * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. + * For more information, please refer to: https://www.nocobase.com/agreement. + */ + +import React from 'react'; +import { FormLayout } from '@formily/antd-v5'; +import { Card } from 'antd'; + +export function Fieldset(props) { + return ( + + {props.children} + + ); +} diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/index.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/components/index.ts index 1336bed8a7..9781d56c8d 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/index.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/index.ts @@ -17,3 +17,4 @@ export * from './ValueBlock'; export * from './SimpleDesigner'; export * from './renderEngineReference'; export * from './Calculation'; +export * from './Fieldset'; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts index f8ff6b0a51..89f8cbf47b 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts @@ -173,6 +173,7 @@ const workflowFieldset = { }; export const workflowSchema: ISchema = { + name: 'workflow', type: 'void', properties: { provider: {