refactor: align select composition with shadcn

This commit is contained in:
hailin
2026-07-02 15:28:19 +08:00
parent 37d83c9ac8
commit 2de36c3da6
6 changed files with 46 additions and 32 deletions

View File

@@ -7,7 +7,7 @@ import { AppSection } from '@/components/app/AppSection'
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
import { Textarea } from '@/components/ui/textarea'
import { getTicket } from '@/features/tickets/api'
@@ -114,8 +114,10 @@ export function SolutionCreatePage() {
<SelectValue placeholder="选择状态" />
</SelectTrigger>
<SelectContent>
<SelectItem value="draft">草稿</SelectItem>
<SelectItem value="published">发布</SelectItem>
<SelectGroup>
<SelectItem value="draft">草稿</SelectItem>
<SelectItem value="published">发布</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</AppField>