vue-notie icon indicating copy to clipboard operation
vue-notie copied to clipboard

autoclose doesnt seem to work

Open xerosanyam opened this issue 7 years ago • 3 comments

xerosanyam avatar May 30 '17 10:05 xerosanyam

It works for me both local and on the online demo. Could you give more info about your usage?

Yuyz0112 avatar May 31 '17 05:05 Yuyz0112

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

khawarizmus avatar Aug 02 '17 03:08 khawarizmus

@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.

Yuyz0112 avatar Aug 02 '17 05:08 Yuyz0112