lin-xin / vue-toast Goto Github PK
View Code? Open in Web Editor NEWA mobile toast plugin for vue2.
Home Page: https://lin-xin.gitee.io/example/#/vue2-toast/
A mobile toast plugin for vue2.
Home Page: https://lin-xin.gitee.io/example/#/vue2-toast/
不要这样插入dom了吧?
[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
Opening the demo url show this message: FortiGuard
Web Page Blocked!
You have tried to access a web page which is in violation of your internet usage policy.
URL: http://icp.pppf.com.cn/
Category: Malicious Websites
User name:
Group name:
我在封装axio请求时,需要提前处理http状态错误,此时插件没有挂载。请问如何调用toast插件?
from {
opacity: 0;
transform: translate(-50%, -10px);
-webkit-transform: translate(-50%, -10px);
}
to {
opacity: 1;
transform: translate(-50%, 0);
-webkit-transform: translate(-50%, 0);
}
需要更正 npm install 2vue-toast -S
RT
需要在请求响应拦截器中使用好像不支持?
axios.interceptors.response.use(response => {
if (response.data.code === 403) {
Vue.$toast('不支持?')
router.push('/login')
}
return response.data || {};
}, error => {
return Promise.resolve(error.response)
})
line 24:
var wordWrap = opt.wordWrap ? 'lx-word-wrap' : '';
I have never seen this style attribute 'lx-word-wrap' , is new or i missed ?
please feel free to explain, thank you so much
@keyframes opacity-11 {
0% {
opacity: 0.895958333333333;
}
91.6767% {
opacity: 0.25;
}
91.6867% {
opacity: 1;
}
51.6767% {
opacity: 0.25;
}
100% {
opacity: 0.895958333333333;
}
}
RT
我参照说明里的 import 'vue2-toast/lib/vue-toast.css' 方法引入CSS, 结果造成如下报错:
Module not found: Error: Can't resolve 'vue2-toast/lib/vue-toast.css' in '/Users/bleedkaga/Documents/Vue/vue-basic/src';
是我引入的姿势不对吗?
iOS9.3.5还有iOS10显示toast的时候,会先出现再向左移动一段距离
Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
是否可以考虑在展现之前把之前的 Remove 掉,然后 Show 呢?
Is there a way I can get multiple toasts at a time?
Perhaps stacked on top of each other.
Like the demo here.
只能this.$toast才有反应,不能指定位置
lib/index.js文件中的Array.apply(null, {length: 12})
代码在Chrome 17版本上会报错:TypeError:Function.prototype.apply:Arguments list has wrong type.
Array.apply的第二个参数应该是一个数组,如果只有一个参数值,可以使用call方法。
loading框特别大
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.