Skip to content

Commit

Permalink
Merge pull request #12 from SchnapsterDog/develop
Browse files Browse the repository at this point in the history
style: refactor overflowActive prop
  • Loading branch information
SchnapsterDog authored Jul 14, 2023
2 parents 3ee0573 + f82a76b commit f1a8259
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-preloader",
"description": "Vue-Preloader is a versatile and easy-to-use Vue.js component that allows you to add loading animations to your Vue.js or Nuxt.js projects. It is compatible with both Vue 2 and Vue 3.",
"version": "1.1.1",
"version": "1.1.2",
"private": false,
"homepage": "https://vue-preloader.com/",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const showAnimation = ref(true)

<template>
<div>
<vue-preloader @loading-is-over="showAnimation = false" transition-type="fade-up">
<vue-preloader @loading-is-over="showAnimation = false" :overflowActive="false" transition-type="fade-up">
<template v-slot="{ color, percent }">
<transition name="loading-animation" mode="in-out">
<span v-if="showAnimation" :style="{ color }">{{ percent }} %</span>
Expand Down
4 changes: 2 additions & 2 deletions src/components/VuePreloader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ watchEffect(() => {
});
onBeforeMount(() => {
if (props.overflowActve) setOverflowHidden()
if (props.overflowActive) setOverflowHidden()
});
onMounted(() => {
Expand All @@ -61,7 +61,7 @@ function setOverflowHidden() {
function transitionIsOver() {
setTimeout(() => {
emit('transition-is-over')
if (props.overflowActve) setOverflowAuto()
if (props.overflowActive) setOverflowAuto()
}, props.transitionSpeed)
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/props/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const definedProps = {
type: Number as PropType<number>,
default: 15
},
overflowActve: {
overflowActive: {
type: Boolean,
default: true
},
Expand Down

0 comments on commit f1a8259

Please sign in to comment.