Comments (7)
I got this to work in Nuxt by using lazy-loading of the component, as well as wrapping it in the <no-ssr>
built-in component of Nuxt.
I have my globally registered component nuxt/components/common/Loader.vue
:
<template>
<no-ssr>
<vue-element-loading :active="active" :is-full-screen="isFullScreen" spinner="spinner" color="#8d655a" />
</no-ssr>
</template>
<script>
export default {
name: 'Loader',
components: {
VueElementLoading: () => {
if (process.client) {
return import('vue-element-loading');
}
},
},
props: {
active: { type: Boolean, default: false },
isFullScreen: { type: Boolean, default: false },
},
};
</script>
For my solution, I was already wrapping the component anyway as I want it to be used consistently across my project with only a couple options available.
from vue-element-loading.
Hi, @runyasak
Fixed build netlify with rollup-plugin-uglify. Please merge and publish ๐
from vue-element-loading.
up ๐
from vue-element-loading.
Has this issue been fixed.??
it is really needed for me
from vue-element-loading.
Has this issue been fixed.??
it is really needed for me
Hello, Yes of course but the creators of the repository still haven't done the merge.
I fixed in this PR
from vue-element-loading.
I just used your code version in your PR @Sitronik , it worked... thanks
from vue-element-loading.
I just used your code version in your PR @Sitronik , it worked... thanks
You are welcome, I am glad that i could help you
from vue-element-loading.
Related Issues (20)
- It would be great if we can pass text with loading also ? :) HOT 1
- Invalid default value for prop testStyle HOT 8
- use typescript in this library ? HOT 1
- Minified version was not updated ! HOT 3
- Not working in IE 11 - getting Script Syntax error HOT 12
- ไธๅ ผๅฎนAndroidไฝ็ๆฌ HOT 3
- Size is not taking effect HOT 3
- Set default config HOT 5
- Arrow function not transpiled in vue-element-loading.min.js HOT 3
- Old Versions
- [Feature request] Loader delay HOT 5
- compatibility with Vue 3? HOT 12
- IE11 compatibility issue (sintax error)
- fully featured live demo is down HOT 1
- npm version 2.0.1 is latest now not working on vue 2 HOT 2
- Can we have esm build for cdn usage ?
- Functions HOT 1
- Bootstrap modal z-index HOT 2
- change Background Color HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-element-loading.