kiinlam / wetoast Goto Github PK
View Code? Open in Web Editor NEW微信小程序toast增强插件
License: MIT License
微信小程序toast增强插件
License: MIT License
参考了此repo,做了wepyjs版本的toast组件,使用更方便。
README中已加外链。
https://github.com/wepyjs/wepy-com-toast
是否支持gif或svg
在小程序开发工具中一切正常,当上传为体验版本测试时,发现ios设备都无法正常toast,安卓设备没问题。
希望配一套默认的icon,找icon找到头疼
在点击按钮提示时需要等此次提示结束后才能再次点击,希望增加穿透属性在提示的时候页面依然能操作来应该不同场景
.wetoast__bd
中的 left:50%
,会影响文字换行。我想让文字能撑开宽度,达到max-width
时换行
demo运行不起来,作者不维护了?
this.wetoast.toast is not a function Page pages/index/index catch error in Page.onTitleToast function
TypeError: this.wetoast.toast is not a function
在wetoast.js 里面我看到有个方法每隔30ms会掉用page.setData(),小程序在调试时已经警告了,会影响性能。请问有没有考虑这点,有没有更好的方法?
//显示
WeToast.prototype.show = function (data) {
let page = this.__page
clearTimeout(this.__timeout)
//display需要先设置为block之后,才能执行动画
page.setData({
'__wetoast__.reveal': true
})
setTimeout(() => {
let animation = wx.createAnimation()
animation.opacity(1).step()
data.animationData = animation.export()
data.reveal = true
page.setData({
__wetoast__: data
})
}, 30)
...
}
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.