feat(plugin-workflow): add component (#5464)

* feat(plugin-workflow): add fieldset card component

* fix(plugin-workflow): fix schema name caused wrong ui
This commit is contained in:
Junyi 2024-10-20 14:22:44 +08:00 committed by GitHub
parent eda732ef5f
commit 50b2695797
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 23 additions and 1 deletions

View File

@ -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<any>();
const fieldSchema = useFieldSchema();

View File

@ -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 (
<Card>
<FormLayout layout={props.layout || 'vertical'}>{props.children}</FormLayout>
</Card>
);
}

View File

@ -17,3 +17,4 @@ export * from './ValueBlock';
export * from './SimpleDesigner';
export * from './renderEngineReference';
export * from './Calculation';
export * from './Fieldset';

View File

@ -173,6 +173,7 @@ const workflowFieldset = {
};
export const workflowSchema: ISchema = {
name: 'workflow',
type: 'void',
properties: {
provider: {