change menu style

This commit is contained in:
liangping 2022-10-05 17:19:54 +08:00
parent feaa92ab58
commit 0869c7a93b
2 changed files with 6 additions and 8 deletions

View File

@ -12,8 +12,9 @@ export default {
},
},
render(h) {
// const logo = this.item.icon || 'MoreHorizontalIcon'
const span = h('span', {}, this.item.header)
const icon = h('feather-icon', { props: { icon: 'MoreHorizontalIcon', size: '18' } })
const icon = h('feather-icon', { props: { icon: this.item.icon || 'MoreHorizontalIcon', size: '18' } })
if (canViewVerticalNavMenuHeader(this.item)) {
return h('li', { class: 'navigation-header text-truncate' }, [span, icon])
}

View File

@ -51,14 +51,11 @@ export default {
}
}
})
const current = {
title: selected.chain_name,
return [{
header: `${selected.chain_name} Dashboard`,
icon: selected.logo,
route: { name: selected.chain_name, params: { chain: selected.chain_name } },
}
current.children = children
// this.items.unshift(current)
return [{ header: 'dashboard' }, current].concat(this.items)
}].concat(children).concat(this.items)
},
},
}