update demo
This commit is contained in:
parent
8a3c7282f8
commit
e54dc74775
1 changed files with 64 additions and 57 deletions
|
@ -5,7 +5,10 @@
|
||||||
<Button @click="visible3 = true">show3</Button>
|
<Button @click="visible3 = true">show3</Button>
|
||||||
|
|
||||||
<div style="width: 500px;height:500px;background: green;position: relative;">
|
<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>
|
<p>一些内容</p>
|
||||||
<p>一些内容</p>
|
<p>一些内容</p>
|
||||||
|
@ -62,7 +65,6 @@
|
||||||
<p>一些内容</p>
|
<p>一些内容</p>
|
||||||
<p>一些内容</p>
|
<p>一些内容</p>
|
||||||
</Drawer>
|
</Drawer>
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<Drawer v-model="visible2" title="抽屉标题" placement="right">
|
<Drawer v-model="visible2" title="抽屉标题" placement="right">
|
||||||
|
@ -201,6 +203,11 @@
|
||||||
backgroundColor: 'rgba(255,0,255,0.5)'
|
backgroundColor: 'rgba(255,0,255,0.5)'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleClose () {
|
||||||
|
this.$Message.info('关闭了');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue