import React from "react" import "./stocksInfo.css" import { Typography, Table, Button } from "antd" const { Text, Title, Link } = Typography const StocksInfo = (props) => { const outPutList = props.location.state.data.outputResult const errorList = props.location.state.data.errorResult const title = props.location.state.name const params = props.location.state.data.params const paramsInfo = props.location.state.data.paramsInfo const url = props.location.state.data.url const download = props.location.state.data.download return (
{title}
输入参数: { params }
{paramsInfo && '参数说明: '} { paramsInfo && paramsInfo.map((info,index) => { return ( { info } ) }) }
输出结果: {/* 这里需要二级表格 */}
输出结果异常:
测试地址:
SDK包: php程序包下载
) } export default StocksInfo const columns = [ { title: "名称", dataIndex: "name", key: "name", }, { title: "说明", dataIndex: "desc", key: "desc", }, ] const errColumns = [ { title: "错误类型", dataIndex: "type", key: "type", }, { title: "message_code", dataIndex: "code", key: "code", }, { title: "message", dataIndex: "message", key: "message", }, ]