mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-23 20:26:15 +00:00
feat: flow template add label 、 description
This commit is contained in:
parent
b60dd3b735
commit
a3a9da85b4
@ -35,6 +35,17 @@ export const FlowTemplateModal: React.FC<Props> = ({ isFlowTemplateModalOpen, se
|
||||
title: t('Template_Name'),
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
width:''
|
||||
},
|
||||
{
|
||||
title: t('Template_Label'),
|
||||
dataIndex: 'label',
|
||||
key: 'label',
|
||||
},
|
||||
{
|
||||
title: t('Template_Description'),
|
||||
dataIndex: 'description',
|
||||
key: 'description',
|
||||
},
|
||||
{
|
||||
title: t('Template_Action'),
|
||||
@ -65,13 +76,14 @@ export const FlowTemplateModal: React.FC<Props> = ({ isFlowTemplateModalOpen, se
|
||||
return (
|
||||
<>
|
||||
<Modal
|
||||
className='w-[700px]'
|
||||
title={t('Import_From_Template')}
|
||||
open={isFlowTemplateModalOpen}
|
||||
onCancel={() => setIsFlowTemplateModalOpen(false)}
|
||||
cancelButtonProps={{ className: 'hidden' }}
|
||||
okButtonProps={{ className: 'hidden' }}
|
||||
>
|
||||
<Table dataSource={dataSource} columns={columns} />;
|
||||
<Table className='w-full ' dataSource={dataSource} columns={columns} />;
|
||||
</Modal>
|
||||
</>
|
||||
);
|
||||
|
@ -22,6 +22,8 @@ export const FlowEn = {
|
||||
Higher_Order_Nodes: 'Higher Order',
|
||||
All_Nodes: 'All',
|
||||
Import_From_Template: 'Import from template',
|
||||
Template_Description: 'Description',
|
||||
Template_Name: 'Template Name',
|
||||
Template_Label: 'Label',
|
||||
Template_Action: 'Action',
|
||||
};
|
||||
|
@ -21,7 +21,10 @@ export const FlowZn = {
|
||||
Add_Parameter: '添加参数',
|
||||
Higher_Order_Nodes: '高阶',
|
||||
All_Nodes: '所有',
|
||||
Import_From_Template: '导入模版 ',
|
||||
Import_Template: '从模版导入',
|
||||
Template_Name: '模版名称',
|
||||
Template_Description: '描述',
|
||||
Template_Label: '标签',
|
||||
Template_Action: '操作',
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user