feat(web): en update

This commit is contained in:
zhaoying
2026-01-16 12:11:02 +08:00
parent fcf9a92f11
commit 339f6280e1
7 changed files with 82 additions and 75 deletions

View File

@@ -1,5 +1,5 @@
import { forwardRef, useImperativeHandle, useState } from 'react';
import { Form, Input, Select, Row, Col, App, Button } from 'antd';
import { Form, Input, Select, App } from 'antd';
import { useTranslation } from 'react-i18next';
import type { CustomToolItem, CustomToolModalRef, ToolItem } from '../types'
@@ -134,9 +134,9 @@ const CustomToolModal = forwardRef<CustomToolModalRef, CustomToolModalProps>(({
<Form.Item
name="name"
label={t('tool.name')}
rules={[{ required: true, message: t('common.pleaseEnter') }]}
rules={[{ required: true, message: t('common.enterNamePlaceholder') }]}
>
<Input placeholder={t('common.pleaseEnter')} />
<Input placeholder={t('tool.enterNamePlaceholder')} />
</Form.Item>
{/* 名称和图标 */}
{/* <Form.Item label={t('tool.nameAndIcon')} required>
@@ -195,6 +195,7 @@ const CustomToolModal = forwardRef<CustomToolModalRef, CustomToolModalProps>(({
]}
initialData={parseSchemaData.operations || []}
emptySize={88}
emptyText={t('tool.toolEmpty')}
/>
</Form.Item>
@@ -269,7 +270,7 @@ const CustomToolModal = forwardRef<CustomToolModalRef, CustomToolModalProps>(({
<Select
mode="tags"
style={{ width: '100%' }}
placeholder={t('common.pleaseEnter')}
placeholder={t('tool.tagDesc')}
/>
</FormItem>
</Form>