{ "slug": "listpicker", "mode": "single", "examples": [ { "id": "listpicker-ex-1", "title": "基础用法", "titleSrc": "", "desc": "", "html": "
对齐 ListPicker 规范:下拉列表、多选、分组、搜索、全选、标签
\n技术栈多选(分组 + 搜索 + 全选)
\n \n对齐 ListPicker 规范:下拉列表、多选、分组、搜索、全选、标签
\n技术栈多选(分组 + 搜索 + 全选)
\n", "jsx": "import { useState } from 'react';\nimport { KoleListPicker } from 'kole-ui/react';\n\nconst OPTIONS = [\n { label: '前端', children: [{ value: 'vue', label: 'Vue' }, { value: 'react', label: 'React' }, { value: 'ng', label: 'Angular', disabled: true }] },\n { label: '后端', children: [{ value: 'java', label: 'Java' }, { value: 'go', label: 'Go' }, { value: 'py', label: 'Python' }] }\n];\n\nexport default function TechPicker() {\n const [tech, setTech] = useState(['vue', 'react']);\n return (\n