mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
Update nuxt-loading-indicator.ts
Opacity controlling is unnecessary here to avoid hydration issue.
This commit is contained in:
parent
cf39600d52
commit
ca6cbd1ad6
@ -50,7 +50,7 @@ export default defineComponent({
|
|||||||
pointerEvents: 'none',
|
pointerEvents: 'none',
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
height: `${props.height}px`,
|
height: `${props.height}px`,
|
||||||
opacity: isLoading.value ? 1 : 0,
|
opacity: 1,
|
||||||
background: error.value ? props.errorColor : props.color || undefined,
|
background: error.value ? props.errorColor : props.color || undefined,
|
||||||
backgroundSize: `${(100 / progress.value) * 100}% auto`,
|
backgroundSize: `${(100 / progress.value) * 100}% auto`,
|
||||||
transform: `scaleX(${progress.value}%)`,
|
transform: `scaleX(${progress.value}%)`,
|
||||||
|
Loading…
Reference in New Issue
Block a user