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

33 lines
582 B
Vue

<template>
<div>
<tiny-button @click="fn" type="primary"> 关闭遮罩层 </tiny-button>
<tiny-action-sheet
title="标题"
:mask="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>