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

View File

@ -37,12 +37,19 @@
} }
} }
.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);
}
} }
} }
.colDesc{ .colDesc{