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

关于默认选中数据 #66

Open
q32784307 opened this issue Dec 18, 2023 · 0 comments
Open

关于默认选中数据 #66

q32784307 opened this issue Dec 18, 2023 · 0 comments

Comments

@q32784307
Copy link

有这么一个场景,我的列表数据是动态的,我想处理好数据之后然后传入数据源,我想默认选中某一个,那这个默认选中的项,弹出列表时同样有选中标识。动态数据,好像没办法传入字典isselected,而且我这边尝试手写数据
[[WMZMenuTitleKey.normal: "全部", "isselected": true], "更多"]
也没生效...

func titleArr(in menu: WMZDropDownMenu) -> [Any] {

func menu(_ menu: WMZDropDownMenu, dataForRowAt dropIndexPath: WMZDropIndexPath) -> [Any] {

2个方法都不生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant