noahlam / mpvue-toast Goto Github PK
View Code? Open in Web Editor NEW一个基于mpvue的弹窗组件
一个基于mpvue的弹窗组件
你好,我用
this.$mptoast('请输入正确网址,如xxxx.com', 'none', 3000)调用的时候会出现组件闪一下,不出提示框的情况,用对象调用的时候提示框正常,请问你有遇见过这种情况吗?
this.$mptoast({ text: err, icon: 'error', duration: 2000, textClass: 'toast_error', iconClass: 'toast_image' })
样式定义如下:
`
.toast_image {
width: 75rpx;
height: 75rpx;
margin-bottom: 10rpx;
}
.toast_error {
min-height: 60rpx;
min-width: 150rpx;
max-width: 50%;
max-height: 50%;
border-radius: 10rpx;
z-index: 9999;
position: fixed;
font-size: 28rpx;
color: #fff;
top: 50%;
left: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transform: translate(-50%, -50%);
background: rgba(0,0,0,.65);
padding: 20rpx;
opacity: 0;
}
`
这样设置后, 显示就不正常了. toast内容在文档流里面, 不是浮层的.
thirdScriptError
sdk uncaught third Error
Object(...) is not a function
TypeError: Object(...) is not a function
完全按照步骤来的,麻烦有时间看下谢谢!
这个mptoast都是依赖于page里的组件模板挂载。如果是fly请求之后的提示该如何实现呢
加个回调~·
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.