import React, { Component } from 'react' import { Anchor, Card, Col, Row, Typography } from 'antd' import { Container } from 'components' import Window from './window' import WindowOpen from './window/open' import WindowClose from './window/close' import WindowReload from './window/reload' import Api from './api' import ApiSetting from './api/setting' import ApiUsage from './api/usage' import Auth from './auth' import Seed from './seed' import Util from './util' import UtilDict from './util/dict' import UtilGlobal from './util/global' import UtilFormat from './util/format' import UtilFile from './util/file' import UtilQuery from './util/query' const { Title, Link } = Typography const docs = [ { title: '窗口', component: Window, children: [ { title: '打开窗口', component: WindowOpen }, { title: '关闭窗口', component: WindowClose }, { title: '重新加载窗口', component: WindowReload }, ], }, { title: '接口', component: Api, children: [ { title: '配置', component: ApiSetting }, { title: '调用', component: ApiUsage }, ], }, { title: '权限渲染', component: Auth, }, { title: '种子模版', component: Seed, }, { title: '工具', component: Util, children: [ { title: '读取字典', component: UtilDict }, { title: '全局常量', component: UtilGlobal }, { title: '字符串格式转化', component: UtilFormat }, { title: '文件', component: UtilFile }, { title: '查询相关', component: UtilQuery }, ], }, ] export default class index extends Component { container = window setContainer = container => { this.container = (container || { parentNode: window }).parentNode } render() { return (

{docs.map((item, i) => (
{item.title} {item.component && ( )} {item.children && ( <>

{item.children.map((citem, ci) => (
{citem.title} {citem.component && ( )}

))} )}

))}
this.container} offsetTop={24} onClick={e => e.preventDefault()} > {docs.map((item, i) => ( {item.children && item.children.map((citem, ci) => ( ))} ))}
{this.props.supportInfo}
) } }