Skip to content

希望给NTree和NTreeSelect的Option下的label字段适配string | (() => VNodeChild) #7392

@sunnytheme

Description

@sunnytheme

问题的清晰而简明的描述

NTree和NTreeSelect的Option下的label字段适配string | (() => VNodeChild)参数

建议的解决方案

需要对label自定义一些样式,官方文档中支持的类型为:string。使用()=>h()的情况下也可以生效,但是查看代码中的Option的类型,只包含string类型,建议后续升级增加() => VNodeChild类型支持。

备选方案

No response

附加上下文

No response

验证

  • 阅读 贡献指南
  • 阅读 文档
  • 检查是否已经存在请求相同功能的问题,以避免创建重复的问题。

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions