Skip to content

gengfire/vue-popup-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm install vue-popup-plugin

import {Tips, Loading, AlertBox} from 'vue-popup-plugin';
Vue.use(Tips);
Vue.use(Loading);
Vue.use(AlertBox);

//tips
this.$tips('some tips');

//loadding icon
this.$loading(); //show it

this.$loading(1); //close it

//alert
this.$alert('content', 'title', ['cancel', 'confirm'], function(){  //content is needed
    //when click confirm btn
});

this.$alert('content', ['ok'], function(){  //content is needed
    //when click ok btn
});

About

popup for vue

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published