@@ -11,125 +11,15 @@ Use Drawer to quickly preview details of an object, such as those in a list.
1111```vue
1212<template >
1313 <div >
14- <a-list
15- :data-source =" [
16- {
17- name: 'Lily',
18- },
19- {
20- name: 'Lily',
21- },
22- ]"
23- bordered
24- >
25- <template v-slot :renderItem =" { item } " >
26- <a-list-item :key =" `a-${item.id}`" >
27- <template v-slot :actions >
28- <a @click =" showDrawer" >View Profile</a >
29- </template >
30- <a-list-item-meta description =" Progresser XTech" >
31- <template v-slot :title >
32- <a href =" https://www.antdv.com/" >{{ item.name }}</a >
33- </template >
34- <template v-slot :avatar >
35- <a-avatar src =" https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png" />
36- </template >
37- </a-list-item-meta >
38- </a-list-item >
39- </template >
40- </a-list >
41- <a-drawer width =" 640" placement =" right" :closable =" false" :visible =" visible" @close =" onClose" >
42- <p :style =" [pStyle, pStyle2]" >User Profile</p >
43- <p :style =" pStyle" >Personal</p >
44- <a-row >
45- <a-col :span =" 12" >
46- <description-item title =" Full Name" content =" Lily" />
47- </a-col >
48- <a-col :span =" 12" >
49- <description-item title =" Account" content =" AntDesign@example.com" />
50- </a-col >
51- </a-row >
52- <a-row >
53- <a-col :span =" 12" >
54- <description-item title =" City" content =" HangZhou" />
55- </a-col >
56- <a-col :span =" 12" >
57- <description-item title =" Country" content =" China🇨🇳" />
58- </a-col >
59- </a-row >
60- <a-row >
61- <a-col :span =" 12" >
62- <description-item title =" Birthday" content =" February 2,1900" />
63- </a-col >
64- <a-col :span =" 12" >
65- <description-item title =" Website" content =" -" />
66- </a-col >
67- </a-row >
68- <a-row >
69- <a-col :span =" 12" >
70- <description-item
71- title =" Message"
72- content =" Make things as simple as possible but no simpler."
73- />
74- </a-col >
75- </a-row >
76- <a-divider />
77- <p :style =" pStyle" >Company</p >
78- <a-row >
79- <a-col :span =" 12" >
80- <description-item title =" Position" content =" Programmer" />
81- </a-col >
82- <a-col :span =" 12" >
83- <description-item title =" Responsibilities" content =" Coding" />
84- </a-col >
85- </a-row >
86- <a-row >
87- <a-col :span =" 12" >
88- <description-item title =" Department" content =" XTech" />
89- </a-col >
90- <a-col :span =" 12" >
91- <description-item title =" Supervisor" >
92- <template v-slot :content >
93- <a >Lin</a >
94- </template >
95- </description-item >
96- </a-col >
97- </a-row >
98- <a-row >
99- <a-col :span =" 24" >
100- <description-item
101- title =" Skills"
102- content =" C / C + +, data structures, software engineering, operating systems, computer networks, databases, compiler theory, computer architecture, Microcomputer Principle and Interface Technology, Computer English, Java, ASP, etc."
103- />
104- </a-col >
105- </a-row >
106- <a-divider />
107- <p :style =" pStyle" >Contacts</p >
108- <a-row >
109- <a-col :span =" 12" >
110- <description-item title =" Email" content =" ant-design-vue@example.com" />
111- </a-col >
112- <a-col :span =" 12" >
113- <description-item title =" Phone Number" content =" +86 181 0000 0000" />
114- </a-col >
115- </a-row >
116- <a-row >
117- <a-col :span =" 24" >
118- <description-item title =" Github" >
119- <template v-slot :content >
120- <a href =" https://github.com/vueComponent/ant-design-vue"
121- >github.com/vueComponent/ant-design-vue</a
122- >
123- </template >
124- </description-item >
125- </a-col >
126- </a-row >
127- </a-drawer >
14+ <demo />
12815 </div >
12916</template >
13017<script >
18+ import demo from ' ../antdv-demo/docs/transfer/demo/basic.md' ;
13119export default {
132- components: {},
20+ components: {
21+ demo,
22+ },
13323 data () {
13424 return {
13525 visible: false ,
0 commit comments