<template>
  <div>
    <tiny-button @click="fn" type="primary" style="max-width: 200px"> 单击遮罩层不关闭弹窗 </tiny-button>
    <tiny-action-sheet
      title="标题"
      :mask-closable="false"
      :visible="boxVisibility"
      @update:visible="boxVisibility = $event"
    ></tiny-action-sheet>
  </div>
</template>

<script>
import { TinyActionSheet, TinyButton } from '@opentiny/vue'

export default {
  components: {
    TinyActionSheet,
    TinyButton
  },
  data() {
    return {
      boxVisibility: false
    }
  },
  methods: {
    fn() {
      this.boxVisibility = true
    }
  }
}
</script>
