<template>
  <div class="demo-notification-delay">
    <ui-button @click="handleClick">
      显示通知
    </ui-button>
  </div>
</template>

<script>
import { Button } from "amumu-ui"
import { notification } from "amumu-ui/src/factory"

export default {
  components: {
    "ui-button": Button,
  },
  data() {
    return {
      visible: false,
    }
  },
  methods: {
    handleClick() {
      notification({
        title: "通知",
        message: "这是一条不会自己关闭的通知。",
        duration: 0,
      })
    },
  },
}
</script>
