forked from cerc-io/cosmos-explorer
change menu style
This commit is contained in:
parent
feaa92ab58
commit
0869c7a93b
@ -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])
|
||||
}
|
||||
|
@ -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)
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user