0.0.4 • Published 4 years ago

util-m-toast v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

安装

npm install util-m-toast

使用

import Vue from 'vue'
import Toast from 'util-m-toast'

Vue.use(Toast)

handle() {
    this.$toast('hello util-m-toast');

    this.$toast({
        icon: 'success',
        title: 'hello util-m-toast'
    });
    // 或者
    this.$toast.success('hello util-m-toast');

    this.$toast({
        icon: 'error',
        title: 'hello util-m-toast'
    });
    // 或者
    this.$toast.error('hello util-m-toast');


    this.$toast({
        icon: 'loading',
        title: 'hello util-m-toast'
    });
    // 或者
    this.$toast.loading('hello util-m-toast');

    // 关闭loading
    this.$hideLoading();
}
0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago