0.1.0 • Published 4 years ago
love-loading v0.1.0
vue-heart-loading
install
npm install 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);
0.1.0
4 years ago