forked from opentiny/tiny-vue
35 lines
622 B
Vue
35 lines
622 B
Vue
<template>
|
|
<div>
|
|
<tiny-button @click="fn" type="primary"> 自定义 z-index </tiny-button>
|
|
<tiny-drawer title="标题" :visible="visible" @update:visible="visible = $event" :z-index="zIndex">
|
|
<div>
|
|
<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,
|
|
zIndex: 3000
|
|
}
|
|
},
|
|
methods: {
|
|
fn() {
|
|
this.visible = true
|
|
}
|
|
}
|
|
}
|
|
</script>
|