ant-design/components/descriptions/Item.tsx
二货机器人 1fad2b0277
fix: Lots of Descriptions (#21542)
* refactor

* class name

* update demo snapshot

* clean up

* update snapshot

* fix test case

* more test case

* adjust logic
2020-02-23 20:48:16 +08:00

16 lines
363 B
TypeScript

import * as React from 'react';
export interface DescriptionsItemProps {
prefixCls?: string;
className?: string;
style?: React.CSSProperties;
label?: React.ReactNode;
children: React.ReactNode;
span?: number;
}
const DescriptionsItem: React.SFC<DescriptionsItemProps> = ({ children }) =>
children as JSX.Element;
export default DescriptionsItem;