<template>
  <div>
    <!-- <lyf-drawer :visible="true">
      第一个抽屉，至右往左
    </lyf-drawer> -->
    <lyf-button @click="open">打开</lyf-button>
    <lyf-drawer 
      :visible.sync="visible"
      title="标题"
      stopMaskSlip
      @touch-move="touchMove"
    >
      <div>123</div>
      <div style="height: 400px;background-color: orange;"></div>
      <div>456</div>
    </lyf-drawer>
  </div>
</template>

<script>
export default {
  data() {
    return {
      visible: true
    }
  },
  mounted() {
    // setTimeout(() => {
    //   this.visible = true
    // }, 2000)
  },
  methods: {
    open() {
      this.visible = true
    },
    touchMove(e) {
      console.log(e)
    }
  }
}
</script>