Skip to content

Menu.Item组件不支持title slot;Menu组件动态渲染不支持 #4229

@274153705

Description

@274153705
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

const children = flattenChildren(slots.default?.());

看到在这只使用了default 插槽是有什么考量吗

还有组件已经渲染过一次之后改变Menu.Item的数组,控制台会报

reactivity.esm-bundler.js:337 Set operation on key "default" failed: target is readonly.

但是看源码似乎没看到哪有是 readonly的

What does the proposed API look like?

Menu.Item支持 title slot,支持改变数组渲染Menu.Item

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions