<template>
  <div class="demo-message-duration">
    <ui-button @click="handleClick">
      显示提示
    </ui-button>
  </div>
</template>

<script>
import { Button } from "amumu-ui"
import { message } from "amumu-ui/src/factory"
export default {
  components: {
    "ui-button": Button,
  },
  methods: {
    handleClick() {
      message.info({
        message: "提示内容。",
        duration: 10,
      })
    },
  },
}
</script>

<style lang="scss">
.demo-message-basic {
  .mm-button {
    margin-right: 20px;
  }
}
</style>
