mulook / weapp-navigation-bar Goto Github PK
View Code? Open in Web Editor NEW一个自适应的微信小程序自定义导航栏组件。
一个自适应的微信小程序自定义导航栏组件。
现在想把返还图片换成一个其他图片,放在首页,用来完成其他的跳转功能。
就是比如title : '标题' 让标题可以支持传递图片 title: ‘../../a.png’
还有左边或者右边也希望可以支持传递图片 left right :‘a.png’
接下来是传递图片宽高即可。
感谢分享这么好的组件。
请问,我在全屏的时候,只有用户向上滚动页面后才会显示导航栏,这个组件支持吗?
场景是这样的,我原本是全屏页面,用户滚动浏览页面,然后顶部显示导航栏。
我先实现效果: 点击返回上一页
时弹窗提示用户确认. 所以, 需要能够监控返回上一页的事件.
组件本身navigateBack
的tap方法, 可以在这里弹窗提示. 但这会导致所有页面中的导航栏, 都会弹窗.
显然不合适.
不知道, 原生自定义组件能不能将某些事件抛出, 让父组件能够监听的到?
在实现自定义navigation时,遇到页面里顶部预留空间问题,之前考虑过在page里计算预留,但很麻烦。google下发现了这个项目,你的解决方案是留一个占位元素,不错有帮助,感谢,加油~
如题
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.