<template>
  <div class="demo-dialog-alert">
    <ui-button @click="handleAlert">
      弹出提示
    </ui-button>
  </div>
</template>

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

export default {
  components: {
    "ui-button": Button,
  },
  methods: {
    handleAlert() {
      dialog.alert({
        title: "提示",
        message: "提示内容。",
        type: "warning",
      })
    },
  },
}
</script>
