text: import Notification from './notification.vue'
  
  export default {
    extends: Notification,
    computed: {
      style() {
        return {
          bottom: `${this.verticalOffset}px`
        }
      }
    },
    mounted() {
      this.createTimer()
    },
    methods: {
      createTimer() {
        if (this.autoClose) {
          this.timer = setTimeout(() => {
            this.visible = false
          }, this.autoClose)
        }
      },
      clearTimer() {
        if (this.timer) {
          clearTimeout(this.timer)
        }
      },
      afterEnter() {
        console.log(1111111111111111)
        this.height = this.$el.offsetHeight
      }
    },
    beforeDestory() {
      this.clearTimer()
    },
    data() {
      return {
        verticalOffset: 0,
        autoClose: 3000,
        height: 0,
        visible: false
      }
    }
  }
  