Closed rogerluo410 closed 4 years ago
You can do it like:
const custom = Vue.extend({
template: `<h3 class="custom">loading</h3>`
});
Vue.component('custom-loader', custom);
Vue.use(VueLoading, {
// options
} , {
// slots
default: (new Vue()).$createElement('custom-loader')
});
As we know, we can't use this.$createElement method in Vue.use(), How can we config default slot globally? thank you!