import React from "react"; import styles from "./index.less"; import { Icon, Input, AutoComplete } from "antd"; const { Option, OptGroup } = AutoComplete; const dataSource = [ { title: "Libraries", children: [ { title: "AntDesign", count: 10000 }, { title: "AntDesign UI", count: 10600 } ] }, { title: "Solutions", children: [ { title: "AntDesign UI", count: 60100 }, { title: "AntDesign", count: 30010 } ] }, { title: "Articles", children: [ { title: "AntDesign design language", count: 100000 } ] } ]; function renderTitle(title) { return ( {title} more ); } const options = dataSource .map(group => ( {group.children.map(opt => ( ))} )) .concat([ ]); function Complete() { return (
} />
); } export default () => (
);