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',
|
key: 'type',
|
||||||
render: (text)=>{
|
render: (text)=>{
|
||||||
text = 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: '是否必须',
|
title: '是否必须',
|
||||||
|
@ -37,11 +37,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.colBody{
|
.colBody{
|
||||||
.ant-table-row{
|
.query-icon {
|
||||||
span{
|
display: inline-block;
|
||||||
i{
|
width: .12rem;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
position: relative;
|
||||||
|
&.text:after {
|
||||||
|
content: 'T';
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
right: 2px;
|
||||||
|
bottom: -2px;
|
||||||
|
transform: scale(.7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user