Giter Club home page Giter Club logo

vue-toast's People

Contributors

lanqy avatar lin-xin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue-toast's Issues

按照readme引入项目后报错

[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.

runtime-only 无法使用 template属性

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.

不支持在拦截器中使用?

需要在请求响应拦截器中使用好像不支持?

axios.interceptors.response.use(response => {
  if (response.data.code === 403) {
   Vue.$toast('不支持?')
    router.push('/login')
  }
  return response.data || {};
}, error => {
  return Promise.resolve(error.response)
})

Array.apply(null, {length: 12}) 在Chrome 17版本上会报错

lib/index.js文件中的Array.apply(null, {length: 12})代码在Chrome 17版本上会报错:TypeError:Function.prototype.apply:Arguments list has wrong type.

Array.apply的第二个参数应该是一个数组,如果只有一个参数值,可以使用call方法。

调用this.$toast.top('top')时,小程序报错

你好,请问在小程序里引用您的toast,当调用this.$toast.top('top')时就会报错
Please do not register multiple Pages

这是main.js, 然后在index.vue里面调用this.$toast.top('top')时就会报错,请您指教,谢谢。
image

image

Demo WebPage blocked

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:

无法解析CSS!

我参照说明里的 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';

是我引入的姿势不对吗?

'lx-word-wrap' is a new attribute ?

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

不挂载到vue上如何调用

我在封装axio请求时,需要提前处理http状态错误,此时插件没有挂载。请问如何调用toast插件?

动画生成工具和$loading手动删除的疑问

  1. 请问下面的动画是用什么工具生成的吗?
@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;
    }
}
  1. $loading 关闭时为什么要删除DOM,而$toast 仅是控制DOM的显示隐藏,如果$loading也只是控制DOM的显示隐藏是不是更高效些?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.