vue-heart-loading
v0.2.1
Published
### install
Downloads
4
Readme
vue-heart-loading
install
npm install -S vue-heart-loading
global register
// main.js
import heartLoading from 'vue-heart-loading';
import 'vue-heart-loading/lib/vue-heart-loading.css';// 引入样式
Vue.use(heartLoading);
how to use
// loading open
this.$heartLoading.open();
setTimeout(() => {
// loading close
this.$heartLoading.close();
}, 2000);