martinli841538513 / dropdownmenu Goto Github PK
View Code? Open in Web Editor NEW仿美团下拉菜单,二级菜单
License: MIT License
仿美团下拉菜单,二级菜单
License: MIT License
我看了代码,发现如果tableview方式展示,需要设置选中索引,在协议里面有这个方法必须实现。其实,增加一个保存当前tapIndex的属性和一个字典属性,可以避免这一个设置操作。在didSelected的时候将tapIndex作为key保存选中的row索引,在打开获取当前选中索引的时候,可以根据方法内的tapIndex获取到对应的选中索引。
另外,Collection方式展示,如果基数,多余的那一个会被忽略掉。
这个写的不错,能再优化下更好了。对于没时间去写这个封装人来说,这个时及时雨啊。很感谢作者,好人一生平安。
楼主的开源非常好,非常及时
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.