tiny-vue/examples/sites/demos/mobile-first/app/action-sheet/mask-event.vue

33 lines
631 B
Vue

<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 { ActionSheet, Button } from '@opentiny/vue'
export default {
components: {
TinyActionSheet: ActionSheet,
TinyButton: Button
},
data() {
return {
boxVisibility: false
}
},
methods: {
fn() {
this.boxVisibility = true
}
}
}
</script>