update 搜索菜单中增加了图标显示
This commit is contained in:
@@ -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>)
|
||||
|
||||
Reference in New Issue
Block a user