Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select supports binding item objects rather than value types #1779

Open
yangf85 opened this issue Mar 12, 2024 · 3 comments
Open

Select supports binding item objects rather than value types #1779

yangf85 opened this issue Mar 12, 2024 · 3 comments
Labels

Comments

@yangf85
Copy link

yangf85 commented Mar 12, 2024

No description provided.

@capdiem
Copy link
Contributor

capdiem commented Mar 12, 2024

你有什么建议?或哪里复杂?

@yangf85
Copy link
Author

yangf85 commented Mar 12, 2024

这个多选功能应该是比较常用的,按照文档的写法,要添加的内容比较多。如果封装成一个新的组件,又感觉怪怪的。

文档的写法好像是使用的字符串,能否让这个bind-value能支持自定义对象 class?类似wpf 的Listbox,数据源和选择项是同样的类型, 不然还得包装一下,有点繁琐。

@capdiem
Copy link
Contributor

capdiem commented Mar 12, 2024

我明白你的意思,现在内部有个机制需要深拷贝,所以对象深拷贝之后就引用就变了。有改动这部分的想法,但不能保证何时开始。

@capdiem capdiem added type/enhancement New feature or request component/Select labels Mar 12, 2024
@capdiem capdiem changed the title Select组件的Multi模式使用起来有点复杂,能让它变得更简单一点吗? Select supports binding item objects rather than value types Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants