update 增加起草组icon

This commit is contained in:
danshihao
2024-01-15 22:55:50 +08:00
parent b56cc51233
commit e062bb2394
5 changed files with 15 additions and 3 deletions
+6
View File
@@ -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: 选中首页的时候不显示背景颜色 -->
+6
View File
@@ -146,6 +146,12 @@ export default {
)
},
renderIcon (icon) {
// 图片做菜单iconcus_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>