forked from opentiny/tiny-vue
36 lines
690 B
Vue
36 lines
690 B
Vue
<template>
|
|
<div>
|
|
<tiny-button type="primary" @click="showDrawer()"> 显示底部 </tiny-button>
|
|
|
|
<tiny-drawer :show-footer="showFooter" title="标题" :visible="visible" @update:visible="visible = $event">
|
|
<div style="height: 200px; text-align: center">
|
|
<br />
|
|
<br />
|
|
<span>内容区域</span>
|
|
</div>
|
|
</tiny-drawer>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { Drawer, Button } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyDrawer: Drawer,
|
|
TinyButton: Button
|
|
},
|
|
data() {
|
|
return {
|
|
visible: false,
|
|
showFooter: true
|
|
}
|
|
},
|
|
methods: {
|
|
showDrawer() {
|
|
this.visible = true
|
|
}
|
|
}
|
|
}
|
|
</script>
|