mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-18 13:04:46 +08:00
feat: 图标优化
This commit is contained in:
parent
2da94d7659
commit
f8673d0b84
@ -45,7 +45,7 @@ class View extends Component {
|
||||
key: 'type',
|
||||
render: (text)=>{
|
||||
text = text || "";
|
||||
return text.toLowerCase()==="text"?<span><i className="TextIcon">T</i>文本</span>:<span><Icon type="file" />文件</span>
|
||||
return text.toLowerCase()==="text"?<span><i className="query-icon text">T</i>文本</span>:<span><Icon type="file" className="query-icon" />文件</span>
|
||||
}
|
||||
},{
|
||||
title: '是否必须',
|
||||
|
@ -21,7 +21,7 @@
|
||||
margin: 0px;
|
||||
.colKey{
|
||||
padding-bottom: 0px;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
.ace_print-margin{
|
||||
@ -37,12 +37,19 @@
|
||||
}
|
||||
}
|
||||
.colBody{
|
||||
.ant-table-row{
|
||||
span{
|
||||
i{
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
.query-icon {
|
||||
display: inline-block;
|
||||
width: .12rem;
|
||||
margin-right: 4px;
|
||||
position: relative;
|
||||
&.text:after {
|
||||
content: 'T';
|
||||
display: block;
|
||||
position: absolute;
|
||||
right: 2px;
|
||||
bottom: -2px;
|
||||
transform: scale(.7);
|
||||
}
|
||||
}
|
||||
}
|
||||
.colDesc{
|
||||
@ -108,4 +115,4 @@
|
||||
// margin-left: 50px;
|
||||
// overflow:visible;
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user