1 | import * as React from 'react';
|
2 | import type { Breakpoint } from '../_util/responsiveObserver';
|
3 | import DescriptionsContext from './DescriptionsContext';
|
4 | import type { DescriptionsItemProps } from './Item';
|
5 | import DescriptionsItem from './Item';
|
6 | interface CompoundedComponent {
|
7 | Item: typeof DescriptionsItem;
|
8 | }
|
9 | export interface InternalDescriptionsItemType extends DescriptionsItemProps {
|
10 | key?: React.Key;
|
11 | }
|
12 | export interface DescriptionsItemType extends Omit<InternalDescriptionsItemType, 'span'> {
|
13 | span?: number | {
|
14 | [key in Breakpoint]?: number;
|
15 | };
|
16 | }
|
17 | export interface DescriptionsProps {
|
18 | prefixCls?: string;
|
19 | className?: string;
|
20 | rootClassName?: string;
|
21 | style?: React.CSSProperties;
|
22 | bordered?: boolean;
|
23 | size?: 'middle' | 'small' | 'default';
|
24 | |
25 |
|
26 |
|
27 | children?: React.ReactNode;
|
28 | title?: React.ReactNode;
|
29 | extra?: React.ReactNode;
|
30 | column?: number | Partial<Record<Breakpoint, number>>;
|
31 | layout?: 'horizontal' | 'vertical';
|
32 | colon?: boolean;
|
33 | labelStyle?: React.CSSProperties;
|
34 | contentStyle?: React.CSSProperties;
|
35 | items?: DescriptionsItemType[];
|
36 | id?: string;
|
37 | }
|
38 | declare const Descriptions: React.FC<DescriptionsProps> & CompoundedComponent;
|
39 | export type { DescriptionsContextProps } from './DescriptionsContext';
|
40 | export { DescriptionsContext };
|
41 | export default Descriptions;
|