<template>
  <div class="demo-alert-customer-button">
    <ui-alert
      :closable="false"
      title="不可关闭的 alert"
      type="success">
    </ui-alert>
    <ui-alert
      title="自定义 close-text"
      type="info"
      close-text="知道了">
    </ui-alert>
    <ui-alert
      title="设置了回调的 alert"
      type="warning"
      @close="hello">
    </ui-alert>
  </div>
</template>
<script>
import { Alert } from "amumu-ui"
export default {
  components: {
    "ui-alert": Alert,
  },
  methods: {
    hello() {
      alert("Hello World!")
    },
  },
}
</script>
<style lang="scss">
.demo-alert-customer-button {
  .mm-alert {
    margin-bottom: 10px;
  }
}
</style>
