ant-design-vue/examples/App.vue

49 lines
808 B
Vue
Raw Normal View History

2020-08-20 10:05:12 +00:00
<cn>
#### 信息预览抽屉
需要快速预览对象概要时使用点击遮罩区关闭
</cn>
<us>
#### Preview drawer
Use Drawer to quickly preview details of an object, such as those in a list.
</us>
```vue
2020-03-23 03:00:24 +00:00
<template>
2020-06-11 08:13:09 +00:00
<div>
2020-08-27 14:38:56 +00:00
<demo />
2020-06-11 08:13:09 +00:00
</div>
2020-03-23 03:00:24 +00:00
</template>
2020-08-20 10:05:12 +00:00
<script>
2020-08-31 14:25:47 +00:00
import demo from '../antdv-demo/docs/date-picker/demo';
2020-08-20 10:05:12 +00:00
export default {
2020-08-27 14:38:56 +00:00
components: {
demo,
},
2020-08-20 10:05:12 +00:00
data() {
return {
visible: false,
pStyle: {
fontSize: '16px',
color: 'rgba(0,0,0,0.85)',
lineHeight: '24px',
display: 'block',
marginBottom: '16px',
},
pStyle2: {
marginBottom: '24px',
},
};
},
methods: {
showDrawer() {
this.visible = true;
},
onClose() {
this.visible = false;
},
},
};
</script>
```