update 搜索菜单中增加了图标显示
This commit is contained in:
@@ -24,7 +24,9 @@ export default {
|
|||||||
renderSelectGroup(menu) {
|
renderSelectGroup(menu) {
|
||||||
return (
|
return (
|
||||||
<a-select-opt-group key={menu.parents}>
|
<a-select-opt-group key={menu.parents}>
|
||||||
<span slot="label">{menu.parents}</span>
|
<span slot="label">
|
||||||
|
{menu.parents}
|
||||||
|
</span>
|
||||||
{this.renderSelect(menu.children)}
|
{this.renderSelect(menu.children)}
|
||||||
</a-select-opt-group>
|
</a-select-opt-group>
|
||||||
)
|
)
|
||||||
@@ -34,6 +36,7 @@ export default {
|
|||||||
return (<a-select-option key={menu.id} value={
|
return (<a-select-option key={menu.id} value={
|
||||||
JSON.stringify(menu)
|
JSON.stringify(menu)
|
||||||
}>
|
}>
|
||||||
|
{menu.meta.icon && <a-icon type={menu.meta.icon} />}
|
||||||
{menu.meta.title}
|
{menu.meta.title}
|
||||||
<small style={{ display: 'block', color: '#aaa' }}>{menu.component}</small>
|
<small style={{ display: 'block', color: '#aaa' }}>{menu.component}</small>
|
||||||
</a-select-option>)
|
</a-select-option>)
|
||||||
|
|||||||
Reference in New Issue
Block a user