import { Affix, Anchor, Button, Col, Popover, Row } from "antd"; import { UnorderedListOutlined } from "@ant-design/icons"; const { Link } = Anchor; export interface IAnchorData { href: string; title: string; children?: IAnchorData[]; } interface IWidgetDictList { data: IAnchorData[]; } const DictListWidget = (prop: IWidgetDictList) => { const GetLink = (anchors: IAnchorData[]) => { return anchors.map((it, id) => { return ( {it.children ? GetLink(it.children) : ""} ); }); }; const dictNav = {GetLink(prop.data)}; return ( {dictNav}