update demo

This commit is contained in:
梁灏 2018-08-24 14:55:51 +08:00
parent 8a3c7282f8
commit e54dc74775

View file

@ -5,7 +5,10 @@
<Button @click="visible3 = true">show3</Button>
<div style="width: 500px;height:500px;background: green;position: relative;">
<Drawer v-model="visible" title="抽屉标题" :styles="styles" :transfer="false" inner>
</div>
<Drawer v-model="visible" width="70" title="抽屉标题" :styles="styles" @on-close="handleClose">
<p>一些内容</p>
<p>一些内容</p>
<p>一些内容</p>
@ -62,7 +65,6 @@
<p>一些内容</p>
<p>一些内容</p>
</Drawer>
</div>
<Drawer v-model="visible2" title="抽屉标题" placement="right">
@ -201,6 +203,11 @@
backgroundColor: 'rgba(255,0,255,0.5)'
}
};
},
methods: {
handleClose () {
this.$Message.info('关闭了');
}
}
};
</script>