Skip to content

Commit d122901

Browse files
chswordAmour1688
andauthored
fix: use defineComponent in DescriptionsItem
* fix: 🐞 tsx 中使用 Descriptions.Item 提示错误 Co-authored-by: Amour1688 <31695475+Amour1688@users.noreply.github.com>
1 parent 44bc942 commit d122901

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/descriptions/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const DescriptionsItemProps = {
3030
span: PropTypes.number,
3131
};
3232

33-
export const DescriptionsItem = {
33+
export const DescriptionsItem = defineComponent({
3434
name: 'ADescriptionsItem',
3535
props: {
3636
prefixCls: PropTypes.string,
@@ -40,7 +40,7 @@ export const DescriptionsItem = {
4040
render() {
4141
return null;
4242
},
43-
};
43+
});
4444

4545
const DEFAULT_COLUMN_MAP: Record<Breakpoint, number> = {
4646
xxl: 3,

0 commit comments

Comments
 (0)