vue-notie
vue-notie copied to clipboard
autoclose doesnt seem to work
It works for me both local and on the online demo. Could you give more info about your usage?
it doesn't work for me neither
<template>
<div v-if="!show" id="tilt" data-tilt data-tilt-scale="1.1">
<button class="tilt-btn" @click="getStarted" data-tilt-glare data-tilt-max-glare="0.8">Get started</button>
</div>
<div v-else>
<notification
:options.sync="notiOptions"
:show.sync="show"></notification>
<transition>
<div class="pass slit-in-vertical">
{{passPhrase}}
</div>
</transition>
</div>
</template>
this.notiOptions = {
autoClose: true,
backgroundColor: '#769FCD',
barColor: '#415f77',
countdownBar: true,
content: 'The content of the notification.',
showTime: 5000,
textColor: '#fff',
};
using the default settings the bar don't shrink and it doesn't close the notification also even with a closing one i get a second notification that i can't close i should probably open a different issue
@gimyboya Thanks for the report.
Since this component was programmed long time ago, I may refactoring it and use more best practices ASAP. Maybe this weekend if I was free.
Also, if you like to improve this component, PR is welcomed anytime.