naive-ui icon indicating copy to clipboard operation
naive-ui copied to clipboard

NPopselect lake a lot of props from NSelect

Open M1CK431 opened this issue 3 years ago • 8 comments

This function solves the problem (这个功能解决的问题)

For example, when data come from API, there are some very handy props like label-field or value-field which are not available.

Expected API (期望的 API)

At a first look, the following props are concerned: children-field, default-value, label-field, menu-props, render-option, reset-menu-on-options-change, value-field and there is also on-scroll event.

M1CK431 avatar Sep 28 '22 15:09 M1CK431

We don't expect popselect to be that complex currently.

07akioni avatar Oct 02 '22 14:10 07akioni

I was thinking Popselect as a "wrapper" for regular Select, with a different behavior regarding it's trigger. By your response, I understand that I was wrong :disappointed:

In my project I only need label-field and value-field currently. For now I just .map data from API so it's not a big deal. However, I guess that props could be useful for others and so perhaps it will be possible to add them in the futur?

M1CK431 avatar Oct 02 '22 14:10 M1CK431

使用select tag标签,内容为object, 目前仅支持string, 以后有考虑添加对象支持么

codeinfo avatar Oct 07 '22 17:10 codeinfo

This issue does not have any recent activity. If you are still experiencing similar problems, open a new error, including a minimal copy of the problem

jahnli avatar Mar 12 '24 13:03 jahnli

@jahnli reading your comment, it's obvious that you don't read this issue carefully. Or perhaps you are a bot? 🤭 It's not an error but a feature request which is not implemented for now. See here for the reason why: https://github.com/tusen-ai/naive-ui/issues/3795#issuecomment-1264655497

M1CK431 avatar Mar 12 '24 13:03 M1CK431

The problem is already swamped, and if you really need it, I think reopening a problem will make more people see it and want to add it

@jahnli看了你的评论,很明显你没有仔细阅读这个问题。或者也许你是一个机器人?🤭 这不是一个错误,而是一个功能请求,目前尚未实现。原因请参见此处:#3795(评论)

jahnli avatar Mar 12 '24 15:03 jahnli

I strongly disagree 😞

M1CK431 avatar Mar 12 '24 21:03 M1CK431

At present, the problem has been submerged, I personally think that only by re-opening a problem can more people see it and be willing to add it. If this problem is closed, I am very sorry and I will re-open it

jahnli avatar Mar 13 '24 01:03 jahnli