5d438bb70c
## 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>
55 lines
1.7 KiB
Plaintext
55 lines
1.7 KiB
Plaintext
---
|
|
title: 选择
|
|
---
|
|
|
|
<Frame>
|
|
<img src="/images/user-guide/what-is-twenty/20.png" alt="标题" />
|
|
</Frame>
|
|
|
|
允许用户从预定义选项列表中选择一个值。
|
|
|
|
<Tabs>
|
|
<Tab title="**用法**">
|
|
|
|
```jsx
|
|
import { IconTwentyStar } from 'twenty-ui/display';
|
|
|
|
import { Select } from '@/ui/input/components/Select';
|
|
|
|
export const MyComponent = () => {
|
|
|
|
return (
|
|
<Select
|
|
className
|
|
disabled={false}
|
|
label="选择一个选项"
|
|
options={[
|
|
{ value: 'option1', label: '选项 A', Icon: IconTwentyStar },
|
|
{ value: 'option2', label: '选项 B', Icon: IconTwentyStar },
|
|
]}
|
|
value="option1"
|
|
/>
|
|
);
|
|
};
|
|
|
|
```
|
|
|
|
</Tab>
|
|
<Tab title="属性">
|
|
|
|
|
|
| 属性 | 类型 | 描述 |
|
|
| --------- | --- | ---------------------------------------------------------------- |
|
|
| className | 字符串 | 用于额外样式的可选 CSS 类 |
|
|
| 禁用 | 布尔值 | 当设置为`true`时,禁用用户与组件的交互 |
|
|
| 标签 | 字符串 | 描述`选择`组件用途的标签 |
|
|
| onChange | 函数 | 当所选值更改时调用的函数 |
|
|
| 选项 | 数组 | 表示`选择`组件的可用选项。 它是一个对象数组,每个对象具有一个`值`(唯一标识符)、`标签`(唯一标识符)和一个可选的`图标` |
|
|
| 值 | 字符串 | 表示当前选择的值。 它应匹配`选项`数组中的一个`值`属性 |
|
|
|
|
|
|
|
|
|
|
</Tab>
|
|
</Tabs>
|