Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not work #11

Closed
nazaninhesari opened this issue Aug 6, 2018 · 3 comments
Closed

not work #11

nazaninhesari opened this issue Aug 6, 2018 · 3 comments
Labels

Comments

@nazaninhesari
Copy link

not work in vue.2.5 i use method plugin

@ankurk91
Copy link
Owner

ankurk91 commented Aug 7, 2018

What is not working??
I think you should say "not working in my project".
Can you reproduce it here
https://jsfiddle.net/ankurk91/w8y8k5wo/

@nazaninhesari
Copy link
Author

excuse me . i not import css.
do it can work just in div ?? not full screen ?

@ankurk91
Copy link
Owner

ankurk91 commented Aug 7, 2018

It can work for a specific div.
see how -
https://github.com/ankurk91/vue-loading-overlay/blob/master/examples/App.vue

html

<section class="custom-container" ref="loadingContainer">
<h1>Custom container</h1>
</section>

js
showInContainer() {
let loader = this.$loading.show({
container: this.$refs.loadingContainer
});
// Simulate async operation
setTimeout(() => loader.hide(), 3 * 1000)
}

And yes, you should import given css.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants