33 lines
757 B
Vue
33 lines
757 B
Vue
<template>
|
|
<div>
|
|
<tiny-button @click="boxVisibility = true">全屏弹窗</tiny-button>
|
|
<tiny-dialog-box fullscreen v-model:visible="boxVisibility" title="消息" resize @resize="onResize">
|
|
<span>弹窗适应整个窗口大小</span>
|
|
<template #footer>
|
|
<tiny-button type="primary" @click="boxVisibility = false">确 定</tiny-button>
|
|
</template>
|
|
</tiny-dialog-box>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="jsx">
|
|
import { Button, DialogBox } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyButton: Button,
|
|
TinyDialogBox: DialogBox
|
|
},
|
|
data() {
|
|
return {
|
|
boxVisibility: false
|
|
}
|
|
},
|
|
methods: {
|
|
onResize(event) {
|
|
console.log('触发了resize事件', event)
|
|
}
|
|
}
|
|
}
|
|
</script>
|