fix: use defineComponent in DescriptionsItem

* fix: 🐞 tsx 中使用 Descriptions.Item 提示错误

Co-authored-by: Amour1688 <31695475+Amour1688@users.noreply.github.com>
This commit is contained in:
Zou Jian 2020-11-12 10:06:11 +08:00 committed by GitHub
parent 44bc942bf7
commit d122901de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ export const DescriptionsItemProps = {
span: PropTypes.number,
};
export const DescriptionsItem = {
export const DescriptionsItem = defineComponent({
name: 'ADescriptionsItem',
props: {
prefixCls: PropTypes.string,
@ -40,7 +40,7 @@ export const DescriptionsItem = {
render() {
return null;
},
};
});
const DEFAULT_COLUMN_MAP: Record<Breakpoint, number> = {
xxl: 3,