update 增加起草组icon
This commit is contained in:
@@ -172,5 +172,11 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
// icon图片默认是选中的图片,如果没被选中,就设置灰掉
|
||||
.ant-menu-item:not(.ant-menu-item-selected) {
|
||||
.icon-img {
|
||||
filter: grayscale(100%);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<!-- update_end author:sunjianlei date:20190530 for: 选中首页的时候不显示背景颜色 -->
|
||||
|
||||
@@ -146,6 +146,12 @@ export default {
|
||||
)
|
||||
},
|
||||
renderIcon (icon) {
|
||||
// 图片做菜单icon,cus_img_xxx.png, xxx.png放在assets/imgs/icon/
|
||||
if (icon !== 'none' && icon !== undefined && icon.indexOf('cus_img_') !== -1) {
|
||||
const img = require('@/assets/imgs/icon/' + icon.substr(8) + '_act.png')
|
||||
return (<img style="width:16px;height:16px;user-select:none;margin-right:8px;vertical-align:sub;"
|
||||
src={img} alt="" class="icon-img"/>)
|
||||
}
|
||||
if (icon !== 'none' && icon !== undefined && icon.indexOf('cus_') !== -1) {
|
||||
let className = `anticon-jeecg anticon${icon.substr(4)}`
|
||||
return <i class={className} style='margin-right: 8px'></i>
|
||||
|
||||
Reference in New Issue
Block a user