docs: 修改测试集合key值的tooltip

This commit is contained in:
wenbo.dong 2017-10-18 15:36:09 +08:00
parent 18c4014cab
commit ef93e585c4
2 changed files with 10 additions and 2 deletions

View File

@ -370,7 +370,7 @@ class InterfaceColContent extends Component {
header: { header: {
label: 'key', label: 'key',
formatters: [() => { formatters: [() => {
return <Tooltip title="每个用例都有一个独一无二的key可用来获取匹配的接口响应数据"> return <Tooltip title={<span>每个用例都有唯一的key用于获取所匹配接口的响应数据例如使用 <a href="https://yapi.ymfe.org/case.html#变量参数" className="link-tooltip" target="blank">变量参数</a> </span>}>
Key</Tooltip> Key</Tooltip>
}] }]
}, },
@ -475,7 +475,7 @@ class InterfaceColContent extends Component {
<Button disabled type="primary" style={{ float: 'right' }} >开始测试</Button> <Button disabled type="primary" style={{ float: 'right' }} >开始测试</Button>
</Tooltip> </Tooltip>
} }
<Table.Provider <Table.Provider
components={components} components={components}
columns={resolvedColumns} columns={resolvedColumns}

View File

@ -200,3 +200,11 @@ em {
background-color: rgba(0,0,0,.35); background-color: rgba(0,0,0,.35);
z-index: 2; z-index: 2;
} }
// tooltip 中的链接
.link-tooltip {
color: #56b2fd;
&:hover {
color: #2395f1;
}
}