UNPKG

1.11 kBTypeScriptView Raw
1import { ElementUIComponent } from './component'
2import { VNode } from 'vue'
3
4interface ElDescriptionsSlots {
5 /* title slot: custom title, display on the top left */
6 title: VNode[]
7
8 /* title slot: custom extra area, display on the top right */
9 extra: VNode[]
10
11 [key: string]: VNode[]
12}
13
14/** Display multiple fields in list form. **/
15export declare class ElDescriptions extends ElementUIComponent {
16
17 /* with or without border */
18 border: boolean
19
20 /* numbers of Descriptions Item in one line */
21 column: number
22
23 /* direction of list */
24 direction: 'vertical' | 'horizontal'
25
26 /* size of list */
27 size: 'medium' | 'small' | 'mini'
28
29 /* title text, display on the top left */
30 title: string
31
32 /* extra text, display on the top right */
33 extra: string
34
35 /* change default props colon value of Descriptions Item */
36 colon: boolean
37
38 /* custom label class name */
39 labelClassName: string
40
41 /* custom content class name */
42 contentClassName: string
43
44 /* custom label style */
45 labelStyle: object
46
47 /* custom content style */
48 contentStyle: object
49
50 $slots: ElDescriptionsSlots
51
52}