Nitrogenous Polymorphic Molecule

    h5-vue-toast

    1.0.9 • Public • Published

    h5-vue-toast

    yarn add h5-vue-toast
    // or
    npm i h5-vue-toast
    // client-entry.js
    import Toast from 'h5-vue-toast'
     
    Vue.prototype.$toast = new Toast()
    /**
    * options<Object>:
    * - duration<Number>:toast 持续的时间(loading 是一直存在),默认 1500(ms)
    * - timeout<Number>:then 调用的间隔时间(loading 没有 then),默认 1500(ms)
    */
     
    this.$toast.info('string').then()
     
    this.$toast.error('string').then()
     
    this.$toast.success('string').then()
     
    this.$toast.loading('string')
     
    this.$toast.stop()

    Keywords

    Install

    npm i h5-vue-toast

    DownloadsWeekly Downloads

    3

    Version

    1.0.9

    License

    MIT

    Unpacked Size

    84.9 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar