ant-design-vue/examples/App.vue

49 lines
808 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<cn>
#### 信息预览抽屉
需要快速预览对象概要时使用点击遮罩区关闭
</cn>
<us>
#### Preview drawer
Use Drawer to quickly preview details of an object, such as those in a list.
</us>
```vue
<template>
<div>
<demo />
</div>
</template>
<script>
import demo from '../antdv-demo/docs/date-picker/demo';
export default {
components: {
demo,
},
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>
```