element-plus [feature request] can navmenu be rendered through data

2skhul33  于 2022-10-21  发布在  其他
关注(0)|答案(1)|浏览(207)

Existing Component

Component Name

el-menu,el-sub-menu

Description

现有的使用方式,适合固定的展示内容,但是当我需要对动态数据进行展示时,因为无法知道数据嵌套的层级,所以需要手动对该组件进行二次封装。

我参考了 Naive UI 里同类型的 Menu 组件,似乎是个不错的使用体验,element-plus里的 NavMenu 是否可以借鉴参考下?

laawzig2

laawzig21#

Translation of this issue:

Existing Component

yes

Component Name

el-menu,el-sub-menu

Description

The existing usage method is suitable for fixed display content, but when I need to display dynamic data, because I can't know the level of data nesting, I need to manually encapsulate the component.

I refer to the same type of [menu] in naive UI( https://www.naiveui.com/zh-CN/light/components/menu )Component seems to be a good experience. Can the navmenu in element plus be used for reference?

相关问题