update 搜索菜单中增加了图标显示

This commit is contained in:
2021-04-25 21:01:13 +08:00
parent a150ef64cf
commit d540658d6f

View File

@@ -24,7 +24,9 @@ export default {
renderSelectGroup(menu) {
return (
<a-select-opt-group key={menu.parents}>
<span slot="label">{menu.parents}</span>
<span slot="label">
{menu.parents}
</span>
{this.renderSelect(menu.children)}
</a-select-opt-group>
)
@@ -34,6 +36,7 @@ export default {
return (<a-select-option key={menu.id} value={
JSON.stringify(menu)
}>
{menu.meta.icon && <a-icon type={menu.meta.icon} />}
{menu.meta.title}
<small style={{ display: 'block', color: '#aaa' }}>{menu.component}</small>
</a-select-option>)