feat: 图标优化

This commit is contained in:
wenbo.dong 2017-09-14 15:31:26 +08:00
parent 2da94d7659
commit f8673d0b84
2 changed files with 16 additions and 9 deletions

View File

@ -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: '是否必须',

View File

@ -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;
// }
}
}