<template>
  <div class="demo-drawer-no-mask">
    <ui-button @click="showDrawerHandler">
      Open
    </ui-button>
    <ui-drawer
      :visible.sync="visible"
      :mask="false"
      :lock-scroll="false"
      title="Basic Drawer">
      <div style="height: 2000px">
        没有遮罩
      </div>
      <div slot="footer">
        <ui-button>测试</ui-button>
      </div>
    </ui-drawer>
  </div>
</template>

<script>
import { Drawer, Button } from "amumu-ui"
export default {
  components: {
    "ui-drawer": Drawer,
    "ui-button": Button,
  },
  data() {
    return {
      visible: false,
    }
  },
  methods: {
    showDrawerHandler() {
      this.visible = true
    },
  },
}
</script>

<style lang="scss">
.demo-drawer-no-mask {
}
</style>
