feat(web): remote file add api

This commit is contained in:
zhaoying
2026-03-23 17:48:50 +08:00
parent 24c13d408e
commit 9308c6efae
6 changed files with 132 additions and 101 deletions

View File

@@ -47,7 +47,7 @@ const EditableTable: FC<EditableTableProps> = ({
const getColumns = (remove: (index: number) => void): TableProps<TableRow>['columns'] => {
const hasType = typeOptions.length > 0;
const contentClassName = hasType ? 'rb:w-[120px]!' : "rb:w-[154px]!"
const contentClassName = hasType ? 'rb:w-[110px]!' : "rb:w-[148px]!"
const formClassName = 'rb:mb-0! rb:bg-[#F6F6F6] rb:rounded-[8px] rb:py-[2px]! rb:px-[6px]!'
return [
@@ -75,7 +75,7 @@ const EditableTable: FC<EditableTableProps> = ({
{(form) => (
<Form.Item name={[index, 'type']} noStyle>
<Select
placeholder={t('common.pleaseSelect')}
placeholder={t('workflow.config.type')}
// size="small"
options={typeOptions}
popupMatchSelectWidth={false}
@@ -127,6 +127,7 @@ const EditableTable: FC<EditableTableProps> = ({
{
title: '',
dataIndex: 'actions',
width: 20,
render: (_: any, __: TableRow, index: number) => (
<div
className="rb:size-4 rb:cursor-pointer rb:bg-cover rb:bg-[url('@/assets/images/workflow/deleteBg.svg')] rb:hover:bg-[url('@/assets/images/workflow/deleteBg_hover.svg')]"