Files
twenty/packages/twenty-docs/l/zh/twenty-ui/input/image-input.mdx
T
Félix Malfait 5d438bb70c Docs: restructure navigation, add halftone illustrations, clean up hero images (#19728)
## Summary

- **New Getting Started section** with quickstart guide and restructured
navigation
- **Halftone-style illustrations** for User Guide and Developer
introduction cards using a Canvas 2D filter script
- **Removed hero images** (`image:` frontmatter + `<Frame><img>` blocks)
from all user-guide article pages
- **Cleaned up translations** (13 languages): removed hero images and
updated introduction cards to use halftone style
- **Cleaned up twenty-ui pages**: removed outdated hero images from
component docs
- **Deleted orphaned images**: `table.png`, `kanban.png`
- **Developer page**: fixed duplicate icon, switched to 3-column layout

## Test plan

- [ ] Verify docs site builds without errors
- [ ] Check User Guide introduction page renders halftone card images in
both light and dark mode
- [ ] Check Developer introduction page renders 3-column layout with
distinct icons
- [ ] Confirm article pages no longer show hero images at the top
- [ ] Spot-check a few translated pages to ensure hero images are
removed

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: github-actions <github-actions@twenty.com>
2026-04-21 09:13:55 +02:00

41 lines
1.2 KiB
Plaintext

---
title: 图像输入
---
<Frame>
<img src="/images/user-guide/objects/objects.png" alt="标题" />
</Frame>
允许用户上传和删除图像。
<Tabs>
<Tab title="**用法**">
```jsx
import { ImageInput } from "@/ui/input/components/ImageInput";
export const MyComponent = () => {
return <ImageInput/>;
};
```
</Tab>
<Tab title="属性">
| 属性 | 类型 | 描述 |
| ------------ | --- | --------------------------------- |
| 图片 | 字符串 | 图片来源 URL |
| onUpload | 函数 | 当用户上传新的图片时调用的函数。 接收 `File` 对象作为参数 |
| onRemove | 函数 | 当用户点击移除按钮时调用的函数 |
| onAbort | 函数 | 当用户在上传图片过程中点击中止按钮时调用的函数 |
| isUploading | 布尔值 | 指示图像当前是否正在上传中 |
| errorMessage | 字符串 | 在图片输入下方显示的可选错误消息 |
| disabled | 布尔值 | 如果 `true` ,整个输入被禁用,按钮不可点击 |
</Tab>
</Tabs>